Hi,

I'm using watir-webdriver to automate our functional testing with an 
application. In the process we need to click on a drop down and select a 
value from the drop down. The problem i'm facing is that i'm able to click 
on the elements that are visible in the drop-down however, when i tried 
clicking on an item which is just below the visible item, its just passing 
the scenario without selecting the item.

HTML code:

<select class="exp_left_hand">
<option value="">Please select</option>
<optgroup label="Users">
<option data-s="false" value="countrycode">countrycode</option>
<option data-s="true" value="u.visitor">Visitor</option>
<option data-s="false" value="keyword">keyword</option>
</optgroup>
*<optgroup class="identifier" label="Keywords">*
<option data-s="false" value="smart">smart</option>
<option data-s="false" 
value="purchasehistorybyattributes">purchasehistorybyattributes</option>
<option data-s="false" 
value="purchasehistorybycategory">purchasehistorybycategory</option>
<option data-s="false" value="tags">tags</option>
</optgroup>
</select>

*The optgroup label as "Keywords" is invisible in the dropdown.*

*I've tried below ways but not luck :*

* @browser.select_list(:class => "exp_left_hand").optgroup(:class => 
"identifier").option(:value => "tags").fire_event 'onclick'*  # Without 
selecting the option its passing the scenario
*@browser.select_list(:class => "exp_left_hand").optgroup(:class => 
"identifier").option(:value => "tags").when_present.click* # is getting 
timedout

Thanks in advance



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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to