Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (27 sloc) 1.179 kb
5721b40 David Cramer Better docs
authored
1 Nearly drop-in replacement for selenium driver in Python which allows easy integration with Sauce OnDemand.
55444a7 David Cramer Moving saucelabs to main namespace and more docs
authored
2
5721b40 David Cramer Better docs
authored
3 For more information about Sauce OnDemand, please visit their website: https://saucelabs.com/
4
5 Install
6 -------
7
b74b5e6 David Cramer Fix install notes
authored
8 Installation is easy using pip or setuptools::
9
5721b40 David Cramer Better docs
authored
10 pip install selenium-saucelabs-python
55444a7 David Cramer Moving saucelabs to main namespace and more docs
authored
11
5721b40 David Cramer Better docs
authored
12 Usage
13 -----
14
15 Integration is almost identical to the selenium driver::
16
17 import saucelabs
18
05b4d99 David Cramer 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 David Cramer Tests now pass
authored
21
2b9aa27 David Cramer Fix init args
authored
22 The following variables may be passed to the constructor:
5721b40 David Cramer Better docs
authored
23
24 - ``host``
25 - ``port``
26 - ``browser``
27 - ``sauceUsername``
28 - ``sauceApiKey``
96fcde7 David Cramer Make sauceDomain required and removing piping
authored
29 - ``sauceDomain``
5721b40 David Cramer Better docs
authored
30 - ``sauceConnect``: defaults to ``'sauce_connect'``; path to sauce connect binary
31 - ``os``: defaults to ``LINUX``
32 - ``browserVersion``: defaults to ``''``
05b4d99 David Cramer Add build and customData to Selenium initialization kwargs
authored
33 - ``build``: defaults to ``None``
34 - ``customData``: defaults to ``{}``
5721b40 David Cramer Better docs
authored
35
f9b741c David Cramer 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 David Cramer 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.