webelem: Check if elem is writable with roles.
This commit is contained in:
parent
0330adf284
commit
8011cefea6
@ -267,7 +267,7 @@ class WebElementWrapper(collections.abc.MutableMapping):
|
|||||||
tag = self._elem.tagName().lower()
|
tag = self._elem.tagName().lower()
|
||||||
if self.is_content_editable() and self.is_writable():
|
if self.is_content_editable() and self.is_writable():
|
||||||
return True
|
return True
|
||||||
elif self.get('role', None) in roles:
|
elif self.get('role', None) in roles and self.is_writable():
|
||||||
return True
|
return True
|
||||||
elif tag == 'input':
|
elif tag == 'input':
|
||||||
return self._is_editable_input()
|
return self._is_editable_input()
|
||||||
|
Loading…
Reference in New Issue
Block a user