Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

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

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

1 Answer

0
Best answer
0

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 by (192 points)
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors

...