Class SetClientWindowStateCommandResult
- Namespace
- WebDriverBiDi.Browser
- Assembly
- WebDriverBiDi.dll
Result for setting the client window state using the browser.setClientWindowState command.
public record SetClientWindowStateCommandResult : CommandResult, IEquatable<CommandResult>, IEquatable<SetClientWindowStateCommandResult>
- Inheritance
-
SetClientWindowStateCommandResult
- Implements
- Inherited Members
Remarks
This result class is essentially a copy of ClientWindowInfo, as that is the type specified by the protocol. This is structured this way as commands must return a type descending from CommandResult, and C# does not permit multiple inheritance. Should the structure of the info object change, this class will require updates to match.
Constructors
SetClientWindowStateCommandResult(SetClientWindowStateCommandResult)
protected SetClientWindowStateCommandResult(SetClientWindowStateCommandResult original)
Parameters
originalSetClientWindowStateCommandResult
Properties
ClientWindowId
Gets the ID of the client window.
[JsonPropertyName("clientWindow")]
[JsonInclude]
[JsonRequired]
public string ClientWindowId { get; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Height
Gets the value in CSS pixels of the height of the client window.
[JsonPropertyName("height")]
[JsonInclude]
[JsonRequired]
public ulong Height { get; }
Property Value
IsActive
Gets a value indicating whether a client window is active, usually implying it has focus in the operating system.
[JsonPropertyName("active")]
[JsonInclude]
[JsonRequired]
public bool IsActive { get; }
Property Value
State
Gets a value indicating the state of the client window.
[JsonPropertyName("state")]
[JsonInclude]
[JsonRequired]
public ClientWindowState State { get; }
Property Value
Width
Gets the value in CSS pixels of the width of the client window.
[JsonPropertyName("width")]
[JsonInclude]
[JsonRequired]
public ulong Width { get; }
Property Value
X
Gets the value in CSS pixels of the left edge of the client window.
[JsonPropertyName("x")]
[JsonInclude]
[JsonRequired]
public long X { get; }
Property Value
Y
Gets the value in CSS pixels of the top edge of the client window.
[JsonPropertyName("y")]
[JsonInclude]
[JsonRequired]
public long Y { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(SetClientWindowStateCommandResult?)
public virtual bool Equals(SetClientWindowStateCommandResult? other)
Parameters
Returns
Equals(CommandResult?)
public override sealed bool Equals(CommandResult? other)
Parameters
otherCommandResult
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SetClientWindowStateCommandResult?, SetClientWindowStateCommandResult?)
public static bool operator ==(SetClientWindowStateCommandResult? left, SetClientWindowStateCommandResult? right)
Parameters
Returns
operator !=(SetClientWindowStateCommandResult?, SetClientWindowStateCommandResult?)
public static bool operator !=(SetClientWindowStateCommandResult? left, SetClientWindowStateCommandResult? right)