Closed Bar2d2 closed 1 year ago
Ok, I think I found a solution to this issue. It looks like it was a problem due to webdrivers. What I did:
I Installed:
gem "webdrivers"
In my cucumber config features/support/env.rb
sets up:
Capybara.default_driver = :selenium_chrome_headless
Now everything works.
Hi, I'm trying to get .png or .jpg image screenshots after test failing. Unfortunately it saves only .html file.
Rails 7.0.4 Ruby 3.2.0 gem 'cucumber', '~> 8.0' gem 'capybara-screenshot', '~> 1.0', '>= 1.0.26'
env.rb file looks like below: