Actions a = new Actions(driver);
a.moveToElement(driver.findElement(By.xpath("(//*[name()='image'])[1]"))).
doubleClick().
build().perform();
JavascriptExecutor executor = (JavascriptExecutor) driver;
WebElement element = driver.findElement(By.xpath("(//*[name()='image'])[1]"));
executor.executeScript("arguments[0].dispatchEvent(new MouseEvent('dblclick', { bubbles: true }));", element);
Or may be use JavaScript executor for double click
On Tue, Jan 17, 2023 at 15:21, ammar Khan<ammar...@yahoo.com> wrote:Not sure if it'll help, but could you remove build action. Instead use perform only, as build is already included with .perform() now.So basically your script is doing .build().build().perform()
--
You received this message because you are subscribed to the Google Groups "Selenium Experts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniumexper...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/seleniumexperts/CAH3%2BdxKg38ADbRTOsHYYA3dKVrK_on2aU7TFKU%3DiCzuw9fHMNw%40mail.gmail.com.
JavascriptExecutor executor = (JavascriptExecutor) driver;
WebElement element = driver.findElement(By.xpath("(//*[name()='image'])[1]"));
executor.executeScript("arguments[0].dispatchEvent(new MouseEvent('dblclick', { bubbles: true }));", element);
On Tue, Jan 17, 2023 at 14:47, Cris Carlo Dapitanon<crisa...@gmail.com> wrote: