RE: [Wtr-general] RE: Cannot Identify "Cancel"

2005-08-04 Thread Fred
Hi Paul, thanks, 1.4 addressed the issue. Regards, Fred -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Rogers Sent: Friday, August 05, 2005 1:59 AM To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] RE: Cannot Identify "Cancel" Hmm. I don't kn

RE: [Wtr-general] Checkboxes with Similar Names

2005-08-04 Thread Fred
Yep, in my situation, the checkbox are dynamically generated and re-indexed, so I need a unique identifier so as the to have repeatable case. Regards, Fred -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Rogers Sent: Friday, August 05, 2005 1:57 AM To:

Re: [Wtr-general] example/concurrent_search error

2005-08-04 Thread Bret Pettichord
My guess is that this is a timing issue of some sort and ultimately a bug (race condition) in watir. One thing you can do is put small sleep statements in there. For example put a "sleep 0.1" right before the failing line and then see if you can reproduce the problem. If not, that proves it is

Re: [Wtr-general] Not waiting for browser to be ready

2005-08-04 Thread Bret Pettichord
At 01:40 PM 8/4/2005, Torres, Ben (HQP) wrote: Is there a way to override the built-in wait() after I click on a button from the browser? I tried putting ie.wait(2) after click but it didn't work. ie.button().getOLEObject.click _ Bret Pettichord www.pettichord.com ___

RE: [Wtr-general] Checkboxes with Similar Names

2005-08-04 Thread Bret Pettichord
At 12:57 PM 8/4/2005, Paul Rogers wrote: note I didn't put a comma or anything in between value and 35, as Im not sure what would be best ie.check_box(:name, 'foo', :value , 35) or ie.check_box(:name, 'foo', :value => 35) i would say it should either be ie.check_box(:name, 'foo',

Re: [Wtr-general] example/concurrent_search error

2005-08-04 Thread Warren Pollans
OK, I was wrong, the behavior is intermittent. Sometimes it works and sometimes it doesn't :-( Any suggestions about how to track this down? On Thu, 4 Aug 2005 14:35:36 -0400 Warren Pollans <[EMAIL PROTECTED]> wrote: > Hmmm, I get the error if there's no browser window open at the start. > If a

[Wtr-general] Not waiting for browser to be ready

2005-08-04 Thread Torres, Ben (HQP)
Is there a way to override the built-in wait() after I click on a button from the browser? I tried putting ie.wait(2) after click but it didn't work. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-gener

RE: [Wtr-general] example/concurrent_search error

2005-08-04 Thread Paul Rogers
No, it should create the browser for you. What win/ruby versions? Does the regular googleSearch.rb work? Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Warren Pollans Sent: 04 August 2005 12:36 To: wtr-general@rubyforge.org Subject: Re: [Wtr-general

Re: [Wtr-general] example/concurrent_search error

2005-08-04 Thread Warren Pollans
Hmmm, I get the error if there's no browser window open at the start. If a browser window is already open, it runs without error. Is this the expected behavior? On Thu, 04 Aug 2005 12:03:00 -0600 Paul Rogers <[EMAIL PROTECTED]> wrote: > Well, it works for me ;-) > > The error is that watir co

RE: [Wtr-general] example/concurrent_search error

2005-08-04 Thread Paul Rogers
Well, it works for me ;-) The error is that watir couldn't find the text field where you enter the search term. I live in canada, and I always get redirected to google.ca, so maybe something similar is happening for you and the search box has a different name... Other than that I cant really help

RE: [Wtr-general] Checkboxes with Similar Names

2005-08-04 Thread Paul Rogers
Yep, that does work in most situations ( the 35 being the value for the checkbox) However in this situation Fred said that the values are generated dynamically, so I assumed they may not be the same between page loads. We've discussed before how the 35 appears meaningless, and the more I see it I

RE: [Wtr-general] RE: Cannot Identify "Cancel"

2005-08-04 Thread Paul Rogers
Hmm. I don't know why that wouldn't work. Could you try using ie.reset(:name , 'reset').flash Or maybe install the 1.4 release and just use ie.button(:name , 'reset').flash -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fred Sent: 04 August 2005 02:04

[Wtr-general] example/concurrent_search error

