A simple PHP Selenium project integrated PHPUNIT,Facebook webdriver and using Travis CI
PHP Selenium has the following requirements:
- PHP version 5.6 or later.
- Chrome browser
- Composer
- Selenium Standalone Server
- Chrome driver
- PHPUNIT
Download or Clone the project
git clone https://github.com/shushanxingzhe/php-selenium.git
Update the dependency
cd /path/to/project
composer update
Run Selenium Server with Chrome driver
java -Dwebdriver.chrome.driver=/path/to/chromedriver -jar /path/to/selenium server/selenium-server-standalone-3.0.0.jar
Run the project with phpunit
phpunit Facebook.php