|
|
Callable[..., None] | _wrap_handler (self, Union[Callable[..., Any], Any] handler) |
| |
|
| _loop |
| |
|
| _impl_obj |
| |
◆ not_to_be_ok()
| None playwright.async_api._generated.APIResponseAssertions.not_to_be_ok |
( |
|
self | ) |
|
APIResponseAssertions.not_to_be_ok
The opposite of `a_pi_response_assertions.to_be_ok()`.
◆ to_be_ok()
| None playwright.async_api._generated.APIResponseAssertions.to_be_ok |
( |
|
self | ) |
|
APIResponseAssertions.to_be_ok
Ensures the response status code is within `200..299` range.
**Usage**
```py
from playwright.async_api import expect
# ...
await expect(response).to_be_ok()
```
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/playwright/async_api/_generated.py