capybara-webmock icon indicating copy to clipboard operation
capybara-webmock copied to clipboard

Still not working with selenium-webdriver 4.x, if installed with bundler

Open pozabil opened this issue 2 years ago • 1 comments

Hello! Related to https://github.com/hashrocket/capybara-webmock/issues/44 and https://github.com/hashrocket/capybara-webmock/pull/45, I'm trying to use bundler to install capybara-webmock gem, but I'm still getting the next error:

  In Gemfile:
    capybara-webmock (~> 0.6.0) was resolved to 0.6.0, which depends on
      selenium-webdriver (~> 3.0)

    webdrivers was resolved to 5.0.0, which depends on
      selenium-webdriver (~> 4.0)

How can I fix this?

pozabil avatar Oct 20 '22 11:10 pozabil

It looks like the reason there is no new release is because the tests are failing. @dillonhafer is that correct?

I can't see the logs anymore, but I'm guessing the problem is that selenium-webdriver 4 does not support Ruby 2.5. There are two options:

  1. drop support for Ruby 2.5 (this seems the sensible solution)
  2. allow selenium-webdriver >= 3.0 and add a version check in the initalization code

mvz avatar Nov 15 '22 09:11 mvz