public class WatirUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY_MATCHER |
| Constructor and Description |
|---|
WatirUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
copyDirAndFiles(File source,
File destination)
Copies the whole disk directory/file structure starting from the source path to the destination
path.
|
static Integer |
getSystemDoubleClickTimeMs()
Returns the platform double click timeout, that is the time that separates two clicks treated
as a double click from two clicks treated as two single clicks.
|
static StringBuffer |
sanitizePath(String input)
Sanitize the given filename/path, so that (1) it is not surrounded with quotation marks "", (2)
all occurences of "\\" are changed to a "/", and (3) all occurences of "\" are changed to a
"/".
|
static boolean |
textMatchesWithANY(String haystack,
String needle)
Compares haystack and needle taking into the account that the needle may contain any number of
ANY_MATCHER occurrences, that will be matched to any substring in haystack, i.e.
|
public static final String ANY_MATCHER
public static Integer getSystemDoubleClickTimeMs()
public static StringBuffer sanitizePath(String input)
input - the input pathpublic static boolean copyDirAndFiles(File source, File destination)
source - the source path, may designate either a file or a directorydestination - the destination pathpublic static boolean textMatchesWithANY(String haystack, String needle)
haystack - the text that will be compared, may not contain any ANY_MATCHER occurrenceneedle - the text that will be used for comparision, may contain any number of
ANY_MATCHER occurrencesCopyright © 2013. All Rights Reserved.