Last update: 11/08/2023.
The error looks like something like this: Failed to determine Chrome binary location. (Webdrivers::BrowserNotFound)
Under WSL, we are running the Linux version of Ruby, which won't be able to communicate via WebDriver with the Windows Chrome executable.
So, we need to change the default browser driver used by Capybara.
- Open the file
application_system_test_case.rbinside your rails project, remove the configuration fordriven_byand make sure to copy and pase the new driver configuration.