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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: cannot determine loading status from no such window #13943

Open
lijingmu opened this issue May 15, 2024 · 6 comments
Open

[馃悰 Bug]: cannot determine loading status from no such window #13943

lijingmu opened this issue May 15, 2024 · 6 comments
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information. needs-triaging

Comments

@lijingmu
Copy link

lijingmu commented May 15, 2024

What happened?

Greetings. I am using javascript selenium-webdriver. I encountered one issue in chromium 112, selenium 4.12.0:

WebDriverError: unknown error: failed to wait for extension background page to load: chrome-extension://xxxx/_generated_background_page.html from unknown error: cannot determine loading status from no such window
at   Object.throwDecodedError   (xxx/node_modules/selenium-webdriver/lib/error.js:524:15)
at   parseHttpResponse   (xxx/node_modules/selenium-webdriver/lib/http.js:601:13)
at   Executor.execute   (xxx/node_modules/selenium-webdriver/lib/http.js:529:28)
at   process.processTicksAndRejections (node:internal/process/task_queues:95:5)

The issue is not happened when I use selenium 4.1.2. It happened occasional in long running.
Any suggestions will be appreciated. Is it possible the version issues? I need to use chrome 112. Which version of selenium-webdriver javascript client is recommended?

How can we reproduce the issue?

  • Add one chrome extension
  • Open one webpage with chromium 112
  • Running for 2 hours.
  • It may happen one or two times.
options.addExtensions(myExtensionPlugin);
options.addArguments('--allowlisted-extension-id=xxxx');

Relevant log output

WebDriverError: unknown error: failed to wait for extension background page to load:
chrome-extension://xxxx/_generated_background_page.html   from unknown error:
cannot determine loading status from no such window
at   Object.throwDecodedError   (xxx/node_modules/selenium-webdriver/lib/error.js:524:15)
at   parseHttpResponse   (xxx/node_modules/selenium-webdriver/lib/http.js:601:13)
at   Executor.execute   (xxx/node_modules/selenium-webdriver/lib/http.js:529:28)
at   process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Operating System

Linux x86_64

Selenium version

javascript selenium-webdriver 4.12.0

What are the browser(s) and version(s) where you see this issue?

Chromium 112.0.5615.0

What are the browser driver(s) and version(s) where you see this issue?

ChromeDriver 112.0.5615.0

Are you using Selenium Grid?

No

Copy link

@lijingmu, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol
Copy link
Member

diemol commented May 15, 2024

We cannot troubleshoot old versions of Selenium. Please update and provide a way to reproduce the issue, avoid narratives and provide a code snippet with all dependencies to reproduce the issue.

@diemol diemol added I-issue-template Applied to issues not following the template, or missing information. and removed needs-triaging labels May 15, 2024
Copy link

Hi, @lijingmu.
Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

@lijingmu
Copy link
Author

lijingmu commented May 16, 2024

Thanks for your response. I have upgraded selenium-webdriver to 4.20.0 the latest one. Now it is much better. With selenium-webdriver 4.20.0 javascript client + chromium 112, it is more stable. I can isolate the issue to a small scope. The intermittent issue of unknown error: cannot determine loading status from no such window happened sometimes when click on the web element and page self-refreshed e.g. click on the summary link on the navigation bar on this page . Sample code is as below:

let element = await driver.findElement(By.linkText(`Summary`));
console.log("Scroll down to Summary");
await driver.executeScript("arguments[0].scrollIntoView()", element);
console.log("Click on Summary");
await driver.executeScript("arguments[0].click();", element);

Sometimes it failed at click await driver.executeScript("arguments[0].click();", element); randomly

Failed to execute command executeScript {"script":"arguments[0].click();","args":[{"element-6066-11e4-a52e-4f7 unknown error: cannot determine loading status from no such window
WebDriverError: unknown error: cannot determine loading status
    from no such window
      (Session info: chrome=112.0.5615.0)
        at Object.throwDecodedError (xx/node_modules/selenium-webdriver/lib/error.js:524:15)
        at parseHttpResponse (xx/node_modules/selenium-webdriver/lib/http.js:601:13)
        at Executor.execute (xxx/node_modules/selenium-webdriver/lib/http.js:529:28)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

If you have any suggestions about how to update the test script, it will also be helpful.

@pujagani
Copy link
Contributor

Thank you for the update. The code snippet shared is not complete. Can you please provide a complete reproducible test script? #13943 (comment)

@diemol
Copy link
Member

diemol commented May 16, 2024

What happens when you use the latest Chrome version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information. needs-triaging
Projects
None yet
Development

No branches or pull requests

3 participants