@@ -784,6 +784,7 @@ async def type(self, text: str, *, delay: float = None) -> NoneType:
784
784
```
785
785
786
786
> NOTE: Modifier keys DO NOT effect `keyboard.type`. Holding down `Shift` will not type the text in upper case.
787
+ > NOTE: For characters that are not on a US keyboard, only an `input` event will be sent.
787
788
788
789
Parameters
789
790
----------
@@ -6228,6 +6229,9 @@ async def emulate_media(
6228
6229
) -> NoneType :
6229
6230
"""Page.emulate_media
6230
6231
6232
+ This method changes the `CSS media type` through the `media` argument, and/or the `'prefers-colors-scheme'` media
6233
+ feature, using the `colorScheme` argument.
6234
+
6231
6235
```py
6232
6236
await page.evaluate(\" matchMedia('screen').matches\" )
6233
6237
# → True
@@ -8907,9 +8911,11 @@ async def new_context(
8907
8911
accept_downloads : Union[bool, NoneType]
8908
8912
Whether to automatically download all the attachments. Defaults to `false` where all the downloads are canceled.
8909
8913
proxy : Union[{server: str, bypass: Union[str, NoneType], username: Union[str, NoneType], password: Union[str, NoneType]}, NoneType]
8910
- Network proxy settings to use with this context. Note that browser needs to be launched with the global proxy for this
8911
- option to work. If all contexts override the proxy, global proxy will be never used and can be any string, for example
8912
- `launch({ proxy: { server: 'per-context' } })`.
8914
+ Network proxy settings to use with this context.
8915
+
8916
+ > NOTE: For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all
8917
+ contexts override the proxy, global proxy will be never used and can be any string, for example `launch({ proxy: {
8918
+ server: 'http://per-context' } })`.
8913
8919
record_har_path : Union[pathlib.Path, str, NoneType]
8914
8920
Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into the specified HAR file on the
8915
8921
filesystem. If not specified, the HAR is not recorded. Make sure to call `browser_context.close()` for the HAR to
@@ -9052,9 +9058,11 @@ async def new_page(
9052
9058
accept_downloads : Union[bool, NoneType]
9053
9059
Whether to automatically download all the attachments. Defaults to `false` where all the downloads are canceled.
9054
9060
proxy : Union[{server: str, bypass: Union[str, NoneType], username: Union[str, NoneType], password: Union[str, NoneType]}, NoneType]
9055
- Network proxy settings to use with this context. Note that browser needs to be launched with the global proxy for this
9056
- option to work. If all contexts override the proxy, global proxy will be never used and can be any string, for example
9057
- `launch({ proxy: { server: 'per-context' } })`.
9061
+ Network proxy settings to use with this context.
9062
+
9063
+ > NOTE: For Chromium on Windows the browser needs to be launched with the global proxy for this option to work. If all
9064
+ contexts override the proxy, global proxy will be never used and can be any string, for example `launch({ proxy: {
9065
+ server: 'http://per-context' } })`.
9058
9066
record_har_path : Union[pathlib.Path, str, NoneType]
9059
9067
Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into the specified HAR file on the
9060
9068
filesystem. If not specified, the HAR is not recorded. Make sure to call `browser_context.close()` for the HAR to
@@ -9249,6 +9257,7 @@ async def launch(
9249
9257
"chrome-beta" ,
9250
9258
"chrome-canary" ,
9251
9259
"chrome-dev" ,
9260
+ "firefox-stable" ,
9252
9261
"msedge" ,
9253
9262
"msedge-beta" ,
9254
9263
"msedge-canary" ,
@@ -9304,7 +9313,7 @@ async def launch(
9304
9313
Path to a browser executable to run instead of the bundled one. If `executablePath` is a relative path, then it is
9305
9314
resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium, Firefox
9306
9315
or WebKit, use at your own risk.
9307
- channel : Union["chrome", "chrome-beta", "chrome-canary", "chrome-dev", "msedge", "msedge-beta", "msedge-canary", "msedge-dev", NoneType]
9316
+ channel : Union["chrome", "chrome-beta", "chrome-canary", "chrome-dev", "firefox-stable", " msedge", "msedge-beta", "msedge-canary", "msedge-dev", NoneType]
9308
9317
Browser distribution channel. Read more about using
9309
9318
[Google Chrome and Microsoft Edge](./browsers.md#google-chrome--microsoft-edge).
9310
9319
args : Union[List[str], NoneType]
@@ -9383,6 +9392,7 @@ async def launch_persistent_context(
9383
9392
"chrome-beta" ,
9384
9393
"chrome-canary" ,
9385
9394
"chrome-dev" ,
9395
+ "firefox-stable" ,
9386
9396
"msedge" ,
9387
9397
"msedge-beta" ,
9388
9398
"msedge-canary" ,
@@ -9440,7 +9450,7 @@ async def launch_persistent_context(
9440
9450
[Chromium](https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md#introduction) and
9441
9451
[Firefox](https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options#User_Profile). Note that Chromium's user
9442
9452
data directory is the **parent** directory of the "Profile Path" seen at `chrome://version`.
9443
- channel : Union["chrome", "chrome-beta", "chrome-canary", "chrome-dev", "msedge", "msedge-beta", "msedge-canary", "msedge-dev", NoneType]
9453
+ channel : Union["chrome", "chrome-beta", "chrome-canary", "chrome-dev", "firefox-stable", " msedge", "msedge-beta", "msedge-canary", "msedge-dev", NoneType]
9444
9454
Browser distribution channel. Read more about using
9445
9455
[Google Chrome and Microsoft Edge](./browsers.md#google-chrome--microsoft-edge).
9446
9456
executable_path : Union[pathlib.Path, str, NoneType]
0 commit comments