Letting Yarn help keep files up to date
Just as the Yarn upgrade-interactive tool has to keep all the supporting packages current, WebdriverIO provides the ChromeDriver service to keep up with constant Chrome updates. We can install the service from the console by running this command:
yarn add wdio-chromedriver-service
Then, it must be configured in the wdio.config.ts
file. To do so, find the following:
services: ['chromedriver'],
Replace it with this:
outputDir: 'all-logs', services: [ ['chromedriver', { args: ['--silent'] }] ],
Finally, the all-logs
folder should be added to the .gitignore
file. Now, let’s cover some debugging tips.