Skip to main content
Install browser executables onto the local machine. Momentic mobile needs a Chromium-based browser to automate Android webviews during test runs.
npx momentic-mobile install-browsers [options] [browsers...]

Arguments

[browsers...]
array
Browsers to install. Specify multiple values separated by spaces. Available choices: chromium, chrome, and chrome-for-testing. chromium is required to automate Android webviews.

Options

-f, --force
boolean
Force reinstallation even if the browser is already present on disk. Useful when upgrading to a newer build.
-a, --all
boolean
Install all supported browsers (chromium, chrome, and chrome-for-testing).

Examples

Install the Chromium browser required to automate Android webviews:
npx momentic-mobile install-browsers chromium
Install every supported browser at once:
npx momentic-mobile install-browsers --all
Reinstall Chromium (for example, after a broken install):
npx momentic-mobile install-browsers chromium --force