public void clickWithKeyDown ( WebElement element , CharSequence key ) { getActions ( ) . keyDown ( key ) . click ( element ) . keyUp ( key ) . perform ( ) ; }
Simulates clicking with the supplied key pressed on the supplied element . Key will be released after click .