MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / touchView

Method touchView

src/com/dtmilano/android/culebron.py:931–940  ·  view source on GitHub ↗
(self, v: View, root=None)

Source from the content-addressed store, hash-verified

929 self.printOperation(None, Operation.SAY_TEXT, text)
930
931 def touchView(self, v: View, root=None) -> None:
932 # FIXME: v.touch() handles the 2 cases for CulebraTester2-public and adbclient/vc
933 # also, we should obtain the selector only once
934 v.touch()
935 if v.uiAutomatorHelper:
936 self.printOperation(v, Operation.TOUCH_VIEW_UI_AUTOMATOR_HELPER, v.obtain_selector())
937 else:
938 # we pass root=v as an argument so the corresponding findView*() searches in this
939 # subtree instead of the full tree
940 self.printOperation(v, Operation.TOUCH_VIEW, root)
941
942 def touchPoint(self, x, y):
943 """

Callers 2

Calls 2

obtain_selectorMethod · 0.80
touchMethod · 0.45

Tested by

no test coverage detected