Interface to Selenium 2 aka WebDriver
This library is a client for Selenium WebDriver. It is forked from Facebook's php-webdriver project. The main changes are bug fixes, PSR0-autoloading support, and publishing it as a PEAR package.
Internally, it is implemented as a very thin wrapper around the JsonWireProtocol that WebDriver uses to control a (possibly remote) browser.
php-webdriver should be installed using the PEAR Installer.
sudo pear channel-discover datasift.github.io/pear sudo pear install --alldeps DataSift/webdriver1
Composer support coming soon.
If you are creating a component that relies on php_webdriver, please make sure that you add php_webdriver to your component's package.xml file:
<dependencies> <required> <package> <name>webdriver1</name> <channel>datasift.github.io/pear</channel> <min>1.0.0</min> <max>1.999.9999</max> </package> </required> </dependencies>
If you want to patch or enhance this component, you will need to create a suitable development environment. The easiest way to do that is to install phix4componentdev.
You can then clone the git repository:
git clone https://github.com/datasift/php_webdriver
Then, install a local copy of this component's dependencies to complete the development environment:
# build vendor/ folder phing build-vendor
To make life easier for you, common tasks (such as running unit tests, generating code review analytics, and creating the PEAR package) have been automated using phing. You'll find the automated steps inside the build.xml file that ships with the component.
Run the command 'phing' in the component's top-level folder to see the full list of available automated tasks.
See LICENSE.txt for full license details.