0

Hi I want to click on 'Done' button in the virtual keyboard on android devices. Here i am entering an password in the devices after that i have to press 'Done' key in the virtual keyboard to proceed further.

Is there any way to do this by using Python 2.7 and appium?

bharath
  • 17
  • 1
  • 7

3 Answers3

0

ADB commands should work example...'adb shell input keyevent 66'

Essentially, you can use adb to interact with the phone and send keys. See if ENTER works and then just use that.

Good answer here....ADB Shell Input Events

Brian O'Neill
  • 329
  • 1
  • 5
  • it's not working with any event code. In the android phone dial pad i have to click on "Done" button? – bharath Aug 30 '19 at 07:20
  • So your phone is connected to your PC/Mac. When the application is open can you use your keyboard to interact with the phone to enter the username/password? – Brian O'Neill Aug 30 '19 at 08:51
0

The simple of it, you just use:

Press Keycode       66

here you can find some more event code.

Sidara KEO
  • 1,693
  • 1
  • 14
  • 34
0

Use adb shell input keyevent 4 to close the keyboard and then use adb shell input keyevent 66 to press the enter key

krishna chetan
  • 659
  • 1
  • 10
  • 20