On Tue, Aug 21, 2012 at 7:26 PM, enroxorz <[email protected]> wrote:
>
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.1.0/lib/watir-classic/elemen
> t.rb:71:in `assert_enabled': object {:index=>0,
:ole_object=>#<WIN32OLE:0x1a19c4
> 8>} is disabled (Watir::Exception::ObjectDisabledException)
The error message says the object is disabled.
Try something like this:
Watir::Wait.until { @browser.select_list(:id =>
"ctl00_cphWizard_Content_QuestionField0_QuestionDropDownList").enabled? }
@browser.select_list(:id =>
"ctl00_cphWizard_Content_QuestionField0_QuestionDropDownList").when_present(60).select(/#{value}/)
More info: http://watirwebdriver.com/waiting/
Željko
--
filipin.eu
--
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]