Skip to content Skip to sidebar Skip to footer

Selenium Chromedriver Does Not Recognize Newly Compiled Headless Chromium (python)

I am trying to use the new (2016) headless version of Chromium with Selenium/ChromeDriver (In the past, I used Firefox with xfvb but this promises to be much better). I have compi

Solution 1:

ChromeHeadless is recognized by chromedriver since this patch (created after you have post your message), which is only available since chromedriver 2.29 (released in April 2017). Make sure that you have this chromedriver executable available in PATH and that Selenium is picking it instead of any other chromedriver you might have available.

Also, please note that - according to headless Chrome documentation - you need to pass two more flags:

l_option.add_argument('remote-debugging-port=9222')
l_option.add_argument('disable-gpu')

As for pre-built binaries of headless Chrome - that option is available since Chrome 57, so it is supported by all versions currently distributed through official Google repository (i.e. stable Chrome 58 and unstable Chrome 59). It is highlight of Chrome 59, so expect some rough edges until feature is stabilized.

Post a Comment for "Selenium Chromedriver Does Not Recognize Newly Compiled Headless Chromium (python)"