Until
class Until
The Until class provides factory methods for constructing common conditions.
Summary
Public functions |
|
|---|---|
java-static UiObject2Condition<Boolean!> |
Returns a condition that depends on a |
java-static UiObject2Condition<Boolean!> |
Returns a condition that depends on a |
java-static UiObject2Condition<Boolean!> |
Returns a condition that depends on a |
java-static UiObject2Condition<Boolean!> |
descContains(substring: String)Returns a condition that is satisfied when the object's content description contains the given string (case-sensitive). |
java-static UiObject2Condition<Boolean!> |
descEndsWith(substring: String)Returns a condition that is satisfied when the object's content description ends with the given string (case-sensitive). |
java-static UiObject2Condition<Boolean!> |
descEquals(contentDescription: String)Returns a condition that is satisfied when the object's content description exactly matches the given string (case-sensitive). |
java-static UiObject2Condition<Boolean!> |
descMatches(regex: Pattern)Returns a condition that is satisfied when the object's content description matches the given regex. |
java-static UiObject2Condition<Boolean!> |
descMatches(regex: String)Returns a condition that is satisfied when the object's content description matches the given regex. |
java-static UiObject2Condition<Boolean!> |
descStartsWith(substring: String)Returns a condition that is satisfied when the object's content description starts with the given string (case-sensitive). |
java-static UiObject2Condition<Boolean!> |
Returns a condition that depends on a |
java-static SearchCondition<UiObject2!> |
findObject(selector: BySelector)Returns a |
java-static SearchCondition<(Mutable)List<UiObject2!>!> |
findObjects(selector: BySelector)Returns a |
java-static UiObject2Condition<Boolean!> |
Returns a condition that depends on a |
java-static UiObject2Condition<Boolean!> |
Returns a condition that depends on a |
java-static SearchCondition<Boolean!> |
gone(selector: BySelector)Returns a |
java-static SearchCondition<Boolean!> |
hasObject(selector: BySelector)Returns a |
java-static UiObject2Condition<Boolean!> |
longClickable(isLongClickable: Boolean)Returns a condition that depends on a |
java-static EventCondition<Boolean!> |
Returns a condition that depends on a new window having appeared. |
java-static EventCondition<Boolean!> |
scrollFinished(direction: Direction)Returns a condition that depends on a scroll having reached the end in the given |
java-static UiObject2Condition<Boolean!> |
scrollable(isScrollable: Boolean)Returns a condition that depends on a |
java-static UiObject2Condition<Boolean!> |
Returns a condition that depends on a |
java-static UiObject2Condition<Boolean!> |
textContains(substring: String)Returns a condition that is satisfied when the object's text value contains the given string (case-sensitive). |
java-static UiObject2Condition<Boolean!> |
textEndsWith(substring: String)Returns a condition that is satisfied when the object's text value ends with the given string (case-sensitive). |
java-static UiObject2Condition<Boolean!> |
textEquals(text: String)Returns a condition that is satisfied when the object's text value exactly matches the given string (case-sensitive). |
java-static UiObject2Condition<Boolean!> |
textMatches(regex: Pattern)Returns a condition that is satisfied when the object's text value matches the given regex. |
java-static UiObject2Condition<Boolean!> |
textMatches(regex: String)Returns a condition that is satisfied when the object's text value matches the given regex. |
java-static UiObject2Condition<Boolean!> |
textNotEquals(text: String)Returns a condition that is satisfied when the object's text value does not match the given string. |
java-static UiObject2Condition<Boolean!> |
textStartsWith(substring: String)Returns a condition that is satisfied when the object's text value starts with the given string (case-sensitive). |
Public functions
checkable
java-static fun checkable(isCheckable: Boolean): UiObject2Condition<Boolean!>
Returns a condition that depends on a UiObject2's checkable state.
| Parameters | |
|---|---|
isCheckable: Boolean |
Whether the object should be checkable to satisfy this condition. |
checked
java-static fun checked(isChecked: Boolean): UiObject2Condition<Boolean!>
Returns a condition that depends on a UiObject2's checked state.
| Parameters | |
|---|---|
isChecked: Boolean |
Whether the object should be checked to satisfy this condition. |
clickable
java-static fun clickable(isClickable: Boolean): UiObject2Condition<Boolean!>
Returns a condition that depends on a UiObject2's clickable state.
| Parameters | |
|---|---|
isClickable: Boolean |
Whether the object should be clickable to satisfy this condition. |
descContains
java-static fun descContains(substring: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's content description contains the given string (case-sensitive).
descEndsWith
java-static fun descEndsWith(substring: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's content description ends with the given string (case-sensitive).
descEquals
java-static fun descEquals(contentDescription: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's content description exactly matches the given string (case-sensitive).
descMatches
java-static fun descMatches(regex: Pattern): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's content description matches the given regex.
descMatches
java-static fun descMatches(regex: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's content description matches the given regex.
descStartsWith
java-static fun descStartsWith(substring: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's content description starts with the given string (case-sensitive).
enabled
java-static fun enabled(isEnabled: Boolean): UiObject2Condition<Boolean!>
Returns a condition that depends on a UiObject2's enabled state.
| Parameters | |
|---|---|
isEnabled: Boolean |
Whether the object should be enabled to satisfy this condition. |
findObject
java-static fun findObject(selector: BySelector): SearchCondition<UiObject2!>
Returns a SearchCondition that is satisfied when at least one element matching the selector can be found. The condition will return the first matching element.
findObjects
java-static fun findObjects(selector: BySelector): SearchCondition<(Mutable)List<UiObject2!>!>
Returns a SearchCondition that is satisfied when at least one element matching the selector can be found. The condition will return all matching elements.
focusable
java-static fun focusable(isFocusable: Boolean): UiObject2Condition<Boolean!>
Returns a condition that depends on a UiObject2's focusable state.
| Parameters | |
|---|---|
isFocusable: Boolean |
Whether the object should be focusable to satisfy this condition. |
focused
java-static fun focused(isFocused: Boolean): UiObject2Condition<Boolean!>
Returns a condition that depends on a UiObject2's focused state.
| Parameters | |
|---|---|
isFocused: Boolean |
Whether the object should be focused to satisfy this condition. |
gone
java-static fun gone(selector: BySelector): SearchCondition<Boolean!>
Returns a SearchCondition that is satisfied when no elements matching the selector can be found.
hasObject
java-static fun hasObject(selector: BySelector): SearchCondition<Boolean!>
Returns a SearchCondition that is satisfied when at least one element matching the selector can be found.
longClickable
java-static fun longClickable(isLongClickable: Boolean): UiObject2Condition<Boolean!>
Returns a condition that depends on a UiObject2's long clickable state.
| Parameters | |
|---|---|
isLongClickable: Boolean |
Whether the object should be long clickable to satisfy this condition. |
newWindow
java-static fun newWindow(): EventCondition<Boolean!>
Returns a condition that depends on a new window having appeared.
scrollFinished
java-static fun scrollFinished(direction: Direction): EventCondition<Boolean!>
Returns a condition that depends on a scroll having reached the end in the given direction.
| Parameters | |
|---|---|
direction: Direction |
The direction of the scroll. |
scrollable
java-static fun scrollable(isScrollable: Boolean): UiObject2Condition<Boolean!>
Returns a condition that depends on a UiObject2's scrollable state.
| Parameters | |
|---|---|
isScrollable: Boolean |
Whether the object should be scrollable to satisfy this condition. |
selected
java-static fun selected(isSelected: Boolean): UiObject2Condition<Boolean!>
Returns a condition that depends on a UiObject2's selected state.
| Parameters | |
|---|---|
isSelected: Boolean |
Whether the object should be selected to satisfy this condition. |
textContains
java-static fun textContains(substring: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's text value contains the given string (case-sensitive).
textEndsWith
java-static fun textEndsWith(substring: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's text value ends with the given string (case-sensitive).
textEquals
java-static fun textEquals(text: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's text value exactly matches the given string (case-sensitive).
textMatches
java-static fun textMatches(regex: Pattern): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's text value matches the given regex.
textMatches
java-static fun textMatches(regex: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's text value matches the given regex.
textNotEquals
java-static fun textNotEquals(text: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's text value does not match the given string.
textStartsWith
java-static fun textStartsWith(substring: String): UiObject2Condition<Boolean!>
Returns a condition that is satisfied when the object's text value starts with the given string (case-sensitive).