Using chromedriver with selenium/python/ubuntu

后端 未结 7 1182
野趣味
野趣味 2020-12-25 11:53

I am trying to execute some tests using chromedriver and have tried using the following methods to start chromedriver.

driver = webdriver.Chrome(\'/usr/local         


        
相关标签:
7条回答
  • 2020-12-25 12:50

    I have solved the issue in the following way:

    1. Open a terminal and type whereis chromedriver. In my case, I had the following output:

      chromedriver: /usr/local/bin/chromedriver

    2. Copy that path and edit your Webdriver instance like:

    driver = webdriver.Chrome('/usr/local/bin/chromedriver')
    

    That should be enough!

    0 讨论(0)
提交回复
热议问题