From 0b056c058ad7a9eb6d87d2a55fb185dccc4cf85e Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Tue, 13 Jul 2021 07:22:15 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - pyccuracy/actions/core/textbox_actions.py - pyccuracy/drivers/core/selenium_webdriver.py - pyccuracy/drivers/interface.py - tests/unit/airspeed_test.py Fixes: - Should read `method` rather than `methid`. - Should read `typing` rather than `typyng`. - Should read `recommendation` rather than `recomendation`. - Should read `definition` rather than `defintion`. --- pyccuracy/actions/core/textbox_actions.py | 2 +- pyccuracy/drivers/core/selenium_webdriver.py | 2 +- pyccuracy/drivers/interface.py | 4 ++-- tests/unit/airspeed_test.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyccuracy/actions/core/textbox_actions.py b/pyccuracy/actions/core/textbox_actions.py index f4f181e..5e9aa10 100644 --- a/pyccuracy/actions/core/textbox_actions.py +++ b/pyccuracy/actions/core/textbox_actions.py @@ -103,7 +103,7 @@ def execute(self, context, textbox_name, text): # I observed that it's only possible to type_keys after type_text once. TextboxTypeAction().execute(context, textbox_name, text) - # now typyng slowly... + # now typing slowly... textbox_key = self.resolve_element_key(context, Page.Textbox, textbox_name) context.browser_driver.type_keys(textbox_key, text) diff --git a/pyccuracy/drivers/core/selenium_webdriver.py b/pyccuracy/drivers/core/selenium_webdriver.py index b229e84..21d936c 100644 --- a/pyccuracy/drivers/core/selenium_webdriver.py +++ b/pyccuracy/drivers/core/selenium_webdriver.py @@ -103,7 +103,7 @@ def is_element_visible(self, element_selector): def wait_for_page(self, timeout=30000): pass - # the new recomendation from selenium is to watch for an element only + # the new recommendation from selenium is to watch for an element only # present with the new situation, all wait functions were dropped def get_title(self): diff --git a/pyccuracy/drivers/interface.py b/pyccuracy/drivers/interface.py index bbc0364..5105682 100644 --- a/pyccuracy/drivers/interface.py +++ b/pyccuracy/drivers/interface.py @@ -95,11 +95,11 @@ def get_selected_index(self, element_selector): raise NotImplementedError def get_selected_value(self, element_selector): - '''This methid gets the value for the currently selected option in the given select.''' + '''This method gets the value for the currently selected option in the given select.''' raise NotImplementedError def get_selected_text(self, element_selector): - '''This methid gets the text for the currently selected option in the given select.''' + '''This method gets the text for the currently selected option in the given select.''' raise NotImplementedError def get_element_text(self, element_selector): diff --git a/tests/unit/airspeed_test.py b/tests/unit/airspeed_test.py index bf1e8ee..de95bed 100644 --- a/tests/unit/airspeed_test.py +++ b/tests/unit/airspeed_test.py @@ -479,7 +479,7 @@ def test_define_and_use_macro_with_two_parameters_no_comma(self): # so it's correct behavior by definition; the real # question is whether using them w/o a comma is a legal variant # or not. This should effect the above test; the following test - # should be legal by defintion + # should be legal by definition def test_define_and_use_macro_with_two_parameters_with_comma(self): template = airspeed.Template('#macro ( bold $value, $other)$value$other#end#bold ($text, $monkey)')