How would you double click in Selenium ?
It’s very simple. You just need few lines of code.
You will need to use Actions class .
Here is the sample code:
WebDriver driver=new FirefoxDriver();
//on below element , we will double click
// Create object of Actions class and build action
Action myAction=new Actions(driver).doubleClick(we).build(); myAction.perform();
We need to create the object of Actions class and use the double click method.
Now, we have to make our action , so that can be done using build() method.
well, if action is ready, you just need to call perform() method.