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.
Selenium-webdriver@4.17.0 released a breaking change that removed the deprecated function to call
setHeadless
orheadless
. Fixed by using the newaddArugments
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