style="display:none;" on that select is your problem.  You need to trigger 
whatever event is going to make that visible.  Watir won't interact with an 
element that isn't visible to the user, because a real user wouldn't be 
able to do that either.

On Wednesday, October 3, 2012 1:49:52 AM UTC-4, Barry Horgan wrote:
>
>
> I notice that the source html that the select section is 'greyed out' for 
> all select tags on the page, I assume this is why I get the element not 
> visible error:-
>
> http://screencast.com/t/Njmjvyxon 
>
> I do not have this issue on the Watir-Webdriver Demo page, it's select 
> tags are not 'greyed out':-
>
>
> https://spreadsheets.google.com/spreadsheet/viewform?formkey=dGtlWGJjbWhuSlAyMHhLdXc2eE0wX2c6MQ
>
>
> Barry.
>
>
>
>
> On Monday, September 24, 2012 9:02:25 AM UTC+10, Barry Horgan wrote:
>>
>>
>> still no resolution! get the following error using this code:-
>>
>>   def select_redemption_option
>>     puts(self.redemptionList?)
>>     @browser.element(:css, "span.dropdown_btn").click
>>     redemptionList_element.when_present.select 'Single'
>>     puts(self.redemptionList)
>>   end
>>
>>
>> timed out after 5 seconds, waiting for {:tag_name=>"select", 
>> :id=>"redeumption"} to become present (Watir::Wait::TimeoutError)
>>
>>
>> I can see the test running, the drop down is clicked and the options 
>> display.
>>
>>
>>
>> On Friday, September 21, 2012 6:30:01 PM UTC+10, Željko Filipin wrote:
>>>
>>> On Fri, Sep 21, 2012 at 4:03 AM, Barry Horgan <[email protected]> 
>>> wrote:
>>> > redemptionList_element.select 'Single'
>>> > throws the following error:
>>> > 'Element is not currently visible and so may not be interacted with 
>>> (Selenium::WebDriver::Error::ElementNotVisibleError)'
>>>
>>> Looks like the element is not visible.
>>>
>>> Does this work?
>>>
>>> redemptionList_element.when_present.select 'Single'
>>>
>>> Željko
>>>
>>

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