Hey  Željko,

I tried that way, but still got the object was disabled. Somehow it changes 
the value, postback to the site, and a new field shows up under it, then 
bombs on me. Is there anything else I can give you that might help?

On Tuesday, August 21, 2012 3:35:13 PM UTC-4, Željko Filipin wrote:
>
> On Tue, Aug 21, 2012 at 7:26 PM, enroxorz <[email protected]<javascript:>> 
> 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]

Reply via email to