question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Electron firstWindow times out after upgrading to 1.28.0

See original GitHub issue

Context:

  • 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:closed
  • Created 10 months ago
  • Reactions:6
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

10reactions
cawa-93commented, Nov 26, 2022

Still have this issue with 1.28.1

1reaction
mxschmittcommented, Dec 12, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found