You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add check for chromedriver chrome version match (#688)
* Fixes#685
When google chrome and chromedriver versions are out of sync wallaby can start in a bad state.
We added a version comparison step to `Wallaby.Chrome.validate/0` that will error
during application start if chrome and chrome versions do not match to a major, minor, and build version.
Co-authored-by: Alex McLain <[email protected]>
Co-authored-by: Johnny Otsuka <[email protected]>
Co-authored-by: John Cotton <[email protected]>
Co-authored-by: Liam Elder <[email protected]>
* Use correct config option in DependencyError
To configure the Chrome binary, you use the `:chromdriver` option and
set it to `[binary: "/path/to/chrome"]`
* Emit a warning instead of raising an error
Sometimes having a mismatched chromedriver/chrome version still works,
and having this error might inconvenience the developer. Emitting a
warning I think is sufficient to alert the developer as to a potential
problem.
This also fixes some incorrect config value. The path to an alternative
chrome binary is found is found with `Application.get_env(:wallaby,
:chromedriver)[:binary]`, not
`Application.get_env(:wallaby, :chrome)[:path]`.
Co-authored-by: Matt Hall <[email protected]>
Co-authored-by: Alex McLain <[email protected]>
Co-authored-by: Johnny Otsuka <[email protected]>
Co-authored-by: John Cotton <[email protected]>
Co-authored-by: Liam Elder <[email protected]>
Looks like you're trying to run Wallaby with a mismatched version of Chrome: #{Enum.join(chrome_version,".")} and chromedriver: #{Enum.join(chromedriver_version,".")}.
278
+
Chrome and chromedriver must match to a major, minor, and build version.
0 commit comments