<commit_before>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('127.0.0.1', '80', saucelabs.FIREFOX, USERNAME, API_KEY)

The following variables may be passed to the constructor:

- ``host``
- ``port``
- ``browser``
- ``sauceUsername``
- ``sauceApiKey``
- ``sauceDomain``: defaults to ``None``
- ``sauceConnect``: defaults to ``'sauce_connect'``; path to sauce connect binary
- ``os``: defaults to ``LINUX``
- ``browserVersion``: defaults to ``''``

For more information, see the small amount of code in saucelabs/__init__.py, and saucelabs/tests.py<commit_msg>Add setJobInfo to docs<commit_after>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('127.0.0.1', '80', saucelabs.FIREFOX, USERNAME, API_KEY)

The following variables may be passed to the constructor:

- ``host``
- ``port``
- ``browser``
- ``sauceUsername``
- ``sauceApiKey``
- ``sauceDomain``: defaults to ``None``
- ``sauceConnect``: defaults to ``'sauce_connect'``; path to sauce connect binary
- ``os``: defaults to ``LINUX``
- ``browserVersion``: 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
{'fraction_non_alphanumeric': 0.13352970054000982, 'fraction_numerical': 0.007854688267059401, 'mean_word_length': 4.6143250688705235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3648359', 'n_tokens_mistral': 661, 'n_tokens_neox': 635, 'n_words': 218}