Skip to content

ChromeDriverManager().install() failed on my win64 machine #701

@beanpole2000

Description

@beanpole2000

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions