Detectors
JS Assertion Detector¶
if: js_assertion
Use this to execute a JavaScript command and assert it returns true.
Example¶
Properties¶
command
: JavaScript command to execute
Page Selector Detector¶
if: page_selector
Use this to assert that a selector exists in the DOM.
Example¶
Properties¶
contains
: Contains this string
Page Text Detector¶
if: page_text
Use this to assert that a text is present in the page.
Example¶
Properties¶
contains
: Contains this string
Page Status Code Detector¶
if: page_status_code
Use this to assert that the page status code is a specific value.
Example¶
Properties¶
is
: Condition is this exact integeris_not
: Condition is not this exact integerin
: Condition is in this list of integers (exact match)gt
: Condition is greater than this integerlt
: Condition is less than this integer
Local Storage Detector¶
if: local_storage
Use this to assert that a key is present in the local storage.
Example¶
Properties¶
key
: Key to matchvalue
: Value to match
Session Storage Detector¶
if: session_storage
Use this to assert that a key is present in the session storage.
Example¶
Properties¶
key
: Key to matchvalue
: Value to match
Cookie Contains Detector¶
if: cookie
Use this to assert that a cookie is present in the browser.
Example¶
Properties¶
key
: Key to matchvalue
: Value to match
Header Contains Detector¶
if: header
Use this to assert that a header is present in the request.
Example¶
Properties¶
key
: Key to matchvalue
: Value to match