用python+uiautomator做自动化,使用到swipePoints这个方法的时候,一直报KeyError错误,请问怎么解决?
报错日志主要集中在三处__init__.py,inline613,inswipePoints__init__.py,inline428,inwrapperreturn_m...
报错日志主要集中在三处
__init__.py,in line 613,in swipePoints
__init__.py,in line 428,in wrapper return _method_obj(*args,**kwargs)
__init__.py,in line 138,in __call__
源码就3行
from uiautomator import device as d
points=[(11,11),(22,22)]
d.swipePoint(points,100) 展开
__init__.py,in line 613,in swipePoints
__init__.py,in line 428,in wrapper return _method_obj(*args,**kwargs)
__init__.py,in line 138,in __call__
源码就3行
from uiautomator import device as d
points=[(11,11),(22,22)]
d.swipePoint(points,100) 展开
3个回答
展开全部
估计调用swipePoints传参有问题
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Pre-requirements
Install Android SDK, and set ANDROID_HOME environment to the correct path.
Enable ADB setting on device and connect your android device using usb with your PC.
Allow apps to install from unknown sources on device settings.
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
调用 uiautomator 模块的device 类的swipePoint方法出错。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询