1
:mod:`webtest.sel` -- Functional Testing with Selenium
2
========================================================
4
.. automodule:: webtest.sel
9
Those value are used if found in environment:
11
- ``SELENIUM_HOST``: Default to ``127.0.0.1``
13
- ``SELENIUM_PORT``: Default to ``4444``
15
- ``SELENIUM_BIND``: IP used to bind extra servers (WSGI Server/File server).
16
Default to ``127.0.0.1``
18
- ``SELENIUM_DRIVER``: The driver used to start the browser. Usualy something
19
in ``*chrome``, ``*firefox``, ``*googlechrome``. Default to
20
``*googlechrome``. You can get the full list by running::
22
$ java -jar selenium-server.jar -interactive
23
cmd=getNewBrowserSession
26
- ``SELENIUM_KEEP_OPEN``: If exist then browser session are not closed so you
27
can introspect the problem on failure.
29
- ``SELENIUM_JAR``: If selenium is not running then this jar is used to run
35
.. autoclass:: SeleniumApp
38
.. autoclass:: Selenium
41
.. autofunction:: selenium
46
Some of the return values return instances of these classes:
48
.. autoclass:: TestResponse
51
.. autoclass:: Document
54
.. autoclass:: Element
63
Testing a wsgi application
64
~~~~~~~~~~~~~~~~~~~~~~~~~~~
66
.. literalinclude:: ../../tests/test_selenium.py
69
Testing the jquery.ui website
70
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72
.. literalinclude:: ../../tests/test_selenium.py
73
:pyobject: TestJQueryUI