Click or drag to resize

FilesHelperWaitForFileOfGivenName(String, String, Boolean) 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: 4.2.6+43a78d4b91293779f9bddc600324863f323e0ac6
Syntax
C#
public static void WaitForFileOfGivenName(
	string filesName,
	string folder,
	bool checkSize
)
Request Example

Parameters

filesName  String
Name of the files.
folder  String
The folder.
checkSize  Boolean
Check if the size, in bytes, of the current file > 0.
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, true);
See Also