Re: [Wtr-general] The Watir Installer

2006-05-12 Thread Bret Pettichord
type 'irb'then type 'require watir'then type 'ie = Watir::IE.goto google.com'you're in businessOn 5/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Bret, I downloaded the file (watir-1[1].5.0.980.gem)to the root directory of my machine. I typed in the commandat the command line and the

Re: [Wtr-general] Problem with loading time on Java script driven html page

2006-05-12 Thread Bret Pettichord
Watir waits for the page to load, but if you have _javascript_ attached the OnLoad event, it can continue to change the DOM.In these cases, you should poll for a particular object to exist that doesn't show up until everything is ready to go. We will be providing a new wait_for method for all

[Wtr-general] Running test methods in the order i defined them

2006-05-13 Thread Bret Pettichord
Many people have expressed dissatisfaction with the fact that Test::Unit executes tests in alphabetical order rather than the order defined.I've put together a small patch to Test::Unit to fix this problem. It is attached and also included in the Watir 1.5 repo.require 'watir/testcase' Simply

Re: [Wtr-general] getting drag drop to work ....

2006-05-15 Thread Bret Pettichord
Paul,I'm not aware that anyone has done anything but experiment with drag and drop. Whatever support we have in Watir should be considered experimental. It seems to me that you are taking the right approach. What i suggest you do is look at the specific page that you want to automate, read the

Re: [Wtr-general] Clicking on the link in table

2006-05-17 Thread Bret Pettichord
Manish,You are correct, the a/a tags are what make it a link.Using Watir 1.5, this will work: $ie.frame(mainFrame).cell(:text,Create New Policy).clickBret On 5/17/06, Manish Sapariya [EMAIL PROTECTED] wrote: Hi,In the attached html code, I have two tables in 2nd Frame.There is a link in first

[Wtr-general] Long messages and headers, was Re: Wtr-general Digest, Vol 30, Issue 32

2006-05-17 Thread Bret Pettichord
Good points.Also please make sure your posts to the list have a meaningful header, not a digest header.On 5/17/06, Lonny Eachus [EMAIL PROTECTED] wrote:Hey, folks. Please do not echo the entire html from web pages (or other huge chunks of text) in your replies. The header is enough . . . we

Re: [Wtr-general] [question] Passing a Parameter in XPATHfor FireWatir?

2006-05-18 Thread Bret Pettichord
BTW, one of the conventions i follow in my ruby code is that i always use single quotes, unless i'm using interpolation or some other feature (like the ability to include single quotes) that requires double quotes. ___ Wtr-general mailing list

Re: [Wtr-general] Explorer bar supported?

2006-05-19 Thread Bret Pettichord
On 5/19/06, Jonathan Ni [EMAIL PROTECTED] wrote: Hi all: Recently I found one of my application I am testing on has explorer bar installed on IE, which I need to do little bit task in it. I am not sure this supported by WATIR or not. The explorer bar generally like IE DOM Explorer. But it

Re: [Wtr-general] Development updates

2006-05-19 Thread Bret Pettichord
On 5/19/06, Mike Townley [EMAIL PROTECTED] wrote: Is there a place I can check out the latest features, bug fixes and updates to Watir with out cvs'ing the daily? http://wiki.openqa.org/display/WTR/Development+Builds We are due for a new build -- maybe this weekend.(and by the way,

Re: [Wtr-general] Div and link question?

2006-05-19 Thread Bret Pettichord
On 5/19/06, Paatsch, Bernd [EMAIL PROTECTED] wrote: I am struggling with following; I only like to select all the links on the page that correspond to a particular div. In my case div id=header (see html-code). However ie.div(:id , /header/).link(:url, /greetings.php/).click does not work. It

Re: [Wtr-general] frame error in waitreadyState

2006-05-20 Thread Bret Pettichord
On 5/20/06, Manish Sapariya [EMAIL PROTECTED] wrote: W, [19-May-2005 16:15:24#3268] WARN -- : frame error in waitreadyState OLE error code:0 in Unknown No Description HRESULT error code:0x80070005 Access is denied.c:/program

Re: [Wtr-general] Join my Earthscreen network

2006-05-22 Thread Bret Pettichord
This counts as Spam and is not appropriate for this list.BretOn 5/22/06, Sreedhar Kharidehal [EMAIL PROTECTED] wrote:I'm doing a little something about global warming, I'm inviting my friends to join me:http://friends.earthscreen.com/?r=IRFUKDIIICdXCWoICigCi=gmail[EMAIL PROTECTED]p=1z=1tc=11

Re: [Wtr-general] Version discrepancy?

2006-05-23 Thread Bret Pettichord
On 5/23/06, Mike Townley [EMAIL PROTECTED] wrote: I just updated to Watir 1.5.0.98. I first uninstalled using 'gem uninstall watir' command. I then installed the latest version from a local gem . I can verify the version installed with 'gem list –local watir' it shows 1.5.0.98. ruby

Re: [Wtr-general] [question] Accesing images?

2006-05-23 Thread Bret Pettichord
It would help to know what version of Watir you are using.Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] [question] Accesing images?

