-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
[web-test-runner] Browser Launcher for Electron #2136
Comments
Would that be something you were interested in contributing on maintaining in a parallel project? |
Looks like Playwright has experimental support for automating Electron! https://playwright.dev/docs/api/class-electron This will be the easy way to add Electron support! |
If that’s so, and it fits within the current API structure, we’d be happy to accept a PR to add support for this! |
Looking at the code, it looks like for the most part we just need to update the
with one caveat: the
Because Electron is Chromium-based, it might support devtools, so we could try updating this line too: |
Alright, here's a starting point: It manages to run the Electron window non-headlessly, but then it seems to not run any tests. It might have to do with the context and page creation, which is different than with other browsers. I'm not sure yet how to make it work. I left a message in Playwright Discord for advice on the context handling. |
It would be great to have an Electron runner. Useful for testing web apps that also access Node.js APIs.
The text was updated successfully, but these errors were encountered: