@@ -64,7 +64,7 @@ possible to test keyboard shortcuts such as those used on GMail. A
64
64
side-effect of this is that typing something into a text field won't
65
65
automatically clear it. Instead, what you type will be appended to
66
66
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::
68
68
69
69
element.clear()
70
70
@@ -73,7 +73,7 @@ Filling in forms
73
73
~~~~~~~~~~~~~~~~
74
74
75
75
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
77
77
drop down, and you can use "setSelected" to set something like an
78
78
`OPTION ` tag selected. Dealing with `SELECT ` tags isn't too bad::
79
79
@@ -88,8 +88,8 @@ through each of it's OPTIONs in turn, printing out their values, and
88
88
selecting each in turn.
89
89
90
90
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
93
93
interacting with these::
94
94
95
95
from selenium.webdriver.support.ui import Select
@@ -188,12 +188,12 @@ Popup dialogs
188
188
~~~~~~~~~~~~~
189
189
190
190
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
192
192
can access the alert with the following::
193
193
194
194
alert = driver.switch_to_alert()
195
195
196
- This will return the currently open alert object. With this object
196
+ This will return the currently open alert object. With this object,
197
197
you can now accept, dismiss, read its contents or even type into a
198
198
prompt. This interface works equally well on alerts, confirms,
199
199
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::
209
209
210
210
driver.get("http://www.example.com")
211
211
212
- To move backwards and forwards in your browser's history::
212
+ To move backward and forward in your browser's history::
213
213
214
214
driver.forward()
215
215
driver.back()
216
216
217
217
Please be aware that this functionality depends entirely on the
218
218
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
220
220
one browser over another.
221
221
222
222
0 commit comments