Click or drag to resize

FilesHelperWaitForFileOfGivenName(Double, String, String) Method

Framework to automate tests using Selenium WebDriver
Waits for file with given name with given timeout, checks the size of the current file.

Namespace: Ocaramba.Helpers
Assembly: OcarambaLite (in OcarambaLite.dll) Version: 1.0.0+d8e789f8644d1a9b63485ad7914acf4f489f3ef9
Syntax
C#
public static void WaitForFileOfGivenName(
	double waitTime,
	string filesName,
	string folder
)
Request Example

Parameters

waitTime  Double
Wait timeout.
filesName  String
Name of the files.
folder  String
The folder.
Example
How to use it:
C#
var file = "some-file.txt"
this.Driver.GetElement(this.fileLink.Format(file), "Click on file").Click();
FilesHelper.WaitForFileOfGivenName(BaseConfiguration.LongTimeout, file, this.DriverContext.DownloadFolder);
See Also