How to avoid closing of browser in Selenium WebDriver?

Remove the "driver.quit();" to avoid closing of browser in Selenium WebDriver.

"driver.quit();" will be usually in the method where @After annotation is used.


Be very careful in removing "driver.quit();" this code since it may cause failure in some kind of tasks where "driver.quit();" is used explicitly for their requirement.


No comments:

Post a Comment

Sharing is Caring!!! Share this with your friends!!!

submit to reddit