Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 40 lines (27 sloc) 1.179 kB
5721b40 @dcramer Better docs
authored
1 Nearly drop-in replacement for selenium driver in Python which allows easy integration with Sauce OnDemand.
55444a7 @dcramer Moving saucelabs to main namespace and more docs
authored
2
5721b40 @dcramer Better docs
authored
3 For more information about Sauce OnDemand, please visit their website: https://saucelabs.com/
4
5 Install
6 -------
7
b74b5e6 @dcramer Fix install notes
authored
8 Installation is easy using pip or setuptools::
9
5721b40 @dcramer Better docs
authored
10 pip install selenium-saucelabs-python
55444a7 @dcramer Moving saucelabs to main namespace and more docs
authored
11
5721b40 @dcramer Better docs
authored
12 Usage
13 -----
14
15 Integration is almost identical to the selenium driver::
16
17 import saucelabs
18
05b4d99 @dcramer Add build and customData to Selenium initialization kwargs
authored
19 selenium = saucelabs.Selenium(host='127.0.0.1', port='80', browser=saucelabs.FIREFOX,
20 sauceUsername=USERNAME, sauceApiKey=API_KEY)
a799d81 @dcramer Tests now pass
authored
21
2b9aa27 @dcramer Fix init args
authored
22 The following variables may be passed to the constructor:
5721b40 @dcramer Better docs
authored
23
24 - ``host``
25 - ``port``
26 - ``browser``
27 - ``sauceUsername``
28 - ``sauceApiKey``
96fcde7 @dcramer Make sauceDomain required and removing piping
authored
29 - ``sauceDomain``
5721b40 @dcramer Better docs
authored
30 - ``sauceConnect``: defaults to ``'sauce_connect'``; path to sauce connect binary
31 - ``os``: defaults to ``LINUX``
32 - ``browserVersion``: defaults to ``''``
05b4d99 @dcramer Add build and customData to Selenium initialization kwargs
authored
33 - ``build``: defaults to ``None``
34 - ``customData``: defaults to ``{}``
5721b40 @dcramer Better docs
authored
35
f9b741c @dcramer Add setJobInfo to docs
authored
36 The ``setJobInfo`` api is also available within the driver::
37
38 selenium.setJobInfo(name='foo', tags=['a', 'b', 'c'], passed=True)
39
a799d81 @dcramer Tests now pass
authored
40 For more information, see the small amount of code in saucelabs/__init__.py, and saucelabs/tests.py
Something went wrong with that request. Please try again.