18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Can Sahi Driver support to locate an element via multiple attributes ?

ilovepumpkinilovepumpkin Members
edited July 2013 in Sahi - Open Source
Sahi script supports this way, for example, _link({className:"low",sahiText:"/Link.*/"}) . Can Sahi Java Driver do the same thing?

Best Answer

  • Hi,
    Please try the following method. I have illustrated how a click event can be executed on the given link.
    browser.execute("_sahi._click(_sahi._link({className:'low',sahiText:'/Link.*/'}))");

    Please let me know if it works for you.

    Regards.

Answers

This discussion has been closed.