Chrome Instances don't close after running Test Case in Protractor

前端 未结 2 961
无人及你
无人及你 2020-12-22 03:19

When I run the test multiple times so Chrome instances do not close due to which PC utilization tends to 100%. So, I have to end Chrome instances manually. There might be so

相关标签:
2条回答
  • 2020-12-22 03:44

    Another solution that has worked for everybody in our company was removing "--no-sandbox" argument from config file from the line that looked like this

    chromeOptionsArgs = ["incognito", "--window-size=1920,1080", "disable-extensions", "start-maximized", "--no-sandbox", "--test-type=browser"];
    
    0 讨论(0)
  • 2020-12-22 03:58

    By default protractor closes chrome instances after test execution unless the test fails in an irreconcilable way. So try to reset your protractor.conf.js settings back to default

    0 讨论(0)
提交回复
热议问题