Selenium driver.close and driver.quit difference

Techie,

While automating any program very basic question we have at the end.

Difference between driver.close and driver.quit method.

driver.close: Close the current browser window on which focus is set.
driver.quit: Close all browser instances which will call dispose method internally and terminate session gracefully.

Hope that helps.

Stay tunes for more such topics.


Comments

Popular Posts