DMBrowser.Downloading Method

Definition

Supports file download from an external URL during recording. It doesn’t initiate a file download. During playback, this method waits for the externally initiated File Download to be finished.

Requires file name and file source URL strings as parameters. The default timeout is 125 sec.

public virtual void Downloading(string fileName, string url, TimeSpan downloadingTimeout)

Parameters

 fileName  string

 url  string

 downloadingTimeout  TimeSpan

Examples

//File Download to the system storage  
Step (2, "Download & Generate Test Files - http://ipv4.download.thinkbroadband.com/5MB.zip");
tab0.Downloading ("5MB.zip", "http://ipv4.download.thinkbroadband.com/5MB.zip");
tab0.Para ("//P[normalize-space()=\"These test files will be downloaded in full over your network connection from high speed servers. These files can be used to test your network download speed.\"]/preceding-sibling::P[1]", "//P[normalize-space(text())=\"These test files will be downloaded in full over your network connection from high speed servers. These files can be used to test your network download speed.\"]/preceding-sibling::P[1]", "/HTML/BODY/DIV/DIV/P[1]").Click ();