fix(lint): property waitForResponse type (#4582)
This commit is contained in:
parent
bc701629db
commit
5a537413c9
|
|
@ -1861,7 +1861,7 @@ await page.waitForRequest(request => request.url().searchParams.get('foo') === '
|
||||||
```
|
```
|
||||||
|
|
||||||
#### page.waitForResponse(urlOrPredicate[, options])
|
#### page.waitForResponse(urlOrPredicate[, options])
|
||||||
- `urlOrPredicate` <[string]|[RegExp]|[Function]> Request URL string, regex or predicate receiving [Response] object.
|
- `urlOrPredicate` <[string]|[RegExp]|[function]\([Response]\):[boolean]> Request URL string, regex or predicate receiving [Response] object.
|
||||||
- `options` <[Object]> Optional waiting parameters
|
- `options` <[Object]> Optional waiting parameters
|
||||||
- `timeout` <[number]> Maximum wait time in milliseconds, defaults to 30 seconds, pass `0` to disable the timeout. The default value can be changed by using the [browserContext.setDefaultTimeout(timeout)](#browsercontextsetdefaulttimeouttimeout) or [page.setDefaultTimeout(timeout)](#pagesetdefaulttimeouttimeout) methods.
|
- `timeout` <[number]> Maximum wait time in milliseconds, defaults to 30 seconds, pass `0` to disable the timeout. The default value can be changed by using the [browserContext.setDefaultTimeout(timeout)](#browsercontextsetdefaulttimeouttimeout) or [page.setDefaultTimeout(timeout)](#pagesetdefaulttimeouttimeout) methods.
|
||||||
- returns: <[Promise]<[Response]>> Promise which resolves to the matched response.
|
- returns: <[Promise]<[Response]>> Promise which resolves to the matched response.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue