Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to send any character in uppercase in Appium ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.51k
    Comment on it

    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.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: