Use selenium with chromedriver on Mac

后端 未结 4 1050
后悔当初
后悔当初 2021-01-31 06:30

I want to use selenium with chromedriver on Mac,but I have some troubles on it.

  1. I download the chromedriver from ChromeDriver - WebDriver for Chrome
  2. But I
4条回答
  •  [愿得一人]
    2021-01-31 06:56

    For me worked like this without complicating things

    1. Download chromedriver from official link (notice version of Chrome browser)
    2. Unpack *.zip file and file chromedriver copy to location usr/local/bin/
    3. Remove any path you put in file and just go with driver = webdriver.Chrome()
    4. If probem still exist try to reopen PyCharm since sometimes need to be reopened in case to work

提交回复
热议问题