mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
22 lines
391 B
Markdown
22 lines
391 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 {
|
|
abstract userAgent(): Promise<string>;
|
|
}
|
|
```
|
|
|
|
**Returns:**
|
|
|
|
Promise<string>
|