@@ -11569,8 +11569,8 @@ def run(playwright: Playwright):
11569
11569
def pause(self) -> None:
11570
11570
"""Page.pause
11571
11571
11572
- Pauses script execution. Playwright will stop executing the script and wait for the user to either press 'Resume'
11573
- button in the page overlay or to call `playwright.resume()` in the DevTools console.
11572
+ Pauses script execution. Playwright will stop executing the script and wait for the user to either press the
11573
+ 'Resume' button in the page overlay or to call `playwright.resume()` in the DevTools console.
11574
11574
11575
11575
User can inspect selectors or perform manual steps while paused. Resume will continue running the original script
11576
11576
from the place it was paused.
@@ -12255,7 +12255,7 @@ def add_locator_handler(
12255
12255
12256
12256
```py
12257
12257
# Setup the handler.
12258
- def handler():
12258
+ async def handler():
12259
12259
await page.get_by_role(\"button\", name=\"No thanks\").click()
12260
12260
await page.add_locator_handler(page.get_by_text(\"Sign up to the newsletter\"), handler)
12261
12261
@@ -12268,7 +12268,7 @@ def handler():
12268
12268
12269
12269
```py
12270
12270
# Setup the handler.
12271
- def handler():
12271
+ async def handler():
12272
12272
await page.get_by_role(\"button\", name=\"Remind me later\").click()
12273
12273
await page.add_locator_handler(page.get_by_text(\"Confirm your security details\"), handler)
12274
12274
@@ -12283,7 +12283,7 @@ def handler():
12283
12283
12284
12284
```py
12285
12285
# Setup the handler.
12286
- def handler():
12286
+ async def handler():
12287
12287
await page.evaluate(\"window.removeObstructionsForTestIfNeeded()\")
12288
12288
await page.add_locator_handler(page.locator(\"body\"), handler, no_wait_after=True)
12289
12289
@@ -12296,7 +12296,7 @@ def handler():
12296
12296
invocations by setting `times`:
12297
12297
12298
12298
```py
12299
- def handler(locator):
12299
+ async def handler(locator):
12300
12300
await locator.click()
12301
12301
await page.add_locator_handler(page.get_by_label(\"Close\"), handler, times=1)
12302
12302
```
@@ -13952,6 +13952,10 @@ def new_context(
13952
13952
`passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
13953
13953
with an exact match to the request origin that the certificate is valid for.
13954
13954
13955
+ Client certificate authentication is only active when at least one client certificate is provided. If you want to
13956
+ reject all client certificates sent by the server, you need to provide a client certificate with an `origin` that
13957
+ does not match any of the domains you plan to visit.
13958
+
13955
13959
**NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
13956
13960
work by replacing `localhost` with `local.playwright`.
13957
13961
@@ -14185,6 +14189,10 @@ def new_page(
14185
14189
`passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
14186
14190
with an exact match to the request origin that the certificate is valid for.
14187
14191
14192
+ Client certificate authentication is only active when at least one client certificate is provided. If you want to
14193
+ reject all client certificates sent by the server, you need to provide a client certificate with an `origin` that
14194
+ does not match any of the domains you plan to visit.
14195
+
14188
14196
**NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
14189
14197
work by replacing `localhost` with `local.playwright`.
14190
14198
@@ -14598,6 +14606,13 @@ def launch_persistent_context(
14598
14606
**parent** directory of the "Profile Path" seen at `chrome://version`.
14599
14607
14600
14608
Note that browsers do not allow launching multiple instances with the same User Data Directory.
14609
+
14610
+ **NOTE** Chromium/Chrome: Due to recent Chrome policy changes, automating the default Chrome user profile is not
14611
+ supported. Pointing `userDataDir` to Chrome's main "User Data" directory (the profile used for your regular
14612
+ browsing) may result in pages not loading or the browser exiting. Create and use a separate directory (for example,
14613
+ an empty folder) as your automation profile instead. See https://developer.chrome.com/blog/remote-debugging-port
14614
+ for details.
14615
+
14601
14616
channel : Union[str, None]
14602
14617
Browser distribution channel.
14603
14618
@@ -14772,6 +14787,10 @@ def launch_persistent_context(
14772
14787
`passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
14773
14788
with an exact match to the request origin that the certificate is valid for.
14774
14789
14790
+ Client certificate authentication is only active when at least one client certificate is provided. If you want to
14791
+ reject all client certificates sent by the server, you need to provide a client certificate with an `origin` that
14792
+ does not match any of the domains you plan to visit.
14793
+
14775
14794
**NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
14776
14795
work by replacing `localhost` with `local.playwright`.
14777
14796
@@ -18922,6 +18941,10 @@ def new_context(
18922
18941
`passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
18923
18942
with an exact match to the request origin that the certificate is valid for.
18924
18943
18944
+ Client certificate authentication is only active when at least one client certificate is provided. If you want to
18945
+ reject all client certificates sent by the server, you need to provide a client certificate with an `origin` that
18946
+ does not match any of the domains you plan to visit.
18947
+
18925
18948
**NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
18926
18949
work by replacing `localhost` with `local.playwright`.
18927
18950
0 commit comments