2006-05-23 Thread Bret Pettichord
On 5/23/06, Rodrigo Julian Martin [EMAIL PROTECTED] wrote: Hi Bret, sorry for the lack of info.. I'm using 1.4.1Just as a point of information, we did not support *modal* web dialogs in 1.4.1. So i initially thought you must be using a more current version. It sounds like you are

[Wtr-general] New Development Gem 1.5.1.1017 Published

2006-05-24 Thread Bret Pettichord
I've published a new development gem for your convenience. http://wiki.openqa.org/display/WTR/Development+Builds The version change from 1.5.0 to 1.5.1 was made simply to avoid a problem with the gem install system. ___ Wtr-general mailing list

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread Bret Pettichord
On 5/24/06, David Schmidt [EMAIL PROTECTED] wrote: The reason for my concern is that this error is in check_for_http_error. This method isn't called until after all the wait checks are complete and Watir thinks that the page is already fully loaded. So that means that there is a bug in the core

Re: [Wtr-general] IFrame Support in WATIR 1.5?

2006-05-24 Thread Bret Pettichord
Is support for IFrames incorporated into the 1.5 release? I didn't see any mention of this on the 1.5 roadmap (but I did see Jeff Wood post a patch back in November...)Hi Cliff,IFrames were supported in 1.4. Obviously, there is something more about them that you want supported. What specifically

Re: [Wtr-general] Need help assigning/resolving variables in WATIR

2006-05-24 Thread Bret Pettichord
If you show us the HTML, we can show you a regexp (regular _expression_) that will match your doc id.Try this: ie.ie.menubar = trueand see if you don't now have the option to view source.Bret On 5/24/06, Frank Legarreta [EMAIL PROTECTED] wrote: I am testing a web based document management system

Re: [Wtr-general] bring_to_front() creates exception?

2006-05-24 Thread Bret Pettichord
Bernd,Looks like AutoIt isn't configured correctly. You could try to install it manually and see if it corrects your problem. BretOn 5/24/06, Paatsch, Bernd [EMAIL PROTECTED] wrote: Hello, I encounter following error in my script. What is the reason?

Re: [Wtr-general] TypeError: can't convert NilClass into timeinterval

2006-05-24 Thread Bret Pettichord
Quang,You are using WET and it is unclear if perhaps WET has the problem. Have you asked the WET folks for help?It is hard to tell what version of Watir you are using. Knowing that would allow us to match up the error report to the source. Given these hurdles, my guess is that one of the delay

Re: [Wtr-general] Need help reading a file

2006-05-24 Thread Bret Pettichord
id = ie.cell(:text, ''AmberGlen Medical Corporation Service Agreement - 2004).idOn 5/24/06, Jassi Akkal [EMAIL PROTECTED] wrote: I need help reading an itemname and returingcorressponding ID from this html code defined below. td

Re: [Wtr-general] Need help reading a file

2006-05-25 Thread Bret Pettichord
On 5/25/06, Chris McMahon [EMAIL PROTECTED] wrote: On 5/24/06, Bret Pettichord [EMAIL PROTECTED] wrote: id = ie.cell(:text, ''AmberGlen Medical Corporation Service Agreement - 2004).id That's neat.Have we always been able to do this?-ChrisNo. This is new to 1.5. I think 1.4 only supported

Re: [Wtr-general] terminate a running scrip

2006-05-26 Thread Bret Pettichord
On 5/26/06, Adrian Rutter [EMAIL PROTECTED] wrote: Is it possible to terminate a running script without closing the commandshell?Ctrl-C or Ctrl-Break. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] 1.5 modal dialog. Syntax of supported tags ?

2006-05-30 Thread Bret Pettichord
On 5/29/06, Neri, Marco [EMAIL PROTECTED] wrote: Is the issue that the buttons are defined using submit instead of input type=button value=Close - Yes, i think this is the problem. does this means that the modal dialog support in 1.5 is restricted only to dialogs implemented similar to

Re: [Wtr-general] how to test e-mail applications

