Class
DownloadDialogsHandler

The download dialogs handler. Wraps all the download dialog sequences for IE/Firefox into a simple API call.

Definition

Namespace:ArtOfTest.WebAii.Win32.Dialogs

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class DownloadDialogsHandler

Inheritance: objectDownloadDialogsHandler

Constructors

DownloadDialogsHandler(Browser, DialogButton, string, Desktop)

Create the dialog passing it the parent browser and the button to use to dismiss the instance of this dialog.

Declaration

cs-api-definition
public DownloadDialogsHandler(Browser parentBrowser, DialogButton dismissButton, string saveLocation, Desktop desktopObject)

Parameters

parentBrowser

Browser

The parent browser.

dismissButton

DialogButton

The button to use to dismiss the dialog. Accepts: SAVE or CANCEL.

saveLocation

string

The location to save the file if dismiss button is SAVE, else is ignored.

desktopObject

Desktop

The desktop object.

DownloadDialogsHandler(Browser, DialogButton, string, Desktop, int)

Create the dialog passing it the parent browser and the button to use to dismiss the instance of this dialog.

Declaration

cs-api-definition
public DownloadDialogsHandler(Browser parentBrowser, DialogButton dismissButton, string saveLocation, Desktop desktopObject, int initializationTime)

Parameters

parentBrowser

Browser

The parent browser.

dismissButton

DialogButton

The button to use to dismiss the dialog. Accepts: SAVE or CANCEL.

saveLocation

string

The location to save the file if dismiss button is SAVE, else is ignored.

desktopObject

Desktop

The desktop object.

initializationTime

int

Initialization time of each dialog in the dialog sequence in milliseconds

Properties

SaveLocation

Gets/Sets the save location when doing a SAVE.

Declaration

cs-api-definition
public string SaveLocation { get; set; }

Property Value

string

Methods

WaitUntilHandled()

Wait until all dialogs handled. Uses the Settings.ClientReadyTimeout as the timeout.

Declaration

cs-api-definition
public void WaitUntilHandled()

WaitUntilHandled(int)

Wait until all dialogs are handled using the timeout passed in. SetupMonitoring() must be called before every use.

Declaration

cs-api-definition
public void WaitUntilHandled(int timeout)

Parameters

timeout

int