Selenium webdriver provides two methods for closing a browser window – driver.close() and driver.quit(). Some people incorrectly use them interchangeably but the two methods are different. Driver.close( ): It is used to close the browser or page currently in focus. close( ) is a webdriver command which closes the browser window which is currently in …