Package com.codeborne.selenide.impl
Class WebElementSelector
java.lang.Object
com.codeborne.selenide.impl.WebElementSelector
Thanks to http://selenium.polteq.com/en/injecting-the-sizzle-css-selector-library/
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkThatXPathNotStartingFromSlash
(org.openqa.selenium.SearchContext context, org.openqa.selenium.By selector) protected List<org.openqa.selenium.WebElement>
evaluateSizzleSelector
(Driver driver, org.openqa.selenium.SearchContext context, org.openqa.selenium.By.ByCssSelector sizzleCssSelector) org.openqa.selenium.WebElement
findElement
(Driver driver, WebElementSource parent, org.openqa.selenium.By selector) org.openqa.selenium.WebElement
findElement
(Driver driver, WebElementSource parent, org.openqa.selenium.By selector, int index) List<org.openqa.selenium.WebElement>
findElements
(Driver driver, WebElementSource parent, org.openqa.selenium.By selector) protected void
injectSizzle
(Driver driver) protected void
injectSizzleIfNeeded
(Driver driver) protected Boolean
sizzleLoaded
(Driver driver)
-
Field Details
-
instance
-
sizzleSource
-
-
Constructor Details
-
WebElementSelector
public WebElementSelector()
-
-
Method Details
-
findElement
@CheckReturnValue @Nonnull public org.openqa.selenium.WebElement findElement(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By selector, int index) -
findElement
@CheckReturnValue @Nonnull public org.openqa.selenium.WebElement findElement(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By selector) -
findElements
@CheckReturnValue @Nonnull public List<org.openqa.selenium.WebElement> findElements(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By selector) -
checkThatXPathNotStartingFromSlash
protected void checkThatXPathNotStartingFromSlash(org.openqa.selenium.SearchContext context, org.openqa.selenium.By selector) -
evaluateSizzleSelector
-
injectSizzleIfNeeded
-
sizzleLoaded
-
injectSizzle
-