Fix WebElementWrapper.text
This commit is contained in:
parent
49f57a5d7e
commit
5b943a431e
@ -175,7 +175,7 @@ class WebElementWrapper(collections.abc.MutableMapping):
|
|||||||
use_js: Whether to use javascript if the element isn't content-editable.
|
use_js: Whether to use javascript if the element isn't content-editable.
|
||||||
"""
|
"""
|
||||||
self._check_vanished()
|
self._check_vanished()
|
||||||
if self._elem.is_content_editable() or not use_js:
|
if self.is_content_editable() or not use_js:
|
||||||
return self._elem.toPlainText()
|
return self._elem.toPlainText()
|
||||||
else:
|
else:
|
||||||
return self._elem.evaluateJavaScript('this.value')
|
return self._elem.evaluateJavaScript('this.value')
|
||||||
|
Loading…
Reference in New Issue
Block a user