dequelabs / axe-core-npm

Mozilla Public License 2.0
577 stars 65 forks source link

fix(webdriverjs): use new headless argument to fix selenium-webdriver@4.17.0 breaking release #992

Closed straker closed 6 months ago

straker commented 6 months ago

Selenium-webdriver@4.17.0 released a breaking change that removed the deprecated function to call setHeadless or headless. Fixed by using the new addArugments with --headless, and feature detecting the function before calling it in order to support older versions of selenium.

Also patched pin to selenium-webdriver as they do not follow semver and can release breaking changes in minor versions.

Closes: https://github.com/dequelabs/axe-core-npm/issues/991