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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值