playwright-python
playwright-python copied to clipboard
Python version of the Playwright testing and automation library.
Please backport client side changes: - [x] https://github.com/microsoft/playwright/commit/d023829dd543c0ced528a60a0365327c39c6e419 (fix(locator parser): allow escaped quotes in the digest function (#29012)) - [x] https://github.com/microsoft/playwright/commit/f3fac6f4e95f0818a47c88c055854576d98103e0 (feat: `page.handleLocator` that closes any interstitial pages/dialogs (#29029)) -...
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.21.1 to 0.23.5. Release notes Sourced from pytest-asyncio's releases. pytest-asyncio 0.23.5 0.23.5 (2024-02-09) Declare compatibility with pytest 8 #737 Fix typing errors with recent versions of mypy...
When using the Playwright Python library, event callbacks registered with `page.on()` do not have the same contextvars as the parent code. This behavior can lead to issues when users expect...
### Version 1.41.2 ### Steps to reproduce 1. Clone my repo at https://github.com/dittos/playwright-python-uvloop-bug 2. pip install -r requirements.txt 3. `DEBUGP=1 python repro.py` 4. You should see the error come up...
### 🚀 Feature Request There is both inconsistent and incorrect use of type-hints throughout the package. This could be classified as a bug report. ## Inconsistent The 'typing' module is...
### System info - Playwright Version: [v1.XX] 1.41.1 - Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.] macOS Ventura 13.5.2 - Browser: [All, Chromium, Firefox, WebKit] Chromium -...
### Version 1.41.2 ### Steps to reproduce 1. Open the ipython REPL 2. Create a Playwright instance that bypasses the Python context manager. ```python from playwright.sync_api import sync_playwright playwright =...
[BUG] asyncio.exceptions.InvalidStateError: invalid state thrown by exit in async context manager
### System info - Playwright Version: [v1.40] - Operating System: [ macOS 14.2.1] - Browser: Chromium - Other info: ### Source code ``` from playwright.async_api import async_playwright import asyncio async...
### System info - Playwright Version: [v1.35.0] - Operating System: [macOS] - Browser: [Firefox] - Other info: ### Source code Make a checkpoint in VSCode with pytest debugger, and when...
### Your question I was taking a look at [this question](https://stackoverflow.com/questions/74371380/delay-page-fulfill-in-pytest-playwright) on Stack Overflow. The issue there is that the user wants to test the loading action after clicking a...