Member-only story
Auto Detect Chrome version and auto-download compatible chrome version !!!
4 min readJun 5, 2021
Introduction:
Thanks to @webdriverio , i came to know about the chromedriver npm package. It’s a cool library that allows you to detect the installed chrome version and download the compatible chromedriver version automatically
Pre-requisite:
install nodejs >v 10 : install
you can also download just the binary file instead of installing nodejs
now just run the below command
<oath_to_npm>/npm install -g chromedriver --detect_chromedriver_version --scripts-prepend-node-path
you can see the supported command-line flags at :
Note: — scripts-prepend-node-path should be last argument, this flag is mandatory…