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

Python version of the Playwright testing and automation library.

Results 138 playwright-python issues
Sort by recently updated
recently updated
newest added

The JS api has `BrowserType.launchServer` which allows to launch a browser in server mode to connect to it from remotely. It took me a a long time to find it...

P3-collecting-feedback

```python async with async_playwright() as p: browser = await p.chromium.launch() context = await browser.new_context(locale="foO bAr Spam EGgs") #

P3-collecting-feedback

original issue: https://github.com/microsoft/playwright/issues/11668 the solution provided doesn't work unless you are using `@playwright/test` with nodejs - see https://github.com/microsoft/playwright/issues/11668#issuecomment-1067483802 so this is still a problem when using playwright with python **Context:**...

P3-collecting-feedback

I have been using Playwright with the Scrapy web scraping framework, this is the plugin: https://github.com/scrapy-plugins/scrapy-playwright Scrapy is designed to cleanly shutdown on SIGINT, saving its crawl state so that...

P3-collecting-feedback

### Feature request In the Python side, did you plan to visual comparison [like JS](https://playwright.dev/docs/test-snapshots/)? thanks

P3-collecting-feedback

[PyPy](https://www.pypy.org/) is a fast, compliant alternative implementation of Python, it is much faster as compared to cpython, and is mostly used for pure python code. Since playwright is a pure...

P3-collecting-feedback

I can currently get logger output on screen using `DEBUG=pw:api` environment variable. However, it is possible to get the output to a file specified by the caller using the logging...

P3-collecting-feedback

Please backport client side changes: - [x] https://github.com/microsoft/playwright/commit/622c73cc1e677834ebdc27e95c89ff101bdccf54 (feat: expect(locator).toHaveAttribute to assert attribute presence (#16767)) - [x] https://github.com/microsoft/playwright/commit/a07a4a25a26e2fa6a976fb2ff174f25b24414da6 (chore: make parent scope explicit (#16819)) - [x] https://github.com/microsoft/playwright/commit/f30ac1d67827fbcf3f8be7a851ef81b761842c52 (fix: support toHaveAttribute(name,...

v1.27

Repro: ```python import typing from playwright.sync_api import Page, expect def to_have_text( expected: typing.List[typing.Union[typing.Pattern[str], str]], # this works: expected: typing.Union[typing.List[typing.Pattern[str]], typing.List[str]], ): pass def test_should_persist_its_data(page: Page) -> None: my_list = ["a",...

v1.27

### Your question While using locator.is_visible(), I get the true and false value, but in docs it says to be depreciated. I am confused if its just the time option...