~noskcaj/ubuntu/vivid/webtest/merge2

« back to all changes in this revision

Viewing changes to docs/modules/sel.txt

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski, Jakub Wilk, Piotr Ożarowski
  • Date: 2013-10-02 19:37:14 UTC
  • mfrom: (1.2.1) (14.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20131002193714-t0na13dhqrskvvff
Tags: 2.0.9-1
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Piotr Ożarowski ]
* New upstream release
  - bump minimum required Python version to 2.6
  - add python-six, python-waitress and python-bs4 to Depends
  - remove python-pastescript from Depends
  - remove python-simplejson and python-beautifulsoup from Recommends
  - add python-pyquery to Recommends
* Update debian/watch file to check for zip files
* Standards-Version bumped to 3.9.4 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
:mod:`webtest.sel` -- Functional Testing with Selenium
2
 
========================================================
3
 
 
4
 
.. automodule:: webtest.sel
5
 
 
6
 
Environment variables
7
 
---------------------
8
 
 
9
 
Those value are used if found in environment:
10
 
 
11
 
- ``SELENIUM_HOST``: Default to ``127.0.0.1``
12
 
 
13
 
- ``SELENIUM_PORT``: Default to ``4444``
14
 
 
15
 
- ``SELENIUM_BIND``: IP used to bind extra servers (WSGI Server/File server).
16
 
  Default to ``127.0.0.1``
17
 
 
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::
21
 
  
22
 
    $ java -jar selenium-server.jar -interactive
23
 
    cmd=getNewBrowserSession
24
 
 
25
 
 
26
 
- ``SELENIUM_KEEP_OPEN``: If exist then browser session are not closed so you
27
 
  can introspect the problem on failure.
28
 
 
29
 
- ``SELENIUM_JAR``: If selenium is not running then this jar is used to run
30
 
  selenium.
31
 
 
32
 
Module Contents
33
 
---------------
34
 
 
35
 
.. autoclass:: SeleniumApp
36
 
   :members:
37
 
 
38
 
.. autoclass:: Selenium
39
 
   :members:
40
 
 
41
 
.. autofunction:: selenium
42
 
 
43
 
Return Values
44
 
~~~~~~~~~~~~~
45
 
 
46
 
Some of the return values return instances of these classes:
47
 
 
48
 
.. autoclass:: TestResponse
49
 
   :members:
50
 
 
51
 
.. autoclass:: Document
52
 
   :members:
53
 
 
54
 
.. autoclass:: Element
55
 
   :members:
56
 
 
57
 
.. autoclass:: Form
58
 
   :members:
59
 
 
60
 
Examples
61
 
--------
62
 
 
63
 
Testing a wsgi application
64
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~
65
 
 
66
 
.. literalinclude:: ../../tests/test_selenium.py
67
 
   :pyobject: TestApp
68
 
 
69
 
Testing the jquery.ui website
70
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71
 
 
72
 
.. literalinclude:: ../../tests/test_selenium.py
73
 
   :pyobject: TestJQueryUI
74