2006-05-30 Thread Bret Pettichord
Zeljko,I also will be needing to automate the verfication that my application sent correct emails. I appreciate your sharing what you find in this area.Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Methods that can be used within a frame?

2006-05-31 Thread Bret Pettichord
On 5/31/06, Tyler Prete [EMAIL PROTECTED] wrote: Thank you for the help David. It looks like for now I will just have to try and work-around the frame issue... probably won't be too bad. I would post some actual code but I am writing this for use with a company intranet, so it wouldn't do much

[Wtr-general] Announcing New Watir Mailing List -- WTR-Development

2006-05-31 Thread Bret Pettichord
We have created a new mailing list: wtr-development. This list is for discussing the versions of Watir currently in development by both developers and beta-testers. This is also a good place to discuss ideas for changing Watir, and for potential contributors to get feedback on their contributions.

Re: [Wtr-general] How can I open and attach file using file_field method?

2006-06-01 Thread Bret Pettichord
Thanks for solving this problem.Now that we have a click_no_wait method, we shouldn't have to resort to external *.rb files in the first place.BretOn 6/1/06, Michael Ruschena [EMAIL PROTECTED] wrote: I encountered this problem yesterday, and unlike the mail archives, I havean answer. I was

Re: [Wtr-general] RPC Server unavailable

2006-06-01 Thread Bret Pettichord
On 6/1/06, Lillis, Dara [EMAIL PROTECTED] wrote: Yesterday I spent a bunch of time getting my watir and ruby versions synchronized on the various machines I use for developing and running tests. I am now using: Ruby 1.8.2-15 Stable Release watir-1.5.1.1017 Is this the right (or at

Re: [Wtr-general] Methods that can be used within a frame?

2006-06-01 Thread Bret Pettichord
On 6/1/06, Tyler Prete [EMAIL PROTECTED] wrote: Well I may not even have to deal with it anymore, but how would I change this manually? I do not have control over the HTML in the page, I am only interacting with it via Watir.By design, Watir is a tool for automating things that you can do

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-06-01 Thread Bret Pettichord
Please send HTML page and code.On 5/24/06, Manish Sapariya [EMAIL PROTECTED] wrote: Is this one known?I searched through the archive and could not find anything similar to this.I saw this only first time, and I am not sure whether I will see thisagain with the same script.Please let me know if

Re: [Wtr-general] [question] Setting timeout for a ie.wait method?

2006-06-01 Thread Bret Pettichord
On 6/1/06, Rodrigo Julian Martin [EMAIL PROTECTED] wrote: I was wondering if there's a way of setting the timeout parameter for the .wait method… I mean, let's say that a page doesn't load in 10 seconds. Could I trap that the .wait method failed after 10 seconds in order to log that?

Re: [Wtr-general] [question] Setting timeout for a ie.wait method?

2006-06-01 Thread Bret Pettichord
The problem is that link().click won't return until the page is loaded. Maybe you meant to use link().ole_object.click instead?BretOn 6/1/06, Chris McMahon [EMAIL PROTECTED] wrote: P.S. I have my doubts about McMahon's suggestion.:)I'm doing something very similar to this in my current Watir

Re: [Wtr-general] Watir 1.5.x Performance Issues?

2006-06-06 Thread Bret Pettichord
On 6/6/06, Lonny Eachus [EMAIL PROTECTED] wrote: Has anyone else experienced a slowdown of their applications sinceupdating Watir from 1.4.1 to 1.5.0.1026?Is there some kind of background polling going on that is slowing thingsdown? Because my application performance has slowed down by about half.

Re: [Wtr-general] Methods that can be used within a frame?

2006-06-06 Thread Bret Pettichord
On 6/1/06, Tyler Prete [EMAIL PROTECTED] wrote: I can't provide the full html because I don't have access to it, but here is the link I am trying to click from the popup:a href='' target='cust' 8560113/aI imagine part of the problem is related to the onclick _javascript_ event, however I did try

[Wtr-general] Proposal for supporting multiple attributes

2006-06-06 Thread Bret Pettichord
I am planning to add multiple attribute support to Watir. For example: ie.div(:class = MenuItem, :text = Pulverize).click The old syntax would continue to be supported. ie.div(:text, Pulverize).clickMoreover, you could now also specify single attributes using this newhash syntax. Thus:

Re: [Wtr-general] Proposal for supporting multiple attributes

