Skip to main content
Version: Next

Page.tabInfo() method

Returns information about the browser tab of this page. The result is a snapshot and is not updated when the tab changes.

Signature​

class Page {
abstract tabInfo(): Promise<TabInfo | null>;
}

Returns:

Promise<TabInfo | null>

null if the page is not in a tab strip, for example, in chrome-headless-shell. Chrome before M150 does not report tab information, so the method also returns null there.