giorgiosironi/phpunit-selenium — pull request #11 by jlipps (2012-09-26 22:43:07+00:00)
Title: Support touch commands and mobile features

Selenium WebDriver has been supporting several touch commands in the spec as well as other mobile features like geolocation and orientation. Actual browser driver support is in a state of flux, but I figured the sooner we get them into this library the better.

Some refactoring had to take place to allow for the new/strange URL structure for touch commands (e.g., POST /session/:sessionID/touch/click, with the element ID as a json parameter rather than in the URL itself).

I added a test which exercises this functionality, using Android on Sauce (iPhone unfortunately doesn't support these other commands yet). By default these tests will all be skipped. We'll need to update the test environment with Sauce username and credentials if you want it to actually run in your suite. We are happy to provide you with a free account for the purposes of testing phpunit-selenium--contact me privately and I can get you those credentials (for abuse prevention we prefer if these credentials are not kept in an open-source repository, but rather stored in the test environment itself). Once set in the environment in this way, the tests will automatically run for Android!

Looking forward for getting these new commands into phpunit-selenium!