Forums

Please activate headless Chrome on my account

Hello,

Please activate headless Chrome on my account.

Please check the link below for more information: https://www.pythonanywhere.com/forums/topic/13623/#id_post_68541

Sure! That's done now. You can now install the latest Selenium by running

pip3.7 install --user --upgrade selenium

...adjusting the Python version as necessary, and then you can start a browser in headless mode with Python code like this:

            chrome_options = webdriver.ChromeOptions()
            chrome_options.add_argument("--headless")
            chrome_options.add_argument("--disable-gpu")
            browser = webdriver.Chrome(options=chrome_options)

...no need to use a virtual display.

It works like a charm!

Thank you for the outstanding customer service (as always!).

Much appreciated!

No problem, always glad to help!