Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5ac746

Browse files
committed
mention py.test & nose
1 parent 74e964e commit e5ac746

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

source/getting-started.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,14 @@ browser will exit entirely.::
9494
Using Selenium to write tests
9595
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9696

97-
Selenium will be used mostly for writing test cases. You can write
98-
test cases using Python's unittest module. Here is the modified
99-
example which uses unittest module. This is a test for python.org
100-
search functionality::
97+
Selenium is mostly used for writing test cases. The `selenium`
98+
package itself doesn't provide a testing tool/framework. You can
99+
write test cases using Python's unittest module. The other choices as
100+
a tool/framework are py.test and nose.
101+
102+
In this chapter, we use `unittest` as the framework of choice. Here
103+
is the modified example which uses unittest module. This is a test
104+
for `python.org` search functionality::
101105

102106
import unittest
103107
from selenium import webdriver
@@ -133,6 +137,9 @@ You can run the above test case from a shell like this::
133137

134138
OK
135139

140+
The above results shows that, the test has been successfully
141+
completed.
142+
136143

137144
Walk through of the example
138145
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -191,7 +198,7 @@ in it::
191198

192199
.. note::
193200

194-
The `assertIn` API is only available in Python 2.7 unittest module.
201+
The `assertIn` API is only available in Python 2.7 and above.
195202

196203
WebDriver offers a number of ways to find elements using one of the
197204
`find_element_by_*` methods. For example, the input text element can

0 commit comments

Comments
 (0)