Class GetAttributeUtils

java.lang.Object
com.version1.webdriver.utils.TolerantInteraction
com.version1.webdriver.utils.GetAttributeUtils

public class GetAttributeUtils extends TolerantInteraction
  • 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 located
      attribute - WebElement attribute
      timeout - 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 located
      attribute - WebElement attribute
      Returns:
      attribute property value
      Throws:
      Throwable - any unhandled or un-tolerated exception