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