Package core.helpers.legacy
Class DriverLegacy
java.lang.Object
core.helpers.legacy.DriverLegacy
public class DriverLegacy extends Object
-
Constructor Summary
Constructors Constructor Description DriverLegacy() -
Method Summary
Modifier and Type Method Description static EnhancedBygetEnhancedElement(org.openqa.selenium.WebElement target)protected static String[]getLocator(org.openqa.selenium.WebElement element)retrieves locator values from a webElementstatic String[]getLocatorThroughParsing(String element)attempt to get the locator from WebElement through parsing the toString()static voidsetDriver(org.openqa.selenium.WebDriver driver)set the webDriver from webDriver or mobileDriver without relying on global flagstatic voidsetDriver(org.openqa.selenium.WebDriver driver, boolean isPropertyDisabled, int timeoutSec, int implicitSec)protected static EnhancedBysetEnhancedElement(String selector, String value)
-
Constructor Details
-
DriverLegacy
public DriverLegacy()
-
-
Method Details
-
getEnhancedElement
-
getLocator
retrieves locator values from a webElement- Parameters:
element-- Returns:
-
getLocatorThroughParsing
attempt to get the locator from WebElement through parsing the toString()- Parameters:
element-- Returns:
-
setDriver
public static void setDriver(org.openqa.selenium.WebDriver driver)set the webDriver from webDriver or mobileDriver without relying on global flag -
setDriver
public static void setDriver(org.openqa.selenium.WebDriver driver, boolean isPropertyDisabled, int timeoutSec, int implicitSec) -
setEnhancedElement
-