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

0
Difference between webdriver Dispose, Close and .Quit

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

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

1 Answer

0
Best answer
0
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.
...