ifnot
Triggers a nested branch of work when a given condition is false
. This method does not wait for these items and is a point-in-time check. Use the wait method if you're wanting to await certain behaviors to be present
Example:
mutation IfNot {
goto(url: "https://example.com") {
status
}
# Will only trigger the screenshot if the h2 is not present
ifnot(selector: "h2") {
screenshot {
base64
}
}
}
ifnot(
request: RequestInput
response: ResponseInput
selector: String
): Mutation
Arguments
ifnot.request
● RequestInput
input
Triggers the nested conditions if a request has been made with the following conditions
ifnot.response
● ResponseInput
input
Triggers the nested conditions if a response has been received with the following conditions
ifnot.selector
● String
scalar
Triggers the subsequent conditions if the selector is immediately present
Type
Mutation
object
Below is a list of all available API options for the service. Click on an API for options, examples, and even argument details.
For more comprehensive examples and recipes, see our documentation site here.