I have exactly the same problem. The problem is made worse when running on slower computers. The test suite runs fine on higher speed development stations, but when run on a build box that is under considerable strain many of the tests written using watir fail with this problem. I haven't co
The 'Warn -- : ' part of the output is coming from inside Watir.
There are a few cases where Watir will write output to the console when it
is having some problems. In this case, it had some trouble, caught an
exception and dumped some output. It is a Warn because it may or may not
b
MAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Sipe
Sent: Tuesday, May 09, 2006 9:29 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN --
:runtimeerror in wai
..
..
.
___
Wtr-
isSet? is the method you are looking for -- it'll tell you if a radiobox or
checkbox is 'checked'.
-andy
Original Message Follows
From: "Rodrigo Julian Martin" <[EMAIL PROTECTED]>
Reply-To: wtr-general@rubyforge.org
To:
Subject: [Wtr-general] [question] Accesing CHECKED propertie for Ch
Try this:
http://rubyforge.org/projects/ruby-breakpoint/
It allows you to stop a ruby program and be dumped to an IRB session. From
there you can view the program state, manipulate variables, and do all kinds
of cool things.
It is very easy to use.
-andy
Original Message Follows
Fr
Assuming that the first part of the label is always the same, then gsub is
one of many ways:
irb(main):017:0> x = 'Good Morning, Billy Bob Joe'
=> "Good Morning, Billy Bob Joe"
irb(main):018:0> x.gsub(/Good Morning, /, '')
=> "Billy Bob Joe"
-andy
Original Message Follows
From: "Paul Ca
Something like:
ie.image(:id, "btnCreateContract").click
ie.image(:id, "btnChooser").click
test_site2 = Watir::IE.attach(:url, 'http://abc.com')
test_site2.radio(:id, /radio1/).set
test_site2.button(:id, /btnOK/).click
sleep(xxx) #you may or may not need this depending on how the popup changes
If you find you are using the same requires over and over again in multiple
files you can centralize them:
loader.rb
require 'this'
require 'that'
require 'something else
script1.rb
require 'loader.rb'
-andy
Original Message Follows
From: Adrian Rutter <[EMAIL PROTECTED]>
Rep
If the item you are looking for is always a check box then this should get
you what you want
id = ie.checkboxes[1].name
#do other things with id
-andy
Original Message Follows
From: "Frank Legarreta" <[EMAIL PROTECTED]>
Reply-To: wtr-general@rubyforge.org
To: wtr-general@rubyforge.org
e the value of id into a page, would
this be the syntax?
ie.text_field(:name,"document_id").set([id])
Thank you, Frank
Date: Wed, 24 May 2006 20:41:05 -0400
From: "Andy Sipe" <[EMAIL PROTECTED]>
Subject: Re: [Wtr-general] Need help assigning/resolving variables in
WATIR
To:
I'm not sure of the syntax, but I'd like to see it support multiple elements
being verified.
-andy
Original Message Follows
From: "Bret Pettichord" <[EMAIL PROTECTED]>
Reply-To: wtr-general@rubyforge.org
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Wait for control to exist
Date:
ttichord" <[EMAIL PROTECTED]>
Reply-To: wtr-general@rubyforge.org
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Wait for control to exist
Date: Tue, 13 Jun 2006 08:22:42 -0500
On 6/13/06, Andy Sipe <[EMAIL PROTECTED]> wrote:
>
>I'm not sure of the syntax, bu
, ...).wait_for_change('exists?', true)
-andy
Original Message Follows
From: "Bret Pettichord" <[EMAIL PROTECTED]>
Reply-To: wtr-general@rubyforge.org
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Wait for control to exist
Date: Tue, 13 Jun 2006 13:23:
7;).document.style.invoke('display') == 'none'
||
@ie.div(:id, 'pnlLoading').document.style.invoke('visibility') ==
'hidden'
end
The wait_for method will just keep trying the supplied block until the block
returns "true" or the time
Hello Max,
I was the author of the code at that link. It was more proof of concept
than anything else and I haven't even checked recently to see if it still
works against the live site.
One thing to keep in mind is that the code I wrote (the ruby/Watir side of
things) isn't a general script
You're welcome :)> Date: Mon, 13 Nov 2006 13:12:23 -0800> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]; wtr-general@rubyforge.org> Subject: Re: [Wtr-general] Grouping Test Cases> > I figured this out...after a colleague pointed me at Andy Sipe's blog:> > http://zbarzone.blogspot.com/2006/04/get
16 matches
Mail list logo