Question: what is the difference between quit and close?
Answer: driver. quit() is used to exit the browser, end the session, tabs, pop-ups etc. ... It is better to use driver. close() when you are dealing with multiple tabs or windows.