AOEpeople/php-webdriver

Name: php-webdriver

Owner: AOE

Description: thin php client for webdriver.

Created: 2014-03-06 13:00:59.0

Updated: 2014-03-06 13:00:59.0

Pushed: 2012-04-19 12:40:30.0

Homepage:

Size: 225

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

php-webdriver – A very thin wrapper of WebDriver

DESCRIPTION

This client aims to be as thin as possible, abusing the dynamic nature of PHP to allow almost all API calls to be a direct transformation of what is defined in the WebDriver protocol itself.

Most clients require you to first read the protocol to see what's possible, then study the client itself to see how to call it. This hopes to eliminate the latter step, and invites you to rely almost exclusively on http://code.google.com/p/selenium/wiki/JsonWireProtocol

Each command is just the name of a function call, and each additional path is just another chained function call. The function parameter is then either an array() if the command takes JSON parameters, or an individual primitive if it takes a URL parameter.

The function's return value is exactly what is returned from the server as part of the protocol definition. If an error is returned, the function will throw the appropriate WebDriverException instance.

GETTING STARTED
SIMPLE EXAMPLES
Note that all of these match the Protocol exactly
'GET', 'POST', or 'DELETE' to the same command examples
When you can do multiple http methods for the same command, call the command directly for the 'GET', and prepend the http method for the 'POST' or 'DELETE'.
Some unavoidable exceptions to direct protocol translation.
See also wiki page of examples.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.