使用python的openshift服务器中的PhantomJS可执行文件

时间:2016-07-14 08:19:24

标签: python phantomjs openshift

在openshift应用程序中手动下载PhantomJS可执行文件,

我打电话给phantomjs。

driver=webdriver.PhantomJS(executable_path='/var/lib/openshift/<some_string>/phantomjs/usr/phantomjs',port=8080,service_args= ['--ignore-ssl-errors=true', '--ssl-protocol=any','--webdriver-loglevel=SEVERE'],service_log_path='/var/lib/openshift/<some_string>/app-root/repo/wsgi/myproject/ghostdriver.log')

但它抛出错误,该可执行文件意外退出。

selenium.common.exceptions.WebDriverException: Message: Service/var/lib/openshift/<some_string>/phantomjs/usr/phantomjs unexpectedly exited. Status code was: 1.

有人可以帮忙克服这个问题吗?

提前致谢。

0 个答案:

没有答案