Tell me how do perform drag and drop using Selenium WebDriver?

Submitted by: Muhammad
The next Actions class is used to perform drag and drop:

Actions builder = new Actions(driver);
Action dragAndDrop = builder.clickAndHold(SourceElement)
moveToElement(TargetElement)
release(TargetElement)
build();
dragAndDrop.perform();
Submitted by: Muhammad

Read Online Automation Job Interview Questions And Answers