MCPcopy
hub / github.com/AirtestProject/Poco / AndroidPocoAgent

Class AndroidPocoAgent

poco/drivers/android/uiautomation.py:82–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82class AndroidPocoAgent(PocoAgent):
83 def __init__(self, endpoint, ime, use_airtest_input=False):
84 self.client = AndroidRpcClient(endpoint)
85 remote_poco = self.client.remote('poco-uiautomation-framework')
86 dumper = remote_poco.dumper
87 selector = remote_poco.selector
88 attributor = remote_poco.attributor
89 hierarchy = RemotePocoHierarchy(dumper, selector, attributor)
90
91 if use_airtest_input:
92 inputer = AirtestInput()
93 else:
94 inputer = remote_poco.inputer
95 super(AndroidPocoAgent, self).__init__(hierarchy, inputer, ScreenWrapper(remote_poco.screen), None)
96
97
98class KeepRunningInstrumentationThread(threading.Thread):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected