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