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.
assert Contains Text Not Working
Hi,
Below assert getting failed.
_assertContainsText("Jbtu Jduh TEST", "Jbtu Jduh TEST");
Any suggestions would be greatly appreciated.
Below assert getting failed.
_assertContainsText("Jbtu Jduh TEST", "Jbtu Jduh TEST");
Any suggestions would be greatly appreciated.
Comments
_assertContainsText($expected, $element[, $message])
from here it seems you are missing something....which element are you checking with?
_assertContaincText("message",__getValue(_label("message")))
Please refer to the link below for more information.
https://sahipro.com/docs/sahi-apis/assertions.html#_assertContainsText