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

Method longTouchView

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

Source from the content-addressed store, hash-verified

1019 return
1020
1021 def longTouchView(self, v: View, root=None) -> None:
1022 # FIXME: v.longTouch() handles the 2 cases for CulebraTester2-public and adbclient
1023 # also, we should obtain the selector only once
1024 v.longTouch()
1025 if v.uiAutomatorHelper:
1026 self.printOperation(v, Operation.LONG_TOUCH_VIEW_UI_AUTOMATOR_HELPER, v.obtain_selector())
1027 else:
1028 # we pass root=v as an argument so the corresponding findView*() searches in this
1029 # subtree instead of the full tree
1030 self.printOperation(v, Operation.LONG_TOUCH_VIEW, root)
1031 self.isLongTouchingView = False
1032
1033 def onButton1Pressed(self, event):
1034 if DEBUG:

Callers 1

Calls 2

obtain_selectorMethod · 0.80
longTouchMethod · 0.45

Tested by

no test coverage detected