Skip to content

Commit 2152eaa

Browse files
authored
feat(roll): roll Playwright 1.17.0-next-1636463074000 (#1013)
1 parent bc23047 commit 2152eaa

29 files changed

+3275
-27
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 -->97.0.4681.0<!-- GEN:stop --> ||||
7+
| Chromium <!-- GEN:chromium-version -->98.0.4695.0<!-- GEN:stop --> ||||
88
| WebKit <!-- GEN:webkit-version -->15.4<!-- GEN:stop --> ||||
9-
| Firefox <!-- GEN:firefox-version -->93.0<!-- GEN:stop --> ||||
9+
| Firefox <!-- GEN:firefox-version -->94.0.1<!-- GEN:stop --> ||||
1010

1111
## Documentation
1212

playwright/_impl/_api_structures.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,15 @@ class NameValue(TypedDict):
159159

160160
HeadersArray = List[NameValue]
161161
Headers = Dict[str, str]
162+
163+
164+
class ServerFilePayload(TypedDict):
165+
name: str
166+
mimeType: str
167+
buffer: str
168+
169+
170+
class FormField(TypedDict, total=False):
171+
name: str
172+
value: Optional[str]
173+
file: Optional[ServerFilePayload]

playwright/_impl/_browser_context.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from_nullable_channel,
3434
)
3535
from playwright._impl._event_context_manager import EventContextManagerImpl
36+
from playwright._impl._fetch import APIRequestContext
3637
from playwright._impl._frame import Frame
3738
from playwright._impl._helper import (
3839
RouteHandler,
@@ -82,6 +83,9 @@ def __init__(
8283
self._background_pages: Set[Page] = set()
8384
self._service_workers: Set[Worker] = set()
8485
self._tracing = Tracing(self)
86+
self._request: APIRequestContext = from_channel(
87+
initializer["APIRequestContext"]
88+
)
8589
self._channel.on(
8690
"bindingCall",
8791
lambda params: self._on_binding(from_channel(params["binding"])),
@@ -411,3 +415,7 @@ async def new_cdp_session(self, page: Union[Page, Frame]) -> CDPSession:
411415
@property
412416
def tracing(self) -> Tracing:
413417
return self._tracing
418+
419+
@property
420+
def request(self) -> "APIRequestContext":
421+
return self._request

0 commit comments

Comments
 (0)