Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
Use of Regular Expression with Relational API's in SahiPro
Siddhant510
Members
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