Class WebElementSelector


  • @ParametersAreNonnullByDefault
    public class WebElementSelector
    extends java.lang.Object
    Thanks to http://selenium.polteq.com/en/injecting-the-sizzle-css-selector-library/
    • Constructor Detail

      • WebElementSelector

        public WebElementSelector()
    • 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)