What is the difference between driver.close() and driver.quit() command in Selenium WebDriver

Driver.close(): closes the web browser window that the user is currently working on, or we can also say the window that is being currently accessed by the WebDriver. 
Driver.quit(): closes down all the windows that the driver has opened. 
Note that both commands neither require any parameter nor return any value.

0 comments:

Post a Comment