montagejs / screening

50 stars 16 forks source link

Only enable the visualization script with Chrome. #258

Closed eliseosoto closed 12 years ago

eliseosoto commented 12 years ago

Looks like the current visualization script interferes with clicks on non-Chrome Webdrivers so I'm disabling it.

However, please notice that there are still issues with how Opera handles clicks after moveTo (documented on operasoftware/operadriver#70).

The only cross-browser variants of .click that work are the following:

var button = agent.element("/html/body/form/button"); // Get a reference to a button
button.click(); // Works on all browsers. Defaults to left mouse button
button.click(Mouse.LEFT); // Works on all browsers
button.click(Mouse.LEFT, 10, 20); // Only works on Chrome!, the addition of coordinates creates a /moveTo operation that's not handled correctly by other browsers.

Fixes #224