public class SRUtilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
eq |
static java.lang.String |
EXACT_PATTERN |
static java.lang.String |
GLOB_PATTERN |
(package private) static java.lang.String |
q |
static java.lang.String |
REGEXP_PATTERN |
static java.lang.String |
REGEXPI_PATTERN |
(package private) static java.lang.String |
s |
(package private) static java.lang.String |
xp |
Constructor and Description |
---|
SRUtilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsGlobMatchWildcards(java.lang.String text) |
static boolean |
containsStringMatchPattern(java.lang.String text) |
static boolean |
isExactMatchPattern(java.lang.String text) |
static boolean |
isGlobMatchPattern(java.lang.String text) |
static boolean |
isRegexpiMatchPattern(java.lang.String text) |
static boolean |
isRegexpMatchPattern(java.lang.String text) |
static boolean |
patternMatch(java.lang.String text,
java.lang.String pattern)
Attempt a Selenium 1.0 pattern match on a given text string.
|
static void |
setLocatorParam(com.sebuilder.interpreter.Step step,
java.lang.String rs) |
static java.lang.String |
stripStringMatchPatternPrefix(java.lang.String pattern) |
public static final java.lang.String GLOB_PATTERN
public static final java.lang.String REGEXP_PATTERN
public static final java.lang.String REGEXPI_PATTERN
public static final java.lang.String EXACT_PATTERN
static final java.lang.String s
static final java.lang.String q
static final java.lang.String eq
static final java.lang.String xp
public static void setLocatorParam(com.sebuilder.interpreter.Step step, java.lang.String rs)
public static boolean containsStringMatchPattern(java.lang.String text)
text
- public static boolean containsGlobMatchWildcards(java.lang.String text)
public static boolean isGlobMatchPattern(java.lang.String text)
public static boolean isExactMatchPattern(java.lang.String text)
public static boolean isRegexpMatchPattern(java.lang.String text)
public static boolean isRegexpiMatchPattern(java.lang.String text)
public static java.lang.String stripStringMatchPatternPrefix(java.lang.String pattern)
public static boolean patternMatch(java.lang.String text, java.lang.String pattern)
Selenium 1.0 patterns are:
text
- String to compare against the patternpattern
- String that may include the pattern prefix for the type of comparison to be
performed. If no pattern prefix is present, then 'glob' is assumed.Copyright © SAS Institute. All Rights Reserved.