Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebdriverIO running inside an Electron App unable to open a new window #766

Open
straker opened this issue Jul 11, 2023 · 3 comments
Open
Labels

Comments

@straker
Copy link
Contributor

straker commented Jul 11, 2023

We recently discovered that when running WebdriverIO inside an Electron app it is not able to create a new browser window. The code fails with the error message "No such window". Electron allows opening windows so I'm not sure if it's the integration between WebdriverIO and Electron or maybe a setting in Electron itself that prevented the code from working.

@straker straker changed the title Electron App unable to open a new window WebdriverIO running inside an Electron App unable to open a new window Jul 11, 2023
@udarrr
Copy link

udarrr commented Jan 17, 2024

Yes confirm there is no possibility to open new window in electron that's why approach with just builder.analyze() isn't working at all. But i'm wondering about possible solution. Can we skip opening new window ?

@straker
Copy link
Contributor Author

straker commented Jan 17, 2024

@udarrr For the time being you can use the setLegacyMode(true) function to disable opening a new window. However that function is planned to be removed in 5.0 (currently we have no timeframe of when 5.0 will be released).

@sujithvakathanam
Copy link

can this issue be looked at in priority please? With setLegacyMode workaround , I can get around this issue. Considering that this method will be removed in 5.0, Would greatly appreciate if this can be looked at?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants