Re: [wtr-general] Problems selecting an item in a list

2013-05-03 Thread Marc Westwood
Yep tried that, it is now finding the item in the list. I can see the item in the list change to yellow when it clicks but nothing is happening after that, it is almost like the click is not actually selecting the item. I've tried .click and .fire_event(onclick) and .fire_event(onmousedown)

Re: [wtr-general] Problems selecting an item in a list

2013-05-03 Thread Željko Filipin
On Fri, May 3, 2013 at 10:07 AM, Marc Westwood marcawestw...@gmail.comwrote: I've tried .click and .fire_event(onclick) and .fire_event(onmousedown) none of these are working. This could help: http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired Željko

[wtr-general] Problems selecting an item in a list

2013-05-02 Thread Marc Westwood
I am very new to ruby/water so please excuse my lack of knowledge. I am having problems selecting items from a drop down list, I can get the drop down list to open but am unable to select an item within the list. The HTML looks something like this div class= selectable_list id= . ul

Re: [wtr-general] Problems selecting an item in a list

2013-05-02 Thread Željko Filipin
On Wed, May 1, 2013 at 3:52 PM, Marc Westwood marcawestw...@gmail.comwrote: I am having problems selecting items from a drop down list, I can get the drop down list to open but am unable to select an item within the list. You are not dealing with select list (select tag), but with unordered

Re: [wtr-general] Problems selecting an item in a list

2013-05-02 Thread Marc Westwood
I have tried. .div(:class, selectable_list).li(:id, _item_2).click .div(:class, selectable_list).select 'DEF - 100 DEF' .select_list(:id, selectable_list).select 'DEF - 100 DEF' I would like to click on using the text. On Thursday, May 2, 2013 7:57:55 AM UTC+1, Željko Filipin wrote: On

Re: [wtr-general] Problems selecting an item in a list

2013-05-02 Thread Željko Filipin
On Wed, May 1, 2013 at 3:52 PM, Marc Westwood marcawestw...@gmail.comwrote: a id=_item_1 window=[object] . Text = DEF - 100 DEF Try this: browser.a(:text = DEF - 100 DEF).click Željko -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be