Testing a web page in Selenium

While testing a web page in Selenium, you want to move the mouse 5 units to the right from the current position and carry out a double click action.

Which of the these are valid options to be used for this purpose?

Options
  1. Create a single Action object with moveByOffset() and doubleClick() methods joined in sequence. Execute this action using the perform() method.
  2. Create two Action objects using moveByOffset() and doubleClick() methods separately. Pass these actions as parameters to execute() method for execution.
  3. Create a single Action object with moveAlongX() and doubleClick() methods joined in sequence. Execute this action using the perform() method.
  4. Create two Action objects using moveAlongX() and doubleClick() methods separately. Pass these actions as parameters to execute() method for execution.

Related Posts

Close Bitnami banner
Bitnami