[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

[wtr-general] Clicking on link on list

2013-05-02 Thread ikeonoh
I am trying to click on the link Pricing, which apears on the top of the page aong with others. The link populates as a container on the same page. Having serious problems doing this. Any help will be appreciated This is the source code: /script div ng-app=_54_313 ng-controller=_54_313Ctrl

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] Clicking on link on list

2013-05-02 Thread Željko Filipin
On Wed, May 1, 2013 at 9:12 PM, ikeonoh ikeo...@gmail.com wrote: I am trying to click on the link Pricing What have you tried so far? Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

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

Re: [wtr-general] Clicking on link on list

2013-05-02 Thread ikeonoh
Just realized that the links open up in a container on the same page. I pretty much have problems accesing anything in any containers from the links. I have tried: =page = browser.ul(:class, navigation).li(:index = 5) =page.click =page = browser.ul(:class, navigation).lis[5] =page.click On

Re: [wtr-general] Clicking on link on list

2013-05-02 Thread Oscar Rieken
li ui-if= pricing a href ng-click=selectPage(3)Pricing/a/li if there is only one why not link with text of Pricing? On Thu, May 2, 2013 at 10:18 AM, ikeonoh ikeo...@gmail.com wrote: Just realized that the links open up in a container on the same page. I pretty much have problems accesing

Re: [wtr-general] Clicking on link on list

2013-05-02 Thread ikeonoh
I don't think i understand what you mean. please explain. Thanks! On Thursday, May 2, 2013 10:20:44 AM UTC-4, Oscar.Rieken wrote: li ui-if= pricing a href ng-click=selectPage(3)Pricing/a/li if there is only one why not link with text of Pricing? On Thu, May 2, 2013 at 10:18 AM, ikeonoh

Re: [wtr-general] Clicking on link on list

2013-05-02 Thread Oscar Rieken
you want to click on the link that has text of Pricing Why not just use that information to locate the link On Thu, May 2, 2013 at 10:35 AM, ikeonoh ikeo...@gmail.com wrote: I don't think i understand what you mean. please explain. Thanks! On Thursday, May 2, 2013 10:20:44 AM UTC-4,

Re: [wtr-general] Clicking on link on list

2013-05-02 Thread ikeonoh
It appears as a link, but for some reason, i can't directly click on the link. The link is with other links as a ullist , which opens the associated page on the same page as a container. I am assuming i cant see the source code for the link itself because im accessing the source code via