Healenium-dotNet is a wrapper library for Selenium WebDriver that provides self-healing functionality.
When locators fail to find elements, this self-healing mechanism tries to find the most similar element on the page and use it for interaction.
In addition to the standard driver, the implementation also supports SelfHealingDriverWait, following the explicit wait pattern in Selenium WebDriver.
To install Healenium-dotNet, run the following command in the Package Manager Console:
dotnet add package Healenium-dotNet --version 1.0.0
Here is how you can initialize a SelfHealingDriver:
using Healenium_dotNet;
var driver = new SelfHealingDriver(new Uri("http://localhost:8085"), new FirefoxOptions());
http://localhost:8085 - Your Healenium-Proxy service address.
To use SelfHealingDriverWait, first, ensure you have a SelfHealingDriver instance. Next, initialize SelfHealingDriverWait like this:
var _driver = new SelfHealingDriver(new Uri("http://localhost:8085"), new FirefoxOptions());
var wait = new SelfHealingDriverWait(_driver, TimeSpan.FromSeconds(10));
Note that it's important to pass a SelfHealingDriver instance to SelfHealingDriverWait to ensure it works correctly.
Further interactions with SelfHealingDriver and SelfHealingDriverWait follow the standard Selenium WebDriver operations.
This project is licensed under the terms of the Apache License 2.0. You can read the full license here.
For questions and suggestions, please contact: