|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.utils.ByUtils
public class ByUtils
Utility class to create By
locator mechanism.
Nested Class Summary | |
---|---|
static class |
ByUtils.ComparisonPattern
Comparison pattern. |
Field Summary | |
---|---|
static int |
CONTAINS_PATTERN
Deprecated. |
static int |
ENDS_WITH_PATTERN
Deprecated. |
static int |
EQUALS_PATTERN
Deprecated. |
static int |
STARTS_WITH_PATTERN
Deprecated. |
Constructor Summary | |
---|---|
ByUtils()
|
Method Summary | |
---|---|
static java.lang.String |
xpathCompareWithText(ByUtils.ComparisonPattern pattern,
java.lang.String text,
boolean isClmResource)
Return a xpath string to compare the given text using the given pattern. |
static java.lang.String |
xpathCompareWithText(int pattern,
java.lang.String text,
boolean isClmResource)
Deprecated. Since 5.0.1, use xpathCompareWithText(ComparisonPattern, String, boolean) instead |
static org.openqa.selenium.By |
xpathMatchingItemText(java.lang.String xpathPrefix,
ByUtils.ComparisonPattern pattern,
java.lang.String text)
Return a xpath to match the given text using the given pattern. |
static org.openqa.selenium.By |
xpathMatchingItemText(java.lang.String xpathPrefix,
int pattern,
java.lang.String text)
Deprecated. Since 5.0.1, use xpathMatchingItemText(String, ComparisonPattern, String) instead |
static org.openqa.selenium.By |
xpathMatchingItemText(java.lang.String xpathPrefix,
java.lang.String text)
Return a xpath to match the given text using the given pattern. |
static org.openqa.selenium.By |
xpathMatchingText(ByUtils.ComparisonPattern pattern,
java.lang.String text)
Return a xpath to match the given text using the given pattern. |
static org.openqa.selenium.By |
xpathMatchingText(int pattern,
java.lang.String text)
Deprecated. Since 5.0.1, use xpathMatchingItemText(String, String) instead |
static org.openqa.selenium.By |
xpathMatchingTexts(ByUtils.ComparisonPattern pattern,
boolean all,
java.lang.String... texts)
Return a xpath to match the given texts using the given pattern. |
static org.openqa.selenium.By |
xpathMatchingTexts(int pattern,
boolean all,
java.lang.String... texts)
Deprecated. Since 5.0.1, use xpathMatchingTexts(ComparisonPattern, boolean, String...) instead |
static java.lang.String |
xpathStringForTextComparison(ByUtils.ComparisonPattern pattern,
java.lang.String text)
Return a xpath string to compare the given text using the given pattern. |
static java.lang.String |
xpathStringForTextComparison(int pattern,
java.lang.String text)
Deprecated. Since 5.0.1, use xpathStringForTextComparison(ComparisonPattern, String) instead |
static org.openqa.selenium.By |
xpathToSetWorkItemCategory(java.lang.String[] categoryLevels)
Returns the xpath to find the given category levels in a work item Filed Against options list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final int EQUALS_PATTERN
The patterns are bitwise, hence they can be combined. In that case, an OR applies with all the specified patterns.
For example, if you wan to compare either equals or starts-with, then use:
EQUALS_PATTERN
| STARTS_WITH_PATTERN
@Deprecated public static final int STARTS_WITH_PATTERN
@Deprecated public static final int ENDS_WITH_PATTERN
@Deprecated public static final int CONTAINS_PATTERN
Constructor Detail |
---|
public ByUtils()
Method Detail |
---|
public static java.lang.String xpathCompareWithText(ByUtils.ComparisonPattern pattern, java.lang.String text, boolean isClmResource)
Special addition is done to the xpath string if the comparison is done for a CLM resource.
pattern
- The pattern used for matching text.text
- The text to compare withisClmResource
- Tells whether the text comparison concerns a CLM resource or not@Deprecated public static java.lang.String xpathCompareWithText(int pattern, java.lang.String text, boolean isClmResource)
xpathCompareWithText(ComparisonPattern, String, boolean)
instead
Special addition is done to the xpath string if the comparison is done for a CLM resource.
pattern
- The pattern used for matching text. Currently supported are:
WARNING: These bits cannot be combined for this method.text
- The text to compare withisClmResource
- Tells whether the text comparison concerns a CLM resource or notpublic static org.openqa.selenium.By xpathMatchingItemText(java.lang.String xpathPrefix, ByUtils.ComparisonPattern pattern, java.lang.String text)
pattern
- The pattern used for matching text.text
- The text to match
By
.@Deprecated public static org.openqa.selenium.By xpathMatchingItemText(java.lang.String xpathPrefix, int pattern, java.lang.String text)
xpathMatchingItemText(String, ComparisonPattern, String)
instead
pattern
- The pattern used for matching text. Currently supported are:
WARNING: These bits cannot be combined for this method.text
- The text to match
By
.public static org.openqa.selenium.By xpathMatchingItemText(java.lang.String xpathPrefix, java.lang.String text)
text
- The text to match
By
.public static org.openqa.selenium.By xpathMatchingText(ByUtils.ComparisonPattern pattern, java.lang.String text)
pattern
- The pattern used for matching text.text
- The text to match
By
.@Deprecated public static org.openqa.selenium.By xpathMatchingText(int pattern, java.lang.String text)
xpathMatchingItemText(String, String)
instead
pattern
- The pattern used for matching text. Currently supported are:
WARNING: These bits cannot be combined for this method.text
- The text to match
By
.public static org.openqa.selenium.By xpathMatchingTexts(ByUtils.ComparisonPattern pattern, boolean all, java.lang.String... texts)
Note that if there are several texts provided, one can specify whether all of them must match or only one is enough.
pattern
- The pattern used for matching text.all
- Tells whether all texts must match or only one is enough. Ignored
if only one text is given.texts
- The list of texts to match
By
.@Deprecated public static org.openqa.selenium.By xpathMatchingTexts(int pattern, boolean all, java.lang.String... texts)
xpathMatchingTexts(ComparisonPattern, boolean, String...)
instead
Note that if there are several texts provided, one can specify whether all of them must match or only one is enough.
pattern
- The pattern used for matching text. Currently supported are:
WARNING: These bits cannot be combined for this method.all
- Tells whether all texts must match or only one is enough. Ignored
if only one text is given.texts
- The list of texts to match
By
.public static java.lang.String xpathStringForTextComparison(ByUtils.ComparisonPattern pattern, java.lang.String text)
pattern
- The pattern used for matching text.text
- The text to compare with@Deprecated public static java.lang.String xpathStringForTextComparison(int pattern, java.lang.String text)
xpathStringForTextComparison(ComparisonPattern, String)
instead
pattern
- The pattern used for matching text. Currently supported are:
WARNING: These bits cannot be combined for this method.text
- The text to compare withpublic static org.openqa.selenium.By xpathToSetWorkItemCategory(java.lang.String[] categoryLevels)
categoryLevels
- The category levels
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |