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.

Issue in Regular Expression

ravillaravilla Members
edited November -1 in Sahi - Open Source
Hello Narayan,

I am facing some problem when I am trying to use the Regular Expression in below script.



My original script comes when Recorded is

_click(_span("Apply/ unapply entries ODL00005737"));


But my problem is ODL00005737 this number is not constant and every time it changes when I create a new entry,

As per my requirement I need to click on the span and I tried as below but it is not working.

_click(_span(Apply/ unapply entries/.*));


Please help and provide your valuable suggestion.

Comments

  • narayannarayan Administrators
    Use

    _click(_span(/Apply\/ unapply entries/));
  • Hello Narayan,

    Thanks for your response but unfortunately it is not working and I am getting the Below error.

    TypeError: Object doesn't support this property or method


    I am sending the Screenshot of that Page also to support@sahi.co.in for more clarification.
Sign In or Register to comment.