New issue
Advanced search Search tips

Issue 859676 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Headless Chrome does not start properly on Windows if / is used in user-data-dir

Project Member Reported by johnchen@chromium.org, Jul 2

Issue description

Chrome Version: 67.0.3396.99
OS:Win10

Run the attached Python script, which uses ChromeDriver to start headless Chrome with --user-data-dir=C:/Test switch.

What is the expected result? Headless Chrome starts successfully, and the Python script finishes without any error.

What happens instead? The Python script hangs for a minute on the statement that starts headless Chrome, and then aborts with error "unable to discover open pages". Further investigation shows that DevTools request http://localhost:61974/json returns an empty list.

If '/' is replaced with '\' in the user-data-dir, then the issue goes away. Removing the --headless switch also causes the issue to go away.
 
headless.py
343 bytes View Download

Sign in to add a comment