puppeteer/docs/api/puppeteer.browser.useragent.md
2023-09-18 11:05:23 +02:00

382 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 {
  userAgent(): Promise<string>;
}

Returns:

Promise<string>