Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.

Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com

link element with empty href is not clicking correctly with SAHI

I have a link element with href="" (empty href), how do I click this element?
_click(_link("Client Table")); // this step is clicking the link correctly and then taking the navigation to homepage

I need to click on the link n stay as it is. (Not navigating to home page)

i tried with _link, _listItem, _list, _span,_div etc. but none of them helped.

my outer html is like,

<a class="cUser" href="" ng-click="searchParam.value=x;searchParamValueChanged(searchParam);">
Client Table</a>


Is it possible to click this element just by text contained?
Sign In or Register to comment.