puppeteer/docs/api/puppeteer.httprequest.frame.md

20 lines
293 B
Markdown
Raw Permalink Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: HTTPRequest.frame
---
# HTTPRequest.frame() method
The frame that initiated the request, or null if navigating to error pages.
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
class HTTPRequest {
abstract frame(): Frame | null;
2022-07-05 13:41:43 +00:00
}
```
**Returns:**
[Frame](./puppeteer.frame.md) \| null