heroku上的chrome最小:在heroku上运行无头chrome

时间:2021-01-31 06:01:20
【文件属性】:
文件名称:heroku上的chrome最小:在heroku上运行无头chrome
文件大小:5KB
文件格式:ZIP
更新时间:2021-01-31 06:01:20
ruby heroku chrome chromedriver watir Heroku最小Chrome 启动Chrome并在Heroku上运行! 这是,该仓库使用xvfb在cedar-14堆栈上运行。 我尽力使宝石的数量尽可能少,尽管我确实包括了Thor,以供将来使用,并带有不同的配置标记等。 这是使此工作正常的基本需求/注意事项: Chrome选项上有一些很难设置的配置标志,如果您在家中要注意,请注意new_browser方法。 使用watir可以简化脚本编写,但是可以随意使用原始Selenium。 部署方式 您可以使用以下按钮将其部署到测试实例,然后自行检查! 利用 从命令行部署后,只需使用heroku工具带运行以下命令: $ heroku run " thor runner:website " 资料下载 该软件包还包括一个测试脚本,以显示如何从chrome保存下载内容。 我们的任务是runner:download ,但我建议这样调用它: $ heroku run bash [heroku]$ bundle exec thor runner:download [heroku]$ ls tmp/downloads # expect to se
【文件预览】:
minimal-chrome-on-heroku-master
----.gitignore(1KB)
----.ruby-version(6B)
----LICENSE(1KB)
----README.md(1KB)
----runner.thor(2KB)
----Gemfile(118B)
----app.json(434B)
----Gemfile.lock(702B)

网友评论