Go back and forward in the browser history
Automation taskEasyAsked in: Accenture, Infosys, TCS, Wipro
A common question: "What is the difference between get() and navigate(), and how do you go back, forward and refresh?" Here you move through the history and print the title after each step, so you can see where the browser is at every point.