Skip to main content
Version: v2

Responses

This page presents reference for all mutations responses.

CaptchaResponse

Represents the response structure for solving a captcha.

FieldTypeDescription
timeFloatThe total time it took to find and solve the captcha.
foundBooleanIndicates if a captcha was found.
solvedBooleanIndicates if a captcha was found and solved.
tokenStringThe solved token of the captcha response, if any is provided.

ClickResponse

Represents the response structure for clicking on an element.

FieldTypeDescription
selectorStringThe selector text of the clicked element, if specified.
xFloatThe x-coordinate of the click, in pixels, on the page.
yFloatThe y-coordinate of the click, in pixels, on the page.
timeFloatThe amount of time, in milliseconds, elapsed since the start of clicking to completion.

CookieResponse

Represents the response structure for setting and retrieving cookies.

FieldTypeDescription
cookies[StandardCookie]A standard cookie object with the values of the set cookies.
timeFloatThe time it took to set the cookies.

DefaultResponse

Represents the default response structure for methods.

FieldTypeDescription
timeoutFloatThe default timeout for all methods.

EvaluateResponse

Represents the response structure for evaluating a script in the browser.

FieldTypeDescription
valueStringThe returned value of the script, if any.
timeFloatThe time it took for the evaluate call to complete.

HTMLResponse

Represents the response structure for retrieving a page's HTML content.

FieldTypeDescription
htmlStringThe content of the page's HTML.
timeFloatThe amount of time, in milliseconds, elapsed since the start of content retrieval to completion.

HTTPResponse

Represents the HTTP response structure for a page load.

FieldTypeDescription
statusIntThe status code of the response from the initial page load.
textStringThe status text of the response from the initial page load, generally "ok".
urlStringThe final URL of the page after any potential redirects or URL rewrites.
timeFloatThe amount of time, in milliseconds, elapsed since the start of navigation to completion.

HoverResponse

Represents the response structure for hovering over an element.

FieldTypeDescription
selectorStringThe selector text of the hovered element.
xFloatThe x-coordinate in pixels, on the page.
yFloatThe y-coordinate in pixels, on the page.
timeFloatThe amount of time, in milliseconds, elapsed since the start to completion.

JavaScriptResponse

Represents the response structure for enabling or disabling JavaScript on a page.

FieldTypeDescription
enabledBooleanWhether JavaScript is enabled on the page.
timeFloatThe time it took to perform this action.

PDFResponse

Represents the response structure for generating a PDF.

FieldTypeDescription
base64StringBase64 encoded PDF content.
sizeFloatThe size of the resulting PDF in bytes.
timeFloatThe time it took to generate the PDF.

QuerySelectorResponse

Represents the response structure for querying an element using querySelector.

FieldTypeDescription
idStringThe element's identifier, reflecting the id global attribute.
childElementCountFloatThe number of child elements of this element.
classNameStringThe value of the class attribute of the specified element.
innerHTMLStringThe HTML or XML markup contained within the element.
innerTextStringThe text contained within the element.
localNameStringThe local part of the qualified name of the element.
outerHTMLStringThe serialized HTML fragment describing the element and its descendants.

ReconnectionResponse

Represents the response structure for reconnecting to a browser session.

FieldTypeDescription
browserQLEndpointStringThe fully-qualified URL to reconnect future BrowserQL sessions. Token information might be required.
browserWSEndpointStringThe fully-qualified URL of the browserWSEndpoint for use with libraries like Playwright or Puppeteer. Token information might be required.
devtoolsFrontendUrlStringThe fully-qualified URL of the devtools resources for remotely loading Chrome's developer tools.
webSocketDebuggerUrlStringThe underlying page's WebSocketDebuggerUrl for libraries that operate on a page rather than a browser object.

ScrollResponse

Represents the response structure for scrolling to an element or coordinate.

FieldTypeDescription
selectorStringThe CSS selector of the element on the page scrolled to.
xFloatThe x-coordinate, in pixels, to scroll to.
yFloatThe y-coordinate, in pixels, to scroll to.
timeFloatThe amount of time, in milliseconds, elapsed since the start of scrolling to completion.

ScreenshotResponse

Represents the response structure for taking a screenshot.

FieldTypeDescription
base64StringThe base64 encoded image of the screenshot.
formatStringThe format of the screenshot.
timeFloatThe time it took to take the screenshot.

SelectResponse

Represents the response structure for selecting a value from a dropdown or multiple select element.

FieldTypeDescription
selectorStringThe selector of the element you selected from.
valueStringOrArrayThe value or values you selected from the select element.
timeFloatThe amount of time, in milliseconds, elapsed since the start of selecting to completion.

TextResponse

Represents the response structure for retrieving the textual content of a page.

FieldTypeDescription
textStringThe textual content of the page.
timeFloatThe amount of time, in milliseconds, elapsed since the start of text retrieval to completion.

TitleResponse

Represents the response structure for retrieving the title of the current page.

FieldTypeDescription
titleStringThe title of the current page.

TypeResponse

Represents the response structure for typing text into an element.

FieldTypeDescription
selectorStringThe selector of the element you typed into.
textStringThe textual content that was typed.
xFloatThe x-coordinate of the element, in pixels, on the page.
yFloatThe y-coordinate of the element, in pixels, on the page.
timeFloatThe amount of time, in milliseconds, elapsed since the start of typing to completion.

URLResponse

Represents the response structure for retrieving the URL of the current page.

FieldTypeDescription
urlStringThe URL of the current page.

VerifyResponse

Represents the response structure for a verification action.

FieldTypeDescription
timeFloatThe total time it took to find and click the verification.
foundBooleanIndicates if a verification was found.
solvedBooleanIndicates if a verification was found and clicked.

WaitForRequest

Represents the response structure for waiting for a specific request.

FieldTypeDescription
timeFloatThe period of time elapsed, in milliseconds, waited for.
urlStringThe URL parameter used to match the response with.

WaitForResponse

Represents the response structure for waiting for a specific response.

FieldTypeDescription
timeFloatThe period of time elapsed, in milliseconds, waited for.
statusIntThe status code of the response.
urlStringThe URL parameter used to match the response with.

WaitForSelector

Represents the response structure for waiting for a selector.

FieldTypeDescription
timeFloatThe period of time elapsed, in milliseconds, waited for.
selectorStringThe selector waited for.
xFloatThe x-coordinate position, in pixels, left of the viewport.
yFloatThe y-coordinate position, in pixels, top of the viewport.
widthFloatThe width, in pixels, of the element.
heightFloatThe height, in pixels, of the element.

WaitForTimeout

Represents the response structure for waiting a specified period.

FieldTypeDescription
timeFloatThe period of time elapsed, in milliseconds, waited for.