GeezerVison is showing github.com — feat(roll): roll Playwright to 1.13.0-next-1625158334000 (#784) · Coder-Soder/playwright-python@39a9cb1
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: README.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ Playwright is a Python library to automate [Chromium](https://www.chromium.org/H | 4 | 4 |
| 5 | 5 | | | Linux | macOS | Windows | | 6 | 6 | | :--- | :---: | :---: | :---: | | 7 | | -| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> | ✅ | ✅ | ✅ | | | 7 | +| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> | ✅ | ✅ | ✅ | | 8 | 8 | | WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> | ✅ | ✅ | ✅ | | 9 | 9 | | Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> | ✅ | ✅ | ✅ | | 10 | 10 |
| |
Collapse file Copy file name to clipboardExpand all lines: playwright/_impl/_api_structures.py +13Lines changed: 13 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -119,3 +119,16 @@ class FilePayload(TypedDict): | 119 | 119 | name: str | 120 | 120 | mimeType: str | 121 | 121 | buffer: bytes | | 122 | + | | 123 | + | | 124 | +class RemoteAddr(TypedDict): | | 125 | + ipAddress: str | | 126 | + port: int | | 127 | + | | 128 | + | | 129 | +class SecurityDetails(TypedDict): | | 130 | + issuer: Optional[str] | | 131 | + protocol: Optional[str] | | 132 | + subjectName: Optional[str] | | 133 | + validFrom: Optional[int] | | 134 | + validTo: Optional[int] |
Collapse file Copy file name to clipboardExpand all lines: playwright/_impl/_element_handle.py +10-2Lines changed: 10 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -142,6 +142,7 @@ async def select_option( | 142 | 142 | label: Union[str, List[str]] = None, | 143 | 143 | element: Union["ElementHandle", List["ElementHandle"]] = None, | 144 | 144 | timeout: float = None, | | 145 | + force: bool = None, | 145 | 146 | noWaitAfter: bool = None, | 146 | 147 | ) -> List[str]: | 147 | 148 | params = locals_to_params( | @@ -165,13 +166,20 @@ async def tap( | 165 | 166 | await self._channel.send("tap", locals_to_params(locals())) | 166 | 167 |
| 167 | 168 | async def fill( | 168 | | - self, value: str, timeout: float = None, noWaitAfter: bool = None | | 169 | + self, | | 170 | + value: str, | | 171 | + timeout: float = None, | | 172 | + noWaitAfter: bool = None, | | 173 | + force: bool = None, | 169 | 174 | ) -> None: | 170 | 175 | await self._channel.send("fill", locals_to_params(locals())) | 171 | 176 |
| 172 | | - async def select_text(self, timeout: float = None) -> None: | | 177 | + async def select_text(self, force: bool = None, timeout: float = None) -> None: | 173 | 178 | await self._channel.send("selectText", locals_to_params(locals())) | 174 | 179 |
| | 180 | + async def input_value(self, timeout: float = None) -> str: | | 181 | + return await self._channel.send("inputValue", locals_to_params(locals())) | | 182 | + | 175 | 183 | async def set_input_files( | 176 | 184 | self, | 177 | 185 | files: Union[str, Path, FilePayload, List[Union[str, Path]], List[FilePayload]], | |
Collapse file Copy file name to clipboardExpand all lines: playwright/_impl/_frame.py +14-1Lines changed: 14 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -419,7 +419,12 @@ async def tap( | 419 | 419 | await self._channel.send("tap", locals_to_params(locals())) | 420 | 420 |
| 421 | 421 | async def fill( | 422 | | - self, selector: str, value: str, timeout: float = None, noWaitAfter: bool = None | | 422 | + self, | | 423 | + selector: str, | | 424 | + value: str, | | 425 | + timeout: float = None, | | 426 | + noWaitAfter: bool = None, | | 427 | + force: bool = None, | 423 | 428 | ) -> None: | 424 | 429 | await self._channel.send("fill", locals_to_params(locals())) | 425 | 430 |
| @@ -460,6 +465,7 @@ async def select_option( | 460 | 465 | element: Union["ElementHandle", List["ElementHandle"]] = None, | 461 | 466 | timeout: float = None, | 462 | 467 | noWaitAfter: bool = None, | | 468 | + force: bool = None, | 463 | 469 | ) -> List[str]: | 464 | 470 | params = locals_to_params( | 465 | 471 | dict( | @@ -471,6 +477,13 @@ async def select_option( | 471 | 477 | ) | 472 | 478 | return await self._channel.send("selectOption", params) | 473 | 479 |
| | 480 | + async def input_value( | | 481 | + self, | | 482 | + selector: str, | | 483 | + timeout: float = None, | | 484 | + ) -> str: | | 485 | + return await self._channel.send("inputValue", locals_to_params(locals())) | | 486 | + | 474 | 487 | async def set_input_files( | 475 | 488 | self, | 476 | 489 | selector: str, | |
Collapse file Copy file name to clipboardExpand all lines: playwright/_impl/_network.py +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 20 | 20 | from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Union, cast | 21 | 21 | from urllib import parse | 22 | 22 |
| 23 | | -from playwright._impl._api_structures import ResourceTiming | | 23 | +from playwright._impl._api_structures import RemoteAddr, ResourceTiming, SecurityDetails | 24 | 24 | from playwright._impl._api_types import Error | 25 | 25 | from playwright._impl._connection import ( | 26 | 26 | ChannelOwner, | @@ -249,6 +249,12 @@ def status_text(self) -> str: | 249 | 249 | def headers(self) -> Dict[str, str]: | 250 | 250 | return parse_headers(self._initializer["headers"]) | 251 | 251 |
| | 252 | + async def server_addr(self) -> Optional[RemoteAddr]: | | 253 | + return await self._channel.send("serverAddr") | | 254 | + | | 255 | + async def security_details(self) -> Optional[SecurityDetails]: | | 256 | + return await self._channel.send("securityDetails") | | 257 | + | 252 | 258 | async def finished(self) -> Optional[str]: | 253 | 259 | return await self._channel.send("finished") | 254 | 260 |
| |
Collapse file Copy file name to clipboardExpand all lines: playwright/_impl/_page.py +11-1Lines changed: 11 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -603,7 +603,12 @@ async def tap( | 603 | 603 | return await self._main_frame.tap(**locals_to_params(locals())) | 604 | 604 |
| 605 | 605 | async def fill( | 606 | | - self, selector: str, value: str, timeout: float = None, noWaitAfter: bool = None | | 606 | + self, | | 607 | + selector: str, | | 608 | + value: str, | | 609 | + timeout: float = None, | | 610 | + noWaitAfter: bool = None, | | 611 | + force: bool = None, | 607 | 612 | ) -> None: | 608 | 613 | return await self._main_frame.fill(**locals_to_params(locals())) | 609 | 614 |
| @@ -644,10 +649,15 @@ async def select_option( | 644 | 649 | element: Union["ElementHandle", List["ElementHandle"]] = None, | 645 | 650 | timeout: float = None, | 646 | 651 | noWaitAfter: bool = None, | | 652 | + force: bool = None, | 647 | 653 | ) -> List[str]: | 648 | 654 | params = locals_to_params(locals()) | 649 | 655 | return await self._main_frame.select_option(**params) | 650 | 656 |
| | 657 | + async def input_value(self, selector: str, timeout: float = None) -> str: | | 658 | + params = locals_to_params(locals()) | | 659 | + return await self._main_frame.input_value(**params) | | 660 | + | 651 | 661 | async def set_input_files( | 652 | 662 | self, | 653 | 663 | selector: str, | |
|