Package com.codeborne.selenide.impl
Class WebElementSelector
- java.lang.Object
-
- com.codeborne.selenide.impl.WebElementSelector
-
@ParametersAreNonnullByDefault public class WebElementSelector extends java.lang.ObjectThanks to http://selenium.polteq.com/en/injecting-the-sizzle-css-selector-library/
-
-
Field Summary
Fields Modifier and Type Field Description static WebElementSelectorinstanceprotected java.lang.StringsizzleSource
-
Constructor Summary
Constructors Constructor Description WebElementSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckThatXPathNotStartingFromSlash(org.openqa.selenium.SearchContext context, org.openqa.selenium.By selector)protected java.util.List<org.openqa.selenium.WebElement>evaluateSizzleSelector(Driver driver, org.openqa.selenium.SearchContext context, org.openqa.selenium.By.ByCssSelector sizzleCssSelector)org.openqa.selenium.WebElementfindElement(Driver driver, org.openqa.selenium.SearchContext context, org.openqa.selenium.By selector)java.util.List<org.openqa.selenium.WebElement>findElements(Driver driver, org.openqa.selenium.SearchContext context, org.openqa.selenium.By selector)protected voidinjectSizzle(Driver driver)protected voidinjectSizzleIfNeeded(Driver driver)protected java.lang.BooleansizzleLoaded(Driver driver)
-
-
-
Field Detail
-
instance
public static WebElementSelector instance
-
sizzleSource
protected java.lang.String sizzleSource
-
-
Method Detail
-
findElement
@CheckReturnValue @Nonnull public org.openqa.selenium.WebElement findElement(Driver driver, org.openqa.selenium.SearchContext context, org.openqa.selenium.By selector)
-
findElements
@CheckReturnValue @Nonnull public java.util.List<org.openqa.selenium.WebElement> findElements(Driver driver, org.openqa.selenium.SearchContext context, org.openqa.selenium.By selector)
-
checkThatXPathNotStartingFromSlash
protected void checkThatXPathNotStartingFromSlash(org.openqa.selenium.SearchContext context, org.openqa.selenium.By selector)
-
evaluateSizzleSelector
@CheckReturnValue @Nonnull protected java.util.List<org.openqa.selenium.WebElement> evaluateSizzleSelector(Driver driver, org.openqa.selenium.SearchContext context, org.openqa.selenium.By.ByCssSelector sizzleCssSelector)
-
injectSizzleIfNeeded
protected void injectSizzleIfNeeded(Driver driver)
-
sizzleLoaded
protected java.lang.Boolean sizzleLoaded(Driver driver)
-
injectSizzle
protected void injectSizzle(Driver driver)
-
-