puppeteer/website/versioned_docs/version-21.3.1/api/puppeteer.browser.useragent.md
release-please[bot] d98f488a51
chore: release main (#10942)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2023-09-19 20:20:53 +02:00

22 lines
382 B
Markdown

---
sidebar_label: Browser.userAgent
---
# Browser.userAgent() method
Gets this [browser's](./puppeteer.browser.md) original user agent.
[Pages](./puppeteer.page.md) can override the user agent with [Page.setUserAgent()](./puppeteer.page.setuseragent.md).
#### Signature:
```typescript
class Browser {
userAgent(): Promise<string>;
}
```
**Returns:**
Promise&lt;string&gt;