Clicks a control using the MouseClick or Click and handles the download dialogs
sequence that is produced.
Namespace: ArtOfTest.WebAii.Controls.HtmlControls
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
public virtual void Download( bool clickUsingDesktopMouse, DownloadOption downloadOption, string saveLocation, int downloadTimeout )
Parameters
- clickUsingDesktopMouse
- Type: SystemBoolean
When set to True Desktop Mouse.Click will be used. Make sure the HtmlControl is visible in the browsers window first before using Desktop Mouse.Click. When set to False HtmlControl.Click will be used. - downloadOption
- Type: ArtOfTest.WebAii.Controls.HtmlControlsDownloadOption
The download option to use (Save or Cancel). - saveLocation
- Type: SystemString
The save location on disk when the download option is set to Save. - downloadTimeout
- Type: SystemInt32
The number of milliseconds to wait until all download dialogs are handled.
Exceptions
Exception | Condition |
---|---|
TimeoutException | Timed out waiting for the download dialogs to be handled. |
See Also