Set the text attribute of the UI element. If the UI element does not support mutation, an exception is raised Args: text: the text value to be set Raises: InvalidOperationException: when unable to mutate text value of the UI element
(self, text)
| 789 | return text |
| 790 | |
| 791 | def set_text(self, text): |
| 792 | """ |
| 793 | Set the text attribute of the UI element. If the UI element does not support mutation, an exception is raised |
| 794 | |
| 795 | Args: |
| 796 | text: the text value to be set |
| 797 | |
| 798 | Raises: |
| 799 | InvalidOperationException: when unable to mutate text value of the UI element |
| 800 | """ |
| 801 | |
| 802 | return self.setattr('text', text) |
| 803 | |
| 804 | def get_name(self): |
| 805 | """ |