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

标签 python-2.7 selenium centos6

我已经在我的 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/

相关文章:

selenium - 在selenium grid上下载excel文件并读取它

python - 使用 CentOS 6.4 修复 Python 2.7 上的 "warning: GMP or MPIR library not found; Not building Crypto.PublickKey._fastmath"错误

python字符串在文本文件中查找和替换

node.js - Protractor webdriver-manager 更新发生 events.js :161 - Error: connect ETIMEDOUT

c# - 如何使用 Selenium Webdriver (C#) 在 Chrome 中处理浏览器身份验证?

linux - Glibc 更新后 CentOS 启动进入内核崩溃

php - ffmpeg 用户代理不工作

python - 使用重写的 __cmp__ 函数实现列表包装器

python - 使用Python处理来自url的img

python - 无法使用 Python 2.7 安装 py2exe