ClassDownloadDialogsHandler
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:
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
public DownloadDialogsHandler(Browser parentBrowser, DialogButton dismissButton, string saveLocation, Desktop desktopObject)
Parameters
parentBrowser
The parent browser.
dismissButton
The button to use to dismiss the dialog. Accepts: SAVE or CANCEL.
saveLocation
The location to save the file if dismiss button is SAVE, else is ignored.
desktopObject
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
public DownloadDialogsHandler(Browser parentBrowser, DialogButton dismissButton, string saveLocation, Desktop desktopObject, int initializationTime)
Parameters
parentBrowser
The parent browser.
dismissButton
The button to use to dismiss the dialog. Accepts: SAVE or CANCEL.
saveLocation
The location to save the file if dismiss button is SAVE, else is ignored.
desktopObject
The desktop object.
initializationTime
Initialization time of each dialog in the dialog sequence in milliseconds
Properties
SaveLocation
Gets/Sets the save location when doing a SAVE.
Methods
WaitUntilHandled()
Wait until all dialogs handled. Uses the Settings.ClientReadyTimeout as the timeout.
Declaration
public void WaitUntilHandled()
WaitUntilHandled(int)
Wait until all dialogs are handled using the timeout passed in. SetupMonitoring() must be called before every use.