DM浏览器下载方法

定义

从远程 URL 下载文件以提供给 OpenFileDialogHandler 方法。

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

参数

 文件名  字符串

 网址  字符串

 下载超时  时间跨度

例子

tab0.GoTo ("https://gofile.io/uploadFiles");
//File Upload from the external URL
tab0.Link ("//P[normalize-space()=\"Upload Files\"]/..", "//LI[@ID=\"li-uploadFiles\"]//A", "//LI[@ID=\"li-api\"]/preceding-sibling::LI[1]//A").Click ();
tab0.Download ("Q3UTw.htm", "https://dropmefiles.com/Q3UTw");
OpenFileDialogHandler (OpenFileDialogButton.Ok, new string[1] {"Q3UTR.htm"});
tab0.Button ("//BUTTON[normalize-space()=\"Click here\"]", "//BUTTON[normalize-space(text())=\"Click here\"]", "//BUTTON[@ID=\"dropZoneBtnSelect\"]").Click ();