Skip to content

Commit e89b7d4

Browse files
xaircorebarancev
authored andcommitted
Fix common typo's
Signed-off-by: Alexei Barantsev <[email protected]>
1 parent 1292f88 commit e89b7d4

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

py/selenium/webdriver/common/actions/input_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ def add_action(self, action):
3939
def clear_actions(self):
4040
self.actions = []
4141

42-
def create_pause(self, duraton=0):
42+
def create_pause(self, duration=0):
4343
pass

py/selenium/webdriver/common/html5/application_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
"""
19-
The ApplicationCache implementaion.
19+
The ApplicationCache implementation.
2020
"""
2121

2222
from selenium.webdriver.remote.command import Command
@@ -33,7 +33,7 @@ class ApplicationCache(object):
3333

3434
def __init__(self, driver):
3535
"""
36-
Creates a new Aplication Cache.
36+
Creates a new Application Cache.
3737
3838
:Args:
3939
- driver: The WebDriver instance which performs user actions.

py/selenium/webdriver/firefox/extension_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def connect_and_quit(self):
7272

7373
@classmethod
7474
def is_connectable(self):
75-
"""Trys to connect to the extension but do not retrieve context."""
75+
"""Tries to connect to the extension but do not retrieve context."""
7676
utils.is_connectable(self.profile.port)
7777

7878

py/selenium/webdriver/remote/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def unzip_to_temp_dir(zip_file_name):
5959
for zip_name in zf.namelist():
6060
# We have no knowledge on the os where the zipped file was
6161
# created, so we restrict to zip files with paths without
62-
# charactor "\" and "/".
62+
# character "\" and "/".
6363
name = (zip_name.replace("\\", os.path.sep).
6464
replace("/", os.path.sep))
6565
dest = os.path.join(tempdir, name)
@@ -71,7 +71,7 @@ def unzip_to_temp_dir(zip_file_name):
7171
for zip_name in zf.namelist():
7272
# We have no knowledge on the os where the zipped file was
7373
# created, so we restrict to zip files with paths without
74-
# charactor "\" and "/".
74+
# character "\" and "/".
7575
name = (zip_name.replace("\\", os.path.sep).
7676
replace("/", os.path.sep))
7777
dest = os.path.join(tempdir, name)

py/test/selenium/webdriver/common/element_attribute_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ def testShouldReturnTheValueOfTheDisabledAttributeAsFalseIfNotSet(driver, pages)
6565
assert pElement.is_enabled()
6666

6767

68-
def testShouldReturnTheValueOfTheIndexAttrbuteEvenIfItIsMissing(driver, pages):
68+
def testShouldReturnTheValueOfTheIndexAttributeEvenIfItIsMissing(driver, pages):
6969
pages.load("formPage.html")
7070
multiSelect = driver.find_element_by_id("multi")
7171
options = multiSelect.find_elements_by_tag_name("option")
7272
assert "1" == options[1].get_attribute("index")
7373

7474

75-
def testShouldIndicateTheElementsThatAreDisabledAreNotis_enabled(driver, pages):
75+
def testShouldIndicateTheElementsThatAreDisabledAreNotIs_enabled(driver, pages):
7676
pages.load("formPage.html")
7777
inputElement = driver.find_element_by_xpath("//input[@id='notWorking']")
7878
assert not inputElement.is_enabled()

py/test/selenium/webdriver/common/form_handling_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def testShouldSubmitAFormWhenAnyInputElementWithinThatFormIsSubmitted(driver, pa
5252
WebDriverWait(driver, 3).until(EC.title_is("We Arrive Here"))
5353

5454

55-
def testShouldSubmitAFormWhenAnyElementWihinThatFormIsSubmitted(driver, pages):
55+
def testShouldSubmitAFormWhenAnyElementWithinThatFormIsSubmitted(driver, pages):
5656
pages.load("formPage.html")
5757
driver.find_element_by_xpath("//form/p").submit()
5858
WebDriverWait(driver, 5).until(EC.title_is("We Arrive Here"))

py/test/selenium/webdriver/common/select_element_handling_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def testShouldBeAbleToSelectMoreThanOneOptionFromASelectWhichAllowsMultipleChoic
6262
assert option.is_selected() is True
6363

6464

65-
def testShouldSelectFirstOptionaultIfNoneIsSelecte(driver, pages):
65+
def testShouldSelectFirstOptionIfNoneIsSelected(driver, pages):
6666
pages.load("formPage.html")
6767
selectBox = driver.find_element(By.XPATH, "//select[@name='select-default']")
6868
options = selectBox.find_elements(By.TAG_NAME, "option")
@@ -83,7 +83,7 @@ def testCanSelectElementsInOptGroup(driver, pages):
8383
assert element.is_selected() is True
8484

8585

86-
def testCanGetValueFromOptionViaAttributeWhenAttributeDoesntExis(driver, pages):
86+
def testCanGetValueFromOptionViaAttributeWhenAttributeDoesntExist(driver, pages):
8787
pages.load("formPage.html")
8888
element = driver.find_element(By.CSS_SELECTOR, "select[name='select-default'] option")
8989
assert element.get_attribute("value") == "One"

0 commit comments

Comments
 (0)