Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
1.0k views
in Selenium by
I would like to know difference between

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

1 Answer

0 like 0 dislike
by
selected by
 
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


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...