Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(python): add note about async fixtures (#33760)
Max Schmitt84df6e3297f3
diff --git a/docs/src/test-runners-python.md b/docs/src/test-runners-python.mdindex 0dd4bbeca3..3f93dd6504 100644--- a/docs/src/test-runners-python.md+++ b/docs/src/test-runners-python.md@@ -259,3 +259,18 @@ def test_bing_is_working(page):## Deploy to CISee the [guides for CI providers](./ci.md) to deploy your tests to CI/CD.++## Async Fixtures++If you want to use async fixtures, you can use the [`pytest-playwright-asyncio`](https://pypi.org/project/pytest-playwright-asyncio/) plugin.+Make sure to use `pytest-asyncio>=0.24.0` and make your tests use of [`loop_scope=sesion`](https://pytest-asyncio.readthedocs.io/en/latest/how-to-guides/run_session_tests_in_same_loop.html).++```python+import pytest+from playwright.async_api import Page+[email protected](loop_scope="session")+async def test_foo(page: Page):+ await page.goto("https://github.com")+ # ...+```