18 January 2026:


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.

Assertions not throwing Exceptions

kevinkolekevinkole Members
edited November -1 in Sahi - Open Source
I'd like to use try/catch blocks, but it doesn't look like assertions are throwing any exceptions.

Also, assertions are not causing the script to abort (it should..).

This is on the rhino-based version.
_navigateTo("localhost/something");
testabc();

function testabc() {
   try {
      _assertTrue("abc" == "123");
  } catch(err) {
     _debug("not equal!");
     return;
  }
  _click(_spandiv("Something"));
}
Sign In or Register to comment.