From fff02bf3060c78c751941683b9abd2975f4c3b0c Mon Sep 17 00:00:00 2001 From: Harri Paavola Date: Mon, 18 Jun 2012 10:57:46 +0300 Subject: [PATCH] couple typos; logLevel should be loglevel and locator should be attribute_locator --- src/Selenium2Library/keywords/_element.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Selenium2Library/keywords/_element.py b/src/Selenium2Library/keywords/_element.py index e107d526c..667f331d0 100644 --- a/src/Selenium2Library/keywords/_element.py +++ b/src/Selenium2Library/keywords/_element.py @@ -11,7 +11,7 @@ def __init__(self): # Public, element lookups - def current_frame_contains(self, text, logLevel='INFO'): + def current_frame_contains(self, text, loglevel='INFO'): """Verifies that current frame contains `text`. See `Page Should Contain ` for explanation about `loglevel` argument. @@ -574,9 +574,9 @@ def _map_ascii_key_code_to_key(self, key_code): def _parse_attribute_locator(self, attribute_locator): parts = attribute_locator.rpartition('@') if len(parts[0]) == 0: - raise ValueError("Attribute locator '%s' does not contain an element locator." % (locator)) + raise ValueError("Attribute locator '%s' does not contain an element locator." % (attribute_locator)) if len(parts[2]) == 0: - raise ValueError("Attribute locator '%s' does not contain an attribute name." % (locator)) + raise ValueError("Attribute locator '%s' does not contain an attribute name." % (attribute_locator)) return (parts[0], parts[2]) def _is_element_present(self, locator, tag=None):