Package core.uiCore.drivers
Class AbstractDriver
- java.lang.Object
-
- core.uiCore.drivers.AbstractDriver
-
public class AbstractDriver extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intTIMEOUT_IMPLICIT_SECONDSstatic intTIMEOUT_SECONDSglobal timeout in seconds
-
Constructor Summary
Constructors Constructor Description AbstractDriver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<org.openqa.selenium.WebDriver,DriverObject>getDriverList()static ThreadLocal<com.aventstack.extentreports.ExtentTest>getStep()static org.openqa.selenium.WebDrivergetWebDriver()static BooleanisFirstRun()static booleanisJunit()static booleanisTestNG()check if testng is the runnervoidsetupDriver(DriverObject driverObject)static voidsetWebDriver(org.openqa.selenium.WebDriver webDriver)
-
-
-
Method Detail
-
setupDriver
public void setupDriver(DriverObject driverObject) throws Exception
- Throws:
Exception
-
getWebDriver
public static org.openqa.selenium.WebDriver getWebDriver()
-
setWebDriver
public static void setWebDriver(org.openqa.selenium.WebDriver webDriver)
-
getStep
public static ThreadLocal<com.aventstack.extentreports.ExtentTest> getStep()
-
isFirstRun
public static Boolean isFirstRun()
-
getDriverList
public static Map<org.openqa.selenium.WebDriver,DriverObject> getDriverList()
-
isJunit
public static boolean isJunit()
-
isTestNG
public static boolean isTestNG()
check if testng is the runner- Returns:
-
-