Class HighlightStyleBackup


  • public class HighlightStyleBackup
    extends HighlightStyle
    Backup and restore style of highlighted element.
    • Constructor Detail

      • HighlightStyleBackup

        public HighlightStyleBackup​(Map<String,​String> styles,
                                    Locator ploc,
                                    List<Locator> selectedFrameLocator)
        Constructor.
        Parameters:
        styles - style of highlighted element.
        ploc - parsed locator to highlighed element.
        selectedFrameLocator - selected frame locators.
    • Method Detail

      • restore

        public void restore​(org.openqa.selenium.WebDriver driver,
                            WebDriverElementFinder elementFinder)
        Restore style.
        Parameters:
        driver - instance of WebDriver.
        elementFinder - element finder.