From 783b8393157b578e19e85b04d300fe06efeef653 Mon Sep 17 00:00:00 2001 From: Leon Date: Wed, 15 Nov 2023 09:27:59 +0100 Subject: [PATCH 1/3] bugfix --- undetected_chromedriver/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index d31055a..2d78589 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -17,7 +17,7 @@ by UltrafunkAmsterdam (https://github.com/ultrafunkamsterdam) from __future__ import annotations -__version__ = "3.5.3" +__version__ = "3.5.4" import json import logging @@ -395,7 +395,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): if no_sandbox: options.arguments.extend(["--no-sandbox", "--test-type"]) - if headless or options.headless: + if headless or getattr(options, 'headless', None): #workaround until a better checking is found try: if self.patcher.version_main < 108: @@ -485,7 +485,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): else: self._web_element_cls = WebElement - if options.headless: + if headless or getattr(options, 'headless', None): self._configure_headless() def _configure_headless(self): From 702ff57e4aef88749b13cd792f497544977d520a Mon Sep 17 00:00:00 2001 From: Om Morendha Date: Thu, 15 Feb 2024 18:34:03 +0530 Subject: [PATCH 2/3] Update patcher.py Change the download url since the old one presents a 404 Error --- undetected_chromedriver/patcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/undetected_chromedriver/patcher.py b/undetected_chromedriver/patcher.py index 1b5409d..e72c022 100644 --- a/undetected_chromedriver/patcher.py +++ b/undetected_chromedriver/patcher.py @@ -280,7 +280,7 @@ class Patcher(object): download_url = "%s/%s/%s" % (self.url_repo, self.version_full.vstring, zip_name) else: zip_name = zip_name.replace("_", "-", 1) - download_url = "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/%s/%s/%s" + download_url = "https://storage.googleapis.com/chrome-for-testing-public/%s/%s/%s" download_url %= (self.version_full.vstring, self.platform_name, zip_name) logger.debug("downloading from %s" % download_url) From 0aa5fbe252370b4cb2b95526add445392cad27ba Mon Sep 17 00:00:00 2001 From: ultrafunkamsterdam Date: Sat, 17 Feb 2024 18:13:50 +0100 Subject: [PATCH 3/3] 3.5.5 --- undetected_chromedriver/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index 2d78589..c419100 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -17,7 +17,7 @@ by UltrafunkAmsterdam (https://github.com/ultrafunkamsterdam) from __future__ import annotations -__version__ = "3.5.4" +__version__ = "3.5.5" import json import logging