Package com.axway.ats.uiengine.utilities
Interface IHtmlElementState
-
- All Known Implementing Classes:
HiddenHtmlElementState,RealHtmlElementState
public interface IHtmlElementStateCheck the state of an HTML element
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfocus()Moves the focus to the specified element.voidhighlightElement()Tries to briefly change the element's background color to yellow.booleanisElementDisplayed()Check whether the element is displayed or notbooleanisElementEnabled()booleanisElementPresent()voidverifyExist()Verifies the element exist throws an exception if verification failvoidverifyNotExist()Verifies the element does NOT exist throws an exception if verification failvoidwaitToBecomeDisabled()Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become disabled throws an exception if it does not become disabled for the default waiting period (check the 'elementStateChangeDelay' property)voidwaitToBecomeDisabled(int millis)Waits for a period of time the element to become disabled throws an exception if it does not become disabled for the specified periodvoidwaitToBecomeDisplayed()Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become displayed throws an exception if it does not become displayed for the default waiting period (check the 'elementStateChangeDelay' property)voidwaitToBecomeDisplayed(int millis)Waits for a period of time the element to become displayed throws an exception if it does not become displayed for the specified periodvoidwaitToBecomeEnabled()Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become enabled throws an exception if it does not become enabled for the default waiting period (check the 'elementStateChangeDelay' property)voidwaitToBecomeEnabled(int millis)Waits for a period of time the element to become enabled throws an exception if it does not become enabled for the specified periodvoidwaitToBecomeExisting()Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become existing throws an exception if it does not become existing for the default waiting period (check the 'elementStateChangeDelay' property)voidwaitToBecomeExisting(int millis)Waits for a period of time the element to become existing throws an exception if it does not become existing for the specified periodvoidwaitToBecomeHidden()Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become hidden throws an exception if it does not become hidden for the default waiting period (check the 'elementStateChangeDelay' property)voidwaitToBecomeHidden(int millis)Waits for a period of time the element to become hidden throws an exception if it does not become hidden for the specified periodvoidwaitToBecomeNotExisting()Waits for a period of time (check the 'elementStateChangeDelay' property) the element to became non-existing throws an exception if it does not become non-existing for the default waiting period (check the 'elementStateChangeDelay' property)voidwaitToBecomeNotExisting(int millis)Waits for a period of time the element to became non-existing throws an exception if it does not become non-existing for the specified period
-
-
-
Method Detail
-
focus
void focus()
Moves the focus to the specified element. Note: This is somewhat breakable as the browser window needs to be the active system window, otherwise the keyboard events will go to another application.
-
verifyExist
void verifyExist()
Verifies the element exist throws an exception if verification fail
-
verifyNotExist
void verifyNotExist()
Verifies the element does NOT exist throws an exception if verification fail
-
waitToBecomeExisting
void waitToBecomeExisting()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become existing throws an exception if it does not become existing for the default waiting period (check the 'elementStateChangeDelay' property)
-
waitToBecomeExisting
void waitToBecomeExisting(int millis)
Waits for a period of time the element to become existing throws an exception if it does not become existing for the specified period
-
waitToBecomeNotExisting
void waitToBecomeNotExisting()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to became non-existing throws an exception if it does not become non-existing for the default waiting period (check the 'elementStateChangeDelay' property)
-
waitToBecomeNotExisting
void waitToBecomeNotExisting(int millis)
Waits for a period of time the element to became non-existing throws an exception if it does not become non-existing for the specified period
-
waitToBecomeDisplayed
void waitToBecomeDisplayed()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become displayed throws an exception if it does not become displayed for the default waiting period (check the 'elementStateChangeDelay' property)
-
waitToBecomeDisplayed
void waitToBecomeDisplayed(int millis)
Waits for a period of time the element to become displayed throws an exception if it does not become displayed for the specified period
-
waitToBecomeHidden
void waitToBecomeHidden()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become hidden throws an exception if it does not become hidden for the default waiting period (check the 'elementStateChangeDelay' property)
-
waitToBecomeHidden
void waitToBecomeHidden(int millis)
Waits for a period of time the element to become hidden throws an exception if it does not become hidden for the specified period
-
waitToBecomeEnabled
void waitToBecomeEnabled()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become enabled throws an exception if it does not become enabled for the default waiting period (check the 'elementStateChangeDelay' property)
-
waitToBecomeEnabled
void waitToBecomeEnabled(int millis)
Waits for a period of time the element to become enabled throws an exception if it does not become enabled for the specified period
-
waitToBecomeDisabled
void waitToBecomeDisabled()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become disabled throws an exception if it does not become disabled for the default waiting period (check the 'elementStateChangeDelay' property)
-
waitToBecomeDisabled
void waitToBecomeDisabled(int millis)
Waits for a period of time the element to become disabled throws an exception if it does not become disabled for the specified period
-
highlightElement
void highlightElement()
Tries to briefly change the element's background color to yellow. Does not work on all elements. It is useful for debugging purposes.
-
isElementPresent
boolean isElementPresent()
- Returns:
trueif the element exists
-
isElementEnabled
boolean isElementEnabled()
- Returns:
trueif the element is enabled
-
isElementDisplayed
boolean isElementDisplayed()
Check whether the element is displayed or not- Returns:
trueif the element is displayed
-
-