Skip to content

Commit

Permalink
Fix common typo's
Browse files Browse the repository at this point in the history
Signed-off-by: Alexei Barantsev <barancev@gmail.com>
  • Loading branch information
xaircore authored and barancev committed Oct 11, 2019
1 parent 1292f88 commit e89b7d4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/actions/input_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ def add_action(self, action):
def clear_actions(self):
self.actions = []

def create_pause(self, duraton=0):
def create_pause(self, duration=0):
pass
4 changes: 2 additions & 2 deletions py/selenium/webdriver/common/html5/application_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

"""
The ApplicationCache implementaion.
The ApplicationCache implementation.
"""

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

def __init__(self, driver):
"""
Creates a new Aplication Cache.
Creates a new Application Cache.
:Args:
- driver: The WebDriver instance which performs user actions.
Expand Down
2 changes: 1 addition & 1 deletion py/selenium/webdriver/firefox/extension_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def connect_and_quit(self):

@classmethod
def is_connectable(self):
"""Trys to connect to the extension but do not retrieve context."""
"""Tries to connect to the extension but do not retrieve context."""
utils.is_connectable(self.profile.port)


Expand Down
4 changes: 2 additions & 2 deletions py/selenium/webdriver/remote/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def unzip_to_temp_dir(zip_file_name):
for zip_name in zf.namelist():
# We have no knowledge on the os where the zipped file was
# created, so we restrict to zip files with paths without
# charactor "\" and "/".
# character "\" and "/".
name = (zip_name.replace("\\", os.path.sep).
replace("/", os.path.sep))
dest = os.path.join(tempdir, name)
Expand All @@ -71,7 +71,7 @@ def unzip_to_temp_dir(zip_file_name):
for zip_name in zf.namelist():
# We have no knowledge on the os where the zipped file was
# created, so we restrict to zip files with paths without
# charactor "\" and "/".
# character "\" and "/".
name = (zip_name.replace("\\", os.path.sep).
replace("/", os.path.sep))
dest = os.path.join(tempdir, name)
Expand Down
4 changes: 2 additions & 2 deletions py/test/selenium/webdriver/common/element_attribute_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ def testShouldReturnTheValueOfTheDisabledAttributeAsFalseIfNotSet(driver, pages)
assert pElement.is_enabled()


def testShouldReturnTheValueOfTheIndexAttrbuteEvenIfItIsMissing(driver, pages):
def testShouldReturnTheValueOfTheIndexAttributeEvenIfItIsMissing(driver, pages):
pages.load("formPage.html")
multiSelect = driver.find_element_by_id("multi")
options = multiSelect.find_elements_by_tag_name("option")
assert "1" == options[1].get_attribute("index")


def testShouldIndicateTheElementsThatAreDisabledAreNotis_enabled(driver, pages):
def testShouldIndicateTheElementsThatAreDisabledAreNotIs_enabled(driver, pages):
pages.load("formPage.html")
inputElement = driver.find_element_by_xpath("//input[@id='notWorking']")
assert not inputElement.is_enabled()
Expand Down
2 changes: 1 addition & 1 deletion py/test/selenium/webdriver/common/form_handling_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def testShouldSubmitAFormWhenAnyInputElementWithinThatFormIsSubmitted(driver, pa
WebDriverWait(driver, 3).until(EC.title_is("We Arrive Here"))


def testShouldSubmitAFormWhenAnyElementWihinThatFormIsSubmitted(driver, pages):
def testShouldSubmitAFormWhenAnyElementWithinThatFormIsSubmitted(driver, pages):
pages.load("formPage.html")
driver.find_element_by_xpath("//form/p").submit()
WebDriverWait(driver, 5).until(EC.title_is("We Arrive Here"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def testShouldBeAbleToSelectMoreThanOneOptionFromASelectWhichAllowsMultipleChoic
assert option.is_selected() is True


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


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

0 comments on commit e89b7d4

Please sign in to comment.