I am trying to click on "Ok" Button i.e. tick mark in Android device, but its happening, since keypad has not any xpath value.
Can someone please help me on this?
Asked
Active
Viewed 908 times
0

TeSter
- 119
- 1
- 11
-
what are you using UIAutomator or AppiumInspector ? share the snap when you move your cursor on this – pankaj mishra Jan 17 '18 at 07:55
-
AppiumInspector @pankajmishra – TeSter Jan 17 '18 at 09:16
-
can you share the screenshot of AppiumInspector when you click this particular button? – pankaj mishra Jan 17 '18 at 09:46
1 Answers
0
Key presses on appium are done by
driver.press_keycode(code)
All required codes can be found here
- 66 -
KEYCODE_ENTER
So in your case, final code would be like,
driver.press_keycode(66)

Nithin Mohan
- 372
- 1
- 9