capybara-lockstep 2.2.1 fixes drivers with { browser: :remote }

Posted . Visible to the public. Auto-destruct in 37 days

Capybara-lockstep < 2.2.1 has a bug that makes it essentially not work when using browser: :remote in your Capybara driver. Please update to 2.2.1 to get the expected functionality.

The affected setups look like this:

chromedriver_url = ENV['CHROMEDRIVER_URL']

Capybara::Selenium::Driver.new(app,
  browser: chromedriver_url ? :remote : :chrome,
  options:,
  **(chromedriver_url ? { url: chromedriver_url } : {}),
)

Note that older Capybara versions used browser: :chrome, url: chromedriver_url, will work fine.

Tobias Kraze
Last edit
Julian
License
Source code in this card is licensed under the MIT License.
Posted by Tobias Kraze to makandra dev (2024-06-19 14:11)