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.

How do we search for the Element using multiple criteria.

edited November -1 in Sahi - Open Source
Hello All,

We are evaluation Sahi on our application. I wanted to know if we can search for the element using multiple criterias, example - if I were to search for an Image using Class property and Title, how do I do it?

Could anyone please help me with this. And by the way, we are evaluating this with Twist, so we we need solution in Java.

Thanks in advance.

Comments

  • try using this like this:

    browser.byClassName("newheight","td");

    newheight = calass
    td = an other element to find an element

    Please let me know if this doesn't work
  • narayannarayan Administrators
    Hi Rohith and Shabbir

    You can just use

    browser.image("className")

    or

    browser.image("title")

    Look under the alternatives when you identify the element. You will already see it identified by these properties. You can read more about identification here: http://sahi.co.in/w/browser-accessor-apis . They work for all languages.

    Regards,
    Narayan
Sign In or Register to comment.