Class GetTextUtils

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

public class GetTextUtils extends TolerantInteraction
  • Constructor Details

    • GetTextUtils

      public GetTextUtils()
  • Method Details

    • tolerantGetText

      public static String tolerantGetText(org.openqa.selenium.WebElement webElement, int timeout) throws Throwable
      Parameters:
      webElement - active WebElement, already located
      timeout - time in seconds to keep trying
      Returns:
      text property value
      Throws:
      Throwable - any unhandled or un-tolerated exception
    • tolerantGetText

      public static String tolerantGetText(org.openqa.selenium.WebElement webElement) throws Throwable
      Parameters:
      webElement - active WebElement, already located
      Returns:
      text property value
      Throws:
      Throwable - any unhandled or un-tolerated exception