function: assertNotVisible - egroise/uxtest GitHub Wiki

###Usage

assertNotVisible(pattern, [message])
-or-
notVisible(pattern, [message])

This assertion is successful if given pattern is not visible in the screen.

Both success and failure are reported in the report files.

###Parameters

  • pattern: image pattern or text to search.
  • message (optional): message to be displayed in the report.

###Return

Returns True if assertion is successful, False other-else.

###Examples

assertNotVisible("caps lock indicator.png",15,"Caps lock is down")

...will check if the image pattern is not present and will display "Caps lock is down" in the report.