healenium / healenium-appium

Self-healing library for Appium-based tests
Apache License 2.0
26 stars 9 forks source link

Self Healing for appium is not working, shows element not found #36

Open shadab2510 opened 3 years ago

shadab2510 commented 3 years ago

I have setup healinium for appium , the driver finds elements at the first time, but if i there is change in the locator , so at the time of healing , it throws element not found , means healenium didn't work, Also i have put the following dependency in my pom.xml

com.epam.healenium healenium-appium 1.2

I have the below line of code to iniatilizing the healenium driver for appium

                    DesiredCapabilities Hcap = new DesiredCapabilities();
        appPath = projectPath + "" + "/src/main/resources/apk/Test_V1.2.apk";
        Hcap.setCapability("app", appPath);
        Hcap.setCapability("newCommandTimeout", 60000);
        Hcap.setCapability("udid", registry.get("deviceId"));
        Hcap.setCapability("deviceName", "Android");
        Hcap.setCapability("unicodeKeyboard", true);
        //capabilities.setCapability(MobileCapabilityType.NO_RESET, false);
        Hcap.setCapability("noReset", "false");
        Hcap.setCapability("fullReset", "true");
        deligateDriver = new AndroidDriver<AndroidElement>(new URL("http://127.0.0.1:4723/wd/hub"), Hcap);
        driver = DriverWrapper.wrap(deligateDriver);