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

moved desired_capabilities inside if statement to add compatibility … #1202

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

webjunkie01
Copy link
Contributor

@webjunkie01 webjunkie01 commented Oct 8, 2023

According to this commit here SeleniumHQ/selenium@9f5801c#diff-89ba579445647535b74423c7bf4b8be79ef1ce33847a2768e623c3083a33545d

desired_capabilities has been removed from selenium 4.10.0 and up. This commits allows for old and new versions of selenium to work either using the newer options argument or the old desired_capabilities. This also prevents the error from selenium TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities'
It fixes issue #1173

@brondsem
Copy link
Contributor

IMO this is good. It fixes #1173 which would be really good to resolve. Anyone able to review and merge this?

@fsouza fsouza merged commit 37206d6 into cobrateam:master Nov 4, 2023
21 checks passed
@jordanvance
Copy link
Contributor

@fsouza if it's possible to get a new release of splinter with this patch in it, that'd be amazing

@fsouza
Copy link
Contributor

fsouza commented Nov 9, 2023

Sounds good, I'll prep that release later this week if no one beats me to it

cc @jsfehler

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.

4 participants