mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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)<!-- -->>
|
||
|
|