or
manager.DialogMonitor.AddDialog(ieDownloadDialog);
manager.DialogMonitor.AddDialog(saveas);
manager.DialogMonitor.AddDialog(ieDownloadCompleteDialog);
manager.DialogMonitor.Start();
button.Click();
ieDownloadDialog.WaitUntilHandled(CurrentEnvironment.LargeTimeOut);
saveas.WaitUntilHandled(CurrentEnvironment.LargeTimeOut);
//ieDownloadCompleteDialog.WaitUntilHandled(CurrentEnvironment.TimeOut);
manager.DialogMonitor.RemoveDialog(ieDownloadDialog);
manager.DialogMonitor.RemoveDialog(saveas);
manager.DialogMonitor.RemoveDialog(ieDownloadCompleteDialog);
manager.DialogMonitor.Stop();
var handler =
new
DownloadDialogsHandler(activeBrowser, DialogButton.SAVE, path, desktop);
The following is what saves file, but it doesn't specifiy the location given on the variable path, it just saves to the default directory and default filename:
button.Download(
false
, DownloadOption.Save, path, 60000);
Can anyone help with this? Thanks in advance.