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.

Unable to click on the link as its name is keep on changing?

edited November -1 in Sahi - Open Source
I have one link which name is keep on changing

Ex:
browser.link("ProductSurvey").click();

or
browser.link("ProductSurvey[1]").click();

or
browser.link("ProductSurvey[2]").click();


so the after the ProductSurvey some test is coming cause of that script fails.
can you please let me know how can i resolve this issue?

Comments

  • Hi bhavesh,

    U could use regex, For eg: browser.link("/ProductSurvey.*/").click() , It will satisfy all the three options.

    Regards,
    Akshada
  • Hi Akshada,

    Thanks a Ton for your response....


    Its really helped me lot.

    Thanks again for quick response.
Sign In or Register to comment.