Get Window Info for Puppeteer Page
Get the window information for a Puppeteer Page instance.
Parameters
The session object containing connection information and session details.
+ Show 2 properties
The unique identifier of the session.
The URL of the chromedriver instance associated with this session.
The Puppeteer Page instance to get window information for.
Configuration options for the window info request.
+ Show 3 properties
Affects the live view configuration. A navigation bar is not shown in the live view of a browser by default. Set this to true to configure the returned liveViewUrl so that a navigation bar is rendered, allowing users to easily navigate the browser to other pages from the live view.
Affects the live view configuration. Set to true to configure the returned liveViewUrl so that the ability to resize the browser window from the live view is disabled (resizing is allowed by default). Note that, at initial load, the live view will automatically fill the parent frame (or local window if loaded directly) and cause the browser window to be resized to match. This parameter does not affect that initial load behavior.
Affects the live view configuration. By default, a live view will fill the parent frame (or local window if loaded directly) when initially loaded, causing the browser window to be resized to match. This parameter can be used to instead configure the returned liveViewUrl so that the live view is loaded with fixed dimensions (e.g. 1280x720), resizing the browser window to match, and then disallows any further resizing from the live view.
Additional options to customize the request behavior.
+ Show 3 properties
The maximum time to wait for a response in seconds.
The number of times to retry the request. Defaults to 2.
A hook to abort the request.
Returns
Returns a Promise that resolves with the window information for the specified Puppeteer page.
The main response data object containing window information.
+ Show 2 properties
The URL that can be used to view the browser window in real-time.
The unique identifier for the browser window.
Metadata about the request.
+ Show 1 property
A unique identifier for this request.
An array of error objects if any errors occurred during the request.
+ Show 4 properties
A human-readable error message describing what went wrong.
A machine-readable error code identifying the type of error.
Additional details about the error in key-value format.
Additional context about why the error occurred.
An array of warning objects for non-critical issues.
+ Show 4 properties
A human-readable warning message.
A machine-readable warning code.
Additional details about the warning in key-value format.
Additional context about why the warning was generated.