Chrome Options in Python Selenium : Disable GPU vs Headless

You saw it right. Adding the argument –headless initiates the Chrome Browsing Context in headless mode. However the purpose of the argument –disable-gpu was to enable google-chrome-headless on windows platform. It was needed as SwiftShader fails an assert on Windows in headless mode earlier. This issue was resolved through Headless: make –disable-gpu flag unnecessary You … Read more

Change ChromeOptions in an existing webdriver

When you configure an instance of a ChromeDriver through ChromeOptions to initiate a new Chrome Browser the configuration gets baked into the chromedriver executable which will persist for the lifetime of the WebDriver and remain uneditable. Even if you are able to extract the ChromeDriver and ChromeSession attributes e.g. Session ID, Cookies and other session … Read more