Is it recommended to explicitly call browser.driver.quit() when running a test suite with protractor? Or does the protractor API do that for you?

StackOverflow https://stackoverflow.com/questions/23351735

  •  11-07-2023
  •  | 
  •  

Question

I am running my protractor test suite in firefox driver as part of the continuous integration process. We connect to selenium server on the grid. I have a onPrepare block as part of my test suite that logs a user in and an onComplete that logs the user out. I do not explicitly call driver.quit. Is it required? Any help will be appreciated.

Was it helpful?

Solution

Not necessary since runner teardownEnv will take care of that for you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top