Click or drag to resize

FilesHelperDeleteFile Method

Framework to automate tests using Selenium WebDriver
Delete file in given folder if exists.

Namespace: Ocaramba.Helpers
Assembly: OcarambaLite (in OcarambaLite.dll) Version: 4.2.2
Syntax
C#
public static void DeleteFile(
	string name,
	string subFolder
)
Request Example

Parameters

name  String
The name of file.
subFolder  String
The subFolder.
Example
How to use it:
C#
FilesHelper.DeleteFile("filename.txt", this.DriverContext.DownloadFolder);
See Also