Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

straker
Copy link
Contributor

@straker straker commented Jan 23, 2024

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: #991

@straker straker requested a review from a team as a code owner January 23, 2024 17:21
@straker straker merged commit 0daba98 into develop Jan 23, 2024
30 checks passed
@straker straker deleted the selenium-4.17.0 branch January 23, 2024 18:43
This was referenced Jan 23, 2024
@dequejenn dequejenn mentioned this pull request Jan 24, 2024
@github-actions github-actions bot mentioned this pull request Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: TypeError: (intermediate value).headless is not a function
2 participants