AI agent instructions
AI agent instructions
fetch(), so it carries the
page’s cookies, the session’s proxy and the browser’s own network
fingerprint. A relative url resolves against the current page, which
also makes it same-origin; a cross-origin URL is subject to CORS exactly
as in a browser tab, so goto the target origin first. Redirects are
followed and the final URL is on response.url. A non-2xx status is
returned, not thrown; response.raiseForStatus() throws PageFetchHTTPError.
json is serialised as the body with an application/json content type,
data as a form body when it is an object or verbatim when it is a string.
Parameters
string
required
Absolute URL or a path relative to the current page.
PageFetchOptions
HTTP method, headers, and request body settings.Default:
Returns
Raises
- ActionExecutionError if browser-side execution fails.