Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
150 views
by Master (1.2k points)

1 Answer

0 like 0 dislike
by Contributing Tester (13 points)

First of all:

Action is a Class & Actions is an Interface.

Options could differ according to the requirement specification.

Actions provide multiple methods to get rid of your particular problem.

First, we need to create an object of the Actions as - Actions actions = new Actions(driver instance);

There are two different types of methods:

Depending on our requirements we can use [actions.]

1> Keyboard: sendKeys(Keys.ALT | Keys.ENTER | Keys.CONTROL | Keys.SHIFT etc.)

2> Mouse: .click() | .doubleClick() | .clickAndHold() | .dragAndDrop() | .moveToElement() | .release() etc.

once we call the actions then we must have to use the build().perform() methods to complete the ACTIONS.

 


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...