Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H

| | Linux | macOS | Windows |
| :--- | :---: | :---: | :---: |
| Chromium <!-- GEN:chromium-version -->91.0.4455.0<!-- GEN:stop --> | ✅ | ✅ | ✅ |
| Chromium <!-- GEN:chromium-version -->91.0.4469.0<!-- GEN:stop --> | ✅ | ✅ | ✅ |
| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | ✅ | ✅ | ✅ |
| Firefox <!-- GEN:firefox-version -->88.0b6<!-- GEN:stop --> | ✅ | ✅ | ✅ |
| Firefox <!-- GEN:firefox-version -->88.0b8<!-- GEN:stop --> | ✅ | ✅ | ✅ |

Headless execution is supported for all browsers on all platforms.

Expand Down
12 changes: 10 additions & 2 deletions playwright/_impl/_element_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,20 @@ async def press(
await self._channel.send("press", locals_to_params(locals()))

async def check(
self, timeout: float = None, force: bool = None, noWaitAfter: bool = None
self,
position: Position = None,
timeout: float = None,
force: bool = None,
noWaitAfter: bool = None,
) -> None:
await self._channel.send("check", locals_to_params(locals()))

async def uncheck(
self, timeout: float = None, force: bool = None, noWaitAfter: bool = None
self,
position: Position = None,
timeout: float = None,
force: bool = None,
noWaitAfter: bool = None,
) -> None:
await self._channel.send("uncheck", locals_to_params(locals()))

Expand Down
2 changes: 2 additions & 0 deletions playwright/_impl/_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ async def press(
async def check(
self,
selector: str,
position: Position = None,
timeout: float = None,
force: bool = None,
noWaitAfter: bool = None,
Expand All @@ -510,6 +511,7 @@ async def check(
async def uncheck(
self,
selector: str,
position: Position = None,
timeout: float = None,
force: bool = None,
noWaitAfter: bool = None,
Expand Down
2 changes: 2 additions & 0 deletions playwright/_impl/_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ async def press(
async def check(
self,
selector: str,
position: Position = None,
timeout: float = None,
force: bool = None,
noWaitAfter: bool = None,
Expand All @@ -721,6 +722,7 @@ async def check(
async def uncheck(
self,
selector: str,
position: Position = None,
timeout: float = None,
force: bool = None,
noWaitAfter: bool = None,
Expand Down
192 changes: 117 additions & 75 deletions playwright/async_api/_generated.py

Large diffs are not rendered by default.

192 changes: 117 additions & 75 deletions playwright/sync_api/_generated.py

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions scripts/generate_sync_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import inspect
import re
import sys
from types import FunctionType
from typing import Any, get_type_hints # type: ignore

Expand Down Expand Up @@ -118,6 +119,8 @@ def generate(t: Any) -> None:


def main() -> None:
assert sys.version_info >= (3, 9)

print(header)
print(
"from playwright._impl._sync_base import EventContextManager, SyncBase, mapping"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from auditwheel.wheeltools import InWheel
from wheel.bdist_wheel import bdist_wheel as BDistWheelCommand

driver_version = "1.11.0-next-1617404897000"
driver_version = "1.11.0-next-1618513089000"


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