| FilesHelperCopyFile(Double, String, String, String, String) Method |
Framework to automate tests using Selenium WebDriver
Copy the file and check if file was copied with given timeout, shorten the name of file if needed be removing "_".
Namespace: Ocaramba.HelpersAssembly: OcarambaLite (in OcarambaLite.dll) Version: 1.0.0+d8e789f8644d1a9b63485ad7914acf4f489f3ef9
Syntax public static string CopyFile(
double waitTime,
string oldName,
string newName,
string oldSubFolder,
string newSubFolder
)
Request Example
Parameters
- waitTime Double
- Timeout for checking if file was removed.
- oldName String
- The old name.
- newName String
- The new name.
- oldSubFolder String
- The old subFolder.
- newSubFolder String
- The new subFolder.
Return Value
StringThe new name in case its shorten.
Example How to use it:
FilesHelper.CopyFile(BaseConfiguration.ShortTimeout, fileName, newName, this.DriverContext.DownloadFolder + "\\", this.DriverContext.DownloadFolder + "\\");
See Also