Using chromedriver with selenium/python/ubuntu

后端 未结 7 1206
野趣味
野趣味 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:48

    Just pass the binary location as argument to it and not just the directory conatining it. So if it lies in /usr/bin directory, then run below command:

    driver = webdriver.Chrome("/usr/bin/chromedriver")
    

    This worked for me in ubuntu and adding path to bashrc is not working. Give it a try.

提交回复
热议问题