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.
|
Deleted:
headless.py
343 bytes
|