Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

Difference between webdriver Dispose, Close and .Quit

Solved 1 Answers 208 Views Selenium
0 1
I would like to know difference between


1 Answer

Best answer
WebDriver.close() will simply close open window. If its last window open, it will call webdriver.quit.

WebDriver.quit and WebDriver.dispose are same. WebDriver.quit will close all open windows and close the session as well. We do not use webdriver.dispose in Java
answered by
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.