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.
Search for text ANYWHERE on webpage
Is there a way to verify the existence, or non-existence of a string ANYWHERE on a page?? We sometime get PHP errors and they can appear quite literally anywhere on the page. I would like to check for there existence and do some error trapping - even though I can't get the try/catch method to work for _assert. Can anyone help???
This discussion has been closed.
Comments
Regards
Wormi
TypeError: orig is undefined
well _assertContainsText("A PHP Error was encountered Severity: Notice Message:", document.body);
will work as you have to give an element as argument..