Table of Contents

Method WasOnDownloadStarted

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

WasOnDownloadStarted(string)

Returns true if a download button with the given destination variable and with the property ReturnWhenDownloadIsStarted on the AutomationDownloadButtonOptions set to true has started the file download.

public bool WasOnDownloadStarted(string key)

Parameters

key string

The destination variable that is linked to the specific download button.

Returns

bool

true if the download button has started the download; otherwise, false.

Remarks

note

For this method ever to return true, you have to set .ReturnWhenDownloadIsStarted to true on the AutomationDownloadButtonOptions, in the ConfigOptions of the UIBlockDefinition.

note

Once the download is started, the control is given to the browser, so there is no way to know when the download is finished.