puppeteer/docs/api/puppeteer.browser.useragent.md
2023-11-09 13:57:33 +01:00

391 B

sidebar_label
Browser.userAgent

Browser.userAgent() method

Gets this browser's original user agent.

Pages can override the user agent with Page.setUserAgent().

Signature:

class Browser {
  abstract userAgent(): Promise<string>;
}

Returns:

Promise<string>