Skip to content

Commit a1c57b5

Browse files
authored
chore: roll Playwright to 1.21.0-beta-1649396150000 (#1240)
1 parent 68aeb9f commit a1c57b5

File tree

9 files changed

+691
-533
lines changed

9 files changed

+691
-533
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H
44

55
| | Linux | macOS | Windows |
66
| :--- | :---: | :---: | :---: |
7-
| Chromium <!-- GEN:chromium-version -->101.0.4929.0<!-- GEN:stop --> ||||
7+
| Chromium <!-- GEN:chromium-version -->101.0.4951.15<!-- GEN:stop --> ||||
88
| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> ||||
9-
| Firefox <!-- GEN:firefox-version -->97.0.1<!-- GEN:stop --> ||||
9+
| Firefox <!-- GEN:firefox-version -->98.0.2<!-- GEN:stop --> ||||
1010

1111
## Documentation
1212

playwright/_impl/_element_handle.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ async def screenshot(
270270
path: Union[str, Path] = None,
271271
quality: int = None,
272272
omitBackground: bool = None,
273-
animations: Literal["disabled"] = None,
273+
animations: Literal["allow", "disabled"] = None,
274+
caret: Literal["hide", "initial"] = None,
275+
scale: Literal["css", "device"] = None,
274276
mask: List["Locator"] = None,
275277
) -> bytes:
276278
params = locals_to_params(locals())

playwright/_impl/_locator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ async def screenshot(
373373
path: Union[str, pathlib.Path] = None,
374374
quality: int = None,
375375
omitBackground: bool = None,
376-
animations: Literal["disabled"] = None,
376+
animations: Literal["allow", "disabled"] = None,
377+
caret: Literal["hide", "initial"] = None,
378+
scale: Literal["css", "device"] = None,
377379
mask: List["Locator"] = None,
378380
) -> bytes:
379381
params = locals_to_params(locals())

playwright/_impl/_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,9 @@ async def screenshot(
610610
omitBackground: bool = None,
611611
fullPage: bool = None,
612612
clip: FloatRect = None,
613-
animations: Literal["disabled"] = None,
613+
animations: Literal["allow", "disabled"] = None,
614+
caret: Literal["hide", "initial"] = None,
615+
scale: Literal["css", "device"] = None,
614616
mask: List["Locator"] = None,
615617
) -> bytes:
616618
params = locals_to_params(locals())

playwright/async_api/_generated.py

Lines changed: 337 additions & 261 deletions
Large diffs are not rendered by default.

playwright/sync_api/_generated.py

Lines changed: 337 additions & 261 deletions
Large diffs are not rendered by default.

scripts/expected_api_mismatch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Parameter not documented: Browser.new_context(default_browser_type=)
55
Parameter not documented: Browser.new_page(default_browser_type=)
66

77
# We don't expand the type of the return value here.
8-
Parameter type mismatch in Accessibility.snapshot(return=): documented as Union[{role: str, name: str, value: Union[float, str, NoneType], description: Union[str, NoneType], keyshortcuts: Union[str, NoneType], roledescription: Union[str, NoneType], valuetext: Union[str, NoneType], disabled: Union[bool, NoneType], expanded: Union[bool, NoneType], focused: Union[bool, NoneType], modal: Union[bool, NoneType], multiline: Union[bool, NoneType], multiselectable: Union[bool, NoneType], readonly: Union[bool, NoneType], required: Union[bool, NoneType], selected: Union[bool, NoneType], checked: Union["mixed", bool, NoneType], pressed: Union["mixed", bool, NoneType], level: Union[int, NoneType], valuemin: Union[float, NoneType], valuemax: Union[float, NoneType], autocomplete: Union[str, NoneType], haspopup: Union[str, NoneType], invalid: Union[str, NoneType], orientation: Union[str, NoneType], children: Union[List[Dict], NoneType]}, NoneType], code has Union[Dict, NoneType]
8+
Parameter type mismatch in Accessibility.snapshot(return=): documented as Union[{role: str, name: str, value: Union[float, str], description: str, keyshortcuts: str, roledescription: str, valuetext: str, disabled: bool, expanded: bool, focused: bool, modal: bool, multiline: bool, multiselectable: bool, readonly: bool, required: bool, selected: bool, checked: Union["mixed", bool], pressed: Union["mixed", bool], level: int, valuemin: float, valuemax: float, autocomplete: str, haspopup: str, invalid: str, orientation: str, children: List[Dict]}, NoneType], code has Union[Dict, NoneType]
99

1010
# One vs two arguments in the callback, Python explicitly unions.
1111
Parameter type mismatch in BrowserContext.route(handler=): documented as Callable[[Route, Request], Any], code has Union[Callable[[Route, Request], Any], Callable[[Route], Any]]

setup.py

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

33-
driver_version = "1.20.0"
33+
driver_version = "1.21.0-beta-1649712128000"
3434

3535

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

tests/async/test_interception.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,11 @@ async def test_page_route_should_support_cors_with_GET(page, server, browser_nam
547547
await page.goto(server.EMPTY_PAGE)
548548

549549
async def handle_route(route, request):
550-
headers = (
551-
{"access-control-allow-origin": "*"}
550+
headers = {
551+
"access-control-allow-origin": "*"
552552
if request.url.endswith("allow")
553-
else {}
554-
)
553+
else "none"
554+
}
555555
await route.fulfill(
556556
content_type="application/json",
557557
headers=headers,

0 commit comments

Comments
 (0)