Tried running the script multiple times but no success. Even checked the keyboard settings but not found “Appium Android Input Manager” in the keyboard list.
After trying mentioned ways on web. I just thought to try other way, even though it is not correct but I had spent more time with this issue I tried following shortcut method:
After getting soft keyboard I just refreshed the page.
webdriver.navigate().refresh();
Why not simple select an other element and click() on it to hide the keyboard? Like this:
await driver.waitForElementByAccessibilityId(‘donglePin’, 20000).elementByAccessibilityId(‘donglePin’).setText(donglePin);
await driver.waitForElementByAccessibilityId(‘donglePinEntryIcon’, 20000).elementByAccessibilityId(‘donglePinEntryIcon’).click(); //keyboard is hidden now
I’m having the same issue where I would like to hide the native keyboard within my app testing.
Where exactly would I put tis line of code please? appium_driver.hide_keyboard
Thanks
Zaif