0 votes
in Selenium by
What are driver.close() and driver.quit() in WebDriver?

1 Answer

0 votes
by
What are driver.close() and driver.quit() in WebDriver?

These are two different methods used to close the browser session in Selenium WebDriver:

driver.close() - This is used to close the current browser window on which the focus is set. In this case, there is only one browser open.

driver.quit() - It closes all the browser windows and ends the WebDriver session using the driver.dispose method.

Related questions

0 votes
asked Jan 9 in Selenium by sharadyadav1986
0 votes
asked Jan 31, 2020 in Selenium by SakshiSharma
...