2006-06-06 Thread Bret Pettichord
On 6/6/06, Angrez Singh [EMAIL PROTECTED] wrote: Can't XPath functionality be used to access elements using multiple attributes? This is already there. ie.div(:class = MenuItem, :text = Pulverize).clickThis translates to:ie.div(:xpath, //[EMAIL PROTECTED] = 'MenuItem' and @text =

Re: [Wtr-general] BUG: New IE windows share session state with existingopen windows

2006-06-06 Thread Bret Pettichord
On 6/6/06, Lonny Eachus [EMAIL PROTECTED] wrote: Our group has also found that global variables can carry over between separate runs of the same application, probably due to server caching. If a global variable was set during one run of the application, and not explicitly set to

Re: [Wtr-general] Proposal for supporting multiple attributes

2006-06-07 Thread Bret Pettichord
On 6/7/06, Zeljko Filipin [EMAIL PROTECTED] wrote: Are you going to make :index 0 based? I remember there was a discussion about it. I think it would be nice to offer the option of 0 or 1 based indexing. The 1 based indexing is particularly awkward when working with tables. But i have no

Re: [Wtr-general] BUG: New IE windows share session state with existingopen windows

2006-06-07 Thread Bret Pettichord
On 6/7/06, Lonny Eachus [EMAIL PROTECTED] wrote: We had a server set up using multiple Mongrels with a lighttpd front end. A server will wait for an http request to come in, and fire off our Rails application. The program exits when done (i.e., the controller .rb runs to completion, no

Re: [Wtr-general] [question] Setting timeout for a ie.wait method?

2006-06-07 Thread Bret Pettichord
On 6/7/06, Rodrigo Julian Martin [EMAIL PROTECTED] wrote: Hello Bret, ie.down_load_time is a Watir 1.5 feature, right?No. It's been in Watir for a long time. It is in 1.4.1. Well, I need a way of check that each link that was clicked have loaded "completely" a page, else I need to

Re: [Wtr-general] Automation annoyingness

2006-06-07 Thread Bret Pettichord
On 6/7/06, Lillis, Dara [EMAIL PROTECTED] wrote: while not ($ie.link(:text,Second).exists?)sleep 0.5end$ie.link(:text,Second).clickThis is what i do as well.I think the remaining question is whether Watir should do this automatically. I've actually coded this directly and tested it and it works.

Re: [Wtr-general] Automation annoyingness

2006-06-07 Thread Bret Pettichord
On 6/7/06, Lonny Eachus [EMAIL PROTECTED] wrote: By automatically, I would hope you mean a kind of wait_for() method, rather than doing it unseen in the background. At first thought it seems the latter would be terribly inefficient, especially since it is only necessary in relatively rare

[Wtr-general] Please -- No Digest Headers in your posts!

2006-06-07 Thread Bret Pettichord
When you reply to a digest message like this:Re: [Wtr-general] Wtr-general Digest, Vol 31, Issue 16Please change the header, preferably to match that of the post you are replying to. Including subject lines like this make threads nearly impossible to track.Bret

Re: [Wtr-general] Automation annoyingness

2006-06-08 Thread Bret Pettichord
On 6/8/06, Daniel Browne [EMAIL PROTECTED] wrote: Whatwas different was that there was a global timeout setting that wasused, and the timeout value added to the operation would be added onto the global timeout value.This was quite handy when testingrequirements such as a All web pages must be

Re: [Wtr-general] Automation annoyingness

2006-06-08 Thread Bret Pettichord
On 6/8/06, Daniel Browne [EMAIL PROTECTED] wrote: Does that make sense?Yes. Thanks for the explanation. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Automation annoyingness

2006-06-08 Thread Bret Pettichord
On 6/8/06, Lonny Eachus [EMAIL PROTECTED] wrote: After considering this carefully, I would argue that this is a good idea, but it should really be a different method with a different name. 1) Adding a non-optional parameter to the exists? method call would break existing code. 2) This

Re: [Wtr-general] Automation annoyingness

2006-06-09 Thread Bret Pettichord
On 6/9/06, Jeff Wood [EMAIL PROTECTED] wrote: actually, I would code up a when functionality just like endfix ifor unless ... then you could doie.link( :text, Second ).click when ie.link( :text, Second ).exists? ... or something like that.I don't know how to do this. Can you provide example code?

[Wtr-general] Table Row Bug -- How to fix?

2006-06-09 Thread Bret Pettichord
inetdavid (6/8/2006 9:38:31 PM): Just found a problem with row_count with embedded tables. row_count counts *all* the rows, even rows in sub-tables, while show_tables shows the correct count because it uses a different method. I've first added a test to show the problem (using table_test on

Re: [Wtr-general] Wtr-general Digest, Vol 31, Issue 20

