'How to auto update chromedriver in webdriverIO

I have an automation framework developed using webdriverIO. The issue is all test cases start failing whenever chrome updated as chromedriver didn't update automatically.

This version of ChromeDriver only supports Chrome version 92

is there any way that ChromeDriver updated automatically whenever there is new available



Solution 1:[1]

Please note down latest version of Chrome (Help > About Google Chrome )

then check your package.json file where we have line like

"chromedriver": "^98.0.0",

update above line with latest chrome version like "chromedriver": "^100.0.0",

then run command npm install

Solution 2:[2]

Use the following commands this will auto-update all the JSON dependencies to the latest version To update to the latest version npx npm-check-updates -u

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nilesh122n
Solution 2 Aman Sharma