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.
Case insensitive assertion in sahi
How can we achieve case insensitive assertion with sahi ?
for e.g: _assert(_isVisible(_cell("The user(s)")))
The above assert will return false when the text is "the User(s)". Is there a method which can ignore the case and return True for such cases?
for e.g: _assert(_isVisible(_cell("The user(s)")))
The above assert will return false when the text is "the User(s)". Is there a method which can ignore the case and return True for such cases?
Best Answer
-
Use a case insensitive regexp to access the cell.
_cell(/the users/i) or something like that

Answers