Selenium Java - Actions Class
Identify the error in the following Selenium Java code for drag and drop:
WebElement source = driver.findElement(By.id("drag"));
WebElement target = driver.findElement(By.id("drop"));
Actions actions = new Actions(driver);
actions.clickAndHold(source).moveToElement(target).perform();