angular / webdriver-manager

A binary manager for E2E testing
MIT License
224 stars 116 forks source link

Suggestion: Install matching chrome driver version instead of newest version #470

Open RiZKiT opened 4 years ago

RiZKiT commented 4 years ago

Locally and at our CI pipeline we have different versions of chrome and the chrome version in our CI environment is not easily updateable because it is shared by several teams.

So my suggestion is to provide an option to install the chrome driver which fits best.

With https://github.com/testimio/chrome-version there is a solution to get the currently installed chrome version for all three platforms. And in node-chromedriver there is already a solution (https://github.com/giggio/node-chromedriver/blob/2afecb47d212c2cd6633e0f81bfc651b5d61b3f4/install.js#L38-L44), which installs the matching chrome driver.

IMHO providing an option in webdriver-manager would solve the root cause, could reduce the amount of github issues regarding incompatible version matches and reduce the need to provide a fixed version.