Fix WebElementWrapper.text

This commit is contained in:
Florian Bruhin 2016-07-27 17:07:12 +02:00
parent 49f57a5d7e
commit 5b943a431e

View File

@ -175,7 +175,7 @@ class WebElementWrapper(collections.abc.MutableMapping):
use_js: Whether to use javascript if the element isn't content-editable.
"""
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()
else:
return self._elem.evaluateJavaScript('this.value')