Re: [Wtr-general] Problem with running tests in a suite

2005-08-25 Thread Andy Sipe
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

Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- : runtimeerror in wai

2006-05-09 Thread Andy Sipe
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

Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN --:runti meerror in wai

2006-05-09 Thread Andy Sipe
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-

Re: [Wtr-general] [question] Accesing CHECKED propertie for Checkboxes?

2006-05-11 Thread Andy Sipe
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

Re: [Wtr-general] Run time debugging feature

2006-05-16 Thread Andy Sipe
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

Re: [Wtr-general] How do I set the end of a string to a variable?

2006-05-16 Thread Andy Sipe
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

Re: [Wtr-general] popup issue

2006-05-18 Thread Andy Sipe
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

Re: [Wtr-general] Too many requires?

2006-05-22 Thread Andy Sipe
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

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

2006-05-24 Thread Andy Sipe
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

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

2006-05-25 Thread Andy Sipe
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:

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

2006-06-13 Thread Andy Sipe
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:

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

2006-06-13 Thread Andy Sipe
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

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

2006-06-13 Thread Andy Sipe
, ...).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:

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

2006-06-13 Thread Andy Sipe
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

Re: [Wtr-general] Drag and drop

2006-08-17 Thread Andy Sipe
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

Re: [Wtr-general] Grouping Test Cases

2006-11-14 Thread Andy Sipe
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