Skip to content

Commit a0a6536

Browse files
authored
feat(roll): roll Playwright 1.16.0-next-1634703014000 (#970)
1 parent 6ecdf0e commit a0a6536

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H
66
| :--- | :---: | :---: | :---: |
77
| Chromium <!-- GEN:chromium-version -->97.0.4666.0<!-- GEN:stop --> ||||
88
| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> ||||
9-
| Firefox <!-- GEN:firefox-version -->92.0<!-- GEN:stop --> ||||
9+
| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> ||||
1010

1111
## Documentation
1212

playwright/async_api/_generated.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7651,7 +7651,8 @@ async def set_viewport_size(self, viewport_size: ViewportSize) -> NoneType:
76517651
`browser.new_context()` allows to set viewport size (and more) for all pages in the context at once.
76527652

76537653
`page.setViewportSize` will resize the page. A lot of websites don't expect phones to change size, so you should set the
7654-
viewport size before navigating to the page.
7654+
viewport size before navigating to the page. `page.set_viewport_size()` will also reset `screen` size, use
7655+
`browser.new_context()` with `screen` and `viewport` parameters if you need better control of these properties.
76557656

76567657
```py
76577658
page = await browser.new_page()

playwright/sync_api/_generated.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7466,7 +7466,8 @@ def set_viewport_size(self, viewport_size: ViewportSize) -> NoneType:
74667466
`browser.new_context()` allows to set viewport size (and more) for all pages in the context at once.
74677467

74687468
`page.setViewportSize` will resize the page. A lot of websites don't expect phones to change size, so you should set the
7469-
viewport size before navigating to the page.
7469+
viewport size before navigating to the page. `page.set_viewport_size()` will also reset `screen` size, use
7470+
`browser.new_context()` with `screen` and `viewport` parameters if you need better control of these properties.
74707471

74717472
```py
74727473
page = browser.new_page()

scripts/update_api.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ function update_api {
1919
update_api "playwright/sync_api/_generated.py" "scripts/generate_sync_api.py"
2020
update_api "playwright/async_api/_generated.py" "scripts/generate_async_api.py"
2121

22+
playwright install
23+
2224
python scripts/update_versions.py

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
InWheel = None
2929
from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand
3030

31-
driver_version = "1.16.0-next-1634054506000"
31+
driver_version = "1.16.0-next-1634703014000"
3232

3333

3434
def extractall(zip: zipfile.ZipFile, path: str) -> None:

tests/async/test_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ async def test_response_server_addr(page: Page, server: Server):
759759
async def test_response_security_details(
760760
browser: Browser, https_server: Server, browser_name, is_win, is_linux
761761
):
762-
if browser_name == "webkit" and is_linux:
762+
if (browser_name == "webkit" and is_linux) or (browser_name == "webkit" and is_win):
763763
pytest.skip("https://github.com/microsoft/playwright/issues/6759")
764764
page = await browser.new_page(ignore_https_errors=True)
765765
response = await page.goto(https_server.EMPTY_PAGE)

tests/sync/test_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_response_security_details(
3434
is_win: bool,
3535
is_linux: bool,
3636
) -> None:
37-
if browser_name == "webkit" and is_linux:
37+
if (browser_name == "webkit" and is_linux) or (browser_name == "webkit" and is_win):
3838
pytest.skip("https://github.com/microsoft/playwright/issues/6759")
3939
page = browser.new_page(ignore_https_errors=True)
4040
response = page.goto(https_server.EMPTY_PAGE)

0 commit comments

Comments
 (0)