Actions a = new Actions(driver); //Right click on element WebElement button = driver.findElement(By.xpath("locator")); a.contextClick(button).perform();
Actions a = new Actions(driver); //Right click on element WebElement button = driver.findElement(By.xpath("locator")); a.contextClick(button).perform();