Open a browser, open a page and print its title
Automation taskEasyAsked in: Accenture, Capgemini, Infosys, Swiggy, TCS, Tech Mahindra
Many live rounds open with: "Start Chrome, go to this URL, print the page title and close the browser." It checks that you can start a session, navigate and clean up without help.
Put the call that closes the browser in a finally block (code that runs whether or not an error happened), so the browser never stays open when a step fails.