0 votes
in Selenium by
What are the differences between the methods driver.close() and driver.quit()?

1 Answer

0 votes
by

The functions of these two methods (driver.close and driver.quit) are nearly identical. Although both allow us to close a browser, there is a distinction.

  1. To close the current WebDriver instance, use driver.close().
  2. To close all open WebDriver instances, use driver.quit().
...