"What does driver.quit do? Need a clear explanation."
Hey folks, kinda new to Selenium and keep seeing driver.quit explain stuff but not really getting it. Like, why can't I just close the browser manually?
From what I gather, driver.quit kills the entire WebDriver session, cleans up resources, and closes *all* windows. If you just close the tab or use driver.close(), it might leave stuff running in the background.
But when do you *actually* use it? Like, after every test? Only at the end? I’ve seen both, and now I’m confused.
Also, does it matter if I forget to use it? My scripts seem to work fine without it... until they don’t lol.
Would love a simple driver.quit explain breakdown. Thanks!
Hey folks, kinda new to Selenium and keep seeing driver.quit explain stuff but not really getting it. Like, why can't I just close the browser manually?
From what I gather, driver.quit kills the entire WebDriver session, cleans up resources, and closes *all* windows. If you just close the tab or use driver.close(), it might leave stuff running in the background.
But when do you *actually* use it? Like, after every test? Only at the end? I’ve seen both, and now I’m confused.
Also, does it matter if I forget to use it? My scripts seem to work fine without it... until they don’t lol.
Would love a simple driver.quit explain breakdown. Thanks!
