playwright-pytest icon indicating copy to clipboard operation
playwright-pytest copied to clipboard

Pytest plugin to write end-to-end browser tests with Playwright.

Results 43 playwright-pytest issues
Sort by recently updated
recently updated
newest added

HI Playwright team! I'm having an issue reliably interacting with page elements that is currently only being solved by using a time.sleep(3) before trying to click or expect an element...

triaging

When using playwright-pytest in conjunction with [pytest-flask](https://pytest-flask.readthedocs.io/) the `playwright` fixture can hang on teardown. See [markhobson/playwright-pytest-bug](https://github.com/markhobson/playwright-pytest-bug) for a reproducible example. Notice the two tests and their fixtures: ```python def test_page(page:...

p3-collecting-feedback

``` import pytest import time from playwright.sync_api import Page @pytest.fixture def i_am_a_fixture(): time.sleep(60) def test_page_has_extra_open_time(i_am_a_fixture, page: Page): page.goto("https://www.google.com") time.sleep(2) 1 / 0 # run this test with this command pytest...

p3-collecting-feedback

**Context** ``` windows 11 python 3.12.2 pytest 7.4 playwright-pytest 0.4.4 pytest-xdist 3.5.0 ``` **run** `pytest -n 3 test_case ` Sometimes report the error: ``` [gw1] win32 -- Python 3.12.2 C:\Users\Administrator\.virtualenvs\ehr_autotest-ViGcsCVN\Scripts\python.exe...

pytest-playwirght uses --video="on" to record video. The use case steps will open multiple browser tabs. The recorded video only records the newly opened tab page, and does not record the...

Hi, The plugin is written without hookspec entry points, and as a result, it’s hard to modify it’s data. for example, I want to implement saving data of tests to...

It would be nice if this plugin could work nicely with pytest-rerun failures to mitigate flaky tests. In the current state when using both plugins, when a test fails and...

p3-collecting-feedback

### 🚀 Feature Request I could not find how to get a handle to the names playwright generates for its output folders under "test-results". I would think the browser context...

p3-collecting-feedback

I want to use the code in pytest_playwright.py, but each page in there is a separate context, how can I use the page fixture in pytest_playwriht.py while carrying the auth...

We have a Python project based on pytest and playwright. We wanted to leverage type hints from the beginning and we're using `mypy` for type checking. When we write a...