Package com.version1.webdriver.utils
Class GetTextUtils
java.lang.Object
com.version1.webdriver.utils.TolerantInteraction
com.version1.webdriver.utils.GetTextUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringtolerantGetText(org.openqa.selenium.WebElement webElement) static StringtolerantGetText(org.openqa.selenium.WebElement webElement, int timeout) Methods inherited from class com.version1.webdriver.utils.TolerantInteraction
tolerantInteraction, tolerantInteraction, tolerantInteraction, tolerantInteraction, tolerantInteraction, tolerantInteractionToClear, tolerantInteractionToGetAttribute, tolerantInteractionToGetText
-
Constructor Details
-
GetTextUtils
public GetTextUtils()
-
-
Method Details
-
tolerantGetText
public static String tolerantGetText(org.openqa.selenium.WebElement webElement, int timeout) throws Throwable - Parameters:
webElement- active WebElement, already locatedtimeout- time in seconds to keep trying- Returns:
- text property value
- Throws:
Throwable- any unhandled or un-tolerated exception
-
tolerantGetText
- Parameters:
webElement- active WebElement, already located- Returns:
- text property value
- Throws:
Throwable- any unhandled or un-tolerated exception
-