Skip to content

[πŸ› Bug]: Headless Chrome leaves a blank window openΒ #14550

@aaltat

Description

@aaltat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions