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

Method invalidate

poco/proxy.py:862–876  ·  view source on GitHub ↗

Clear the flag to indicate to re-query or re-select the UI element(s) from hierarchy. alias is refresh() Example: >>> a = poco(text="settings") >>> print(a.exists()) >>> a.refresh() >>> print(a.exists())

(self)

Source from the content-addressed store, hash-verified

860 return self._do_query()
861
862 def invalidate(self):
863 """
864 Clear the flag to indicate to re-query or re-select the UI element(s) from hierarchy.
865
866 alias is refresh()
867
868 Example:
869 >>> a = poco(text="settings")
870 >>> print(a.exists())
871 >>> a.refresh()
872 >>> print(a.exists())
873 """
874
875 self._evaluated = False
876 self._nodes = None
877
878 # refresh is alias of invalidate
879 # use poco(xxx).refresh() to force the UI element(s) to re-query

Callers 4

_do_queryMethod · 0.95
test_set_textMethod · 0.80
test_clear_textMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_set_textMethod · 0.64
test_clear_textMethod · 0.64