Table of Contents

Class LaunchFilesInAppCommandSettings

Namespace
OpenQA.Selenium.DevTools.V148.PWA
Assembly
Selenium.WebDriver.dll

Opens one or more local files from an installed web app identified by its manifestId. The web app needs to have file handlers registered to process the files. The API returns one or more page Target.TargetIDs which can be used to attach to via Target.attachToTarget or similar APIs. If some files in the parameters cannot be handled by the web app, they will be ignored. If none of the files can be handled, this API returns an error. If no files are provided as the parameter, this API also returns an error.

According to the definition of the file handlers in the manifest file, one Target.TargetID may represent a page handling one or more files. The order of the returned Target.TargetIDs is not guaranteed.

TODO(crbug.com/339454034): Check the existences of the input files.

public sealed class LaunchFilesInAppCommandSettings : ICommand
Inheritance
LaunchFilesInAppCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Files

Gets or sets the files

[JsonPropertyName("files")]
public string[] Files { get; set; }

Property Value

string[]

ManifestId

Gets or sets the manifestId

[JsonPropertyName("manifestId")]
public string ManifestId { get; set; }

Property Value

string