Method: Selenium::Client::GeneratedDriver#set_mouse_speed
- Defined in:
- lib/selenium/client/legacy_driver.rb
#set_mouse_speed(pixels) ⇒ Object
Configure the number of pixels between “mousemove” events during dragAndDrop commands (default=10). Setting this value to 0 means that we’ll send a “mousemove” event to every single pixel in between the start location and the end location; that can be very slow, and may cause some browsers to force the JavaScript to timeout. If the mouse speed is greater than the distance between the two dragged objects, we’ll just send one “mousemove” at the start location and then one final one at the end location.
‘pixels’ is the number of pixels between “mousemove” events
1169 1170 1171 |
# File 'lib/selenium/client/legacy_driver.rb', line 1169 def set_mouse_speed(pixels) remote_control_command("setMouseSpeed", [pixels,]) end |