MCPcopy Create free account
hub / github.com/AirtestProject/Poco / exists

Method exists

poco/proxy.py:764–776  ·  view source on GitHub ↗

Test whether the UI element is in the hierarchy. Similar to :py:meth:`.attr('visible') `. Returns: bool: True if exists otherwise False

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 9

waitMethod · 0.95
wait_for_appearanceMethod · 0.95
conf.pyFile · 0.80
dismissMethod · 0.80
wait_for_anyMethod · 0.80
wait_for_allMethod · 0.80
runTestMethod · 0.80
runTestMethod · 0.80

Calls 1

attrMethod · 0.95

Tested by

no test coverage detected