2006-06-09 Thread Bret Pettichord
Actually this is a common question. The solution is in the FAQ.http://wiki.openqa.org/display/wtr/FAQ#FAQ-concurrentie On 6/9/06, Lonny Eachus [EMAIL PROTECTED] wrote: There are ways to do this but the specifics depends on what exactly it is you are trying to do, your local network

Re: [Wtr-general] RPC Server unavailable

2006-06-09 Thread Bret Pettichord
On 6/9/06, Lillis, Dara [EMAIL PROTECTED] wrote: Sorry,beenmeaningtoreplyonthis, I don't think this method exists in my version of watir (1.5.1.1017) attempting to call the method results in undefined method `persist_ole_connection' for #Watir::IE:0x2a9a520 (NoMethodError) A search on

Re: [Wtr-general] RPC Server unavailable

2006-06-09 Thread Bret Pettichord
require_gem 'watir', 1.5.1.1017include WatirIE.persist_ole_connection = true is there another require required?There is a typo in the Watir code. In 1.5.1.1017. it is actually IE.persist_ole_connect = trueI will be fixing this momentarily. It really should be IE.persist_ole_connection.This

Re: [Wtr-general] Table Row Bug -- How to fix?

2006-06-09 Thread Bret Pettichord
On 6/9/06, David Schmidt [EMAIL PROTECTED] wrote: Bret, do you want me to start on this?Yes. I will reply to your design comments on the wtr-development list, which we created specifically to discuss these kinds of details.In addition to making sure that rows actually belong to their tables, we

[Wtr-general] Watir Automator Needed

2006-06-09 Thread Bret Pettichord
My company may have some contract work for someone with Watir experience. If you might be interested, please send me (off list) a summary of your credentials, including your experience with Watir and other test automation tools. Ideally, you are located in Austin or Houston, but elsewhere

Re: [Wtr-general] nil is not true with assert(ie.contains_text)

2006-06-12 Thread Bret Pettichord
You are referencing a buggy version of our documentation. Please see http://wtr.rubyforge.org/watir_user_guide.htmlcontains_text is in our API documentation. http://wtr.rubyforge.org/rdoc/classes/Watir/IE.htmlBretOn 6/12/06, Adrian Rutter [EMAIL PROTECTED] wrote:I have a problem with assertions.

[Wtr-general] Wait for control to exist

2006-06-12 Thread Bret Pettichord
So, i think everyone can at least agree that it would be nice to have a method on Watir elements that would not return until the element appeared on a page. E.g.: ie.button(:value, OK).dont_return_until_this_element_exists This would be analogous to the existing ie.wait method, except that that

Re: [Wtr-general] Wait for control to exist

2006-06-13 Thread Bret Pettichord
On 6/13/06, Andy Sipe [EMAIL PROTECTED] wrote: I'm not sure of the syntax, but I'd like to see it support multiple elementsbeing verified.-andyHow about this ?ie.button(:value, OK).wait_til_existsie.button(:value, Cancel).wait_til_exists Bret ___

Re: [Wtr-general] Wait for control to exist

2006-06-13 Thread Bret Pettichord
On 6/13/06, David Schmidt [EMAIL PROTECTED] wrote: I called the function I wrote wait_for, though I like youruntil_with_timeout method that uses yield better.Then we could do something like:wait_for(10) { ie.button(:value, 'OK') }or just do it as a function like wait_for( ie.button(:value, 'OK'),

Re: [Wtr-general] Wait for control to exist

2006-06-13 Thread Bret Pettichord
On 6/13/06, David Schmidt [EMAIL PROTECTED] wrote: How about the easy way.Just alias your nice until_with_timeout towait_until so both names work and just use that your first format withthe block.That way the block can contain any code that returns a boolean, which will allow Andy's request for

Re: [Wtr-general] Problem finding a link URL with RegEx

2006-06-13 Thread Bret Pettichord
Adrian Rutter wrote: Is it not possible to get the second link on a page? Something like: $ie.link(:text, 'New';:index, 2).clickUsing 1.5.1.1037 try this: $ie.link(:text = 'New', :index = 2).click I added multiple attribute support last night for links. Bret

Re: [Wtr-general] Load site without images?

2006-06-13 Thread Bret Pettichord
On 6/13/06, Christian Baumann [EMAIL PROTECTED] wrote: Is it possible to execute watir-scripts without loading the images in awebsite?I´m on a dialup and have a real bandwith-problem; and for the executionof mytestcases loading of the images isn´t necessary. Just turn off this option in IE's

Re: [Wtr-general] Wait for control to exist

2006-06-13 Thread Bret Pettichord
On 6/13/06, David Schmidt [EMAIL PROTECTED] wrote: The wait_for method will just keep trying the supplied block until the blockreturns true or the timeout has passed (where it will throw an exception).We want it to be called wait_until -- correct? ___

Re: [Wtr-general] Trouble with links in a div

2006-06-13 Thread Bret Pettichord
On 6/13/06, kwan l [EMAIL PROTECTED] wrote: ie = Watir::IE.start(C:\\testwatir.html)Try this instead:Watir::IE.start(file:///C:/testwatir.html)Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Wait for control to exist

2006-06-13 Thread Bret Pettichord
I've written this up as http://jira.openqa.org/browse/WTR-75 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Trouble with links in a div

2006-06-13 Thread Bret Pettichord
On 6/13/06, kwan l [EMAIL PROTECTED] wrote: Apparently, the document object is nil. Accessing the link from the ie instance also calls getLink but in that case the document object isn't nil. It's only nil when I access the link collection of the div object. I'm not quite sure what's going on

Re: [Wtr-general] Understanding WATIR

2006-06-14 Thread Bret Pettichord
On 6/14/06, Manish Sapariya [EMAIL PROTECTED] wrote: Hi,I was wondering how watir maintains and creates the list of controls itsees on a page.I am not sure whether this functionality is directly provided by theWebBrowsercontrol or watir does some magic to get the lists of various controls. To

Re: [Wtr-general] thanks for the help

2006-06-14 Thread Bret Pettichord
On 6/14/06, Adrian Rutter [EMAIL PROTECTED] wrote: I have now moved all my current project's tests from Rational toWaitir\Ruby. I estimate my implementation to be anything between 5 - 10times faster.Also, other stakeholders can use watir to input data etc without an expensive license.Thanks for

Re: [Wtr-general] assert_text_in_combobox_by_name

2006-06-14 Thread Bret Pettichord
Try:include Watir::Simple ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] very neat trick with Ruby system() (or any other language on Windows)

2006-06-14 Thread Bret Pettichord
On 6/14/06, Chris McMahon [EMAIL PROTECTED] wrote: As we all know,system(foo.exe)does not return control to the calling script until foo.exe has finished.however, system(start foo.exe)does.This has interesting implications for performance testing and for running many test files simultaneously from

Re: [Wtr-general] It appears Watir command-line switches (-b) do not work when using the Ruby switch -s

2006-06-14 Thread Bret Pettichord
On 6/14/06, Michael Cowan [EMAIL PROTECTED] wrote: I can not use both of these 'features'. In fact using the –s Ruby argument prevents you from passing ANY variables to watir. Has anyone else hit this issue? Any help or tricks? Specifically is there an 'in-script' variable I can set to

[Wtr-general] Fwd: [software-testing] Automation Annoyingness

2006-06-14 Thread Bret Pettichord
? That prompted this reply. -- Forwarded message --From: Bret Pettichord [EMAIL PROTECTED]Date: Jun 12, 2006 5:19 PM Subject: Re: [software-testing] Automation AnnoyingnessTo: [EMAIL PROTECTED]David raises several relevant questions. A major reason for making Watir open-source

Re: [Wtr-general] very neat trick with Ruby system() (or any otherlanguage on Windows)

2006-06-15 Thread Bret Pettichord
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bret Pettichord Sent: Wednesday, June 14, 2006 4:47 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] very neat trick with Ruby system() (or any otherlanguage on Windows) On 6/14/06, Chris McMahon

Re: [Wtr-general] Can I access caption attribute of a checkbox?

2006-06-16 Thread Bret Pettichord
On 6/15/06, Amitha Shetty [EMAIL PROTECTED] wrote: Is there way to access the html generated this way?ie.html will show you the generated html. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] very neat trick with Ruby system() (or any otherlanguage on Windows)

2006-06-16 Thread Bret Pettichord
On 6/15/06, David Schmidt [EMAIL PROTECTED] wrote: Bret,The current method is quite a bit different than the method that Iwrote, and I'm not sure it will be as flexible.(For example, you can'tattach to a Frame the way you can to an IE or Modal window.)My method is designed to completely re-create

Re: [Wtr-general] CVS download

2006-06-17 Thread Bret Pettichord
On 6/17/06, Zeljko Filipin [EMAIL PROTECTED] wrote: at http://openqa.org/watir/cvs.action it is stated that watir can be checked out from http://svn.openqa.org/svn/watir/trunk . You should change it to http://svn.openqa.org/svn/watir/trunk/watir. I think that page is auto-generated at OpenQA and

Re: [Wtr-general] Slightly OT - Eclipse RDT

2006-06-20 Thread Bret Pettichord
I use Eclipse 3.1 and RDT, but do not access files over the network. Instead i use SVN to access shared code. You will probably find more Eclipse users on ruby-talk (although most probably also use CVS or SVN to access shared code). I am still using Ruby 1.8.2.BretOn 6/15/06, Adrian Rutter [EMAIL

Re: [Wtr-general] ie.frame(xyz) syntax broken in svn trunk

2006-06-20 Thread Bret Pettichord
This bug is now fixed in trunk. Thanks for the report. BretOn 6/15/06, Manish Sapariya [EMAIL PROTECTED] wrote:Hi,Before svn up following worked fine.$ie.frame(topbarFrame).link(:text, DHCP Configuration).click After I did svn up, I get following exception I have to specify theattribute type as

Re: [Wtr-general] Slightly OT - Eclipse RDT

2006-06-21 Thread Bret Pettichord
On 6/21/06, Adrian Rutter [EMAIL PROTECTED] wrote: I am still using Ruby 1.8.2.With 1.8.2 I had problems installing the watir one-click installer (watir-1.4.1.exe). Off-hand I think it was a problem with and autoit.dll. Ifyou would like the exact error msg I will post it. Please do. Especially if

Re: [Wtr-general] Little Book of Ruby

2006-06-21 Thread Bret Pettichord
On 6/21/06, Adrian Rutter [EMAIL PROTECTED] wrote: Seems a liitle gem for newcomershttp://www.sapphiresteel.com/IMG/pdf/LittleBookOfRuby.pdfThanks for the recommendation. I added a new page on the wiki for suggestions about learning ruby and included this suggestion there. I'd be happy to see

[Wtr-general] Greenpeace uses Watir

2006-06-21 Thread Bret Pettichord
http://weblog.greenpeace.org/it/2006/06/automating_gcms_with_watir.html ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] mailing list

2006-06-26 Thread Bret Pettichord
It appears that wtr-general went down for several days, but is now back up. I'm not sure why, but i do know that rubyforge migrated to new hardware last week and suspect that this may be related.Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Watir Users forum at forums.openqa.org

2006-06-26 Thread Bret Pettichord
I have two suggestions.1. Remove it entirely; or2. Rename it to Watir Development and have it mirror [EMAIL PROTECTED].I am currently very behind on replying to emails on wtr-development (my apologies) so i am somewhat reluctant to making it easier for people to post questions there. BretOn

Re: [Wtr-general] Need specific example of how to find a control inside a SPAN with a Custom Attribute.

2006-06-26 Thread Bret Pettichord
On 6/26/06, Michael Cowan [EMAIL PROTECTED] wrote: What I want to do is hopefully fairly simple. Here is a snippet of HTML code from my page. I want to get the checkbox object that is wrapped inside the span tag with the Custom Attribute 1015. This is a dynamically created table, the

Re: [Wtr-general] Issue with gem 1.5.11037

2006-06-27 Thread Bret Pettichord
On 6/27/06, Zeljko Filipin [EMAIL PROTECTED] wrote: The funny thing is that I get false after I type 'require watir'.It should be true, right? And, watir works, as if I did not getfalse.irb(main):001:0 require watir = falseYou get false if it is loaded as a gem. True if the file is in your

Re: [Wtr-general] FireWatir on Intel Mac

2006-06-27 Thread Bret Pettichord
Dave,Thanks for the report and suggestions.On 6/27/06, Dave Hoover [EMAIL PROTECTED] wrote: and Chris McMahon was able to get me the latestWatir source built into a gem (can't do that w/o Windows currently), Do we need to make a FireWatir gem publicly available?I'm also curious about why you

Re: [Wtr-general] Did the implementation for contains_text change?

2006-06-27 Thread Bret Pettichord
On 6/27/06, Cain, Mark [EMAIL PROTECTED] wrote: I was attempting to use text.include? like: $ie.text_field(:name, MyText).text.include? "My text to verify" And I get this message: " warning: parenthesize argument(s) for future version" Am I getting this because I am using

Re: [Wtr-general] Wait for control to exist

2006-06-27 Thread Bret Pettichord
My comments below.On 6/21/06, Jonathan Ni [EMAIL PROTECTED] wrote: I have tried to implement this wait_until function on my own. My code handles some situation, however the most case I got an error that I don't really understand. Error message: NoMethodError: undefined method `all' for

Re: [Wtr-general] parsing fields

2006-06-27 Thread Bret Pettichord
Does ie.div(:style, 'display:none').html give you direct access to the html in question?BretOn 6/27/06, Beth Ferguson [EMAIL PROTECTED] wrote:I need to get information from html fields which are not displayed but are not explicityly marked hidden:such as:div style='display:none'object

Re: [Wtr-general] parsing fields

2006-06-27 Thread Bret Pettichord
I suggest using rubyful-soup, which parses html. I found it to be pretty slick, althought some people complain that it is slow.BretOn 6/27/06, Beth Ferguson [EMAIL PROTECTED] wrote:Hi Bret- ie.div(:style, 'display:none').htmlonly gives me an error message whichreads: unknown way of finding a DIV

Re: [Wtr-general] to_a method on a table and accessing elements

2006-06-28 Thread Bret Pettichord
This method returns an array of strings, not an array of elements.BretOn 6/28/06, Adrian Rutter [EMAIL PROTECTED] wrote:If I use the to_a method on an HTML table,e.g. $ie.table(:id, /TerritoryEmployee/).to_a How do I access each individual

Re: [Wtr-general] Need help populating a field array using variables

2006-06-28 Thread Bret Pettichord
I misunderstood the question. I like Rand's answer.On 6/28/06, Rand Thacker [EMAIL PROTECTED] wrote: ie.text_field(:name,grade_result_list[#{x}].beanCount).set(800)should do the trick. Hope that helps On 6/28/06, Legarreta, Frank [EMAIL PROTECTED] wrote: When I hardcode

Re: [Wtr-general] How to detect open browsers

2006-06-29 Thread Bret Pettichord
On 6/29/06, David Solis [EMAIL PROTECTED] wrote: I want to be able to detect any open browsers before my tests starts running. Does anybody have an idea on how to detect open browsers? Look at Watir::IE.close_all in watir/close_all.rb in trunk or a recent build. It finds browsers and then closes

Re: [Wtr-general] xpath error

2006-07-02 Thread Bret Pettichord
I've also run into some problems with rexml/xpath.Some one should track down what it is about your html page that is causing Rexml problems and then submit a bug report to the rexml project. When you get an Rexml bug number, it would hurt to include in a Jira/Watir bug report as well. My sense is

Re: [Wtr-general] UI Mapping Revisited.

2006-07-03 Thread Bret Pettichord
On 7/3/06, George Flaherty [EMAIL PROTECTED] wrote: Is there a preferred way to map out Watir UI components/features before test execution, then possibly bind them later? I know there have been some conversations regarding a Watir::Map class, but is there some other way until that feature is

Re: [Wtr-general] Watir Framework

2006-07-05 Thread Bret Pettichord
On 7/5/06, Chintakrindi Meghanath [EMAIL PROTECTED] wrote: Right now we are using WinRunner for the testing of the application. And we implemeted WRSAFS (Open Source WinRunner Framework) which can be used on any type of application. Most of the scripts are covered in the framework and

Re: [Wtr-general] Windows Sharepoint

2006-07-05 Thread Bret Pettichord
Frankly, I never use show_all_objects.I used the IE Dev Toolbar to analyze the page. It is really the very best tool for this kind of thing. All Watir users should install it now! http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038displaylang=enSorry about

Re: [Wtr-general] Need help populating a field array using variables

2006-07-06 Thread Bret Pettichord
On 7/6/06, Daniel Browne [EMAIL PROTECTED] wrote: I was wondering if you could tell me exactly what the # operatordoes in this case?I have had a look at the ruby documentation butcannot find an explanation.Thanks.The name for this feature is string interpolation. You might be able to find

Re: [Wtr-general] Watir Framework

2006-07-06 Thread Bret Pettichord
Carl -- We have not developed libraries for WATIR to interface with SAFS or STAF, but my bet is that it can be done. If WATIR can interface to C DLLS or VB DLLs or COM, then it should be able to connect with SAFS. Can we call these DLL's from the watir ?Yes. Watir controls IE via its COM

Re: [Wtr-general] Watir Users forum at forums.openqa.org

2006-07-07 Thread Bret Pettichord
Tom Copeland ([EMAIL PROTECTED]) supports rubyforge.The group here should understand that this change will allow anyone with an OpenQA account to post to this list (via the forum). BretOn 7/7/06, Zeljko Filipin [EMAIL PROTECTED] wrote: Patrick needs[EMAIL PROTECTED] (I guess we should change it to

<    1   2   3   4   5   6   7   8   9   10   >