0
two elements drage and droup to the destination at a time-using Actions class

Solved 1 Answers 20 Views Selenium
press --control and perform action at a time--how can i achive this

1 Answer

0
Best answer

Try this:

Actions actions = new Actions(driver);

Action dragAndDrop = actions.clickAndHold(someElement)
   .KeyDown(Keys.Control)
   .Click(second_WebElement)
   .KeyUp(Keys.Control)
   .moveToElement(otherElement)
   .release(otherElement)
   .build();

dragAndDrop.perform();

 

Let me know results.

answered Mar 14, 2016 by stbadmin (4,970 points)
selected Mar 7 by stbadmin
...