how to set chromedriver work for centos 6.6 to run selenium test cases in python

♀尐吖头ヾ 提交于 2019-12-10 15:47:49

问题


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

I Have followed this: http://selftechy.com/2011/08/17/running-selenium-tests-with-chromedriver-on-linux

i am getting the error like below:

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

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

回答1:


What worked for me was that I downloaded a prebuilt chromedriver RPM for CentOS 6 at http://downloads.onrooby.com/chromium/rpms/ which placed the executable at /opt/chromium-browser/chromedriver




回答2:


Its a known bug, https://bugs.chromium.org/p/chromedriver/issues/detail?id=440 solution is suggested at https://chrome.richardlloyd.org.uk/



来源:https://stackoverflow.com/questions/29800257/how-to-set-chromedriver-work-for-centos-6-6-to-run-selenium-test-cases-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!