Python 2.7 如何为centos 6.6设置chromedriver工作以在python中运行selenium测试用例

Python 2.7 如何为centos 6.6设置chromedriver工作以在python中运行selenium测试用例,python-2.7,selenium,centos6,Python 2.7,Selenium,Centos6,我已经下载并试用了centos 6.6版本中的所有chromedriver版本来运行selenium 我遵循了这一点: 我得到的错误如下所示: ./chromedriver: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./chromedriver) 我正在尝试运行以下python测试脚本: driver = webdriver.Chrome('/home/intel/Downloads

我已经下载并试用了centos 6.6版本中的所有chromedriver版本来运行selenium

我遵循了这一点:

我得到的错误如下所示:

./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()

对我有效的是,我下载了一个为CentOS 6预先构建的chromedriver RPM,将可执行文件放在/opt/chrome browser/chromedriver上,这是一个已知的bug,
解决方案建议在

您使用的是什么硒版本,您使用的是什么铬驱动版本?