Finds Chrome — either a local binary to launch or a remote URL to connect to.
Resolution order
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
Setup
mix wallabidi.installOr for Docker/CI:
WALLABIDI_CHROME_URL=chrome:9222 mix test.chrome
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.