摘要: import timefrom appium import webdriverdesired_caps = {}desired_caps['platformName'] = 'Android' # android的apk还是IOS的ipadesired_caps['platformVersion'] 阅读全文
posted @ 2020-02-25 23:52 干it的小张 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 这里收录在移动端测试中常见的错误及解决办法。 PS:由于环境问题,可能无法解决你的问题....... adb相关 adb server version (31) doesn't match this client (36); killing... 在使用adb devices时,可能会出现: adb 阅读全文
posted @ 2020-02-25 19:01 干it的小张 阅读(278) 评论(0) 推荐(0) 编辑
摘要: About Appium-Python-Client-API 来看看appium-python-client库都有哪些常用的api可用。 contexts Lib\site-packages\appium\webdriver\extensions\context.py @property def c 阅读全文
posted @ 2020-02-25 18:50 干it的小张 阅读(404) 评论(0) 推荐(0) 编辑
摘要: appium的操作跟selenium操作差不多,这里简要聊聊。 元素定位 通过id定位 我们通过Python代码打开APP(此时appium是启动并监听4723端口),来到首页,然后使用uiautomatorviewer工具获取(这时要结束appium连接)页面结构。 from appium imp 阅读全文
posted @ 2020-02-25 18:48 干it的小张 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 这里以小米手机5S MIUI10.2.2.0稳定版为例。将手机连接上电脑。 开启USB调试 默认的,MIUI稳定版是关闭开发者选项的,想要打开,需要打开设置 ▶我的设备▶全部参数,连续点击5次MIUI版本,即可解锁开发者选项模式。 由于我的手机已经处于开发者模式了,所以,我的提示是您已处于开发者模式 阅读全文
posted @ 2020-02-25 18:45 干it的小张 阅读(568) 评论(0) 推荐(0) 编辑
摘要: adb connect 127.0.0.1:62001 adb devices from appium import webdriverimport timedesired_caps = {}desired_caps['platformName'] = 'Android' #android的apk还 阅读全文
posted @ 2020-02-25 16:54 干it的小张 阅读(233) 评论(0) 推荐(0) 编辑
摘要: android-sdk下载安装 http://tools.android-studio.org/index.php/sdk/ 1、在系统变量新建:ANDROID_HOME,对应变量值为:D:\software\android-sdk-windows(sdk安装路径) 2、path添加两个变量,将以下 阅读全文
posted @ 2020-02-25 15:32 干it的小张 阅读(331) 评论(0) 推荐(0) 编辑