Interface Highlighter
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
SingleThreadHighlighterImpl
public interface Highlighter extends java.io.CloseableClass for turn on/off highlighting element in activeWebElement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddropState()Remove last Highlighted element and other cache.booleanhighlight(org.openqa.selenium.WebElement element, @NonNull org.openqa.selenium.WebDriver driver)Highlight element in driver and save this element forunhighlightPrev(org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver).booleanunhighlightPrev(org.openqa.selenium.WebElement currentElement, @NonNull org.openqa.selenium.WebDriver driver)Turn off highlighting for last saved element duringhighlight(org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver)or do nothing if no active element.
-
-
-
Method Detail
-
highlight
boolean highlight(@Nullable org.openqa.selenium.WebElement element, @NonNull @NonNull org.openqa.selenium.WebDriver driver)Highlight element in driver and save this element forunhighlightPrev(org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver).- Parameters:
element- WebDriver to Highlight.driver- WebDriver with JS.- Returns:
- success action
-
unhighlightPrev
boolean unhighlightPrev(@Nullable org.openqa.selenium.WebElement currentElement, @NonNull @NonNull org.openqa.selenium.WebDriver driver)Turn off highlighting for last saved element duringhighlight(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:
- success action
-
dropState
void dropState()
Remove last Highlighted element and other cache.
-
-