public class ElementFinder extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ElementFinder.CustomStrategy |
protected static class |
ElementFinder.FindByCoordinates |
protected static class |
ElementFinder.KeyAttrs |
protected static interface |
ElementFinder.Strategy |
protected static class |
ElementFinder.StrategyEnum |
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<org.python.util.PythonInterpreter> |
loggingPythonInterpreter |
protected static Hashtable<String,ElementFinder.CustomStrategy> |
registeredLocationStrategies |
| Constructor and Description |
|---|
ElementFinder() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLocationStrategy(String strategyName,
String functionDefinition,
String delimiter) |
protected static boolean |
elementMatches(org.openqa.selenium.WebElement element,
ElementFinder.FindByCoordinates findByCoordinates) |
protected static List<org.openqa.selenium.WebElement> |
filterElements(List<org.openqa.selenium.WebElement> elements,
ElementFinder.FindByCoordinates findByCoordinates) |
static List<org.openqa.selenium.WebElement> |
find(org.openqa.selenium.WebDriver webDriver,
String locator) |
static List<org.openqa.selenium.WebElement> |
find(org.openqa.selenium.WebDriver webDriver,
String locator,
String tag) |
protected static List<org.openqa.selenium.WebElement> |
findByJQuerySizzle(org.openqa.selenium.WebDriver webDriver,
ElementFinder.FindByCoordinates findByCoordinates) |
protected static List<org.openqa.selenium.WebElement> |
findByKeyAttrs(org.openqa.selenium.WebDriver webDriver,
ElementFinder.FindByCoordinates findByCoordinates) |
protected static List<String> |
getAttrsWithUrl(org.openqa.selenium.WebDriver webDriver,
ElementFinder.KeyAttrs keyAttrs,
String criteria) |
protected static String |
getBaseUrl(org.openqa.selenium.WebDriver webDriver) |
protected static ElementFinder.Strategy |
parseLocator(ElementFinder.FindByCoordinates findByCoordinates,
String locator) |
protected static void |
parseTag(ElementFinder.FindByCoordinates findByCoordinates,
ElementFinder.Strategy strategy,
String tag) |
protected static List<org.openqa.selenium.WebElement> |
toList(Object o) |
protected static void |
warn(String msg) |
protected static final Hashtable<String,ElementFinder.CustomStrategy> registeredLocationStrategies
protected static ThreadLocal<org.python.util.PythonInterpreter> loggingPythonInterpreter
protected static List<org.openqa.selenium.WebElement> findByJQuerySizzle(org.openqa.selenium.WebDriver webDriver, ElementFinder.FindByCoordinates findByCoordinates)
protected static List<org.openqa.selenium.WebElement> filterElements(List<org.openqa.selenium.WebElement> elements, ElementFinder.FindByCoordinates findByCoordinates)
protected static boolean elementMatches(org.openqa.selenium.WebElement element,
ElementFinder.FindByCoordinates findByCoordinates)
protected static List<org.openqa.selenium.WebElement> findByKeyAttrs(org.openqa.selenium.WebDriver webDriver, ElementFinder.FindByCoordinates findByCoordinates)
protected static List<String> getAttrsWithUrl(org.openqa.selenium.WebDriver webDriver, ElementFinder.KeyAttrs keyAttrs, String criteria)
protected static String getBaseUrl(org.openqa.selenium.WebDriver webDriver)
public static void addLocationStrategy(String strategyName, String functionDefinition, String delimiter)
public static List<org.openqa.selenium.WebElement> find(org.openqa.selenium.WebDriver webDriver, String locator)
public static List<org.openqa.selenium.WebElement> find(org.openqa.selenium.WebDriver webDriver, String locator, String tag)
protected static void warn(String msg)
protected static ElementFinder.Strategy parseLocator(ElementFinder.FindByCoordinates findByCoordinates, String locator)
protected static void parseTag(ElementFinder.FindByCoordinates findByCoordinates, ElementFinder.Strategy strategy, String tag)
Copyright © 2014. All rights reserved.