This will vary based on what is unique in your html, but some potential 
options, with many possible combinations:

browser.link(css: "a[ui-sref]").click
browser.link(css: "a[ui-sref='home']").click
browser.ul(class: "ng-scope").link.click
browser.li(data_ng_click: "selectedNode(module)").link.click 

Titus

On Friday, November 28, 2014 7:13:58 AM UTC-6, mc060200778 wrote:
>
> Hi,
>
> I am trying to perform click event on the following span element but 
> something not working for me.
>
> <ul class="ng-scope" data-ng-repeat="module in leftSideNavigation">
> <li data-ng-click="selectedNode(module)">
> <a href="/home" ui-sref="home">
> * <span class="ng-binding">*
> * Mobile &amp; Accessories*
> * </span>*
> </a>
> </li>
> </ul>
>
>
> I not sure how to access <li> in my code since it does not have rendered 
> attribute. Any help?
> Browser.ul().li().span().click ....
>
> thanks
>

-- 
-- 
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/d/optout.

Reply via email to