For AI agents: a documentation index is available at /llms.txt
Skip to main content

querySelector

Passes through certain properties of the browsers' own document.querySelector API

**Usage Example:**

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

query: querySelector(selector: "h1") {
innerHTML
}
}

**Field Definition:**

querySelector(
selector: String!
timeout: Float
visible: Boolean = false
): QuerySelectorResponse

Arguments​

querySelector.selector ● String! non-null scalar​

querySelector.timeout ● Float scalar​

querySelector.visible ● Boolean scalar​

Type​

QuerySelectorResponse object​

The response returned after querying the page for a selector

Was this page helpful?