如何为centos 6.6设置chromedriver工作以在python中运行硒测试用例 [英] how to set chromedriver work for centos 6.6 to run selenium test cases in python

查看:138
本文介绍了如何为centos 6.6设置chromedriver工作以在python中运行硒测试用例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have download and tried all the version of the chromedriver in my centos 6.6 version to run selenium.

我遵循了以下步骤:
http://selftechy.com/2011/08/17/在Linux上运行带有chromedriver的硒测试

我遇到如下错误:

./chromedriver: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./chromedriver)

我正在尝试运行此python测试脚本:

I am trying to run this python test script:

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


推荐答案

已知错误,
https://bugs.chromium.org / p / chromedriver / issues / detail?id = 440 建议在 https:// b $ b解决方案://chrome.richardlloyd.org.uk/

这篇关于如何为centos 6.6设置chromedriver工作以在python中运行硒测试用例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