Skip to content

Module not found: wdio-electron-service/preload #667

Closed Answered by mig8447
mig8447 asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out. I am still not sure why, I was going deeper into the matter (Dig into the chromedriver launching code) and I thought of "moving" the extension loading code to the end of the "ready" event handler and that did the trick.

So bottom line, if you're loading extensions into Electron, you should do that at the end of the "ready" event handler. Otherwise, the chromedriver will attach to the first extension's background page.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@goosewobbler
Comment options

Answer selected by mig8447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants