-
Notifications
You must be signed in to change notification settings - Fork 0
Helpers
Avrigeanu Laurian edited this page Sep 6, 2022
·
2 revisions
As the name implies, this class is full of helper methods unrelated to Web or Win events, they are specialized QoL methods.
This method will wait for all Chrome downloads to finish and if there are any dangerous files, it will accept them, then it will return the name of the files that were downloaded in your default Chrome download folder.
| Mandatory Parameters | Optional Parameters |
|---|---|
ChromeDriver chromeDriver |
double refreshRateInSeconds (default 0.250) |
Example:
var DownloadedFileList = Helpers.HandleDownloads(chromeDriver);
This method will send an e-mail. The method has no dependencies on any software.
| Mandatory Parameters |
|---|
string from |
string[] recipients |
string subject |
string body |
string server |
string userName |
string password |
int port |
Example:
Helpers.SendEmail("fromMe", recipients, "theSubject", "theBody", "theServer", "myUserName", "myPassword", myPort);