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: 4.2.6+43a78d4b91293779f9bddc600324863f323e0ac6
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