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

Skip to content

Commit 238f7d6

Browse files
committed
grammar
1 parent ebef43a commit 238f7d6

File tree

5 files changed

+25
-24
lines changed

5 files changed

+25
-24
lines changed

source/api.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ WebDriver API
99
is available `here
1010
<https://seleniumhq.github.io/selenium/docs/api/py/api.html>`_.
1111

12-
This chapter cover all the interfaces of Selenium WebDriver.
12+
This chapter covers all the interfaces of Selenium WebDriver.
1313

1414

1515
**Recommended Import Style**
1616

17-
The API definitions in this chapter shows the absolute location of classes.
18-
However the recommended import style is as given below::
17+
The API definitions in this chapter show the absolute location of classes.
18+
However, the recommended import style is as given below::
1919

2020
from selenium import webdriver
2121

@@ -38,7 +38,8 @@ The special keys class (``Keys``) can be imported like this::
3838

3939
from selenium.webdriver.common.keys import Keys
4040

41-
The exception classes can be imported like this (Replace the ``TheNameOfTheExceptionClass`` with actual class name given below)::
41+
The exception classes can be imported like this (Replace the ``TheNameOfTheExceptionClass``
42+
with the actual class name given below)::
4243

4344
from selenium.common.exceptions import [TheNameOfTheExceptionClass]
4445

@@ -52,13 +53,13 @@ Here is an example for property:
5253

5354
- current_url
5455

55-
URL of the current loaded page.
56+
URL of the currently loaded page.
5657

5758
Usage::
5859

5960
driver.current_url
6061

61-
Here is an example for a method:
62+
Here is an example of a method:
6263

6364
- close()
6465

source/getting-started.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ in it::
6767
WebDriver offers a number of ways to find elements using one of the
6868
`find_element_by_*` methods. For example, the input text element can
6969
be located by its `name` attribute using `find_element_by_name`
70-
method. Detailed explanation of finding elements is available in the
70+
method. A detailed explanation of finding elements is available in the
7171
:ref:`locating-elements` chapter::
7272

7373
elem = driver.find_element_by_name("q")
7474

75-
Next we are sending keys, this is similar to entering keys using your
75+
Next, we are sending keys, this is similar to entering keys using your
7676
keyboard. Special keys can be sent using `Keys` class imported from
7777
`selenium.webdriver.common.keys`. To be safe, we'll first clear any
78-
prepopulated text in the input field (e.g. "Search") so it doesn't
78+
pre-populated text in the input field (e.g. "Search") so it doesn't
7979
affect our search results::
8080

8181
elem.clear()
@@ -210,14 +210,14 @@ method. Detailed explanation of finding elements is available in the
210210

211211
elem = driver.find_element_by_name("q")
212212

213-
Next we are sending keys, this is similar to entering keys using your
213+
Next, we are sending keys, this is similar to entering keys using your
214214
keyboard. Special keys can be send using `Keys` class imported from
215215
`selenium.webdriver.common.keys`::
216216

217217
elem.send_keys("pycon")
218218
elem.send_keys(Keys.RETURN)
219219

220-
After submission of the page, you should get result as per search if
220+
After submission of the page, you should get the result as per search if
221221
there is any. To ensure that some results are found, make an
222222
assertion::
223223

source/installation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Detailed instructions for Windows users
6363

6464
.. Note::
6565

66-
You should have internet connection to perform this installation.
66+
You should have an internet connection to perform this installation.
6767

6868
1. Install Python 3.6 using the `MSI available in python.org download
6969
page <http://www.python.org/download>`_.
@@ -87,7 +87,7 @@ Downloading Selenium server
8787

8888
.. note::
8989

90-
**The Selenium server is only required, if you want to use the remote
90+
**The Selenium server is only required if you want to use the remote
9191
WebDriver**. See the :ref:`selenium-remote-webdriver` section for
9292
more details. If you are a beginner learning Selenium, you can
9393
skip this section and proceed with next chapter.
@@ -112,13 +112,13 @@ you can start the Selenium server using this command::
112112

113113
java -jar selenium-server-standalone-2.x.x.jar
114114

115-
Replace `2.x.x` with actual version of Selenium server you downloaded
115+
Replace `2.x.x` with the actual version of Selenium server you downloaded
116116
from the site.
117117

118118
If JRE is installed as a non-root user and/or if it is
119119
not available in the PATH (environment variable), you can type the
120120
relative or absolute path to the `java` command. Similarly, you can
121-
provide relative or absolute path to Selenium server jar file.
121+
provide a relative or absolute path to Selenium server jar file.
122122
Then, the command will look something like this::
123123

124124
/path/to/java -jar /path/to/selenium-server-standalone-2.x.x.jar

source/navigating.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ possible to test keyboard shortcuts such as those used on GMail. A
6464
side-effect of this is that typing something into a text field won't
6565
automatically clear it. Instead, what you type will be appended to
6666
what's already there. You can easily clear the contents of a text
67-
field or textarea with `clear` method::
67+
field or textarea with the `clear` method::
6868

6969
element.clear()
7070

@@ -73,7 +73,7 @@ Filling in forms
7373
~~~~~~~~~~~~~~~~
7474

7575
We've already seen how to enter text into a textarea or text field,
76-
but what about the other elements? You can "toggle" the state of
76+
but what about the other elements? You can "toggle" the state of the
7777
drop down, and you can use "setSelected" to set something like an
7878
`OPTION` tag selected. Dealing with `SELECT` tags isn't too bad::
7979

@@ -88,8 +88,8 @@ through each of it's OPTIONs in turn, printing out their values, and
8888
selecting each in turn.
8989

9090
As you can see, this isn't the most efficient
91-
way of dealing with SELECT elements . WebDriver's support classes
92-
include one called "Select", which provides useful methods for
91+
way of dealing with SELECT elements. WebDriver's support classes
92+
include one called a "Select", which provides useful methods for
9393
interacting with these::
9494

9595
from selenium.webdriver.support.ui import Select
@@ -188,12 +188,12 @@ Popup dialogs
188188
~~~~~~~~~~~~~
189189

190190
Selenium WebDriver has built-in support for handling popup dialog
191-
boxes. After you've triggerd action that would open a popup, you
191+
boxes. After you've triggered action that would open a popup, you
192192
can access the alert with the following::
193193

194194
alert = driver.switch_to_alert()
195195

196-
This will return the currently open alert object. With this object
196+
This will return the currently open alert object. With this object,
197197
you can now accept, dismiss, read its contents or even type into a
198198
prompt. This interface works equally well on alerts, confirms,
199199
prompts. Refer to the API documentation for more information.
@@ -209,14 +209,14 @@ useful task. To navigate to a page, you can use `get` method::
209209

210210
driver.get("http://www.example.com")
211211

212-
To move backwards and forwards in your browser's history::
212+
To move backward and forward in your browser's history::
213213

214214
driver.forward()
215215
driver.back()
216216

217217
Please be aware that this functionality depends entirely on the
218218
underlying driver. It's just possible that something unexpected may
219-
happen when you call these methods if you're used to the behaviour of
219+
happen when you call these methods if you're used to the behavior of
220220
one browser over another.
221221

222222

source/waits.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ trying to locate an element.
2222
Explicit Waits
2323
~~~~~~~~~~~~~~
2424

25-
An explicit wait is code you define to wait for a certain condition
25+
An explicit wait is a code you define to wait for a certain condition
2626
to occur before proceeding further in the code. The extreme case of
2727
this is time.sleep(), which sets the condition to an exact time period
2828
to wait. There are some convenience methods provided that help you

0 commit comments

Comments
 (0)