mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision d011702f368b88b3bae86e7a8fd2ddd22e18b33c
This commit is contained in:
parent
f9608022ca
commit
299ad0f9d0
573 changed files with 38776 additions and 14942 deletions
48
tests/wpt/web-platform-tests/tools/webdriver/README.md
Normal file
48
tests/wpt/web-platform-tests/tools/webdriver/README.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
# WebDriver client for Python
|
||||
|
||||
This package provides a WebDriver client compatible with
|
||||
the [W3C browser automation specification](https://w3c.github.io/webdriver/webdriver-spec.html).
|
||||
|
||||
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](https://github.com/w3c/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](https://github.com/w3c/web-platform-tests),
|
||||
there is no need to install the client manually
|
||||
as it is picked up as a submodule to
|
||||
[wpt-tools](https://github.com/w3c/wpt-tools)
|
||||
that is checked out in `./tools`.
|
||||
|
||||
## Usage
|
||||
|
||||
```py
|
||||
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.
|
Loading…
Add table
Add a link
Reference in a new issue