jest-webdriver
jest-webdriver copied to clipboard
Set headless option when using firefox driver
Firefox supports running in headless mode as of version 56. This seems to be a desirable default compared to the current situation. MDN provides instructions here on how to enable headless mode when using Selenium: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode . Right now, jest-webdriver calls build()
directly on the webdriver builder, without passing any options. We could maybe:
- Detect when the browser string is "firefox" and append the headless option (maybe only if we detect a recent enough version ?)
- Or, if this is deemed to be too intrusive, allow the user to customize the builder options (the user could then add the "headless" switch for Firefox manually)
PR #3 seems to enable this, I should have checked it before filing a new issue
Hi guys, is this possible to run Firefox or Chrome in headless mode?