Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对chrome版本是否有限制 #61

Open
likohank opened this issue Oct 16, 2023 · 1 comment
Open

对chrome版本是否有限制 #61

likohank opened this issue Oct 16, 2023 · 1 comment

Comments

@likohank
Copy link

使用118版本的chrome,一直提示错误
[15:30:06] Checking Google Chrome and chromedriver ...
[15:30:07] WARNING:root:Can not find chromedriver for currently installed chrome version.
[15:30:07] Dependencies not resolved, exit.
[15:30:07] stopped

请问要运行此程序,是否需要指定版本的chrome

@MuLoo
Copy link

MuLoo commented Apr 16, 2024

def resolve_dependencies(driver=str):
    if "chrome" in driver:
        print("Checking Google Chrome and chromedriver ...")
        # if you have installed chronmium/chrome and chromedriver of the same version and still get an error, you can try commenting out the following three lines.
        # driver_path = chromedriver_autoinstaller.install()
        # if not driver_path:
        #    return False
        print("OK.")
    return True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants