Package uk.co.evoco.webdriver.utils
Class TolerantInteraction
- java.lang.Object
-
- uk.co.evoco.webdriver.utils.TolerantInteraction
-
- Direct Known Subclasses:
ClickUtils
,RadioButtonUtils
,SelectBoxUtils
,SendKeysUtils
public class TolerantInteraction extends Object
-
-
Constructor Summary
Constructors Constructor Description TolerantInteraction()
-
Method Summary
Modifier and Type Method Description org.openqa.selenium.WebElement
tolerantInteraction(List<org.openqa.selenium.WebElement> webElements, String visibleText, int timeoutInSeconds)
org.openqa.selenium.WebElement
tolerantInteraction(org.openqa.selenium.WebElement webElement, Optional<String> textToType, int timeoutInSeconds)
org.openqa.selenium.WebElement
tolerantInteraction(org.openqa.selenium.WebElement webElement, SelectBoxInteractionType selectBoxInteractionType, Optional<String> visibleTextOrHtmlValueString, Optional<Integer> itemIndex, int timeoutInSeconds)
-
-
-
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 WebElementselectBoxInteractionType
- type of selection for the interactionvisibleTextOrHtmlValueString
- Optional - the HTML value of the select box or the visible textitemIndex
- Optional - the index item to select in the select boxtimeoutInSeconds
- 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 retrytimeoutInSeconds
- 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 retrytimeoutInSeconds
- time to continue trying for- Returns:
- WebElement to allow fluent method stringed calls
- Throws:
Throwable
- the last exception to be thrown
-
-