Package oit.utilities

Class Waits

java.lang.Object
oit.utilities.Waits

public class Waits extends Object
  • 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

      public void waitForTextAppears(org.openqa.selenium.By locator, String textToBePresent)
    • waitForTextNotAppears

      public void waitForTextNotAppears(org.openqa.selenium.By locator, String textToBePresent)
    • 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