playwright-pytest
playwright-pytest copied to clipboard
Pytest plugin to write end-to-end browser tests with Playwright.
Hey all, Thanks for the work on playwright. I'm encountering this issue when trying to run it with both python 3.9 and 3.10. I wonder if it's some interaction with...
From what I can see, if a fixture fails in setup/teardown, the `pytest --output .out --tracing retain-on-failure` discards the trace. And at least sometimes the user will want the trace...
Playwright starts browser in headed mode when called from VS Code Debugger - even on headless server
The current implementation starts the browser in headed mode automatically, if pytest is invoked from VS Code's debugger. https://github.com/microsoft/playwright-pytest/blob/68bd92a133eeac597da61a0819768a589dafd6dd/pytest_playwright/pytest_playwright.py#L118-L120 While I get the idea behind this, it does not take...
I am trying to output test results in another directory with the --output option. But it seems to not be working : the default directory (test-results) contains test results at...
See this existing html report where we can add attachments: https://github.com/pytest-dev/pytest-html Relates https://github.com/microsoft/playwright-pytest/issues/105
`playwright` can be downloaded with conda from the [Microsoft channel](https://anaconda.org/microsoft/playwright). I'd be nice to have `pytest-playwright` also available on this channel. And thanks for the great work, I love this...
Hi! I have the following code: ``` class TestClass: def test_a(self, page): print("open site") self.page = page self.page.goto("https://microsoft.com") def test_b(self, page): print("check title of site") self.page = page page_title =...
I need to run `aiohttp` server and use `playwright` in tests at the same time. Am I right that `pytest-playwright` right now can't help me with that? It provides fixtures...
Same thing as in js/ts world `playwright.config.ts` equivalent for python `playwright.conf.py` which would automatically parameterize all the tests. Includes https://github.com/microsoft/playwright-pytest/issues/67
I usually use Allure report with PyTest+Playwright. ### Test code (intented to fail) ```python from playwright.sync_api import Page def test_github_search(page: Page): page.goto('https://github.com/') page.focus('input[name="q"]') page.keyboard.type('playwright') with page.expect_navigation(): page.keyboard.press('Enter') first_item = page.query_selector_all('.repo-list-item')[0]...