Re: [Wtr-general] Exists? Supported for frames?
exists? does not work for frames. In this case, you can just do: assert(ie.frame(main)) At 06:45 PM 7/11/2005, Tuyet Cong-Ton-Nu wrote: in irb mode as well as within the script, I got this error when trying to test for exists? for a frame: error result from irb mode: irb(main):009:0 assert(ie.frame(main).exists?) NoMethodError: undefined method `exists?' for #Watir::Frame:0x150458 from (irb):9 from C:/ruby/lib/ruby/1.8/test/unit/assertions.rb:95 error result from running a script: C:\watir\watiranalysis.rb Loaded suite C:/watir/watir/Analysis Started Started thread for win helper E Finished in 14.516 seconds. 1) Error: test_Login1(TC_Login): NoMethodError: undefined method `exists?' for #Watir::Frame:0x2e62810 C:/watir/watir/Analysis.rb:53:in `test_Login1' 1 tests, 0 assertions, 0 failures, 1 errors Does exists? work for a frame? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _ Bret Pettichord www.pettichord.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] helper.logon hangs
Armin, Your approch is correct for this issue. However u have to just modify few stuffs right here. Watir is creating a new thread for the modular window, but the old thread is not getting terminated. Thats the reason why ur finding these problems. Now the work around is that create a new thread in the beginning of the process with a large timeout of say 15 to 20 seconds and then click on the object to get the modular window. So that by that time it would have created a new thread which is already running in the beginning and then as soon as it gets that modular window the new thread performs the operation which is required. If in case if you find any difficulties in doing that i think i'll write one script which does that and send u. Bye Sathya Shankar --- Armin Roehrl [EMAIL PROTECTED] wrote: Dear all, I have to automatically monitor a buggy webapplication, which requires an initial pop-up window authorisation to be filled out. My problem is that it works fine for a test application, but for my buggy application the script passes the authorisation, but the WindowHelper-Thread (a) never finishes. I tried to add a timeout to the logon method, but it did not work. Similar to the WindowLogonExample.rb in the unittestdir I use two threads. .. a = Thread.new { system('ruby LogonExtra.rb') } b = Thread.new { goto_login_page() } .. LogonExtra.rb looks like: -- helper = WindowHelper.new helper.logon('Cognos', 'xxx', 'xx') -- Thank you for your help, -A ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Still having a problem with the capture events
This only works with XP SP2. At 02:31 PM 7/7/2005, Daniel Shchyokin wrote: In my script I am calling the IE.captureEvents followed by clicking a link that opens a new window. I then set another variable to IE.newWindow... x=IE.newWindow(). but when I try to call a method for x, say x.close(). I get an error stating method could not be found in Nil:nil. I ran the newWindow_test unit test and have the same problem. Any idea of how I can get this to work? email: [EMAIL PROTECTED] ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _ Bret Pettichord www.pettichord.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Select using Value using regular expression
At 08:51 PM 7/12/2005, Tuyet Cong-Ton-Nu wrote: I think \A should match the beginning of a string but this doesn't seem to work. Any ideas? irb(main):009:0 ie.frame(customizeRemoteContent).select_list(:id, availableColumnsSelectBox).select(/\ASector/) /^Sector/ _ Bret Pettichord www.pettichord.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general