From d85d8421d345709534bbf40cbdad3f6c6fd42edf Mon Sep 17 00:00:00 2001 From: "Ross A. Wollman" Date: Thu, 4 Aug 2022 10:21:25 -0700 Subject: [PATCH 1/2] chore: roll Playwright to 1.25.0-alpha-1659629898000 --- README.md | 4 ++-- playwright/async_api/_generated.py | 4 +++- playwright/sync_api/_generated.py | 4 +++- setup.py | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 46cf1950f..4a378ad05 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H | | Linux | macOS | Windows | | :--- | :---: | :---: | :---: | -| Chromium 104.0.5112.57 | ✅ | ✅ | ✅ | +| Chromium 104.0.5112.81 | ✅ | ✅ | ✅ | | WebKit 16.0 | ✅ | ✅ | ✅ | -| Firefox 102.0 | ✅ | ✅ | ✅ | +| Firefox 103.0 | ✅ | ✅ | ✅ | ## Documentation diff --git a/playwright/async_api/_generated.py b/playwright/async_api/_generated.py index 9d7e86a1f..fda9d9808 100644 --- a/playwright/async_api/_generated.py +++ b/playwright/async_api/_generated.py @@ -11979,7 +11979,9 @@ async def connect( ) -> "Browser": """BrowserType.connect - This method attaches Playwright to an existing browser instance. + This method attaches Playwright to an existing browser instance. When connecting to another browser launched via + `BrowserType.launchServer` in Node.js, the major and minor version needs to match the client version (1.2.3 → is + compatible with 1.2.x). Parameters ---------- diff --git a/playwright/sync_api/_generated.py b/playwright/sync_api/_generated.py index 68ae74fa7..b6462a36f 100644 --- a/playwright/sync_api/_generated.py +++ b/playwright/sync_api/_generated.py @@ -12025,7 +12025,9 @@ def connect( ) -> "Browser": """BrowserType.connect - This method attaches Playwright to an existing browser instance. + This method attaches Playwright to an existing browser instance. When connecting to another browser launched via + `BrowserType.launchServer` in Node.js, the major and minor version needs to match the client version (1.2.3 → is + compatible with 1.2.x). Parameters ---------- diff --git a/setup.py b/setup.py index 81ce914df..ead068075 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ InWheel = None from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand -driver_version = "1.25.0-alpha-jul-26-2022" +driver_version = "1.25.0-alpha-1659629898000" def extractall(zip: zipfile.ZipFile, path: str) -> None: From 5a78d1f7aa3198fbac2cabfd85c14d1bdec8e5d0 Mon Sep 17 00:00:00 2001 From: "Ross A. Wollman" Date: Thu, 4 Aug 2022 11:23:53 -0700 Subject: [PATCH 2/2] remove test to align with upstream --- tests/async/test_element_handle.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/async/test_element_handle.py b/tests/async/test_element_handle.py index 45e9330c3..d47e6a78c 100644 --- a/tests/async/test_element_handle.py +++ b/tests/async/test_element_handle.py @@ -402,11 +402,6 @@ async def test_should_wait_for_display_none_to_become_visible(page): await waiting_helper(page, 'div => div.style.display = "block"') -async def test_should_wait_for_display_contents_to_become_visible(page): - await page.set_content('
Hello
') - await waiting_helper(page, 'div => div.style.display = "block"') - - async def test_should_work_for_visibility_hidden_element(page): await page.set_content('
Hello
') div = await page.query_selector("div")