26 lines
687 B
Markdown
26 lines
687 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [waitForResponse](./puppeteer.page.waitforresponse.md)
|
||
|
|
||
|
## Page.waitForResponse() method
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
waitForResponse(urlOrPredicate: string | Function, options?: {
|
||
|
timeout?: number;
|
||
|
}): Promise<HTTPResponse>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| urlOrPredicate | string \| Function | |
|
||
|
| options | { timeout?: number; } | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
Promise<[HTTPResponse](./puppeteer.httpresponse.md)<!-- -->>
|
||
|
|