Wednesday, 18 December 2013

General Mouse User Interactions Using Webdriver in java

To perform sereies of actions using mouse then do like below

Actions builder = new Actions(driver);
builder.keyDown(Keys.CONTROL)
.click(someElement)
.click(someOtherElement)
.keyUp(Keys.CONTROL);
Action selectMultiple = builder.build();
selectMultiple.perform();

No comments:

Post a Comment