如何在heroku中安装firefox?

时间:2015-10-11 15:05:33

标签: java firefox selenium heroku selenium-firefoxdriver

有人可以帮助我了解如何在 heroku 中安装 Firefox 吗?

我们已经创建了一个应用程序并希望运行 Selenium Java 程序,该程序将在Firefox浏览器中执行。

当我在互联网上搜索时,我遇到了这个link,但我不确定它是否在Heroku中安装Firefox,或者是否涉及任何费用。

1 个答案:

答案 0 :(得分:0)

你提到的Firefox buildpack可能不是一个坏的方法。它会增加你的弹簧尺寸,但不会太多。但在使用它时,请确保遵循Heroku guide for using multiple buildpacks for an app。如果您使用的是Java,那么在上次/最终构建包时也需要Java buildpack

Firefox buildpack的另一种选择是Apt buildpack,它允许你安装任意的apt包,比如firefox。