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
All Methods Static Methods Concrete Methods 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)
-
-
-
Method Detail
-
getEnhancedElement
public static EnhancedBy getEnhancedElement(org.openqa.selenium.WebElement target)
-
getLocator
protected static String[] getLocator(org.openqa.selenium.WebElement element)
retrieves locator values from a webElement- Parameters:
element-- Returns:
-
getLocatorThroughParsing
public static String[] getLocatorThroughParsing(String element)
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
protected static EnhancedBy setEnhancedElement(String selector, String value)
-
-