You'll need a (local) Selenium server. The simplest way to get one is to grab one of the stand-alone JARs from http://selenium-release.storage.googleapis.com/index.html and run it with no arguments:
$ wget http://selenium-release.storage.googleapis.com/3.4/selenium-server-standalone-3.4.0.jar $ java -jar selenium-server-standalone-3.4.0.jar
The Selenium test demos will pull your WonderProxy credentials from environment variables:
$ export WONDERPROXY_USER=<your WonderProxy username> $ export WONDERPROXY_PASS=<your WonderProxy password>
Running the tests
The PHP demo has been tested on PHP 5.6 and 7.1.
The PHP demo uses Composer to organize its dependencies:
$ cd path/to/locale-testing-demo/selenium/php $ curl -sS https://getcomposer.org/installer | php $ php composer.phar install
Spin up your Selenium server and fire away!
$ cd path/to/locale-testing-demo/selenium/php $ ./vendor/bin/phpunit
This PHP demo was shamelessly ripped from @DavertMik's php-webdriver-demo for Selenium, which he blogged about at http://codeception.com/11-12-2013/working-with-phpunit-and-selenium-webdriver.html.
The Python demo runs on Python 3.2+. It might work on earlier versions, but it's not tested!
Follow Selenium's instructions to set up the Python/Selenium bindings.
Make sure your Selenium server is still running, and off you go!
$ cd path/to/locale-testing-demo/selenium/python $ python3 test_wonderproxy.py