selenium 2 chrome driver

后端 未结 10 597
情书的邮戳
情书的邮戳 2020-12-05 03:23

So I have read all the docs on adding chromedriver to my path and followed all of them. I am on a Mac with selenium2, maven, eclipse, and all the latest drivers:

<         


        
10条回答
  •  一向
    一向 (楼主)
    2020-12-05 03:49

    It works for me without setting webdriver.chrome.driver property. Just by adding chromedriver to PATH

    > echo $PATH
    /usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin
    >    
    > which chromedriver
    /usr/local/bin/chromedriver
    

    If you use Homebrew, installing chromedriver along with adding to PATH can be done as simple as this:

    brew install chromedriver
    

    Useful links:

    https://sites.google.com/a/chromium.org/chromedriver/

    http://brewformulas.org/Chromedriver

提交回复
热议问题