| FilesHelperCountFiles(String, FileType) Method |
Framework to automate tests using Selenium WebDriver
Counts the files of given type.
Namespace: Ocaramba.HelpersAssembly: OcarambaLite (in OcarambaLite.dll) Version: 1.0.0+d8e789f8644d1a9b63485ad7914acf4f489f3ef9
Syntax public static int CountFiles(
string folder,
FileType type
)
Request Example
Parameters
- folder String
- The folder.
- type FileType
- The type.
Return Value
Int32
Number of files in subfolder.
Example How to use it:
var filesNumber = FilesHelper.CountFiles(this.DriverContext.DownloadFolder, FileType.Txt);
See Also