 | 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: 4.2.2
Syntaxpublic 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.
ExampleHow to use it:
var filesNumber = FilesHelper.CountFiles(this.DriverContext.DownloadFolder, FileType.Txt);
See Also