Tag: 谷铬铬

在Chrome中运行Selenium WebDriver python绑定

我在与Selenium合作时遇到了一个问题。 对于我的项目,我必须使用Chrome。 但是,在使用Selenium启动后,我无法连接到该浏览器。 由于某些原因,Selenium本身无法findChrome。 当我尝试在不包含path的情况下启动Chrome时,会发生以下情况: Traceback (most recent call last): File "./obp_pb_get_csv.py", line 73, in <module> browser = webdriver.Chrome() # Get local session of chrome File "/usr/lib64/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 46, in __init__ self.service.start() File "/usr/lib64/python2.7/site-packages/selenium/webdriver/chrome/service.py", line 58, in start and read up at http://code.google.com/p/selenium/wiki/ChromeDriver") selenium.common.exceptions.WebDriverException: Message: 'ChromeDriver executable needs to be available in the path. Please […]