Read more

Undefined method log for Selenium::WebDriver::Remote::W3C::Bridge

Emanuel
June 08, 2021Software engineer at makandra GmbH

In case your integration tests crash with a message like below, try to upgrade Capybara to a newer version (3.35.3 was good enough). You might encounter this issue when you enabled the w3c option in Selenium.

undefined method `log' for #<Selenium::WebDriver::Remote::W3C::Bridge:0x000055995647ded0>
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Your affected code might look similar to this call below and will work after the upgrade again.

errors = page.driver.browser.manage.logs.get(:browser)
Posted by Emanuel to makandra dev (2021-06-08 08:52)