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