Skip to main content

checkbox

Sets or un-sets the value of a checkbox on the page

Example:

mutation ClickCheckbox {
goto(url: "https://example.com") {
status
}

checkbox(
checked: true
selector: "input[type='checkbox']"
) {
time
}
}
checkbox(
checked: Boolean!
selector: String!
scroll: Boolean = true
timeout: Float
visible: Boolean = false
wait: Boolean = true
): ClickResponse

Arguments

checkbox.checked ● Boolean! non-null scalar

Whether or not the input should be checked

checkbox.selector ● String! non-null scalar

The CSS selector of the element on the page you want to check/uncheck

checkbox.scroll ● Boolean scalar

Whether or not to scroll to the element prior to clicking, defaults to true

checkbox.timeout ● Float scalar

How long to wait for the element to appear before timing out on the handler, overriding any defaults. Default timeout is 30 seconds, or 30000.

checkbox.visible ● Boolean scalar

Whether or not to check/uncheck the element only if it's visible

checkbox.wait ● Boolean scalar

Whether or not to wait for the element to present in the DOM

Type

ClickResponse object

Response returned after having clicked on an element