diff --git a/README.md b/README.md index f3cfe96b9..6c23dab57 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H | :--- | :---: | :---: | :---: | | Chromium 97.0.4666.0 | ✅ | ✅ | ✅ | | WebKit 15.4 | ✅ | ✅ | ✅ | -| Firefox 92.0 | ✅ | ✅ | ✅ | +| Firefox 93.0 | ✅ | ✅ | ✅ | ## Documentation diff --git a/playwright/async_api/_generated.py b/playwright/async_api/_generated.py index 9b33cfd0b..bd3d9e0e0 100644 --- a/playwright/async_api/_generated.py +++ b/playwright/async_api/_generated.py @@ -7651,7 +7651,8 @@ async def set_viewport_size(self, viewport_size: ViewportSize) -> NoneType: `browser.new_context()` allows to set viewport size (and more) for all pages in the context at once. `page.setViewportSize` will resize the page. A lot of websites don't expect phones to change size, so you should set the - viewport size before navigating to the page. + viewport size before navigating to the page. `page.set_viewport_size()` will also reset `screen` size, use + `browser.new_context()` with `screen` and `viewport` parameters if you need better control of these properties. ```py page = await browser.new_page() diff --git a/playwright/sync_api/_generated.py b/playwright/sync_api/_generated.py index 22d2dfeec..7ac882cab 100644 --- a/playwright/sync_api/_generated.py +++ b/playwright/sync_api/_generated.py @@ -7466,7 +7466,8 @@ def set_viewport_size(self, viewport_size: ViewportSize) -> NoneType: `browser.new_context()` allows to set viewport size (and more) for all pages in the context at once. `page.setViewportSize` will resize the page. A lot of websites don't expect phones to change size, so you should set the - viewport size before navigating to the page. + viewport size before navigating to the page. `page.set_viewport_size()` will also reset `screen` size, use + `browser.new_context()` with `screen` and `viewport` parameters if you need better control of these properties. ```py page = browser.new_page() diff --git a/scripts/update_api.sh b/scripts/update_api.sh index 1007710f4..85147658f 100755 --- a/scripts/update_api.sh +++ b/scripts/update_api.sh @@ -19,4 +19,6 @@ function update_api { update_api "playwright/sync_api/_generated.py" "scripts/generate_sync_api.py" update_api "playwright/async_api/_generated.py" "scripts/generate_async_api.py" +playwright install + python scripts/update_versions.py diff --git a/setup.py b/setup.py index 66a74a528..c020cc242 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ InWheel = None from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand -driver_version = "1.16.0-next-1634054506000" +driver_version = "1.16.0-next-1634703014000" def extractall(zip: zipfile.ZipFile, path: str) -> None: diff --git a/tests/async/test_network.py b/tests/async/test_network.py index b1682dffe..73081e04a 100644 --- a/tests/async/test_network.py +++ b/tests/async/test_network.py @@ -759,7 +759,7 @@ async def test_response_server_addr(page: Page, server: Server): async def test_response_security_details( browser: Browser, https_server: Server, browser_name, is_win, is_linux ): - if browser_name == "webkit" and is_linux: + if (browser_name == "webkit" and is_linux) or (browser_name == "webkit" and is_win): pytest.skip("https://github.com/microsoft/playwright/issues/6759") page = await browser.new_page(ignore_https_errors=True) response = await page.goto(https_server.EMPTY_PAGE) diff --git a/tests/sync/test_network.py b/tests/sync/test_network.py index f974b0a6c..39057d9d0 100644 --- a/tests/sync/test_network.py +++ b/tests/sync/test_network.py @@ -34,7 +34,7 @@ def test_response_security_details( is_win: bool, is_linux: bool, ) -> None: - if browser_name == "webkit" and is_linux: + if (browser_name == "webkit" and is_linux) or (browser_name == "webkit" and is_win): pytest.skip("https://github.com/microsoft/playwright/issues/6759") page = browser.new_page(ignore_https_errors=True) response = page.goto(https_server.EMPTY_PAGE)