AirtestProject / AirtestProject/Airtest

ios 有长按拖拽的方法吗?类似Android这种 poco("AA").start_gesture().hold(1).to(poco("BB")).hold(1).up()

Offen
#613 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @Howarden34 Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
9.6k
Forks
1.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**描述问题bug**
ios 有长按拖拽的方法吗?类似Android这种 poco("AA").start_gesture().hold(1).to(poco("BB")).hold(1).up()

**相关截图**
RROR: runTest (app.widgets.code_runner.ide_launcher.AirtestIDECase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/wjjn3033/dev/idestable/airtest/airtest/cli/runner.py", line 65, in runTest
File "/Users/wjjn3033/dev/idestable/venv_ide_qt511/lib/python3.6/site-packages/six.py", line 693, in reraise
File "/Users/wjjn3033/dev/idestable/airtest/airtest/cli/runner.py", line 61, in runTest
File "/Users/wangjing/Documents/apptest/apptest/iOS.air/iOS.py", line 126, in
poco("英雄联盟").start_gesture().hold(1).to(poco("恋爱那些事")).hold(1).up()
File "/Applications/AirtestIDE.app/Contents/MacOS/poco/gesture.py", line 31, in up
self.pocoobj.apply_motion_tracks([self.track])
File "/Applications/AirtestIDE.app/Contents/MacOS/poco/pocofw.py", line 416, in apply_motion_tracks
return self.agent.input.applyMotionEvents(tb.discretize(accuracy))
File "/Applications/AirtestIDE.app/Contents/MacOS/poco/utils/airtest/input.py", line 95, in applyMotionEvents
raise NotImplementedError
NotImplementedError

----------------------------------------------------------------------
Ran 1 test in 1.160s

FAILED (errors=1)
[Finished]

**复现步骤**
1. 连接手机,运行代码poco("英雄联盟").start_gesture().hold(1).to(poco("恋爱那些事")).hold(1).up()
2. 报错

**预期效果**
按钮A长按拖拽到按钮B的位置

**python 版本:** `python3.5`

**airtest 版本:** `1.2.2`

**设备:**
- 型号: iphone7
- 系统: 12.3.1

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.