【发布时间】:2014-01-20 03:53:06
【问题描述】:
我正在尝试使用 python/selenium 和 phantomjs 设置一个测试项目。
在 windows 本地我在 virtualenv 中有我项目的 python 部分:
from selenium import webdriver
driver = webdriver.PhantomJS(executable_path="C:\phantomjs.exe")
通过 git 推送到 heroku 应该没问题,可能把第二行改成:
driver = webdriver.PhantomJS()
但是是否可以将 phantomjs 的可执行文件推送到同一个 heroku 应用程序并通过 selenium 访问它。如果有,这是怎么做到的?
【问题讨论】:
标签: python git selenium heroku phantomjs