Selenium Java - Actions Class
Identify the error in the following Selenium Java code snippet that tries to right-click on a button:
WebElement button = driver.findElement(By.name("submit"));
Actions action = new Actions(driver);
action.contextClick().perform();