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
- Create a single Action object with moveByOffset() and doubleClick() methods joined in sequence. Execute this action using the perform() method.
- Create two Action objects using moveByOffset() and doubleClick() methods separately. Pass these actions as parameters to execute() method for execution.
- Create a single Action object with moveAlongX() and doubleClick() methods joined in sequence. Execute this action using the perform() method.
- Create two Action objects using moveAlongX() and doubleClick() methods separately. Pass these actions as parameters to execute() method for execution.