Hi
Unable to execute for Android versions 7 and above whereas the same code is working for android 6 version.
MAC OS X: macOs High Sierra (10.13.6)
Appium: 1.9.1
Java client jar: 6.01
Android Version: 8.0.0
Desired Capabilities:
cap.setCapability(MobileCapabilityType.DEVICE_NAME, “Galaxy S8”);
cap.setCapability(MobileCapabilityType.PLATFORM_NAME, “Android”);
cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, “8.0”);
cap.setCapability(MobileCapabilityType.APP, fs.getAbsolutePath());
cap.setCapability(“automationName”, “uiautomator2”);
cap.setCapability(“appPackage”, “com.beautystack.app”);
cap.setCapability(“appActivity”, “com.beautystack.app.MainActivity”);
cap.setCapability(“deviceOrientation”, “portrait”);
cap.setCapability(“appiumVersion”, “1.9.1”);
My Code:
driver.findElementByXPath("//android.widget.EditText[@text=‘Email’]").sendKeys("28@test.com");
driver.findElementByXPath("//android.widget.EditText[@text=’’]").sendKeys(“password1”);
Please have a look and I am stuck up as it is not working for android later versions