Skip to content

Commit e38b053

Browse files
P4X-ngCopilot
andauthored
Update cdp/target.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 29cc7be commit e38b053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cdp/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def create_target(
385385
:param new_window: *(Optional)* Whether to create a new Window or Tab (false by default, not supported by headless shell).
386386
:param background: *(Optional)* Whether to create the target in background or foreground (false by default, not supported by headless shell).
387387
:param for_tab: **(EXPERIMENTAL)** *(Optional)* Whether to create the target of type "tab".
388-
:param hidden: **(EXPERIMENTAL)** *(Optional)* Whether to create a hidden target. The hidden target is observable via protocol, but not present in the tab UI strip. Cannot be created with ```forTab: true````, ````newWindow: true```` or ````background: false```. The life-time of the tab is limited to the life-time of the session.
388+
:param hidden: **(EXPERIMENTAL)** *(Optional)* Whether to create a hidden target. The hidden target is observable via protocol, but not present in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or `background: false`. The life-time of the tab is limited to the life-time of the session.
389389
:param focus: **(EXPERIMENTAL)** *(Optional)* If specified, the option is used to determine if the new target should be focused or not. By default, the focus behavior depends on the value of the background field. For example, background=false and focus=false will result in the target tab being opened but the browser window remain unchanged (if it was in the background, it will remain in the background) and background=false with focus=undefined will result in the window being focused. Using background: true and focus: true is not supported and will result in an error.
390390
:returns: The id of the page opened.
391391
'''

0 commit comments

Comments
 (0)