CreateTargetParameter
Constructors
Properties
Whether to create the target in background or foreground (false by default, not supported by headless shell).
The browser context to create the page in.
Whether BeginFrames for this target will be controlled via DevTools (headless shell only, not supported on MacOS yet, false by default).
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.
Frame window state (requires newWindow to be true or headless shell). Default is normal.