【文件属性】:
文件名称:screenshot:截图生成器
文件大小:15KB
文件格式:ZIP
更新时间:2021-06-22 13:34:06
PHP
截图生成器
启动Selenium
wget http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar
java -jar selenium-server-standalone-2.44.0.jar
安装chrome驱动程序:
wget https://sites.google.com/a/chromium.org/chromedriver/
java -jar selenium-server-standalone-2.44.0.jar -Dwebdriver.chrome.driver=~/Downloads/chromedriver
运行截图脚本
./bin/screenshot screenshot:run myscript.json
【文件预览】:
screenshot-master
----composer.json(727B)
----bin()
--------screenshot(749B)
----example()
--------wikipedia.xml(440B)
--------wikipedia.json(927B)
----composer.lock(20KB)
----screenshot.json.dist(275B)
----src()
--------Shooter.php(1KB)
--------Command()
--------Script.php(418B)
--------Loader()
--------Step()
----LICENSE.md(1KB)
----.gitignore(56B)
----README.md(509B)