Using Selenium, select the best practice for simulating the following user scenario:
- Go to https://www.testdome.com
- Click on the following HTML element: <a href="/tour">Tour</a>
Commands need to cover the whole interaction, from opening a web browser to closing it.
(Select all acceptable answers.)
Create a system process based on the path to the Chrome web browser.
Instantiate Chrome WebDriver.
Provide https://www.testdome.com as the first argument when running the Chrome process.
On WebDriver, call functions for getting or navigating to https://www.testdome.com
Using WebDriver, get the document instance, and create MouseEvent on it.
On WebDriver, call functions for finding the “Tour” element by link text.
Find X and Y coordinates of an element with the “Tour” link text.
Call the click function on the found element.
Fire MouseEvent on X and Y coordinates.
Call the function for closing the window on WebDriver.
Close the process containing the Chrome instance.