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.
Use of Regular Expression with Relational API's in SahiPro
Hello,
Please let me know, is it possible to use RE for passing CellName (identifier)?
If yes, then how to use regular expression for following:
_click(_label(0,_leftOf(_cell("CellName[2]"))));
The number in the square braces is changing dynamically after refreshing page.
*So, how should I concatenate the index number with "Cellname" using Regular Expression or any other method if possible.*
Please let me know if you have any doubts regarding my question.
Please let me know, is it possible to use RE for passing CellName (identifier)?
If yes, then how to use regular expression for following:
_click(_label(0,_leftOf(_cell("CellName[2]"))));
The number in the square braces is changing dynamically after refreshing page.
*So, how should I concatenate the index number with "Cellname" using Regular Expression or any other method if possible.*
Please let me know if you have any doubts regarding my question.
Comments
Relational APIs are used to find an element in relation to another.
In your case, you should first check if you can uniquely identify the label element.
If not, you must check for another element which can be uniquely identified as well as has a relation with the label element.
Refer: https://sahipro.com/docs/sahi-apis/accessor-api-basics.html#Overview