Class SHAFT.GUI.WebDriver

java.lang.Object
com.shaft.driver.SHAFT.GUI.WebDriver
Enclosing class:
SHAFT.GUI

public static class SHAFT.GUI.WebDriver extends Object
  • Constructor Details

    • WebDriver

      public WebDriver()
    • WebDriver

      public WebDriver(DriverFactory.DriverType driverType)
    • WebDriver

      public WebDriver(DriverFactory.DriverType driverType, org.openqa.selenium.MutableCapabilities mutableCapabilities)
    • WebDriver

      public WebDriver(org.openqa.selenium.WebDriver driver)
  • Method Details

    • quit

      public void quit()
    • element

      public Actions element()
    • touch

      public TouchActions touch()
    • browser

      public BrowserActions browser()
    • alert

      public AlertActions alert()
    • waitUntil

      public WaitActions waitUntil(Function<? super org.openqa.selenium.WebDriver,?> conditions)
      Use this method to do any selenium explicit wait if needed.
      Please note that most of the used wait methods are implemented in the related classes (browser and element)
      Parameters:
      conditions - Any Selenium explicit wait, also supports expected conditions
      Returns:
      wait actions reference to be used to chain actions
    • assertThat

      public WizardHelpers.WebDriverAssertions assertThat()
    • verifyThat

    • getDriver

      public org.openqa.selenium.WebDriver getDriver()
      Returns the current Selenium WebDriver instance for custom manipulation
      Returns:
      the current Selenium WebDriver instance for custom manipulation
    • async

      public SHAFT.GUI.WebDriver.Async async()