Skip to content

Commit ed0efd1

Browse files
SalehbigdeliKazuCocoa
authored andcommitted
docs: Minor fix in README (#445)
1 parent 2c2a55e commit ed0efd1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,12 +545,13 @@ strings = driver.app_strings
545545
#### Sending a key event to an Android device
546546

547547
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).
548+
found in `AndroidKey` class.
549549
Android only.
550550

551551
```python
552+
from appium.webdriver.extensions.android.nativekey import AndroidKey
552553
# sending 'Home' key event
553-
driver.press_keycode(3)
554+
driver.press_keycode(AndroidKey.HOME)
554555
```
555556

556557

0 commit comments

Comments
 (0)