Al,

The step "passes". No error is thrown. I then tried to remove the 
when_present(60) portion, but the same error occurred. I also re-arranged 
the other steps so that the one in question is set to last and the error 
still happens. The most peculiar thing is that the drop down is set but 
then fails right afterwards.

--Enrique

On Tuesday, August 21, 2012 11:26:57 AM UTC-4, Al Snow wrote:
>
>  Enrique,
>
>         If you do just the first two parts: @browser.select_list(:id => 
> "ctl00_cphWizard_Content_QuestionField0_QuestionDropDownList"), what happens?
>
> Al
>
> ------------------------------
> Date: Tue, 21 Aug 2012 07:40:48 -0700
> From: [email protected] <javascript:>
> To: [email protected] <javascript:>
> Subject: [wtr-general] Issue transitioning from 2.0.4 to 3.1.0
>
> 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] <javascript:>
> http://groups.google.com/group/watir-general
> [email protected] <javascript:>
>  

-- 
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