Selenium 2.0 WebDriver Advcanced Interactions DoubleClick Help (c#)

spacebed picture spacebed · Dec 5, 2011 · Viewed 20.8k times · Source

So within my selenium regression tests, I've been trying to double click on a calendar to make a new appt. I have attempted to use the doubleClick(); method within the advanceduserinteractions library, but there is an issue; the two clicks aren't fast enough/close enough together to fire an actual double-click! Has anybody found a way to deal with this in their testing?

Answer

Verica picture Verica · Dec 26, 2011

This code works for me!

Actions action = new Actions(driver);
action.doubleClick(myElemment);
action.perform();