java - Accessing mobile virtual keyboard using appium -


i using appium mobile automation in came across situation need click on "done" button on mobile virtual keyboard after providing input. how possible in appium using webdriver?

  1. i believe solution @slavo deprecated in appium. though adb commands same key-event should work i.e

    adb shell input keyevent 66

  2. in of cases input single liner e.g. performing search. in case can make change previous line :

    webelement mytextview = <find text-view> mytextview.sendkeys("your-text/n"); // "/n" new line in java

  3. you can hide keyboard , perform actions using other screen widgets thereon. :

    driver.hidekeyboard(); webelement othergoodtogobutton = <find other useful button/widget> othergoodtogobutton.click();

  4. clicking screen coordinates using touchactions way wouldn't suggest using it.


Comments