servo/tests/wpt/web-platform-tests/tools/webdriver
2016-04-12 10:47:32 +02:00
..
webdriver Update web-platform-tests to revision d011702f368b88b3bae86e7a8fd2ddd22e18b33c 2016-04-12 10:47:32 +02:00
.gitignore Update web-platform-tests to revision d011702f368b88b3bae86e7a8fd2ddd22e18b33c 2016-04-12 10:47:32 +02:00
README.md Update web-platform-tests to revision d011702f368b88b3bae86e7a8fd2ddd22e18b33c 2016-04-12 10:47:32 +02:00
setup.py Update web-platform-tests to revision d011702f368b88b3bae86e7a8fd2ddd22e18b33c 2016-04-12 10:47:32 +02:00

WebDriver client for Python

This package provides a WebDriver client compatible with the W3C browser automation specification.

The client is written with determining implementation compliance to the specification in mind, so that different remote end drivers can determine whether they meet the recognised standard. The client is used for the WebDriver specification tests in the Web Platform Tests.

Installation

To install the package individually in your virtualenv or system-wide::

% python setup.py install

Or if you want to contribute patches::

% python setup.py develop

If you are writing WebDriver specification tests for WPT, there is no need to install the client manually as it is picked up as a submodule to wpt-tools that is checked out in ./tools.

Usage

import webdriver

session = webdriver.Session("127.0.0.1", "4444")
session.start()

session.url = "https://mozilla.org"
print "The current URL is %s" % session.url

session.end()

Dependencies

This client has the benefit of only using standard library dependencies. No external PyPI dependencies are needed.