selenium
selenium copied to clipboard
[🐛 Bug]: cannot determine loading status from no such window
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
@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!
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.
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.
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.
Thank you for the update. The code snippet shared is not complete. Can you please provide a complete reproducible test script? https://github.com/SeleniumHQ/selenium/issues/13943#issuecomment-2111562793
What happens when you use the latest Chrome version?
I am closing this because we have yet to get more information.
This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.