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

This commit is contained in:
Max Schmitt 2021-11-09 14:04:34 +01:00 committed by GitHub
parent b0116e7c43
commit 1a7fb912e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -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].

View file

@ -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

View file

@ -1,5 +1,5 @@
# class: APIResponse
* langs: js
* langs: js, python
[APIResponse] class represents responses returned by [`method: APIRequestContext.get`] and similar methods.

View file

@ -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.

View file

@ -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.