![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
appium
城市的柏油路太硬
城市泊油路太硬
展开
-
运行脚本,appium报错提示:UiAutomationService android.accessibilityservice.... already registered!
提示为:[Instrumentation] Caused by: java.lang.IllegalStateException: UiAutomationService android.accessibilityservice.IAccessibilityServiceClient$Stub$Proxy@af533b6already registered![Instrumentation] at android.os.Parcel.createException(Parcel.java:2079原创 2021-03-21 10:18:02 · 1831 阅读 · 0 评论 -
appium真机报错:Could not parse activity from dumpsys
出现此问题,有可能是appium 版本较低,不支持,先使用较高版本的appium原创 2021-03-20 19:20:59 · 672 阅读 · 2 评论 -
appium错误: a request was received using an HTTP method that is not supported by the mapped resource
appium启动app时发现如下错误,selenium.common.exceptions.WebDriverException: Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource原因为使用了driver.close()改为:dr...原创 2021-03-20 17:06:28 · 5190 阅读 · 1 评论 -
appium 解锁九宫格
九宫格一般为一个控件所以我们定位到该图像,根据该element的location 和size 计算每个位置的坐标(x,y)然后通过 TouchAction 方法中的 方法 达到 滑动的效果代码如下: from appium.webdriver.common.touch_action import TouchAction a=driver....原创 2019-10-21 17:08:43 · 272 阅读 · 0 评论 -
adb查看手机当前启动App的应用名和包名
注意1:方法2 的命令在windows 的cmd下回报错,可以先进入adb shell 在建入后面的内容注意2 :方法1和2 需要在应用正好在启动时查询方法1.adb shell dumpsys window w |findstr \/ |findstr name= 转载地址:https://blog.csdn.net/hxy199421/article/detail...转载 2019-10-18 16:02:15 · 6111 阅读 · 0 评论 -
命令行安装appium 时,启动命令
appium -a 127.0.0.1 -p 4723原创 2019-10-18 15:28:07 · 357 阅读 · 0 评论 -
appium 出现error: Unhandled error: ReferenceError: grep is not defined 时
error: Unhandled error: ReferenceError: grep is not defined> at [object Object].ADB.shell (E:\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:192:46)> at [object Obj...原创 2019-10-18 15:26:36 · 852 阅读 · 0 评论