Interface Highlighter

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    SingleThreadHighlighterImpl

    public interface Highlighter
    extends java.io.Closeable
    Class for turn on/off highlighting element in active WebElement.
    • Method Detail

      • unhighlightPrev

        boolean unhighlightPrev​(@Nullable
                                org.openqa.selenium.WebElement currentElement,
                                @NonNull
                                @NonNull org.openqa.selenium.WebDriver driver)
        Turn off highlighting for last saved element during highlight(org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver) or do nothing if no active element.
        Parameters:
        currentElement - WebDriver to Turn off highlighting.
        driver - WebDriver with JS.
        Returns:
      • dropState

        void dropState()
        Remove last Highlighted element and other cache.