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

[Bug]: WDIO cannot communicate with Electron because of BrowserWindow did not seem to return anything to WDIO if you don't call LoadURL #41471

Closed
3 tasks done
angeljudgement opened this issue Feb 29, 2024 · 2 comments
Labels
blocked/need-repro Needs a test case to reproduce the bug bug 🪲

Comments

@angeljudgement
Copy link

Preflight Checklist

Electron Version

26.0.0+

What operating system are you using?

Windows

Operating System Version

22H2

What arch are you using?

x64

Last Known Working Electron version

25.9.1

Expected Behavior

forcing a response to WDIO.remote method without involving BrowserWindow.loadUrl

Actual Behavior

#40268
As this issue here isn't seem to be solved. I found the root cause of all this deed is due to BrowserWIndow did not return response to WDIO Remote method, this leads to timeout and forcing to close.
A good approach to fix this problem is to use BrowserWIndow.loadURL(about:blank) directly (not loading URL from webcontent). But this will cause focus issue, if you focus on BrowserWindow with 2 or 3 webcontents, the focus will be trigger thrice

Testcase Gist URL

No response

Additional Information

No response

@VerteDinde VerteDinde added the blocked/need-repro Needs a test case to reproduce the bug label Mar 2, 2024
@electron-issue-triage
Copy link

Hello @angeljudgement. Thanks for reporting this and helping to make Electron better!

Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

Now adding the blocked/need-repro Needs a test case to reproduce the bug label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.

@electron-issue-triage
Copy link

Unfortunately, without a way to reproduce this issue, we're unable to continue investigation. This issue has been closed and will not be monitored further. If you're able to provide a minimal test case that reproduces this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

@electron-issue-triage electron-issue-triage bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/need-repro Needs a test case to reproduce the bug bug 🪲
Projects
None yet
Development

No branches or pull requests

2 participants