Search code examples
javaselenium-rckeypress

how to key press 2 keys in selenium


Say my shortcut is shift + r. How to press 2 keys in Selenium RC using Java?


Solution

  • use these methods

    keyDownNative('10') // VK_SHIFT
    keyPressNative('52') // R
    keyUpNative('10') // VK_SHIFT