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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckThatXPathNotStartingFromSlash(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.WebElementfindElement(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By selector) org.openqa.selenium.WebElementfindElement(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By selector, int index) List<org.openqa.selenium.WebElement>findElements(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By selector) protected voidinjectSizzle(Driver driver) protected voidinjectSizzleIfNeeded(Driver driver) protected BooleansizzleLoaded(Driver driver)
-
Field Details
-
sizzleSource
-
-
Constructor Details
-
WebElementSelector
public WebElementSelector()
-
-
Method Details
-
findElement
public org.openqa.selenium.WebElement findElement(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By selector, int index) -
findElement
public org.openqa.selenium.WebElement findElement(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By selector) -
findElements
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
-