我已经在我的 centos 6.6 版本中下载并尝试了所有版本的 chromedriver 来运行 selenium。
我遵循了这个:
http://selftechy.com/2011/08/17/running-selenium-tests-with-chromedriver-on-linux
我收到如下错误:
./chromedriver: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./chromedriver)
我正在尝试运行这个 python 测试脚本:
driver = webdriver.Chrome('/home/intel/Downloads/chromedriver')
driver.get('http://www.google.com/xhtml')
time.sleep(5) # Let the user actually see something!
search_box = driver.find_element_by_name('q')
search_box.send_keys('ChromeDriver')
search_box.submit()
time.sleep(5) # Let the user actually see something!
driver.quit()
最佳答案
对我有用的是,我在 http://downloads.onrooby.com/chromium/rpms/ 下载了适用于 CentOS 6 的预构建 chromedriver RPM。将可执行文件放在/opt/chromium-browser/chromedriver
关于python-2.7 - 如何为centos 6.6设置chromedriver工作以在python中运行selenium测试用例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29800257/