Class CreateTargetCommandSettings
Creates a new page.
public sealed class CreateTargetCommandSettings : ICommand
- Inheritance
-
CreateTargetCommandSettings
- Implements
- Inherited Members
Properties
Background
Whether to create the target in background or foreground (false by default, not supported by headless shell).
[JsonPropertyName("background")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? Background { get; set; }
Property Value
- bool?
BrowserContextId
The browser context to create the page in.
[JsonPropertyName("browserContextId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? BrowserContextId { get; set; }
Property Value
CommandName
Gets the name of the command.
[JsonIgnore]
public string CommandName { get; }
Property Value
EnableBeginFrameControl
Whether BeginFrames for this target will be controlled via DevTools (headless shell only, not supported on MacOS yet, false by default).
[JsonPropertyName("enableBeginFrameControl")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? EnableBeginFrameControl { get; set; }
Property Value
- bool?
Focus
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.
[JsonPropertyName("focus")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? Focus { get; set; }
Property Value
- bool?
ForTab
Whether to create the target of type "tab".
[JsonPropertyName("forTab")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? ForTab { get; set; }
Property Value
- bool?
Height
Frame height in DIP (requires newWindow to be true or headless shell).
[JsonPropertyName("height")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? Height { get; set; }
Property Value
- long?
Hidden
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.
[JsonPropertyName("hidden")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? Hidden { get; set; }
Property Value
- bool?
Left
Frame left origin in DIP (requires newWindow to be true or headless shell).
[JsonPropertyName("left")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? Left { get; set; }
Property Value
- long?
NewWindow
Whether to create a new Window or Tab (false by default, not supported by headless shell).
[JsonPropertyName("newWindow")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? NewWindow { get; set; }
Property Value
- bool?
Top
Frame top origin in DIP (requires newWindow to be true or headless shell).
[JsonPropertyName("top")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? Top { get; set; }
Property Value
- long?
Url
The initial URL the page will be navigated to. An empty string indicates about:blank.
[JsonPropertyName("url")]
public string Url { get; set; }
Property Value
Width
Frame width in DIP (requires newWindow to be true or headless shell).
[JsonPropertyName("width")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? Width { get; set; }
Property Value
- long?
WindowState
Frame window state (requires newWindow to be true or headless shell). Default is normal.
[JsonPropertyName("windowState")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public WindowState? WindowState { get; set; }