Package core.support.objects
Class DriverObject
java.lang.Object
core.support.objects.DriverObject
- Author:
- CAEHMAT driverList driver testId isAvailable ... A 1 false B 2 false C 1 true
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.openqa.selenium.remote.DesiredCapabilitiesstatic Map<org.openqa.selenium.WebDriver, DriverObject> List<org.openqa.selenium.WebDriver> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.remote.DesiredCapabilitiesstatic DriverObjectstatic Stringstatic org.openqa.selenium.WebDriverkeeps track of all the drivers and selects the first available driver used when single sign in is usedstatic Stringreturns the previous test id of the test ran on the driverstatic voidinitializeDriverList(DriverObject driver, String testId) add driver to driver list with test infostatic booleanstatic voidstatic voidquite all drivers associated with a teststatic voidquitWebDriver(org.openqa.selenium.WebDriver driver) quits webdriver if it's runningstatic voidsetDriverAvailabiltity(org.openqa.selenium.WebDriver driver, boolean isAvailable) static voidshutDownDriver(boolean isTestPass) withAndroidDriver(String app, String device) withApiDriver(String app) withBrowserType(browserType.BrowserType browserType) withCapabilities(org.openqa.selenium.remote.DesiredCapabilities capabilities) withDriverOptions(DriverOption driverOption) withDriverType(driverType.DriverType driverType) withDriverVersion(String driverVersion) withGenericDriver(String app) withiOSDriver(String app, String device) withIsAvailable(Boolean isAvailable) withTestId(String testId) withWebDriver(String URL) withWebDriver(String App, String URL) withWinDriver(String app)
-
Field Details
-
webdriver
-
isAvailable
-
testIdList
-
initialURL
-
app
-
driverType
-
browserType
-
driverVersion
-
login
-
config
-
capabilities
public org.openqa.selenium.remote.DesiredCapabilities capabilities -
options
-
driverList
-
-
Constructor Details
-
DriverObject
public DriverObject()
-
-
Method Details
-
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
add driver to driver list with test info- Parameters:
driver-testId-
-
setDriverAvailabiltity
public static void setDriverAvailabiltity(org.openqa.selenium.WebDriver driver, boolean isAvailable) -
withTestId
-
getCurrentTestId
-
getPreviousTestId
returns the previous test id of the test ran on the driver- Returns:
-
withApp
-
withIsAvailable
-
withUrl
-
withBrowserType
-
withDriverVersion
-
withDriverType
-
withDriverOptions
-
withCapabilities
-
getCapabilties
public org.openqa.selenium.remote.DesiredCapabilities getCapabilties() -
getOptions
-
getCurrentDriverObject
-
isDriverSet
public static boolean isDriverSet() -
withWebDriver
-
withWebDriver
-
withiOSDriver
-
withAndroidDriver
-
withWinDriver
-
withApiDriver
-
withGenericDriver
-
getInitURL
-