Top Rounds
| We are Hiring! |

_assertFalse ·

This is a Browser Action API.

_assertFalse will do nothing if the condition passed to it is false
_assertFalse will log failures to the playback logs if the condition evaluated 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:

_assertFalse(condition, message)
The parameters are:

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

Example:

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




---


Top Rounds