Approach: Our task is to write an automation script that will open geeksforgeeks web page and refresh it. In order to perform the same we have to follow the following steps:
- Create a webdriver (here chromedriver for chrome browser).
- Build a new window of chrome using the chromedriver.
- Navigate to geeksforgeeks website using the get method.
- Refresh the page using refresh method.
Below is the implementation of the above approach:
Step to run the above code: Open the terminal and type the following command.
Please Login to comment...