From 202df616c18dfd43e3c263adb4a4d8e6daeea3bb Mon Sep 17 00:00:00 2001 From: Lauri Larjo Date: Wed, 28 Dec 2011 17:44:11 +0200 Subject: [PATCH] Selenium2Library fix: 'Textfield Value Should Be' -keyword did not find the textfield, but just failed with: FAIL Value of text field 'edit-mail' should have been 'acceptance-user@example.com' but was 'None' --- src/Selenium2Library/keywords/_formelement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Selenium2Library/keywords/_formelement.py b/src/Selenium2Library/keywords/_formelement.py index ff9c26b89..d321ed7fc 100644 --- a/src/Selenium2Library/keywords/_formelement.py +++ b/src/Selenium2Library/keywords/_formelement.py @@ -243,7 +243,7 @@ def textfield_value_should_be(self, locator, expected, message=''): Key attributes for text fields are `id` and `name`. See `introduction` for details about locating elements. """ - element = self._element_find(locator, True, False, 'text field') + element = self._element_find(locator, True, False, 'input') if element is None: element = self._element_find(locator, True, False, 'file upload') actual = element.get_attribute('value') if element is not None else None if actual != expected: