Class DriverObject


  • public class DriverObject
    extends Object
    Author:
    CAEHMAT driverList driver testId isAvailable ... A 1 false B 2 false C 1 true
    • Constructor Detail

      • DriverObject

        public DriverObject()
    • Method Detail

      • getFirstAvailableDriver

        public static org.openqa.selenium.WebDriver getFirstAvailableDriver()
        keeps track of all the drivers and selects the first available driver used when single sign in is used
        Returns:
      • quitTestDrivers

        public static void quitTestDrivers()
        quite all drivers associated with a test
      • quitWebDriver

        public static void quitWebDriver​(org.openqa.selenium.WebDriver driver)
        quits webdriver if it's running
      • shutDownDriver

        public static void shutDownDriver​(boolean isTestPass)
      • quitAllDrivers

        public static void quitAllDrivers()
      • initializeDriverList

        public static void initializeDriverList​(DriverObject driver,
                                                String testId)
        add driver to driver list with test info
        Parameters:
        driver -
        testId -
      • setDriverAvailabiltity

        public static void setDriverAvailabiltity​(org.openqa.selenium.WebDriver driver,
                                                  boolean isAvailable)
      • getCurrentTestId

        public static String getCurrentTestId()
      • getPreviousTestId

        public static String getPreviousTestId()
        returns the previous test id of the test ran on the driver
        Returns:
      • withCapabilities

        public DriverObject withCapabilities​(org.openqa.selenium.remote.DesiredCapabilities capabilities)
      • getCapabilties

        public org.openqa.selenium.remote.DesiredCapabilities getCapabilties()
      • getCurrentDriverObject

        public static DriverObject getCurrentDriverObject()
      • isDriverSet

        public static boolean isDriverSet()
      • getInitURL

        public URL getInitURL()