2005-08-04 Thread Warren Pollans
Hello, Sorry, if this is obvious - I'm new to ruby, watir, and windows - I'm coming from perl on unix. What have I missed here? I ran the example concurrent_search test and got the following: C:\watir_bonus\examples>ruby concurrent_search.rb c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1939:in `ass

RE: RE: RE: [Wtr-general] click image problem

2005-08-04 Thread Torres, Ben (HQP)
Nevermind...good ol .flash helped me find it... -Original Message- From: Torres, Ben (HQP) Sent: Thursday, August 04, 2005 9:51 AM To: 'wtr-general@rubyforge.org' Subject: RE: RE: RE: [Wtr-general] click image problem Dev is going to add ids in the next release. In the meantime, I'm g

RE: RE: RE: [Wtr-general] click image problem

2005-08-04 Thread Torres, Ben (HQP)
Dev is going to add ids in the next release. In the meantime, I'm gonna have to use index... How do I know which index number goes to which button? There are actually several other buttons on the page ("Add", "Remove", "Cancel", "Continue"...) -Original Message- From: [EMAIL PROTECTED] [

RE: [Wtr-general] Security Alert pop up

2005-08-04 Thread Torres, Ben (HQP)
is m.join and t.join the code that actually pushes the 'yes' button on the security warning or do i need to call a method to push the button?   if m.join and t.join does the actual pushing of the 'yes' button on the security warning, do i put it right after the code that pushes the login but

RE: [Wtr-general] Watir 1.4 is released

2005-08-04 Thread Paul Rogers
I didn't even realize there was a test for show_frames :-( -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: 04 August 2005 10:32 To: wtr-general@rubyforge.org Subject: RE: [Wtr-general] Watir 1.4 is released Thanks for all the report

RE: [Wtr-general] Watir 1.4 is released

2005-08-04 Thread Bret Pettichord
Thanks for all the reports about unit test failures. The failures in the frames tests listed below are test bugs, and can be ignored. The indexing in show_frames had been incorrect. And the tests for them had the wrong expected results (so they were passing, incorrectly). Paul fixed the show_f

RE: [Wtr-general] Commenting out a whole block

2005-08-04 Thread Jonathan Kohl
=begin #your Ruby block is here =end I have had this not work sometimes though, so I comment out a block using RDT in Eclipse, or Ctrl+Q in SciTE. -Jonathan > -Original Message- > From: [EMAIL PROTECTED] [mailto:wtr-general- > [EMAIL PROTECTED] On Behalf Of Torres, Ben (HQP) > Sent:

[Wtr-general] Commenting out a whole block

2005-08-04 Thread Torres, Ben (HQP)
Is there any way to comment out a whole block of code? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir 1.4 is released

2005-08-04 Thread Warren Pollans
I'm not sure if this is the correct place to post - others have, so "me too" :-) C:\watir_bonus>ruby --version ruby 1.8.2 (2004-12-25) [i386-mswin32] I just installed 1.4 on a win2k box and got the following when running the unittests: Finished in 233.967 seconds. 1) Error: test_newWindows

[Wtr-general] RE: Checkboxes with Similar Names

2005-08-04 Thread Fred
Hi Paul, Thanks, that helps. Ie.checkbox(:beforeText, 'Name 1').flash Regards, Fred -- Date: Wed, 03 Aug 2005 21:13:03 -0600 From: Paul Rogers <[EMAIL PROTECTED]> Subject: RE: [Wtr-general] Checkboxes with Similar Names To: wtr-general@rubyforge.org Message-I

Re: [Wtr-general] Watir 1.4 is released

2005-08-04 Thread Thomas Øhrbom
Hi, I just installed v1.4 as well, and ran the same tests as you. Got the same results with the following exceptions: Zeljko Filipin on 04.08.2005 09:07 wrote: I have installed 1.4 and ran unit tests. After core_tests.rb i get 1) Failure: test_http_errors(TC_Navigate) [unittests/../unittes

[Wtr-general] Watir and browser session contamination problems

2005-08-04 Thread Jan.Montano
this is regarding watir and browser session contamination problems. please read. -> http://rubyforge.org/pipermail/wtr-general/2005-June/002240.html I used this code: this is to ensure it opens different html files w=WinClicker.new w.winsystem("start explorer #{thread_number}_#{i}.html ")

[Wtr-general] RE: Cannot Identify "Cancel"

2005-08-04 Thread Fred
Hi Paul, thanks for the response. I have tried as recommended and it prompts, reset name=reset id= value=Cancel alt=src= irb(main):012:0> ie.reset(:value , 'Cancel').flash Watir::Exception::UnknownObjectException: Unable to locate object, us

RE: [Wtr-general] Watir 1.4 is released

2005-08-04 Thread Zeljko Filipin
I have installed 1.4 and ran unit tests. After core_tests.rb i get 1) Failure: test_http_errors(TC_Navigate) [unittests/../unittests/../unittests/navigate_test.rb:51]: exception expected but none was thrown. 2) Failure: test_button_frames(TC_show_frames) [unittests/../unittests/../unitt