[BUG] Electron firstWindow times out after upgrading to 1.28.0
See original GitHub issueContext:
- Playwright Version: 1.28.0
- Operating System: Tested on Windows and Mac
- Node.js version: 16
- Browser: Electron
- Extra: Wasn’t a problem in 1.27.1 or below. Repros 100% of the time after upgrading.
Code Snippet
import { ElectronApplication, Page, _electron as electron } from "playwright";
(async () => {
const electronApp = await electron.launch({
args: [path.join(__dirname, "../dist/App.js"),
'--enable-logging',
'--skip-welcome',
'--disable-telemetry',
'--no-cached-data',
],
env: {
automation: "1",
authConfig: JSON.stringify(config),
}
});
const page = await electronApp.firstWindow(); // times out after 30 seconds
})();
Describe the bug
After upgrading to 1.28.0 Electron tests are all timing out. Downgrading to 1.27.1 resolves the issue. Example test to assist in repro can be found here
Issue Analytics
- State:
- Created 10 months ago
- Reactions:6
- Comments:13 (7 by maintainers)
Top Results From Across the Web
node.js - Electron application exits immediately after starting
EDIT: This problem resurfaced when an attempt to upgrade to Electron 8.2.2 failed because the application was running in a debugger.
Read more >@playwright/test: Versions | Openbase
Choose the right package every time ... [BUG] Electron firstWindow times out after upgrading to 1.28.0 https://github.com/microsoft/playwright/issues/18920 ...
Read more >ElectronApplication | Playwright - CukeTest
You can use electron.launch([options]) to obtain the application instance. ... value when the waiting should resolve. timeout <number> maximum time to wait ...
Read more >Playwright Versions - Open Source Agenda
Highlights. This patch release includes the following bug fixes: ... [BUG] Electron firstWindow times out after upgrading to 1.28.0 ...
Read more >[Stable Update] 2021-07-28 - Kernels, Plasma 5.22.4 ...
Hello community, Another stable branch update with some usual updates for you. We added automatic backups on any package upgrade action when ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Still have this issue with 1.28.1
Thanks for the repro! I filed https://github.com/microsoft/playwright/issues/19412 for it.
For the other folks who run into it, it would be amazing if you could provide us the logs which you get via setting the
DEBUG=pw:api,pw:browser
env var.