Class SelfHealingEngine

java.lang.Object
com.epam.healenium.SelfHealingEngine

public class SelfHealingEngine extends Object
  • Constructor Details

    • SelfHealingEngine

      public SelfHealingEngine(@NotNull @NotNull org.openqa.selenium.WebDriver delegate, @NotNull @NotNull com.typesafe.config.Config config)
      Parameters:
      delegate - a delegate driver, not actually SelfHealingDriver instance.
      config - user-defined configuration
    • SelfHealingEngine

      public SelfHealingEngine(@NotNull @NotNull org.openqa.selenium.WebDriver delegate)
      Used, when client not override config explicitly
      Parameters:
      delegate - webdriver
  • Method Details

    • saveElements

      public void saveElements(Context context, List<org.openqa.selenium.WebElement> webElements)
    • getNodePath

      public List<List<com.epam.healenium.treecomparing.Node>> getNodePath(List<org.openqa.selenium.WebElement> webElements, Context context)
    • replaceHealedElementLocator

      public void replaceHealedElementLocator(List<Locator> imitatedLocators, Double score, HealedElement healedElement)
    • pageSource

      public String pageSource()
    • parseTree

      public com.epam.healenium.treecomparing.Node parseTree(String tree)
    • isHealingEnabled

      public boolean isHealingEnabled()
    • isHealingBacklighted

      public boolean isHealingBacklighted()
    • getUrlFunction

      public BiFunction<SelfHealingEngine,String,String> getUrlFunction(boolean urlForKey)
    • captureScreen

      public byte[] captureScreen(org.openqa.selenium.WebElement element)
    • getCurrentUrl

      public String getCurrentUrl()
    • loadStoredSelectors

      public void loadStoredSelectors()
    • initReport

      public void initReport()
    • quit

      public void quit()