1.

What are the differences between the methods driver.close() and driver.quit()?

Answer»

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.

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


Discussion

No Comment Found