Class DriverFactoryHelper
java.lang.Object
com.shaft.driver.internal.DriverFactory.DriverFactoryHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
closeDriver
(org.openqa.selenium.WebDriver driver) void
void
initializeDriver
(@NonNull DriverFactory.DriverType driverType) void
initializeDriver
(@NonNull DriverFactory.DriverType driverType, org.openqa.selenium.MutableCapabilities customDriverOptions) void
initializeDriver
(@NonNull org.openqa.selenium.WebDriver driver) void
initializeDriver
(org.openqa.selenium.MutableCapabilities customDriverOptions) static void
static boolean
Checks to see if the execution is a mobile-native executionstatic boolean
Checks to see if the execution is a mobile-web executionstatic boolean
Checks to see if the execution is a web-based execution
-
Constructor Details
-
DriverFactoryHelper
public DriverFactoryHelper() -
DriverFactoryHelper
public DriverFactoryHelper(org.openqa.selenium.WebDriver driver)
-
-
Method Details
-
isMobileNativeExecution
public static boolean isMobileNativeExecution()Checks to see if the execution is a mobile-native execution- Returns:
- true if it's a mobile mobile-native execution
-
isMobileWebExecution
public static boolean isMobileWebExecution()Checks to see if the execution is a mobile-web execution- Returns:
- true if it's a mobile mobile-web execution
-
isNotMobileExecution
public static boolean isNotMobileExecution()Checks to see if the execution is a web-based execution- Returns:
- true if it's a web-based execution
-
initializeSystemProperties
public static void initializeSystemProperties() -
closeDriver
public void closeDriver() -
closeDriver
public void closeDriver(org.openqa.selenium.WebDriver driver) -
initializeDriver
public void initializeDriver() -
initializeDriver
-
initializeDriver
public void initializeDriver(org.openqa.selenium.MutableCapabilities customDriverOptions) -
initializeDriver
public void initializeDriver(@NonNull @NonNull DriverFactory.DriverType driverType, org.openqa.selenium.MutableCapabilities customDriverOptions) -
initializeDriver
public void initializeDriver(@NonNull @NonNull org.openqa.selenium.WebDriver driver)
-