Class GetAttributeUtils

java.lang.Object
uk.co.evoco.webdriver.utils.TolerantInteraction
uk.co.evoco.webdriver.utils.GetAttributeUtils

public class GetAttributeUtils
extends TolerantInteraction
  • Constructor Details

  • 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 located
      attribute - WebElement attribute
      timeout - 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 located
      attribute - WebElement attribute
      Returns:
      attribute property value
      Throws:
      java.lang.Throwable - any unhandled or un-tolerated exception