win10系统解决WebDriverException: Message: 'chromedriver' executable needs to be in PATH

1, first download Chromedrive

  • Chrome enter settings - see "" About Chrome ' "
    Check here to insert a picture in the way described

  • Copy the selected part of the picture

  • Enter the URL in the browser - "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_ 80.0.3987 " (note the bold part, everyone needs to step into their own copy of the contents)

  • Your browser will return for a version number, as shown:

  • Here Insert Picture Description

  • Then enter Chromedrive download address: "https://chromedriver.storage.googleapis.com/index.html?path= 80.0.3987.106 (bold step on the part of the change to the browser to tell you the version number)

  • Here Insert Picture Description

  • Click to enter the download directory

  • Here Insert Picture Description
    Here Insert Picture Description
    Download to Google root:
    Here Insert Picture Description
    2, environment configuration
    My Computer - Properties - Advanced System Settings - Environment Variables
    - System Variables double-click in the right side click New path-- - to copy into the address above - OK
    ( "C: \ Program Files ( x86) \ Google \ Chrome \ Application")

So generally you can, and if not, you can restart the computer - "Ferris rescue" in the classic lines: "99% off restart can solve the problem," ha ha do not know about the accuracy

Published an original article · won praise 0 · Views 12

Guess you like

Origin blog.csdn.net/qq_42186035/article/details/104625580