Skip to content

Commit 39a9cb1

Browse files
authored
feat(roll): roll Playwright to 1.13.0-next-1625158334000 (#784)
1 parent 9ec64c6 commit 39a9cb1

19 files changed

+534
-37
lines changed

README.md

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

55
| | Linux | macOS | Windows |
66
| :--- | :---: | :---: | :---: |
7-
| Chromium <!-- GEN:chromium-version -->93.0.4530.0<!-- GEN:stop --> ||||
7+
| Chromium <!-- GEN:chromium-version -->93.0.4543.0<!-- GEN:stop --> ||||
88
| WebKit <!-- GEN:webkit-version -->14.2<!-- GEN:stop --> ||||
99
| Firefox <!-- GEN:firefox-version -->89.0<!-- GEN:stop --> ||||
1010

playwright/_impl/_api_structures.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,16 @@ class FilePayload(TypedDict):
119119
name: str
120120
mimeType: str
121121
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]

playwright/_impl/_element_handle.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ async def select_option(
142142
label: Union[str, List[str]] = None,
143143
element: Union["ElementHandle", List["ElementHandle"]] = None,
144144
timeout: float = None,
145+
force: bool = None,
145146
noWaitAfter: bool = None,
146147
) -> List[str]:
147148
params = locals_to_params(
@@ -165,13 +166,20 @@ async def tap(
165166
await self._channel.send("tap", locals_to_params(locals()))
166167

167168
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,
169174
) -> None:
170175
await self._channel.send("fill", locals_to_params(locals()))
171176

172-
async def select_text(self, timeout: float = None) -> None:
177+
async def select_text(self, force: bool = None, timeout: float = None) -> None:
173178
await self._channel.send("selectText", locals_to_params(locals()))
174179

180+
async def input_value(self, timeout: float = None) -> str:
181+
return await self._channel.send("inputValue", locals_to_params(locals()))
182+
175183
async def set_input_files(
176184
self,
177185
files: Union[str, Path, FilePayload, List[Union[str, Path]], List[FilePayload]],

playwright/_impl/_frame.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,12 @@ async def tap(
419419
await self._channel.send("tap", locals_to_params(locals()))
420420

421421
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,
423428
) -> None:
424429
await self._channel.send("fill", locals_to_params(locals()))
425430

@@ -460,6 +465,7 @@ async def select_option(
460465
element: Union["ElementHandle", List["ElementHandle"]] = None,
461466
timeout: float = None,
462467
noWaitAfter: bool = None,
468+
force: bool = None,
463469
) -> List[str]:
464470
params = locals_to_params(
465471
dict(
@@ -471,6 +477,13 @@ async def select_option(
471477
)
472478
return await self._channel.send("selectOption", params)
473479

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+
474487
async def set_input_files(
475488
self,
476489
selector: str,

playwright/_impl/_network.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Union, cast
2121
from urllib import parse
2222

23-
from playwright._impl._api_structures import ResourceTiming
23+
from playwright._impl._api_structures import RemoteAddr, ResourceTiming, SecurityDetails
2424
from playwright._impl._api_types import Error
2525
from playwright._impl._connection import (
2626
ChannelOwner,
@@ -249,6 +249,12 @@ def status_text(self) -> str:
249249
def headers(self) -> Dict[str, str]:
250250
return parse_headers(self._initializer["headers"])
251251

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+
252258
async def finished(self) -> Optional[str]:
253259
return await self._channel.send("finished")
254260

playwright/_impl/_page.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,12 @@ async def tap(
603603
return await self._main_frame.tap(**locals_to_params(locals()))
604604

605605
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,
607612
) -> None:
608613
return await self._main_frame.fill(**locals_to_params(locals()))
609614

@@ -644,10 +649,15 @@ async def select_option(
644649
element: Union["ElementHandle", List["ElementHandle"]] = None,
645650
timeout: float = None,
646651
noWaitAfter: bool = None,
652+
force: bool = None,
647653
) -> List[str]:
648654
params = locals_to_params(locals())
649655
return await self._main_frame.select_option(**params)
650656

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+
651661
async def set_input_files(
652662
self,
653663
selector: str,

0 commit comments

Comments
 (0)