WPSelenium is a library that allows you to quickly get up and running testing your site with selenium and phpunit.
It does this by installing and configuring phpunit, the selenium server, the php client webdriver (by facebook) and the correct drivers for the browser you want to test on. Once installed all you have to worry about is writing your selenium php tests.
1.Install
1.Install
composer require --dev devchid/wpselenium
2.Write Tests
2.Write Tests
As you would phpunit test with the facebook webclient driver
3.Tests
3.Tests
composer /vendor/bin/wpselenium chrome