Table of Contents

Class FileDialogOpenedEventArgs

Namespace
WebDriverBiDi.Input
Assembly
WebDriverBiDi.dll

Object containing event data for the input.fileDialogOpened event.

public record FileDialogOpenedEventArgs : WebDriverBiDiEventArgs, IEquatable<WebDriverBiDiEventArgs>, IEquatable<FileDialogOpenedEventArgs>
Inheritance
FileDialogOpenedEventArgs
Implements
Inherited Members

Constructors

FileDialogOpenedEventArgs()

Initializes a new instance of the FileDialogOpenedEventArgs class.

[JsonConstructor]
public FileDialogOpenedEventArgs()

FileDialogOpenedEventArgs(FileDialogOpenedEventArgs)

protected FileDialogOpenedEventArgs(FileDialogOpenedEventArgs original)

Parameters

original FileDialogOpenedEventArgs

Properties

BrowsingContextId

Gets the ID of the browsing context for which the file dialog was opened.

[JsonPropertyName("context")]
[JsonRequired]
[JsonInclude]
public string BrowsingContextId { get; }

Property Value

string

Element

Gets the reference to the element that invoked the file dialog, if present. Call ToSharedReference() on the returned value to obtain a mutable SharedReference for use as an argument to subsequent commands.

[JsonPropertyName("element")]
[JsonInclude]
public SharedReferenceInfo? Element { get; }

Property Value

SharedReferenceInfo

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

IsMultiple

Gets a value indicating whether the file dialog supports multiple file names.

[JsonPropertyName("multiple")]
[JsonRequired]
[JsonInclude]
public bool IsMultiple { get; }

Property Value

bool

UserContextId

Gets the ID of the user context for which the file dialog was opened.

[JsonPropertyName("userContext")]
[JsonInclude]
public string? UserContextId { get; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(FileDialogOpenedEventArgs?)

public virtual bool Equals(FileDialogOpenedEventArgs? other)

Parameters

other FileDialogOpenedEventArgs

Returns

bool

Equals(WebDriverBiDiEventArgs?)

public override sealed bool Equals(WebDriverBiDiEventArgs? other)

Parameters

other WebDriverBiDiEventArgs

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(FileDialogOpenedEventArgs?, FileDialogOpenedEventArgs?)

public static bool operator ==(FileDialogOpenedEventArgs? left, FileDialogOpenedEventArgs? right)

Parameters

left FileDialogOpenedEventArgs
right FileDialogOpenedEventArgs

Returns

bool

operator !=(FileDialogOpenedEventArgs?, FileDialogOpenedEventArgs?)

public static bool operator !=(FileDialogOpenedEventArgs? left, FileDialogOpenedEventArgs? right)

Parameters

left FileDialogOpenedEventArgs
right FileDialogOpenedEventArgs

Returns

bool