gemini-testing / testplane

Testplane (ex-hermione) browser test runner based on mocha and wdio
https://testplane.io
MIT License
720 stars 63 forks source link

feat: auto browser download #1029

Closed KuznetsovRoman closed 5 days ago

KuznetsovRoman commented 2 weeks ago

What is done

Added ability to automatically download browsers and/or webdrivers for these browsers.

Supported browsers to download:

Supported drivers to download:

With "--local" (or gridUrl: "local") and webdriver protocol, webdiver instances are automatically run for these browsers:

When launching tests with "--local" (and optionally webdriver protocol) all supported browsers/drivers will be installed automatically, if necessary. With "--local" we at all cost are trying to avoid network requests to google/mozilla/... servers.

Example

In order to just download browser, npx testplane install-browsers could be used. This way we also check if our browsers are up-to-date, so if we have 114.0.5696.0 downloaded and user wants chrome@114.0, we check for newest chrome@114.0 version and see it is "114.0.5735.133". Then this new version is downloaded

Directory to save testplane browsers and drivers can be set with TESTPLANE_BROWSERS_PATH env variable. By default, ~/.testplane is used.