W3C Browser Automation Specification Tests
This repository defines a set of conformance tests for the W3C web browser automation specification known as WebDriver. The purpose is for the different driver implementations to be tested to determine whether they meet the recognized standard.
How to run the tests
- It is highly recommended that you use a virtual Python environment.
Install it via
<sudo> easy_install virtualenv,
<sudo> pip install virtualenv, or
<sudo> apt-get install python-virtualenv
source bin/activateto activate the local Python installation
pip install seleniumor
The webdriver.cfg file holds any configuration that the tests might require. Change the value of browser to your needs. This will then be picked up by WebDriverBaseTest when tests are run.
How to write tests
- Create a test file per section from the specification.
- For each test there needs to be one or more corresponding HTML files that will be used for testing. HTML files are not to be reused between tests.
- Test name should explain the intention of the test e.g.