Question: what is the difference between driver.close() and driver.quit() methods?
Answer: driver. quit() is used to exit the browser, end the session, tabs, pop-ups etc. But the when you driver. close(), only the window that has focus is closed.