Class GetTextUtils

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

public class GetTextUtils
extends TolerantInteraction
  • Constructor Details

  • Method Details

    • tolerantGetText

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

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