Package oit.utilities
Class Waits
java.lang.Object
oit.utilities.Waits
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclickElementAndFluentWaitForPresence(String webElement, int numberOfAttempts, int timePeriod, String elementToBeVisible) voidfluentWaitForInVisibility(int numberOfAttempts, int timePeriod, String elementToBeVisible) voidfluentWaitForPresence(int numberOfAttempts, int timePeriod, String elementToBeVisible) voidfluentWaitForVisibility(int numberOfAttempts, int timePeriod, String elementToBeVisible) voidvoidwaitForElementAppears(org.openqa.selenium.By locator) voidwaitForElementAppearsAndPresence(org.openqa.selenium.By locator) voidwaitForElementNOTAppears(org.openqa.selenium.By locator) voidwaitForElementToBeClickable(org.openqa.selenium.By locator) voidvoidwaitForTextAppears(org.openqa.selenium.By locator, String textToBePresent) voidwaitForTextNotAppears(org.openqa.selenium.By locator, String textToBePresent)
-
Field Details
-
wait
public static org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> wait -
fWait
public static org.openqa.selenium.support.ui.Wait<org.openqa.selenium.WebDriver> fWait
-
-
Constructor Details
-
Waits
public Waits(org.openqa.selenium.WebDriver driver)
-
-
Method Details
-
waitForJSandJQueryToLoad
public void waitForJSandJQueryToLoad() -
waitForTextAppears
-
waitForTextNotAppears
-
waitForElementAppearsAndPresence
public void waitForElementAppearsAndPresence(org.openqa.selenium.By locator) -
waitForElementAppears
public void waitForElementAppears(org.openqa.selenium.By locator) -
waitForElementNOTAppears
public void waitForElementNOTAppears(org.openqa.selenium.By locator) -
waitForElementToBeClickable
public void waitForElementToBeClickable(org.openqa.selenium.By locator) -
scrollDown
public void scrollDown() -
fluentWaitForVisibility
public void fluentWaitForVisibility(int numberOfAttempts, int timePeriod, String elementToBeVisible) throws Exception - Throws:
Exception
-
fluentWaitForPresence
public void fluentWaitForPresence(int numberOfAttempts, int timePeriod, String elementToBeVisible) throws Exception - Throws:
Exception
-
clickElementAndFluentWaitForPresence
public void clickElementAndFluentWaitForPresence(String webElement, int numberOfAttempts, int timePeriod, String elementToBeVisible) throws Exception - Throws:
Exception
-
fluentWaitForInVisibility
public void fluentWaitForInVisibility(int numberOfAttempts, int timePeriod, String elementToBeVisible) throws Exception - Throws:
Exception
-