webelem: Check for vanished elem in is_text_input.
This commit is contained in:
parent
3d9e4817f2
commit
c6a5731560
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user