In my application,if I click on a text field it gives me a list of items 
among which I've to select one.Can anyone help me in sorting out the issue ?

HTML:
<input class="visual-input" placeholder="Please click here to select">
<ul class="visual-list context-menu hide" style="display: none;">
<li class="visual-item BASKET1" style="display: none;">Basket1</li>
<li class="visual-item BASKET2" style="display: none;">BASKET2</li>
<li class="visual-item BASKET3" style="display: none;">BASKET3</li>
<li class="visual-item BASKET4" style="display: list-item;">BASKET4</li>
<li class="visual-item BASKET5" style="display: list-item;">BASKET5</li>
<li class="visual-item BASKET6" style="display: list-item;">BASKET6</li>
<li class="visual-item BASKET7" style="display: list-item;">BASKET7</li>
</ul>

*Step definition: *This clicks on the text_field 
 Then(/^I click on the "(.*?)" class on the page$/) do |strgselect|
@current_page.strg_select_element.click
end

Then(/^I select strgy as Basket4$/) do
  @current_page.list_elements(:class => visual-item BASKET4", :index => 
3).click
 end

 I've managed to click on the text field which shows a list of items but 
couldn't able to select one.I've tried many ways but no luck!

Any help is much more appreciated..

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