public class SwingElementState extends Object
| Constructor and Description |
|---|
SwingElementState(UiElement uiElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isElementEditable()
Check if the element is editable or not
|
boolean |
isElementEnabled()
Check if the element is enabled or disabled
|
boolean |
isElementPresent()
Check if the element presents or not
|
boolean |
isElementVisible()
Check if the element is visible or not
|
void |
verifyDisabled()
Verifies the element is disabled
|
void |
verifyEditable()
Verifies the element is editable
|
void |
verifyEnabled()
Verifies the element is enabled
|
void |
verifyExist()
Verifies the element exist
|
void |
verifyNotEditable()
Verifies the element is not editable
|
void |
verifyNotExist()
Verifies the element does NOT exist
|
void |
verifyNotVisible()
Verifies the element is not visible
|
void |
verifyVisible()
Verifies the element is visible
|
void |
waitToBecomeDisabled()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become disabled
|
void |
waitToBecomeDisabled(int millis)
Waits for a period of time the element to become disabled
|
void |
waitToBecomeEnabled()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become enabled
|
void |
waitToBecomeEnabled(int millis)
Waits for a period of time the element to become enabled
|
void |
waitToBecomeExisting()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become existing
|
void |
waitToBecomeExisting(int millis)
Waits for a period of time the element to become existing
|
void |
waitToBecomeNotExisting()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to became non-existing
|
void |
waitToBecomeNotExisting(int millis)
Waits for a period of time the element to became non-existing
|
void |
waitToBecomeNotVisible()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become invisible
|
void |
waitToBecomeVisible()
Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become visible
|
public SwingElementState(UiElement uiElement)
uiElement - the element of interestpublic void verifyExist()
VerificationException - if the verification failspublic void verifyNotExist()
VerificationException - if the verification failspublic void verifyVisible()
VerificationException - if the verification failspublic void verifyNotVisible()
VerificationException - if the verification failspublic void verifyEnabled()
VerificationException - if the verification failspublic void verifyDisabled()
VerificationException - if the verification failspublic void verifyEditable()
VerificationException - if the verification failspublic void verifyNotEditable()
VerificationException - if the verification failspublic void waitToBecomeVisible()
VerificationException - if the element does not become visible
for the default waiting period (check the 'elementStateChangeDelay' property)public void waitToBecomeNotVisible()
VerificationException - if the element does not become invisible
for the default waiting period (check the 'elementStateChangeDelay' property)public void waitToBecomeEnabled()
VerificationException - if the element does not become enabled
for the default waiting period (check the 'elementStateChangeDelay' property)public void waitToBecomeDisabled()
VerificationException - if the element does not become disabled
for the default waiting period (check the 'elementStateChangeDelay' property)public void waitToBecomeExisting()
VerificationException - if the element does not become existing
for the default waiting period (check the 'elementStateChangeDelay' property)public void waitToBecomeExisting(int millis)
millis - milliseconds to waitVerificationException - if the element does not become existing for the specified periodpublic void waitToBecomeNotExisting()
VerificationException - if the element does not become non-existing
for the default waiting period (check the 'elementStateChangeDelay' property)public void waitToBecomeNotExisting(int millis)
millis - milliseconds to waitVerificationException - if the element does not become non-existing for the specified periodpublic void waitToBecomeEnabled(int millis)
millis - milliseconds to waitVerificationException - if the element does not become enabled for the specified periodpublic void waitToBecomeDisabled(int millis)
millis - milliseconds to waitVerificationException - if the element does not become disabled for the specified periodpublic boolean isElementPresent()
public boolean isElementVisible()
public boolean isElementEnabled()
public boolean isElementEditable()
Copyright © 2017 Axway Software. All rights reserved.