Table of Contents

Interface IHasDownloads

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Interface indicating the driver can handle downloading remote files.

public interface IHasDownloads

Methods

DeleteDownloadableFiles()

Deletes the downloadable files.

void DeleteDownloadableFiles()

DownloadFile(string, string)

Downloads a file with the specified file name and returns a dictionary containing the downloaded file's data.

void DownloadFile(string fileName, string targetDirectory)

Parameters

fileName string

The name of the file to be downloaded.

targetDirectory string

The location to save the downloaded file.

GetDownloadableFiles()

Retrieves the downloadable files.

IReadOnlyList<string> GetDownloadableFiles()

Returns

IReadOnlyList<string>

A read-only list of file names available for download.