I downloaded the latest dev build (1.5.1.1037) and tried to run a test that was working before -- it's now failing to simply attach to a window by title.
I tried attach in irb with the same result.
ie=IE.attach(:title, /SMART/)
where the window title is SMART 2.4
irb(main):003:0> ie=IE.attach(:title, /SMART/)
Watir::Exception::NoMatchingWindowFoundException: Unable to locate a window with
title of (?-mix:SMART)
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/./watir.rb:1426:in
`attach_browser_window'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/./watir.rb:1301:in
`attach_init'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/./watir.rb:1294:in
`attach'
from (irb):3
I tried to run the unittests for attach and they also fail with the same type of errors (only a couple examples here):
1) Error:
test_simply_attach_to_new_window(TC_NewWindow):
Watir::Exception::NoMatchingWindowFoundException: Unable to locate a window with
title of Pass Page
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/unittests/../watir.rb:1426:i
n `attach_browser_window'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/unittests/../watir.rb:1301:i
n `attach_init'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/unittests/../watir.rb:1294:i
n `attach'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/unittests/attach_to_new_wind
ow_test.rb:21:in `test_simply_attach_to_new_window'
1) Error:
test_existing_window(TC_ExistingWindow):
Watir::Exception::NoMatchingWindowFoundException: Unable to locate a window with
title of (?i-mx:buttons)
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/unittests/../watir.rb:1426:i
n `attach_browser_window'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/unittests/../watir.rb:1301:i
n `attach_init'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/unittests/../watir.rb:1294:i
n `attach'
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1037/unittests/attach_to_existing
_window_test.rb:37:in `test_existing_window'
I reverted back to my previous watir version (1.4.1) and attach seems to work fine -- is this working for anyone else?
The content contained in this electronic message is not intended to constitute formation of a contract binding TWTC. TWTC will be contractually bound only upon execution, by an authorized officer, of a contract including agreed terms and conditions or by express application of its tariffs. This message is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender of this E-Mail or by telephone. |
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general