Styrow.dev
Question 29 of 99

What is the difference between close() and quit() func of the browser?

Question

What is the difference between close() and quit() func of the browser?

Answer

Browser.close() will close the current executing window and you can always switch to other window handles even after closing currently active one.Browser.quit() - will close the complete browser with all the open windows, this func handle and makes sure the processes are closed and terminated correctly without any memory leaks.