Click or drag to resize

FilesHelperWaitForFileOfGivenName(String, String) Method

Framework to automate tests using Selenium WebDriver
Waits for file of given name with LongTimeout, 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(
	string filesName,
	string folder
)
Request Example

Parameters

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(file, this.DriverContext.DownloadFolder);
See Also