An NDoc Documented Class Library |

# ISelenium.SetMouseSpeed Method

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.

void SetMouseSpeed(
string pixels
);

#### Parameters

pixels
  the number of pixels between "mousemove" events

#### See Also

ISelenium Interface | Selenium Namespace