|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- Type of the concrete element, to be used by subclasses.public interface Element<E extends Element<E>>
Parent interface for GUI Elements e.g. Button.
Method Summary | |
---|---|
void |
assertEnabled()
Asserts that this element is enabled, i.e. does not have an active "disabled" state. |
void |
assertFocus()
Asserts that the element has the focus. |
void |
assertNotEnabled()
Asserts that this element is not enabled, i.e. has an active "disabled" state. |
void |
assertNotPresent()
Asserts that the element is not present |
void |
assertPresent()
Asserts that the element is present |
void |
assertVisible()
Asserts that the element is visible |
void |
click()
Single-clicks the element. |
void |
click(String click)
Selectable click- clicks only when provided string is not null, not marked as null and provided string is "true" |
void |
doubleClick()
Double clicks the element. |
void |
focus()
Sets the focus on this element |
GUIElementLocator |
getLocator()
|
boolean |
isEnabled()
Checks whether this input element is enabled. |
boolean |
isEnabled(long timeout)
Checks whether this input element is enabled. |
boolean |
isNotPresent()
Checks if the specified element is nowhere on the page within the standard timeout. |
boolean |
isNotPresent(long timeout)
Checks if the specified element is nowhere on the page within the standard timeout. |
boolean |
isPresent()
Checks if the specified element is somewhere on the page within the standard timeout. |
boolean |
isPresent(long timeout)
Checks if the specified element is somewhere on the page within a given timeout |
boolean |
isPresentAndInForeground()
Checks if the specified element is somewhere on the page and in foreground within the standard timeout. |
boolean |
isVisible()
Checks if the specified element is visible within the standard timeout. |
boolean |
isVisible(long timeout)
Checks if the specified element is visible within the given timeout. |
E |
waitingUntilTaskCompletion()
Activates the waiting until task completion feature on the underlying aludraGUI with the default value for the task completion timeout. |
E |
waitingUntilTaskCompletion(int waitTime)
Sets the #taskCompletionTimeout to the specified value. |
Method Detail |
---|
GUIElementLocator getLocator()
E waitingUntilTaskCompletion()
E waitingUntilTaskCompletion(int waitTime)
#taskCompletionTimeout
to the specified value.
waitTime
- the wait time to apply. A negative number disables the wait feature, 0 implicitly activates the
AludraGUI
's default, a positive value is used as explicit timeout.
void assertPresent()
void assertNotPresent()
void assertVisible()
void assertEnabled()
void assertNotEnabled()
void assertFocus()
void focus()
void doubleClick()
void click()
void click(String click)
click
- -Stringboolean isPresent()
true
if the element was found present somewhere on the page within the standard timeout,
false
otherwise.boolean isPresentAndInForeground()
true
if the element was found present somewhere on the page and in foreground within the standard timeout,
false
otherwise.boolean isPresent(long timeout)
timeout
- max time to wait for the element to become present.
true
if the element was found present somewhere on the page within the given timeout,
false
otherwise.boolean isNotPresent()
true
if the element was not found present somewhere on the page within the standard timeout,
false
otherwise.boolean isNotPresent(long timeout)
timeout
- time to check for the element not being present.
true
if the element was not found present somewhere on the page within the given timeout,
false
otherwise.boolean isVisible()
true
if the element is visible, false
otherwise.boolean isVisible(long timeout)
timeout
- Max time to wait for the element to become visible.
true
if the element was found visible during the given timeout, false
otherwise.boolean isEnabled()
true
if the input element is enabled, false
otherwise.boolean isEnabled(long timeout)
timeout
- Max time to wait for this input element to become enabled.
true
if the input element is enabled, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |