diff --git a/packages/wdio-electron-service/test/launcher.spec.ts b/packages/wdio-electron-service/test/launcher.spec.ts index ca5157121..41dffa5cc 100644 --- a/packages/wdio-electron-service/test/launcher.spec.ts +++ b/packages/wdio-electron-service/test/launcher.spec.ts @@ -446,7 +446,7 @@ describe('onPrepare', () => { 'browserVersion': '116.0.5845.190', 'goog:chromeOptions': { args: ['--app=path/to/main.bundle.js'], - binary: `${getFixtureDir('no-build-tool')}/node_modules/.bin/electron`, + binary: `${getFixtureDir('no-build-tool')}${path.join('node_modules', '.bin', 'electron')}`, windowTypes: ['app', 'webview'], }, 'wdio:electronServiceOptions': {},