Package | Description |
---|---|
com.workfusion.rpa.helpers | |
com.workfusion.rpa.helpers.conditions |
Modifier and Type | Field and Description |
---|---|
static UiCondition |
UiConditions.APPEAR
Synonym for
UiConditions.VISIBLE - may be used for better readability
Sample
$("#logoutLink").should(APPEAR);
|
static UiCondition |
UiConditions.APPEARS
Synonym for
UiConditions.VISIBLE - may be used for better readability |
static UiCondition |
UiConditions.DISABLED
Checks that element is disabled
|
static UiCondition |
UiConditions.DISAPPEAR
Synonym for
UiConditions.HIDDEN - may be used for better readability: |
static UiCondition |
UiConditions.DISAPPEARS
Synonym for
UiConditions.HIDDEN - may be used for better readability: |
static UiCondition |
UiConditions.EMPTY_ELEMENT
1) For input element, checks that value is missing or empty
|
static UiCondition |
UiConditions.ENABLED
Checks that element is not disabled
|
static UiCondition |
UiConditions.EXIST
Check that element exists.
|
static UiCondition |
UiConditions.FOCUSED
Check if browser focus is currently on a given element.
|
static UiCondition |
UiConditions.HIDDEN
Checks that element is not visible or does not exists.
|
static UiCondition |
UiConditions.PRESENT
Checks that element is present on the page.
|
static UiCondition |
UiConditions.READONLY
Check if element has "readonly" attribute (with any value)
|
static UiCondition |
UiConditions.SELECTED
Checks that element is selected
|
static UiCondition |
UiConditions.VISIBLE
Checks that element is visible
Sample
$("input").shouldBe(VISIBLE);
|
Modifier and Type | Method and Description |
---|---|
static UiCondition |
UiConditions.and(String name,
UiCondition... conditions)
Check if element matches ALL given conditions.
|
static UiCondition |
UiConditions.attribute(String attributeName)
Checks that element has a given attribute (with any value)
|
static UiCondition |
UiConditions.attribute(String attributeName,
String expectedAttributeValue)
Checks that current element has an attribute with specified value
|
static UiCondition |
UiConditions.be(UiCondition delegate)
Used to form human-readable condition expression
Example element.should(be(VISIBLE),have(text("abc"))
|
static UiCondition |
UiConditions.cssClass(String cssClass)
Sample:
$("input").shouldHave(cssClass("active")); |
static UiCondition |
UiConditions.hasAttribute(String attributeName,
String attributeValue)
Checks that current element has an attribute with specified value
|
static UiCondition |
UiConditions.hasClass(String cssClass)
Sample:
$("input").waitUntil(hasClass("blocked"), 7000); |
static UiCondition |
UiConditions.hasPartialValue(String expectedPartOfValue)
Synonym for
UiConditions.partialValue(String) |
static UiCondition |
UiConditions.hasText(String text)
Asserts that element has specified text content
|
static UiCondition |
UiConditions.hasValue(String expectedValue)
Synonym for
UiConditions.value(String) |
static UiCondition |
UiConditions.have(UiCondition delegate)
Used to form human-readable condition expression
Example element.should(be(VISIBLE),have(text("abc"))
|
static UiCondition |
UiConditions.id(String id)
Asserts that element has given "id" attribute as substring
|
static UiCondition |
UiConditions.matchRegexp(String regex)
Assert that given element's text matches given regular expression
|
static UiCondition |
UiConditions.name(String name)
Asserts that element has given "name" attribute as substring
|
static UiCondition |
UiConditions.not(UiCondition condition)
Negate given condition.
|
static UiCondition |
UiConditions.or(String name,
UiCondition... conditions)
Check if element matches ANY of given conditions.
|
static UiCondition |
UiConditions.partialValue(String expectedPartOfValue)
Asserts that element has given "value" attribute as substring
|
static UiCondition |
UiConditions.text(String text)
Asserts that element has specified text content
|
static UiCondition |
UiConditions.textCaseInSensitive(String text)
Asserts that element has specified text content
|
static UiCondition |
UiConditions.type(String type)
Asserts that element has given "type" attribute as substring
|
static UiCondition |
UiConditions.value(String expectedValue)
Asserts that element has given "value" attribute as substring
|
Modifier and Type | Method and Description |
---|---|
static UiCondition |
UiConditions.and(String name,
UiCondition... conditions)
Check if element matches ALL given conditions.
|
static UiCondition |
UiConditions.be(UiCondition delegate)
Used to form human-readable condition expression
Example element.should(be(VISIBLE),have(text("abc"))
|
UiElementCollection |
UiElementCollection.exclude(UiCondition condition)
Filters elements excluding those which met the given condition
|
UiElementCollection |
UiElementCollection.excludeWith(UiCondition condition)
Filters elements excluding those which met the given condition
|
UiElementCollection |
UiElementCollection.filter(UiCondition condition)
Filters collection elements based on the given condition
|
UiElementCollection |
UiElementCollection.filterBy(UiCondition condition)
Filters collection elements based on the given condition
|
UiElement |
UiElementCollection.find(UiCondition condition)
Find the first element which met the given condition
|
UiElement |
UiElementCollection.findBy(UiCondition condition)
Find the first element which met the given condition
|
boolean |
UiElement.has(UiCondition condition)
Return true iff element matches given condition
|
static UiCondition |
UiConditions.have(UiCondition delegate)
Used to form human-readable condition expression
Example element.should(be(VISIBLE),have(text("abc"))
|
boolean |
UiElement.is(UiCondition condition)
Return true if element matches given condition
|
static UiCondition |
UiConditions.not(UiCondition condition)
Negate given condition.
|
static UiCondition |
UiConditions.or(String name,
UiCondition... conditions)
Check if element matches ANY of given conditions.
|
UiElement |
UiElement.should(UiCondition... conditions) |
UiElement |
UiElement.should(UiCondition condition)
Checks that given element meets all of given conditions.
|
UiElement |
UiElement.should(UiCondition condition1,
UiCondition condition2) |
UiElement |
UiElement.shouldBe(UiCondition... conditions)
Synonym for
UiElement.should(UiCondition...) }. |
UiElement |
UiElement.shouldBe(UiCondition condition) |
UiElement |
UiElement.shouldHave(UiCondition... conditions)
Synonym for
UiElement.should(UiCondition...) }. |
UiElement |
UiElement.shouldHave(UiCondition condition) |
UiElement |
UiElement.shouldNot(UiCondition... conditions)
Checks that given element does not meet given conditions.
|
UiElement |
UiElement.shouldNot(UiCondition condition) |
UiElement |
UiElement.shouldNotBe(UiCondition... conditions)
Synonym for
UiElement.shouldNot(UiCondition...) . |
UiElement |
UiElement.shouldNotBe(UiCondition condition) |
UiElement |
UiElement.shouldNotHave(UiCondition... conditions)
Synonym for
UiElement.shouldNot(UiCondition...) . |
UiElement |
UiElement.shouldNotHave(UiCondition condition) |
UiElement |
UiElement.waitUntil(UiCondition condition)
Wait until given element meets given conditions.
|
UiElement |
UiElement.waitUntil(UiCondition condition,
long timeoutMilliseconds)
Wait until given element meets given conditions.
|
UiElement |
UiElement.waitUntil(UiCondition condition,
long timeoutMilliseconds,
long pollingIntervalMilliseconds)
Wait until given element meets given conditions.
|
UiElement |
UiElement.waitWhile(UiCondition condition)
Wait while given element meets given conditions.
|
UiElement |
UiElement.waitWhile(UiCondition condition,
long timeoutMilliseconds)
Wait while given element meets given conditions.
|
UiElement |
UiElement.waitWhile(UiCondition condition,
long timeoutMilliseconds,
long pollingIntervalMilliseconds)
Wait while given element meets given conditions.
|
Modifier and Type | Class and Description |
---|---|
class |
AndUiCondition |
class |
ExpectsAttribute |
class |
ExpectsValue |
class |
HasAttribute |
class |
HasCssClass |
class |
IsDisabled |
class |
IsDisplayed |
class |
IsEnabled |
class |
IsExists |
class |
IsFocused |
class |
IsHidden |
class |
IsSelected |
class |
MatchRegexp |
class |
NotUiCondition |
class |
OrUiCondition |
class |
TextCaseInSensitive |
class |
TextCaseSensitive |
class |
Wrapper |
Modifier and Type | Method and Description |
---|---|
static UiCondition |
Wrapper.wrap(String prefix,
UiCondition delegate) |
Modifier and Type | Method and Description |
---|---|
static UiCondition |
Wrapper.wrap(String prefix,
UiCondition delegate) |
Constructor and Description |
---|
AndUiCondition(String name,
UiCondition... conditions) |
NotUiCondition(UiCondition condition) |
OrUiCondition(String name,
UiCondition... conditions) |
Wrapper(String prefix,
UiCondition delegate) |
Copyright 2016, WorkFusion, Inc.