We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c2a55e commit ed0efd1Copy full SHA for ed0efd1
README.md
@@ -545,12 +545,13 @@ strings = driver.app_strings
545
#### Sending a key event to an Android device
546
547
The `driver.keyevent` method sends a keycode to the device. The keycodes can be
548
-found [here](http://developer.android.com/reference/android/view/KeyEvent.html).
+found in `AndroidKey` class.
549
Android only.
550
551
```python
552
+from appium.webdriver.extensions.android.nativekey import AndroidKey
553
# sending 'Home' key event
-driver.press_keycode(3)
554
+driver.press_keycode(AndroidKey.HOME)
555
```
556
557
0 commit comments