Hi
Thanks for all your help. I managed to solve this issue by accessing
the index of the list i.e.
$b.li(:index, value).fire_event(onmousedown/onmouseup)
I often find that when writing integration test using Watir it is
often the simple solutions that work and that you don't have to over
What you are dealing with here is a 'ehanced' selection list that is
implemented entirely with Javascript code. it's not a standard HTML
selection list, so none of the standard methods what would work with
such a list are going to work for you. (a standard selection list
would use a select tag,
I tried
$b.li(:class, Option 2).click
But I still got the same error.
On May 19, 9:27 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Wed, May 19, 2010 at 4:13 PM, tester86 sagar.am...@gmail.com wrote:
ul class=select_options
li class= selected highlighted data-value=Option
On Wed, May 19, 2010 at 8:00 PM, tester86 sagar.am...@gmail.com wrote:
I tried
$b.li(:class, Option 2).click
But I still got the same error.
I am not surprised, because class attribute does not have that value:
li class= data-value=Option 2
This could help you access the element: