Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shadab2510 opened this issue Sep 25, 2021 · 0 comments
Open

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

shadab2510 opened this issue Sep 25, 2021 · 0 comments

Comments

@shadab2510
Copy link

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant