DownEvent is not defined when creating a multi-touch event
See original GitHub issueDescribe the bug I am trying to use long press gestures in my testing cases but it says that downevent is not defined. Even though I am following the playground example and importing all dependancies, it still gives me an error.
I want to tap at one point, swipe down, then contiune to hold that swipe for 3 seconds and then let go. Is there another way of achieving this? Thanks.
The stack trace
Traceback (most recent call last):
File "airtest/cli/runner.py", line 65, in runTest
File "six.py", line 686, in reraise
File "airtest/cli/runner.py", line 61, in runTest
File "/home/munib/Desktop/Airtest/Android.air/fb.py", line 89, in <module>
DownEvent((100, 100), 0),
NameError: name 'DownEvent' is not defined
To Reproduce Steps to reproduce the behavior: Try to run this code https://github.com/AirtestProject/Airtest/blob/master/playground/android_motionevents.py
Expected behavior I should be able to mimic continuous swipe
python version: python3.6.5
airtest version: 1.1.3
Smartphone (please complete the following information):
-
Device: Google Pixel 3
-
OS: Latest Android
-
Samsung Galaxy S5
-
Last supported OS
-
Galaxy Tab
-
Latest OS supported
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
this url may help you: https://airtest.doc.io.netease.com/en/tutorial/0_automated_testing/ We are still working on the English version, so we haven’t put it to the index page
sorry, it’s a bug caused by us, modify the
from airtest.core.android.minitouch import *
toWe will fix this problem in the next version