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 element (using regex)

AkshadaAkshada Members
edited October 2012 in Sahi - Open Source
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

Comments

  • I still have an issue with pattern matching

    Regex = "\\/[0-9]+\\|[0-9]+:[a-zA-Z_]+Airtel\\![a-zA-Z_]+Root-Positive\\/";
    To match = "196649|196649:xOhMg_Airtel!qPcGu_Root-Positive";
  • Is it that i could only use ".*" for pattern matching?
  • Hi All,

    I am still facing this issue. Is there any solution to this?

    Regards,
    Akshada
Sign In or Register to comment.