Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(python): enable request API (#10179)

Max Schmitt1a7fb912e425
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.