facebook php-webdriver 安装与使用
由于工作需要,最近研究了face php-webdriver ,然而由于資料文檔比較少,一開始也是遇到不少問題,還好最后都順利解決了。
nodejs 安裝請看教程?https://yq.aliyun.com/articles/44435
1.Google Chrome 39 Released – Install on RHEL/CentOS 7/6 and Fedora 20-15
2.How to install Google Chrome 28+ on RHEL/CentOS 6 or 7
http://blog.csdn.net/xds2ml/article/details/52982748
? ? 工具:
? ? ? 1.下載facebok php-webdrever 代碼 ?https://github.com/facebook/php-webdriver
? ? ? 2.下載 jar 包?http://selenium-release.storage.googleapis.com/index.html
? ? ? 3.下載 chromedriver?http://npm.taobao.org/mirrors/chromedriver/2.9/
? ? ? 4.安裝 yum firefox
? ? ? ?5. 安裝Xvfb
yum update
yum install Xvfb
yum -install libXfont
yum install xorg-x11-fonts*
6.運行
1, nohup Xvfb -ac :7 -screen 0 1280x1024x8 > /dev/null 2>&1 & 2,?export DISPLAY=:7 3,?java -jar selenium-server-standalone-3.0.1.jar ?4.結束nohup 進程? ? ?ps?-ef?|?grep?command
? ? ?kill?-9?pid
總結
以上是生活随笔為你收集整理的facebook php-webdriver 安装与使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 台式低速常温离心机S400操作规程
- 下一篇: 业务需求与解决方案管理机制