How to upload extension in web automation using webdriver IO, by using chrome options?

How to upload extension in web automation using webdriver IO, by using chrome options?

Hello Ana-sousa,

You can use the below set of chrome options capability in your capability set. Please also use the “fs” module of javascript.

   const fs = require('fs');
      
      "goog:chromeOptions": {
            "extensions":[fs.readFileSync('Path of CRX file').toString('base64')]
          },