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

Adapt to newer versions selenium webdriver #314

Conversation

AlfonsoUceda
Copy link
Contributor

@AlfonsoUceda AlfonsoUceda commented Jan 4, 2022

This PR introduces two changes, the first one is in the gemspec file where the gem generated included all files, but now it will require only the needed ones.
@oesmith could you confirm that this is correct? Do you need the binary to be included? You don't mention it in the README so I guess it is not for the gem.
Screenshot 2022-01-04 at 09 20 20

Another change in the gemspec is to bump the minimum required version to 3.150.0 where assume_untrusted_certificate_issuer was removed from the firefox profile class.

The last change is in lib/billy/browsers/capybara.rb, where I removed assume_untrusted_certificate_issuer (I don't know what the alternative is) and also remove deprecation warnings to use capabilities param instead of options and desired_capabilities.

@AlfonsoUceda AlfonsoUceda force-pushed the adapt-puffing-billing-to-newer-versions-selenium-webdriver branch from 63466c0 to 2a3b70c Compare January 4, 2022 08:38
@AlfonsoUceda
Copy link
Contributor Author

@oesmith I don't see that the CI runs, are you still using travis? Would you like to use github actions instead?

@AlfonsoUceda
Copy link
Contributor Author

@ronwsmith I forgot to ping you.

@AlfonsoUceda
Copy link
Contributor Author

Hi @ronwsmith, could you take a look?

@ronwsmith
Copy link
Collaborator

@AlfonsoUceda good catch on missing CI. I totally missed the changes with Travis. I just switched it over to Github Actions. Mind updating your PR and ensuring those pass?

@AlfonsoUceda
Copy link
Contributor Author

@ronwsmith I've updated the PR but I think it needs some approval from your side to run the CI

@AlfonsoUceda
Copy link
Contributor Author

@ronwsmith seems that watir and selenium-webdriver gems need a higher version of ruby. Are you open to restrict the minimum ruby version to 2.7? I can do it in this PR and also adapt the github actions.

In addition, it could be a major release version.
What do you think?

@ronwsmith
Copy link
Collaborator

@AlfonsoUceda Yes, I have to approve first time contributors. Looks like your gemspec changes are not backwards compatible to currently supported ruby versions. Please take a look.

@ronwsmith
Copy link
Collaborator

@AlfonsoUceda we were reviewing at the same time :). How about we do a separate PR to get everything working with Ruby 2.7, 2.8, 2.9, 3.0, 3.1 without gem changes (if possible). Then once we get updated there, we can do this forced selenium update and compatibility change and make a major version change (removing the older versions).

@AlfonsoUceda
Copy link
Contributor Author

Perfect @ronwsmith, will do it tomorrow

@AlfonsoUceda AlfonsoUceda force-pushed the adapt-puffing-billing-to-newer-versions-selenium-webdriver branch from e6b9ea7 to 6b60ad6 Compare February 15, 2022 16:31
@AlfonsoUceda
Copy link
Contributor Author

@ronwsmith I've rebased latest master in the branch and also removed all deprecation warnings.

Alfonso Uceda added 2 commits February 15, 2022 18:09
The gem does not need to include all files that are needed for development.
In addition, bump minimum required version of selenium-webdriver to 3.150.0
…e, it does not exist anymore.

In addition, remove deprecation warning when creating the selenium driver passing the capabilities param,
instead of options and desired_capabilities params.
@AlfonsoUceda AlfonsoUceda force-pushed the adapt-puffing-billing-to-newer-versions-selenium-webdriver branch from 6b60ad6 to 3f34a44 Compare February 15, 2022 17:09
@ronwsmith ronwsmith merged commit c7e19f1 into oesmith:master Feb 15, 2022
@ronwsmith ronwsmith changed the title Adapt puffing billing to newer versions selenium webdriver Adapt to newer versions selenium webdriver Feb 15, 2022
@ronwsmith
Copy link
Collaborator

Released in 3.0.1. Thanks for the contributions!

@AlfonsoUceda AlfonsoUceda deleted the adapt-puffing-billing-to-newer-versions-selenium-webdriver branch February 15, 2022 18:30
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.

2 participants