over 9 years ago
Appium provides keycodes for the alphabets only in the lowercase. If we have to send any alphabet in uppercase then we have to send the keycode of that alphabet with the shift keycode. Practically also we first press the shift key and then press the desired key.
Appium library provides a method through which a key event is send along with an Android metastate to an Android device.
pressKeyCode(integer key, Integer metastate)
Lets take a scenario of sending the alphabet "K" in uppercase.
driver.pressKeyCode(39, 59);
39 is the keycode for K and 59 is the keycode for Shiftkey.
Can you help out the community by solving one of the following Automation problems?
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
0 Comment(s)