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.

Using regular expressions for identifying similar elements

hbabbarhbabbar Members
edited June 2013 in Sahi - Open Source
Hi

I've encountered a scenario where i need to identify between two similar looking tables with only different labels...somewhat like this:

Title 1
A B C
1 2 x

Title 2
A B C
1 2 y

I need to identify "x" and "y"
So, can i use a statement somewhat like this:
_under((_div(0,_near(_span("1")),_under(_span("C"))), _label("Title1"))

A whole other approach is appreciable.
Thanks
Sign In or Register to comment.