7 hours ago · Tech · hide · 0 comments

Chrome recently started releasing arm64 linux builds which meant that my ubuntu-on-m1-mac can run webdriverio (wdio) builds on both firefox and chrome (it was previously stuck doing only firefox builds). I therefore compared build speed of codemancer on firefox versus chrome. wdio.conf.ts Configuration Firefox: capabilities: [{ maxInstances: 5, browserName: 'firefox', 'moz:firefoxOptions': { args: ['-headless'], }, acceptInsecureCerts: true, }], Chrome: capabilities: [{ maxInstances: 5, browserName: 'chrome', 'goog:chromeOptions': { args: ['--headless=new', '--no-sandbox', '--disable-dev-shm-usage', '--disable-gpu'], }, acceptInsecureCerts: true, }], For Arm architectures, the most recent version of wdio still depends on @puppeteer/browsers at ^2.2.0 which doesn’t correctly fetch Chrome’s Arm builds. Therefore, these additional configs need to be added to wdio.conf.ts: // Set these environment variables to manually-downloaded chrome executables // For the…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.