Test whether the UI element is in the hierarchy. Similar to :py:meth:`.attr('visible') `. Returns: bool: True if exists otherwise False
(self)
| 762 | |
| 763 | @volatile_attribute |
| 764 | def exists(self): |
| 765 | """ |
| 766 | Test whether the UI element is in the hierarchy. Similar to :py:meth:`.attr('visible') |
| 767 | <poco.proxy.UIObjectProxy.attr>`. |
| 768 | |
| 769 | Returns: |
| 770 | bool: True if exists otherwise False |
| 771 | """ |
| 772 | |
| 773 | try: |
| 774 | return self.attr('visible') |
| 775 | except (PocoTargetRemovedException, PocoNoSuchNodeException): |
| 776 | return False |
| 777 | |
| 778 | def get_text(self): |
| 779 | """ |
no test coverage detected