@@ -11569,8 +11569,8 @@ def run(playwright: Playwright):
1156911569 def pause(self) -> None:
1157011570 """Page.pause
1157111571
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.
1157411574
1157511575 User can inspect selectors or perform manual steps while paused. Resume will continue running the original script
1157611576 from the place it was paused.
@@ -12255,7 +12255,7 @@ def add_locator_handler(
1225512255
1225612256 ```py
1225712257 # Setup the handler.
12258- def handler():
12258+ async def handler():
1225912259 await page.get_by_role(\"button\", name=\"No thanks\").click()
1226012260 await page.add_locator_handler(page.get_by_text(\"Sign up to the newsletter\"), handler)
1226112261
@@ -12268,7 +12268,7 @@ def handler():
1226812268
1226912269 ```py
1227012270 # Setup the handler.
12271- def handler():
12271+ async def handler():
1227212272 await page.get_by_role(\"button\", name=\"Remind me later\").click()
1227312273 await page.add_locator_handler(page.get_by_text(\"Confirm your security details\"), handler)
1227412274
@@ -12283,7 +12283,7 @@ def handler():
1228312283
1228412284 ```py
1228512285 # Setup the handler.
12286- def handler():
12286+ async def handler():
1228712287 await page.evaluate(\"window.removeObstructionsForTestIfNeeded()\")
1228812288 await page.add_locator_handler(page.locator(\"body\"), handler, no_wait_after=True)
1228912289
@@ -12296,7 +12296,7 @@ def handler():
1229612296 invocations by setting `times`:
1229712297
1229812298 ```py
12299- def handler(locator):
12299+ async def handler(locator):
1230012300 await locator.click()
1230112301 await page.add_locator_handler(page.get_by_label(\"Close\"), handler, times=1)
1230212302 ```
@@ -13952,6 +13952,10 @@ def new_context(
1395213952 `passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
1395313953 with an exact match to the request origin that the certificate is valid for.
1395413954
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+
1395513959 **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
1395613960 work by replacing `localhost` with `local.playwright`.
1395713961
@@ -14185,6 +14189,10 @@ def new_page(
1418514189 `passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
1418614190 with an exact match to the request origin that the certificate is valid for.
1418714191
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+
1418814196 **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
1418914197 work by replacing `localhost` with `local.playwright`.
1419014198
@@ -14598,6 +14606,13 @@ def launch_persistent_context(
1459814606 **parent** directory of the "Profile Path" seen at `chrome://version`.
1459914607
1460014608 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+
1460114616 channel : Union[str, None]
1460214617 Browser distribution channel.
1460314618
@@ -14772,6 +14787,10 @@ def launch_persistent_context(
1477214787 `passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
1477314788 with an exact match to the request origin that the certificate is valid for.
1477414789
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+
1477514794 **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
1477614795 work by replacing `localhost` with `local.playwright`.
1477714796
@@ -18922,6 +18941,10 @@ def new_context(
1892218941 `passphrase` property should be provided if the certificate is encrypted. The `origin` property should be provided
1892318942 with an exact match to the request origin that the certificate is valid for.
1892418943
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+
1892518948 **NOTE** When using WebKit on macOS, accessing `localhost` will not pick up client certificates. You can make it
1892618949 work by replacing `localhost` with `local.playwright`.
1892718950
0 commit comments