I am currently transitioning our test servers from Watir 2.0.4 (Ruby 1.8.7)
to Watir 3.1.0 and I have run into a curious issue.
We are using cucumber to run our scripts, and at one point I get an error:
object {:index=>0, :ole_object=>#<WIN32OLE:0x196d4c0>} is disabled
(Watir::Exception::ObjectDisabledException)
In Watir 2.0.4 I do not receive this error at all, but in 3.1.0 I run the same
script and the error comes up no matter what (I have put sleeps before it and
after it).
@browser.select_list(:id =>
"ctl00_cphWizard_Content_QuestionField0_QuestionDropDownList").when_present(60).select(/#{value}/)
When I visibly inspect the browser, the select list changes to the value passed
in, but right after it fails. The element is not disabled at any point of the
page (even before and after a postback) so I am very confused when that same
piece of code runs fine in 2.0.4 but not 3.1.0.
Any help would be greatly appreciated
--Enrique
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]