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.

Sahi Recorder not picking up link that has a dynamic Value.

vedavyasa86vedavyasa86 Members
edited December 2011 in Sahi - Open Source
Hi

I am trying to record simple app which consists of a link that needs to be clicked and verified.

However, I have noticed that my recorder is failing when i reach that link. somehow sahi recorder is not picking up the link there fore my playback is failing.

Name of the link consists of a number that changes during runtime because of which sahi recorder may be not recognising the link

I have tried to put a regex match in place of the number. no luck!!

I am not sure how to use regex implementation with sahi

Can some one help me with this issue.

the snippet of my script is here:

_click(_link("Verify circuit design#465"));
_click(_span("Order Details"));
_click(_span("Process Details"));
_click(_span("Exception"));
_click(_submit("Complete"));
_click(_submit(" OK "));


Please help i am new to sahi

Thanks!!

Comments

  • Hi vedavyasa86,

    Try using:

    _click(_link("/Verify circuit design#/"));

    OR

    _click(_link("/Verify circuit design/"));

    Regards
    Sumitra
  • Sumitra wrote:
    Hi vedavyasa86,

    Try using:

    _click(_link("/Verify circuit design#/"));

    OR

    _click(_link("/Verify circuit design/"));

    Regards
    Sumitra


    Thanks it Worked!
This discussion has been closed.