Class CreateCommandParameters
- Namespace
- WebDriverBiDi.BrowsingContext
- Assembly
- WebDriverBiDi.dll
Provides parameters for the browsingContext.create command.
public class CreateCommandParameters : CommandParameters<CreateCommandResult>
- Inheritance
-
CreateCommandParameters
- Inherited Members
Constructors
CreateCommandParameters(CreateType)
Initializes a new instance of the CreateCommandParameters class.
public CreateCommandParameters(CreateType createType)
Parameters
createTypeCreateTypeThe type of browsing context to create.
Properties
CreateType
Gets or sets the type of browsing context (tab or window) to create.
[JsonPropertyName("type")]
public CreateType CreateType { get; set; }
Property Value
IsCreatedInBackground
Gets or sets a value indicating whether to create the new browsing context in the background.
[JsonPropertyName("background")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? IsCreatedInBackground { get; set; }
Property Value
- bool?
MethodName
Gets the method name of the command.
[JsonIgnore]
public override string MethodName { get; }
Property Value
ReferenceContextId
Gets or sets the ID of an existing top-level browsing context used as a reference for the
new context. A new tab should be placed in the same OS window, next to it, and it supplies
the user context when UserContextId is not set. A context that is not
top-level is rejected as invalid argument.
[JsonPropertyName("referenceContext")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ReferenceContextId { get; set; }
Property Value
UserContextId
Gets or sets the ID of the user context in which to create the new browsing context.
[JsonPropertyName("userContext")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? UserContextId { get; set; }