Hi All,
I am new to Mobile Automation.
Currently I am using Appium 1.6.4 and Android 7.0 (Samsung Galaxy Edge S7)
Below is my code snippet.
public void enterPIN(){
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
String strPIN = dataTable.getData("RegisterUser_Data", "PIN").trim();
try{
if (isElementPresent(NativeLogin.txtPin0)) {
driver.findElementById("com.homeserve.androidapp:id/digit0").sendKeys("1234");
report.updateTestLog("Enter PIN", "PIN has been entered successfully", Status.PASS);
}
else{
report.updateTestLog("Enter PIN","PIN has not been entered successfully", Status.FAIL);
}
}
catch(Exception e){
e.printStackTrace();
}
}
Before upgrading Appium and Android the above code worked fine.. means the Sendkeys worked fine.
Once upgrading all softwares, the sendkeys are executed, but actually no values are inputted to the field.
I tried
1. click() and Sendkeys() together,
2. tab and sendkeys
3. JavascriptExecutor
None of the worked. Kindly let me know the solutions if any.
Attached the Screenshot of the page captured in appium inspector.
Note: For the same app in iOS device, the same line of code is working fine.