docs(python): enable request API (#10179)
This commit is contained in:
parent
b0116e7c43
commit
1a7fb912e4
|
|
@ -1,10 +1,10 @@
|
||||||
# class: APIRequest
|
# class: APIRequest
|
||||||
* langs: js
|
* langs: js, python
|
||||||
|
|
||||||
Exposes API that can be used for the Web API testing.
|
Exposes API that can be used for the Web API testing.
|
||||||
|
|
||||||
## async method: APIRequest.newContext
|
## async method: APIRequest.newContext
|
||||||
* langs: js
|
* langs: js, python
|
||||||
- returns: <[APIRequestContext]>
|
- returns: <[APIRequestContext]>
|
||||||
|
|
||||||
Creates new instances of [APIRequestContext].
|
Creates new instances of [APIRequestContext].
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# class: APIRequestContext
|
# 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
|
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
|
environment or the service to your e2e test. When used on [Page] or a [BrowserContext], this API will automatically use
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# class: APIResponse
|
# class: APIResponse
|
||||||
* langs: js
|
* langs: js, python
|
||||||
|
|
||||||
[APIResponse] class represents responses returned by [`method: APIRequestContext.get`] and similar methods.
|
[APIResponse] class represents responses returned by [`method: APIRequestContext.get`] and similar methods.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -850,7 +850,7 @@ Creates a new page in the browser context.
|
||||||
Returns all open pages in the context.
|
Returns all open pages in the context.
|
||||||
|
|
||||||
## property: BrowserContext.request
|
## property: BrowserContext.request
|
||||||
* langs: js
|
* langs: js, python
|
||||||
- type: <[APIRequestContext]>
|
- type: <[APIRequestContext]>
|
||||||
|
|
||||||
API testing helper associated with this context. Requests made with this API will use context cookies.
|
API testing helper associated with this context. Requests made with this API will use context cookies.
|
||||||
|
|
|
||||||
|
|
@ -215,7 +215,7 @@ except TimeoutError as e:
|
||||||
This object can be used to launch or connect to Firefox, returning instances of [Browser].
|
This object can be used to launch or connect to Firefox, returning instances of [Browser].
|
||||||
|
|
||||||
## property: Playwright.request
|
## property: Playwright.request
|
||||||
* langs: js
|
* langs: js, python
|
||||||
- type: <[APIRequest]>
|
- type: <[APIRequest]>
|
||||||
|
|
||||||
Exposes API that can be used for the Web API testing.
|
Exposes API that can be used for the Web API testing.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue