18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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 element (using regex)
Hi All,
For the span("196649|196649:xOhMg_Airtel!qPcGu_Root-Positive"), I am creating regex pattern as, /.*|.*_Airtel.*_Root-Positive/ (The number part changes, also the alphabet pattern xOhMg, qPcGu changes)
But my pattern does not match (Sahi doesnot recognize the element).
What is the expected pattern?
Thanking in advance
Regards,
Akshada
For the span("196649|196649:xOhMg_Airtel!qPcGu_Root-Positive"), I am creating regex pattern as, /.*|.*_Airtel.*_Root-Positive/ (The number part changes, also the alphabet pattern xOhMg, qPcGu changes)
But my pattern does not match (Sahi doesnot recognize the element).
What is the expected pattern?
Thanking in advance
Regards,
Akshada
Comments
Regex = "\\/[0-9]+\\|[0-9]+:[a-zA-Z_]+Airtel\\![a-zA-Z_]+Root-Positive\\/";
To match = "196649|196649:xOhMg_Airtel!qPcGu_Root-Positive";
I am still facing this issue. Is there any solution to this?
Regards,
Akshada