Class TolerantInteraction

    • Constructor Detail

      • TolerantInteraction

        public TolerantInteraction()
    • Method Detail

      • tolerantInteraction

        public org.openqa.selenium.WebElement tolerantInteraction​(org.openqa.selenium.WebElement webElement,
                                                                  SelectBoxInteractionType selectBoxInteractionType,
                                                                  Optional<String> visibleTextOrHtmlValueString,
                                                                  Optional<Integer> itemIndex,
                                                                  int timeoutInSeconds)
                                                           throws Throwable
        Parameters:
        webElement - active WebElement
        selectBoxInteractionType - type of selection for the interaction
        visibleTextOrHtmlValueString - Optional - the HTML value of the select box or the visible text
        itemIndex - Optional - the index item to select in the select box
        timeoutInSeconds - time to continue trying for
        Returns:
        WebElement to allow fluent method stringed calls
        Throws:
        Throwable - the last exception to be thrown
      • tolerantInteraction

        public org.openqa.selenium.WebElement tolerantInteraction​(List<org.openqa.selenium.WebElement> webElements,
                                                                  String visibleText,
                                                                  int timeoutInSeconds)
                                                           throws Throwable
        Parameters:
        webElements - list of locators we will use to re-lookup the element on retry
        timeoutInSeconds - time to continue trying for
        Returns:
        WebElement to allow fluent method stringed calls
        Throws:
        Throwable - the last exception to be thrown
      • tolerantInteraction

        public org.openqa.selenium.WebElement tolerantInteraction​(org.openqa.selenium.WebElement webElement,
                                                                  Optional<String> textToType,
                                                                  int timeoutInSeconds)
                                                           throws Throwable
        Parameters:
        webElement - locator we will use to re-lookup the element on retry
        timeoutInSeconds - time to continue trying for
        Returns:
        WebElement to allow fluent method stringed calls
        Throws:
        Throwable - the last exception to be thrown