Get the text attribute of the UI element. Return None if no such attribute. Similar to :py:meth:`.attr('text') `. Returns: :obj:`str`: None if the UI element does not have the text element, otherwise the utf-8 encoded text value.
(self)
| 776 | return False |
| 777 | |
| 778 | def get_text(self): |
| 779 | """ |
| 780 | Get the text attribute of the UI element. Return None if no such attribute. Similar to :py:meth:`.attr('text') |
| 781 | <poco.proxy.UIObjectProxy.attr>`. |
| 782 | |
| 783 | Returns: |
| 784 | :obj:`str`: None if the UI element does not have the text element, otherwise the utf-8 encoded text value. |
| 785 | In both py2 and py3, the return value type will be :obj:`str`. |
| 786 | """ |
| 787 | |
| 788 | text = self.attr('text') |
| 789 | return text |
| 790 | |
| 791 | def set_text(self, text): |
| 792 | """ |