chore: bump browser-driver-manager from 1.0.4 to 2.0.1 by dependabot[bot] · Pull Request #199 · browserstack/a11y-engine-axe-core
Bumps browser-driver-manager from 1.0.4 to 2.0.1.
Release notes
Sourced from browser-driver-manager's releases.
v2.0.1
- fix: sync package.json dependencies to match actual dependencies
@dbjorgev2.0.0
Breaking Change
V1 use to detect the version of Chrome installed on the system and install the corresponding version of the chromedriver npm package. However this had problems as the chromedriver package wasn't always up-to-date with the latest version so when Chrome updated to the next version, the chromedriver package could lag behind and still cause out-of-sync issues. Additionally the chromedriver package didn't always have the latest versions of non-stable channels so asking for Chrome Canary wasn't always reliable.
V2 uses the newly released Chrome for Testing to manage Chrome. This enables both installing specific versions of Chrome and fixes the previous chromedriver package issue. V2 utilizes the
puppeteer/browserscript to manage the installation of Chrome and Chromedriver as it can handle downloading the binaries (and the multiple changes to the chromedriver download URL). This means that v2 no longer uses the chromedriver npm package to get chromedriver.Once installed, a directory is created in your home directory called
.browser-driver-manager. The directory will contain a.envfile which will list the install path of both Chrome and Chromedriver underCHROME_TEST_PATHandCHROMEDRIVER_TEST_PATHrespectively.# ~/.browser-driver-manager/.env CHROME_TEST_PATH="~/.browser-driver-manager/chrome/mac_arm-125.0.6422.141/chrome-mac-arm64/Google Chrome for Testing.app/Contents/MacOS/Google Chrome for Testing" CHROMEDRIVER_TEST_PATH="~/.browser-driver-manager/chromedriver/mac_arm-125.0.6422.141/chromedriver-mac-arm64/chromedriver"This means in v2 you'll need to grab the Chromedriver path from the
~/.browser-driver-manager/.envfile and not from the chromedriver npm package. Additionally, you'll need to grab the Chrome path pass the path to any browser driver, such as Webdriver.Here's an example of grabbing the Chromedriver path in v1 and the change for v2.
// v1 const chromedriver = require('chromedriver'); console.log(chromedriver.path); // v2 require('dotenv').config({ path: '.browser-driver-manager/.env' }) console.log(process.env.CHROMEDRIVER_TEST_PATH);
Commits
53ebb4f2.0.1bc65dd2fix: sync package.json dependencies to match actual dependencies (#15)f5c172bUpdate README.md70d77badocs: fix typo again03ad4dadocs: fix typoc3c8b572.0.04f8a55ddocs: add migration guide2e2ed52feat: allow @ and = to specify version469d008feat: use node and@puppeteer/browsersto install and sync Chrome and ChromeD...c610d9cdocs: add keywords to package file (#8)- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.