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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: Headless Chrome leaves a blank window open #14550

Closed
aaltat opened this issue Oct 2, 2024 · 4 comments
Closed

[🐛 Bug]: Headless Chrome leaves a blank window open #14550

aaltat opened this issue Oct 2, 2024 · 4 comments

Comments

@aaltat
Copy link

aaltat commented Oct 2, 2024

What happened?

When I open headless Chrome in Windows 11 with Python, it leaves blank window visible in desktop. Blank here means window without buttons or frames, example like this one:
image
The window remains blank for the duration of the execution, but it does not affect test execution.

How can we reproduce the issue?

import time

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument("--headless")
print("Starting Chrome")
driver = webdriver.Chrome(options=options)
print("Sleep")
time.sleep(10)
print("Get URL")
driver.get("https://github.com/SeleniumHQ/selenium/issues")
driver.quit()

Relevant log output

Starting Chrome

DevTools listening on ws://127.0.0.1:61296/devtools/browser/fe646dbc-1d4b-4526-a25e-b968904f7921
Sleep
Get URL
[17012:16848:1002/105511.364:ERROR:ssl_client_socket_impl.cc(882)] handshake failed; returned -1, SSL error code 1, net_error -3

Operating System

Windows 11

Selenium version

4.24.0 and 4.25.0

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

Chrome 129.0.6668.71

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

ChromeDriver 129.0.6668.70

Are you using Selenium Grid?

Not using

Copy link

github-actions bot commented Oct 2, 2024

@aaltat, 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!

@dtopuzov
Copy link

dtopuzov commented Oct 2, 2024

Duplicate of #14514, #14438 and #14544

@aaltat
Copy link
Author

aaltat commented Oct 2, 2024

Yes, looks like a duplicate. Closing.

Copy link

github-actions bot commented Nov 1, 2024

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.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants