public class WaitHelper extends Object
| Constructor and Description |
|---|
WaitHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
mobile_waitAndRefreshForElementToLoad(EnhancedBy target)
waits for element to load And refreshes the app each time to renew the dom
|
void |
mobile_waitAndRefreshForElementToLoad(EnhancedBy target,
int time)
waits for element to load And refreshes the app each time to renew the dom
|
boolean |
waitForAdditionalElementsToLoad(EnhancedBy target,
int originalCount)
waits for element count to increase from the originalCount Usefull When
waiting for a list to expand with additional items
|
boolean |
waitForAdditionalElementsToLoad(EnhancedBy target,
int originalCount,
int time)
waits for element count to increase from the originalCount Usefull When
waiting for a list to expand with additional items
|
boolean |
waitForAnyTextToLoad(EnhancedBy target,
int time,
String... text)
wait for any text strings to become available
|
boolean |
waitForAnyTextToLoad(EnhancedBy target,
String... text)
wait for any text strings to become available
|
boolean |
waitForAnyTextToLoadContaining(EnhancedBy target,
int time,
String... text)
wait for any text strings to become available
|
boolean |
waitForAnyTextToLoadContaining(EnhancedBy target,
String... text)
wait for any text strings to become available
|
boolean |
waitForClassContain(EnhancedBy target,
int index,
String value)
wait for class to contain value
|
boolean |
waitForClassContain(EnhancedBy target,
int index,
String value,
int time)
wait for class to contain value
|
boolean |
waitForCondition(org.openqa.selenium.support.ui.ExpectedCondition<Boolean> condition,
EnhancedBy target,
int time)
wait for condition to be true
|
boolean |
waitForElementToBeClickable(EnhancedBy selector) |
boolean |
waitForElementToBeClickable(EnhancedBy target,
int time) |
void |
waitForElementToBeRemoved(EnhancedBy target)
waits for element to not be displayed wait for maximum of 60 seconds
|
boolean |
waitForElementToBeRemoved(EnhancedBy target,
int time)
waits for element to not be displayed
|
boolean |
waitForElementToLoad(EnhancedBy target)
waits for element to be displayed for amount of time specified by 60 seconds
|
boolean |
waitForElementToLoad(EnhancedBy target,
int time)
waits for element to load count() checks if the element is displayed Then
gets the count number
|
boolean |
waitForElementToLoad(EnhancedBy target,
int time,
int count)
waits for element to load If mobile device, scrolls down the page until
element is visible
|
boolean |
waitForFirstElementToLoad(EnhancedBy element1,
EnhancedBy element2)
waits for either element to load returns true When first item loads
|
boolean |
waitForFirstElementToLoad(EnhancedBy element1,
EnhancedBy element2,
EnhancedBy element3)
waits for either element to load returns true When first item loads
|
boolean |
waitForFirstElementToLoad(EnhancedBy element1,
EnhancedBy element2,
EnhancedBy element3,
int time)
waits for either element to load returns true When first item loads
|
boolean |
waitForFirstElementToLoad(EnhancedBy element1,
EnhancedBy element2,
int time)
waits for either element to load returns true When first item loads
|
void |
waitForListItemToLoad_Contains(EnhancedBy list,
String option)
waits for item containing in list to load
|
void |
waitForPageToLoad()
waits for web page to load
|
void |
waitForSeconds(double seconds)
waits for number of seconds
|
void |
waitForTextToLoad(EnhancedBy target,
int time,
String text)
make sure only one element And caller needs to take responsibility to have
text in the element
|
void |
waitForTextToLoad(EnhancedBy target,
String text)
waits for text to be loaded for amount of time specified by 60 seconds
|
public boolean waitForElementToLoad(EnhancedBy target)
target - public boolean waitForElementToLoad(EnhancedBy target, int time)
target - time - public boolean waitForElementToLoad(EnhancedBy target, int time, int count)
target: - element to wait fortime: - max time to waitcount: - minimum count of elements to wait for in listpublic void mobile_waitAndRefreshForElementToLoad(EnhancedBy target)
target - public void mobile_waitAndRefreshForElementToLoad(EnhancedBy target, int time)
target - public boolean waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2)
element1 - element2 - time - public boolean waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, int time)
element1 - element2 - time - public boolean waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, EnhancedBy element3)
element1 - element2 - time - public boolean waitForFirstElementToLoad(EnhancedBy element1, EnhancedBy element2, EnhancedBy element3, int time)
element1 - element2 - time - public boolean waitForAdditionalElementsToLoad(EnhancedBy target, int originalCount)
target - originalCount - public boolean waitForAdditionalElementsToLoad(EnhancedBy target, int originalCount, int time)
target - originalCount - public void waitForElementToBeRemoved(EnhancedBy target)
target - public boolean waitForElementToBeRemoved(EnhancedBy target, int time)
target - time - : maximum amount of time in seconds to waitpublic void waitForSeconds(double seconds)
seconds - public void waitForPageToLoad()
public void waitForListItemToLoad_Contains(EnhancedBy list, String option)
list - option - time - public void waitForTextToLoad(EnhancedBy target, String text)
target - public void waitForTextToLoad(EnhancedBy target, int time, String text)
target - time - public boolean waitForElementToBeClickable(EnhancedBy selector)
public boolean waitForElementToBeClickable(EnhancedBy target, int time)
public boolean waitForClassContain(EnhancedBy target, int index, String value)
target - index - value - public boolean waitForClassContain(EnhancedBy target, int index, String value, int time)
target - index - value - time - public boolean waitForAnyTextToLoadContaining(EnhancedBy target, String... text)
target - time - text - public boolean waitForAnyTextToLoadContaining(EnhancedBy target, int time, String... text)
target - time - text - public boolean waitForAnyTextToLoad(EnhancedBy target, String... text)
target - time - text - public boolean waitForAnyTextToLoad(EnhancedBy target, int time, String... text)
target - time - text - public boolean waitForCondition(org.openqa.selenium.support.ui.ExpectedCondition<Boolean> condition, EnhancedBy target, int time)
condition - target - time - Copyright © 2019. All rights reserved.