-
-
Notifications
You must be signed in to change notification settings - Fork 486
Open
Description
I had some issues with using ChromeDriverManager().install() on my win64 machine.
So I had to add the function below into "site-packages\webdriver_manager\chrome.py"
def get_decompress_content(self, response):
import gzip
import brotli
content = response.content
encoding = response.headers.get('Content-Encoding')
if (encoding == 'gzip'):
content = gzip.decompress(content)
elif (encoding == 'br'):
content = brotli.decompress(content)
content = content.decode('utf-8')
result = json.loads(content)
return result
and changed two functions below.
def get_latest_release_version(self):
:
# response_dict = json.loads(response.text)
response_dict = self.get_decompress_content(response)
:
def get_url_for_version_and_platform(self, browser_version, platform):
:
# data = response.json()
data = self.get_decompress_content(response)
:
Metadata
Metadata
Assignees
Labels
No labels