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 |
json |
(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.Object locatorObj,
java.lang.String locatorParamName) |
static void |
setLocatorParam(com.sebuilder.interpreter.Step step,
java.lang.String rs) |
static void |
setLocatorParam(com.sebuilder.interpreter.Step step,
java.lang.String rs,
java.lang.String locatorParamName) |
static void |
setLocatorParam(com.sebuilder.interpreter.Step step,
java.lang.String locatorParamName,
java.lang.String type,
java.lang.String value)
Set step's locator by type and value.
|
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
static final java.lang.String json
public static void setLocatorParam(com.sebuilder.interpreter.Step step, java.lang.String rs)
public static void setLocatorParam(com.sebuilder.interpreter.Step step, java.lang.Object locatorObj, java.lang.String locatorParamName)
step
- Step, a step in sebuilder's scriptlocatorObj
- Object, the locator object.locatorParamName
- String, the name of locator parameter, it could be 'locator' or 'locator2' etc.public static void setLocatorParam(com.sebuilder.interpreter.Step step, java.lang.String rs, java.lang.String locatorParamName)
step
- Step, a step in sebuilder's scriptrs
- String, the locator stringlocatorParamName
- String, the name of locator parameter, it could be 'locator' or 'locator2' etc.public static void setLocatorParam(com.sebuilder.interpreter.Step step, java.lang.String locatorParamName, java.lang.String type, java.lang.String value)
step
- Step, a step in sebuilder's scriptlocatorParamName
- String, the name of locator parameter, it could be 'locator' or 'locator2' etc.type
- String, the type of the locatorvalue
- String, the value of the locatorpublic 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.