Top Rounds
| We are Hiring! |

_assertNotTrue ·

This is a Browser Action API.

_assertNotTrue will do nothing if the condition passed to it is not true
_assertNotTrue will log failures to the playback logs if the condition evaluates to true.
DO NOT USE THIS IN AN IF CONDITION as it does not return any value, and throws an exception if the condition is true

Syntax:

_assertNotTrue(condition, message)
The parameters are:

  • condition: boolean expression
  • message: Message to be written to logs if condition was true

Example:

_assertNotTrue(1==2); // does nothing
_assertNotTrue(1==1, “Some Log Message”); // throws exception // and writes “Some Log Message” to logs.




---


Top Rounds