From 1a7fb912e425c30bc142c9228af304c4879e3072 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 9 Nov 2021 14:04:34 +0100 Subject: [PATCH] docs(python): enable request API (#10179) --- docs/src/api/class-apirequest.md | 4 ++-- docs/src/api/class-apirequestcontext.md | 2 +- docs/src/api/class-apiresponse.md | 2 +- docs/src/api/class-browsercontext.md | 2 +- docs/src/api/class-playwright.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/src/api/class-apirequest.md b/docs/src/api/class-apirequest.md index 708e34a212..d71c2826ad 100644 --- a/docs/src/api/class-apirequest.md +++ b/docs/src/api/class-apirequest.md @@ -1,10 +1,10 @@ # class: APIRequest -* langs: js +* langs: js, python Exposes API that can be used for the Web API testing. ## async method: APIRequest.newContext -* langs: js +* langs: js, python - returns: <[APIRequestContext]> Creates new instances of [APIRequestContext]. diff --git a/docs/src/api/class-apirequestcontext.md b/docs/src/api/class-apirequestcontext.md index 35f7c136d7..23a4b87504 100644 --- a/docs/src/api/class-apirequestcontext.md +++ b/docs/src/api/class-apirequestcontext.md @@ -1,5 +1,5 @@ # class: APIRequestContext -* langs: js +* langs: js, python This API is used for the Web API testing. You can use it to trigger API endpoints, configure micro-services, prepare environment or the service to your e2e test. When used on [Page] or a [BrowserContext], this API will automatically use diff --git a/docs/src/api/class-apiresponse.md b/docs/src/api/class-apiresponse.md index 3be812b0d1..ff766527a6 100644 --- a/docs/src/api/class-apiresponse.md +++ b/docs/src/api/class-apiresponse.md @@ -1,5 +1,5 @@ # class: APIResponse -* langs: js +* langs: js, python [APIResponse] class represents responses returned by [`method: APIRequestContext.get`] and similar methods. diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md index e28cff153d..1dc0f00296 100644 --- a/docs/src/api/class-browsercontext.md +++ b/docs/src/api/class-browsercontext.md @@ -850,7 +850,7 @@ Creates a new page in the browser context. Returns all open pages in the context. ## property: BrowserContext.request -* langs: js +* langs: js, python - type: <[APIRequestContext]> API testing helper associated with this context. Requests made with this API will use context cookies. diff --git a/docs/src/api/class-playwright.md b/docs/src/api/class-playwright.md index 29833fb93a..9cc182a4c0 100644 --- a/docs/src/api/class-playwright.md +++ b/docs/src/api/class-playwright.md @@ -215,7 +215,7 @@ except TimeoutError as e: This object can be used to launch or connect to Firefox, returning instances of [Browser]. ## property: Playwright.request -* langs: js +* langs: js, python - type: <[APIRequest]> Exposes API that can be used for the Web API testing.