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
  •  | 
  •  

Вопрос

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.

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top