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

Skip to content

Commit a893286

Browse files
nehbehlbaijum
andauthored
Updated to fix grammatical and punctuation issues (baijum#93)
* Updated to fix grammatical and punctuation issues feat: Grammatical and punctuation updates 1. Added missing quote in the second instance of close at line number 88 2. Corrected walkthrough as it is a single word 3. Updated line number 152 for grammatical mistake * Added links and updated as per comments Co-authored-by: Baiju Muthukadan <[email protected]>
1 parent f557fce commit a893286

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

source/getting-started.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ ensure that some results are found, make an assertion::
8585
assert "No results found." not in driver.page_source
8686

8787
Finally, the browser window is closed. You can also call `quit` method instead
88-
of `close`. The `quit` will exit entire browser whereas close` will close one
88+
of `close`. The `quit` will exit entire browser whereas `close` will close one
8989
tab, but if just one tab was open, by default most browser will exit entirely.::
9090

9191
driver.close()
@@ -96,8 +96,8 @@ Using Selenium to write tests
9696

9797
Selenium is mostly used for writing test cases. The `selenium` package itself
9898
doesn't provide a testing tool/framework. You can write test cases using
99-
Python's unittest module. The other options for a tool/framework are py.test
100-
and nose.
99+
Python's unittest module. The other options for a tool/framework are `pytest <https://docs.pytest.org/en/stable/>`_
100+
and `nose <https://nose.readthedocs.io/en/latest/>`_.
101101

102102
In this chapter, we use `unittest` as the framework of choice. Here is the
103103
modified example which uses unittest module. This is a test for `python.org`
@@ -141,15 +141,15 @@ You can run the above test case from a shell like this::
141141
The above result shows that the test has been successfully completed.
142142

143143

144-
Walk through of the example
145-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
144+
Walkthrough of the example
145+
~~~~~~~~~~~~~~~~~~~~~~~~~~
146146

147147
Initially, all the basic modules required are imported. The `unittest
148148
<http://docs.python.org/library/unittest.html>`_ module is a built-in Python
149149
based on Java's JUnit. This module provides the framework for organizing the
150150
test cases. The `selenium.webdriver` module provides all the WebDriver
151151
implementations. Currently supported WebDriver implementations are Firefox,
152-
Chrome, Ie and Remote. The `Keys` class provide keys in the keyboard like
152+
Chrome, IE and Remote. The `Keys` class provides keys in the keyboard like
153153
RETURN, F1, ALT etc.
154154

155155
::
@@ -269,4 +269,3 @@ dictionaries, you can specify the values explicitly::
269269
desired_capabilities={'browserName': 'htmlunit',
270270
'version': '2',
271271
'javascriptEnabled': True})
272-

0 commit comments

Comments
 (0)