puppeteer/new-docs/puppeteer.page.waitforrequest.md

26 lines
680 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Page](./puppeteer.page.md) &gt; [waitForRequest](./puppeteer.page.waitforrequest.md)
## Page.waitForRequest() method
<b>Signature:</b>
```typescript
waitForRequest(urlOrPredicate: string | Function, options?: {
timeout?: number;
}): Promise<HTTPRequest>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| urlOrPredicate | string \| Function | |
| options | { timeout?: number; } | |
<b>Returns:</b>
Promise&lt;[HTTPRequest](./puppeteer.httprequest.md)<!-- -->&gt;