Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(lint): property waitForResponse type (#4582)
Joel Einbinder5a537413c903
diff --git a/docs-src/api-body.md b/docs-src/api-body.mdindex e3c4e09528..b7ef5b55ae 100644--- a/docs-src/api-body.md+++ b/docs-src/api-body.md@@ -1861,7 +1861,7 @@ await page.waitForRequest(request => request.url().searchParams.get('foo') === '```#### 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- `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.