jarib/watir-webdriver — Issue #105: Add methods for keyboard modified clicks (.shift_click, .ctrl_click etc)
Author: Chuckv
Created: 2011-11-03 16:29:17+00:00
State: open

Users need an easy way to simulate doing a mouse click with a keyboard key held down.

increasingly we are seeing custom control sets which allow selecting of ranges, adding or subtracting items from a selection set, using more than just basic HTML select or checkbox controls. Right now there is no easy way for users to do something like send a click with the shift or control (or command) key held down. People have tried to use sendkeys before or after clicking but this seems to just simulate tapping the shift or control key.

A example of a UI where this is needed is here http://demo.essentialobjects.com/Demos/Calendar/Designs/Windows%20(Multi-Month)/Demo.aspx (although frankly I think that UI uses shift-click incorrectly in place of control-click)

I would suggest .shift_click .control_click (which should perhaps do a 'command-click' on a mac?) with an alias of .ctrl_click, and .alt-click to start with.