Skip to content

TypeError: waitUntilWindowLoaded Cannot read property 'isLoading' of undefined #1049

Open
@harshendrathakur

Description

@harshendrathakur

Getting this error wherever wait conditions are applied. Issue started when I switched to Spectron version 14 and Electron version 12.

On previous similar reported issues, it is suggested to set nodeIntegration: true which is already configured and devtool is also disabled, still getting this error.

App initialization script is like this:

  app = await new Application({
    path: path.join(process.cwd(), getExecutablePath()),
    chromeDriverArgs: [
      "verbose",
      "no-sandbox",
      "disable-gpu",
      "disable-dev-shm-usage",
    ],
    waitTimeout: 15000,
  });
  return app;
}

-

And the test case is failing at this statement `await app.client.waitUntilWindowLoaded();`

Please suggest.

![image](https://user-images.githubusercontent.com/40120518/146352161-78395353-eb91-435a-92d7-c9a311c8781e.png)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions