Finds Chrome and chromedriver — either local binaries to launch or remote URLs to connect to.
Resolution order
Chrome (CDP driver)
WALLABIDI_CHROME_URL— connect to remote Chrome (chrome:9222or fullws://URL)WALLABIDI_CHROME_PATH— local Chrome binary to launch.browsers/PATHSfile (written bymix wallabidi.install)- System PATH
Chromedriver (BiDi driver)
WALLABIDI_CHROMEDRIVER_URL— connect to remote chromedriver (http://...)WALLABIDI_CHROMEDRIVER_PATH— local chromedriver binary to launch.browsers/PATHSfile- System PATH
Setup
mix wallabidi.installOr for Docker/CI:
WALLABIDI_CHROME_URL=chrome:9222 mix test.chrome
WALLABIDI_CHROMEDRIVER_URL=http://chromedriver:9515/ mix test.chrome.bidi
Summary
Functions
Returns {:url, url} for remote, {:path, path} for local, or :error.
Returns {:ok, path} for local Chrome, or :error. Ignores URLs.
Returns the local Chrome binary path or raises.
Returns the remote Chrome URL or nil.
Returns {:url, url} for remote, {:path, path} for local, or :error.
Returns {:ok, path} for local chromedriver, or :error. Ignores URLs.
Returns the local chromedriver binary path or raises.
Returns the remote chromedriver URL or nil.
Functions
Returns {:url, url} for remote, {:path, path} for local, or :error.
Returns {:ok, path} for local Chrome, or :error. Ignores URLs.
Returns the local Chrome binary path or raises.
Returns the remote Chrome URL or nil.
Returns {:url, url} for remote, {:path, path} for local, or :error.
Returns {:ok, path} for local chromedriver, or :error. Ignores URLs.
Returns the local chromedriver binary path or raises.
Returns the remote chromedriver URL or nil.