Table of Contents

Class SetFilesCommandParameters

Namespace
WebDriverBiDi.Input
Assembly
WebDriverBiDi.dll

Provides parameters for the input.setFiles command.

public class SetFilesCommandParameters : CommandParameters<SetFilesCommandResult>
Inheritance
SetFilesCommandParameters
Inherited Members

Constructors

SetFilesCommandParameters(string, SharedReference)

Initializes a new instance of the SetFilesCommandParameters class.

public SetFilesCommandParameters(string browsingContextId, SharedReference element)

Parameters

browsingContextId string

The browsing context ID containing the element for which to set the files.

element SharedReference

The element for which to set the file list. Must be of type {input type="file"}.

Properties

BrowsingContextId

Gets or sets the browsing context ID containing the element for which to set the files.

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

Property Value

string

Element

Gets or sets the element for which to set the file list. Note that the element must be of type {input type="file"}.

[JsonPropertyName("element")]
public SharedReference Element { get; set; }

Property Value

SharedReference

Files

Gets the list of files to be set on the element.

[JsonPropertyName("files")]
public List<string> Files { get; }

Property Value

List<string>

MethodName

Gets the method name of the command.

[JsonIgnore]
public override string MethodName { get; }

Property Value

string