https://github.com/dcramer/selenium-saucelabs-python
Selenium driver for Sauce OnDemand
https://github.com/dcramer/selenium-saucelabs-python
Last synced: 3 months ago
JSON representation
Selenium driver for Sauce OnDemand
- Host: GitHub
- URL: https://github.com/dcramer/selenium-saucelabs-python
- Owner: dcramer
- License: apache-2.0
- Created: 2011-01-11T22:51:22.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-01-28T00:14:27.000Z (almost 15 years ago)
- Last Synced: 2025-02-06T11:18:57.949Z (11 months ago)
- Language: Python
- Homepage: http://saucelabs.com
- Size: 767 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Nearly drop-in replacement for selenium driver in Python which allows easy integration with Sauce OnDemand.
For more information about Sauce OnDemand, please visit their website: https://saucelabs.com/
Install
-------
Installation is easy using pip or setuptools::
pip install selenium-saucelabs-python
Usage
-----
Integration is almost identical to the selenium driver::
import saucelabs
selenium = saucelabs.Selenium(host='127.0.0.1', port='80', browser=saucelabs.FIREFOX,
sauceUsername=USERNAME, sauceApiKey=API_KEY)
The following variables may be passed to the constructor:
- ``host``
- ``port``
- ``browser``
- ``sauceUsername``
- ``sauceApiKey``
- ``sauceDomain``
- ``sauceConnect``: defaults to ``'sauce_connect'``; path to sauce connect binary
- ``os``: defaults to ``LINUX``
- ``browserVersion``: defaults to ``''``
- ``build``: defaults to ``None``
- ``customData``: defaults to ``{}``
The ``setJobInfo`` api is also available within the driver::
selenium.setJobInfo(name='foo', tags=['a', 'b', 'c'], passed=True)
For more information, see the small amount of code in saucelabs/__init__.py, and saucelabs/tests.py