test(compass-e2e): try enabling bidi for e2e#7895
Conversation
| args: chromeArgs, | ||
| }, | ||
| // from https://github.com/webdriverio-community/wdio-electron-service/blob/32457f60382cb4970c37c7f0a19f2907aaa32443/packages/wdio-electron-service/src/launcher.ts#L102 | ||
| 'wdio:enforceWebDriverClassic': true, |
There was a problem hiding this comment.
@nbbeeken would be interesting to see if enabling it for electron also works. Beyond default wdio config for electron disabling it, I can't see a definitive answer whether or not it supposed to work, so might be worth trying
This reverts commit e0d21df.
|
When WDIO uses BiDi with Electron, it sends script.callFunction commands (the BiDi equivalent of browser.execute()). Internally, Electron's BiDi implementation tries to call Browser.getWindowForTarget a CDP command that Electron doesn't expose. This breaks essentially every browser.execute() call. CDP Browser.setDownloadBehavior also missing So seems there's just hardcoded functionality for electron unless there's something about these layers that can be bypassed |
|
Bummer! But thanks for trying it out, at least now we know for sure what's the reason |
Description
BiDi may have more stability, just seeing if it works here.
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes