Environments configured to be headless are not running headless in 2.x #3152
-
In 2.x versions, while using chromedriver, the tests will be run in a chrome window even if the used environment has "--headless" listed under chrome options. The exact same settings run headless in versions before 2.0, specifically it runs headless in 1.7.4 and 1.6(I did not note the full version for the 1.6 version I used). Add --headless to the command when running the test still works it's just the trying to apply it to the environment through chromeOptions which seems to be the issue. Not sure if there was some change that means I need to do something in a different way that I'm not seeing in any of the release notes, so I figured I'd see if anyone knows why this might not be working before submitting it as an issue. This is the environment configuration from my nightwatch.json
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
the workaround is to pass --headless in CLI |
Beta Was this translation helpful? Give feedback.
-
For v2 you have to use |
Beta Was this translation helpful? Give feedback.
For v2 you have to use
goog:chromeOptions
instead ofchromeOptions
.