Class LocatorUtil
- java.lang.Object
-
- org.uitnet.testing.smartfwk.ui.core.utils.LocatorUtil
-
public class LocatorUtil extends Object
- Author:
- Madhav Krishna
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringfindImage(Map<String,String> platFormImages, PlatformType platform, ApplicationType appType, WebBrowserType browserType)static LocatorfindLocator(Map<String,Locator> platFormLocators, PlatformType platform, ApplicationType appType, WebBrowserType browserType)static org.openqa.selenium.WebElementfindWebElement(org.openqa.selenium.WebDriver appDriver, Locator locator)static List<org.openqa.selenium.WebElement>findWebElements(org.openqa.selenium.WebDriver appDriver, Locator locator)static StringgetCssValue(org.openqa.selenium.WebElement webElem, String cssKey)static voidsetPlatformImageForNativeApp(Map<String,String> platFormImages, PlatformType platform, String image)static voidsetPlatformImageForWebApp(Map<String,String> platFormImages, PlatformType platform, WebBrowserType browserType, String image)static voidsetPlatformLocatorForNativeApp(Map<String,Locator> platFormLocators, PlatformType platform, LocateBy locateBy, String locatorValue)static voidsetPlatformLocatorForWebApp(Map<String,Locator> platFormLocators, PlatformType platform, WebBrowserType browserType, LocateBy locateBy, String locatorValue)
-
-
-
Method Detail
-
setPlatformLocatorForNativeApp
public static void setPlatformLocatorForNativeApp(Map<String,Locator> platFormLocators, PlatformType platform, LocateBy locateBy, String locatorValue)
-
setPlatformLocatorForWebApp
public static void setPlatformLocatorForWebApp(Map<String,Locator> platFormLocators, PlatformType platform, WebBrowserType browserType, LocateBy locateBy, String locatorValue)
-
setPlatformImageForNativeApp
public static void setPlatformImageForNativeApp(Map<String,String> platFormImages, PlatformType platform, String image)
-
setPlatformImageForWebApp
public static void setPlatformImageForWebApp(Map<String,String> platFormImages, PlatformType platform, WebBrowserType browserType, String image)
-
findLocator
public static Locator findLocator(Map<String,Locator> platFormLocators, PlatformType platform, ApplicationType appType, WebBrowserType browserType)
-
findImage
public static String findImage(Map<String,String> platFormImages, PlatformType platform, ApplicationType appType, WebBrowserType browserType)
-
findWebElement
public static org.openqa.selenium.WebElement findWebElement(org.openqa.selenium.WebDriver appDriver, Locator locator)
-
findWebElements
public static List<org.openqa.selenium.WebElement> findWebElements(org.openqa.selenium.WebDriver appDriver, Locator locator)
-
-