public class DriverObject extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
app |
browserType.BrowserType |
browserType |
org.openqa.selenium.remote.DesiredCapabilities |
capabilities |
static Map<org.openqa.selenium.WebDriver,DriverObject> |
driverList |
driverType.DriverType |
driverType |
String |
driverVersion |
String |
initialURL |
Boolean |
isAvailable |
List<String> |
testIdList |
List<org.openqa.selenium.WebDriver> |
webdriver |
| Constructor and Description |
|---|
DriverObject() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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 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) |
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 |
withChromeLanguage(String locale) |
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 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 org.openqa.selenium.remote.DesiredCapabilities capabilities
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 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 withCapabilities(org.openqa.selenium.remote.DesiredCapabilities capabilities)
public DriverObject getCurrentDriverObject()
public DriverObject withChromeLanguage(String locale)
public DriverObject withWebDriver(String App, 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)
Copyright © 2019. All rights reserved.