public class DriverObject extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
app |
browserType.BrowserType |
browserType |
org.openqa.selenium.remote.DesiredCapabilities |
capabilities |
Map<String,Object> |
config |
static Map<org.openqa.selenium.WebDriver,DriverObject> |
driverList |
driverType.DriverType |
driverType |
String |
driverVersion |
String |
initialURL |
Boolean |
isAvailable |
LoginObject |
login |
DriverOption |
options |
List<String> |
testIdList |
List<org.openqa.selenium.WebDriver> |
webdriver |
| Constructor and Description |
|---|
DriverObject() |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.remote.DesiredCapabilities |
getCapabilties() |
static DriverObject |
getCurrentDriverObject() |
static String |
getCurrentTestId() |
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
|
URL |
getInitURL() |
DriverOption |
getOptions() |
static String |
getPreviousTestId()
returns the previous test id of the test ran on the driver
|
static void |
initializeDriverList(DriverObject driver,
String testId)
add driver to driver list with test info
|
static boolean |
isDriverSet() |
static void |
quitAllDrivers() |
static void |
quitTestDrivers()
quite all drivers associated with a test
|
static void |
quitWebDriver(org.openqa.selenium.WebDriver driver)
quits webdriver if it's running
|
static void |
setDriverAvailabiltity(org.openqa.selenium.WebDriver driver,
boolean isAvailable) |
static void |
shutDownDriver(boolean isTestPass) |
DriverObject |
withAndroidDriver(String app,
String device) |
DriverObject |
withApiDriver(String app) |
DriverObject |
withApp(String app) |
DriverObject |
withBrowserType(browserType.BrowserType browserType) |
DriverObject |
withCapabilities(org.openqa.selenium.remote.DesiredCapabilities capabilities) |
DriverObject |
withDriverOptions(DriverOption driverOption) |
DriverObject |
withDriverType(driverType.DriverType driverType) |
DriverObject |
withDriverVersion(String driverVersion) |
DriverObject |
withGenericDriver(String app) |
DriverObject |
withiOSDriver(String app,
String device) |
DriverObject |
withIsAvailable(Boolean isAvailable) |
DriverObject |
withTestId(String testId) |
DriverObject |
withUrl(String initialURL) |
DriverObject |
withWebDriver(String URL) |
DriverObject |
withWebDriver(String App,
String URL) |
DriverObject |
withWinDriver(String app) |
public List<org.openqa.selenium.WebDriver> webdriver
public Boolean isAvailable
public String initialURL
public String app
public driverType.DriverType driverType
public browserType.BrowserType browserType
public String driverVersion
public LoginObject login
public org.openqa.selenium.remote.DesiredCapabilities capabilities
public DriverOption options
public static Map<org.openqa.selenium.WebDriver,DriverObject> driverList
public static org.openqa.selenium.WebDriver getFirstAvailableDriver()
public static void quitTestDrivers()
public static void quitWebDriver(org.openqa.selenium.WebDriver driver)
public static void shutDownDriver(boolean isTestPass)
public static void quitAllDrivers()
public static void initializeDriverList(DriverObject driver, String testId)
driver - testId - public static void setDriverAvailabiltity(org.openqa.selenium.WebDriver driver,
boolean isAvailable)
public DriverObject withTestId(String testId)
public static String getCurrentTestId()
public static String getPreviousTestId()
public DriverObject withApp(String app)
public DriverObject withIsAvailable(Boolean isAvailable)
public DriverObject withUrl(String initialURL)
public DriverObject withBrowserType(browserType.BrowserType browserType)
public DriverObject withDriverVersion(String driverVersion)
public DriverObject withDriverType(driverType.DriverType driverType)
public DriverObject withDriverOptions(DriverOption driverOption)
public DriverObject withCapabilities(org.openqa.selenium.remote.DesiredCapabilities capabilities)
public org.openqa.selenium.remote.DesiredCapabilities getCapabilties()
public DriverOption getOptions()
public static DriverObject getCurrentDriverObject()
public static boolean isDriverSet()
public DriverObject withWebDriver(String App, String URL)
public DriverObject withWebDriver(String URL)
public DriverObject withiOSDriver(String app, String device)
public DriverObject withAndroidDriver(String app, String device)
public DriverObject withWinDriver(String app)
public DriverObject withApiDriver(String app)
public DriverObject withGenericDriver(String app)
public URL getInitURL()
Copyright © 2022. All rights reserved.