Click or drag to resize

FilesHelperWaitForFileOfGivenType(FileType, Int32, String) Method

Framework to automate tests using Selenium WebDriver
Waits for file of given type for LongTimeout till number of files increase in sub folder, 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 WaitForFileOfGivenType(
	FileType type,
	int filesNumber,
	string folder
)
Request Example

Parameters

type  FileType
The type.
filesNumber  Int32
The files number.
folder  String
The folder.
Example
How to use it:
C#
var filesNumber = FilesHelper.CountFiles(this.DriverContext.DownloadFolder, FileType.Txt);
this.Driver.GetElement(this.fileLink.Format("some-file.txt")).Click();
FilesHelper.WaitForFileOfGivenType(FileType.Txt, filesNumber, this.DriverContext.DownloadFolder);
See Also