MCPcopy Index your code
hub / github.com/AirtestProject/Poco / wrapped

Function wrapped

poco/proxy.py:21–29  ·  view source on GitHub ↗
(proxy, *args, **kwargs)

Source from the content-addressed store, hash-verified

19def wait(func):
20 @wraps(func)
21 def wrapped(proxy, *args, **kwargs):
22 try:
23 return func(proxy, *args, **kwargs)
24 except PocoNoSuchNodeException as e:
25 try:
26 proxy.wait_for_appearance(timeout=proxy.poco._pre_action_wait_for_appearance)
27 return func(proxy, *args, **kwargs)
28 except PocoTargetTimeout:
29 raise e
30
31 return wrapped
32

Callers

nothing calls this directly

Calls 3

ReevaluationContextClass · 0.85
wait_for_appearanceMethod · 0.80
_do_queryMethod · 0.80

Tested by

no test coverage detected