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: