public class SeleniumUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SeleniumUtils.SeleniumPattern
string-matching pattern of SeleniumIDE.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> String |
convertToString(T result)
Convert to String from the result of execute().
|
static boolean |
isElementNotFound(RuntimeException e)
Check if Exception type is "element not found".
|
static String |
normalizeSpaces(String str)
Unifty U+0020 and U+00A0, Trim, and compress spaces in string.
|
static boolean |
patternMatches(String pattern,
CharSequence input)
String-match pattern.
|
public static boolean patternMatches(String pattern, CharSequence input)
pattern - pattern. prefix is "glob:", "regexp:", "regexpi:", or "exact:".input - input string.public static String normalizeSpaces(String str)
str - string.public static <T> String convertToString(T result)
T - the type of result object.result - the result of execute().public static boolean isElementNotFound(RuntimeException e)
e - RuntimeExceptionCopyright © 2017. All rights reserved.