power_settings_new

Difference between webdriver Dispose, Close and .Quit

by
asked
0 votes
271 views
I would like to know difference between

    Webdriver.Close()
    Webdriver.Quit()
    Webdriver.Dispose()

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.

1 Answer

answered by
selected by
0 votes
 
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
add
...