webelem: Check for vanished elem in is_text_input.

This commit is contained in:
Florian Bruhin 2015-08-02 23:48:03 +02:00
parent 3d9e4817f2
commit c6a5731560

View File

@ -281,6 +281,7 @@ class WebElementWrapper(collections.abc.MutableMapping):
def is_text_input(self):
"""Check if this element is some kind of text box."""
self._check_vanished()
roles = ('combobox', 'textbox')
tag = self._elem.tagName().lower()
return self.get('role', None) in roles or tag in ('input', 'textarea')