文章分类 -  Appium

appcrawler使用
摘要:详见:http://www.mamicode.com/info-detail-2351650.html 下载地址: https://pan.baidu.com/s/1dE0JDCH 下载的jar包我放在E盘: 注意:先要启动appium环境 可查看: 使用: 遍历结果截图: 生成的报告: PS:这个 阅读全文

posted @ 2020-05-19 22:31 cherry_ning 阅读(268) 评论(0) 推荐(0)

Python启动Appium 服务/多进程并发启动appium服务
摘要:Python启动Appium 服务 目前我们已经实现了并发启动设备,但是我们的Appium服务启动还是手动档,比如使用Dos命令或者bat批处理来手动启动appium服务,启动效率低下。如何将启动Appium服务也实现自动化呢? 【方案分析】我们可以使用python启动appium服务,这里需要使用 阅读全文

posted @ 2019-07-15 21:18 cherry_ning 阅读(540) 评论(0) 推荐(0)

多进程并发启动APP设备
摘要:首先需要启动多个appium,同时连接多个模拟器设备: C:\WINDOWS\system32>appium -p 4723 [Appium] Welcome to Appium v1.7.2 [Appium] Appium REST http interface listener started on 0.0.0.0:4723 C:\WINDOWS\system32>appium -p 47... 阅读全文

posted @ 2019-07-15 20:59 cherry_ning 阅读(348) 评论(0) 推荐(0)

滑动与连续滑动操作
摘要:#获得屏幕的横坐标和纵坐标 def get_size(): x=driver.get_window_size()['width'] y=driver.get_window_size()['height'] return x,y #往左滑动 def swipe_left(): l=get_size() x1=int(l[0]*0.9) x2=int... 阅读全文

posted @ 2019-07-13 12:46 cherry_ning 阅读(192) 评论(0) 推荐(0)

Toast元素识别
摘要: 阅读全文

posted @ 2019-07-13 12:41 cherry_ning 阅读(82) 评论(0) 推荐(0)

appium基础-元素定位
摘要:1)id定位 driver.find_element_by_id('android:id/button2').click() 2)name定位【根据name进行定位,对于android来说,就是text属性。说明:由于text稳定性不是很好,所以appium 1.5开始废弃了该方法。】 driver.find_element_by_name('请输入用户名').send_keys('2017'... 阅读全文

posted @ 2019-07-13 12:40 cherry_ning 阅读(181) 评论(0) 推荐(0)

appium基础-启动app
摘要:from appium import webdriver desired_caps={} desired_caps['platformName']='Android' desired_caps['platformVersion']='5.1.1' desired_caps['deviceName']='127.0.0.1:62001' #mx4真机 # desired_caps['pla... 阅读全文

posted @ 2019-07-13 12:35 cherry_ning 阅读(108) 评论(0) 推荐(0)

appium环境搭建
摘要: 阅读全文

posted @ 2019-07-13 12:30 cherry_ning 阅读(79) 评论(0) 推荐(0)

adb常用命令
摘要: 阅读全文

posted @ 2019-07-13 12:21 cherry_ning 阅读(70) 评论(0) 推荐(0)

定位没有问题,当输入框元素死活都没有输入进去东西时,看看是不是不支持中文输入造成的
摘要:1 #启动pp时不要清除app里的原有的数据 2 desired_caps['noReset']='True' 3 #使用unicode输入法(可填中文) 4 desired_caps['unicodeKeyboard']='True' 5 #重置输入法到原有状态 6 desired_caps['resetKeyboard']='True' 阅读全文

posted @ 2019-07-12 21:58 cherry_ning 阅读(91) 评论(0) 推荐(0)

Appium---android.view.View下拉列表定位
摘要:1 #向上滑动 2 def swipe_up(driver, element): 3 # 通过resoure-id知道view 4 ele = driver.find_element_by_id(element) 5 # 获取到view的宽和高 6 w = ele.size['width'] 7 h 阅读全文

posted @ 2019-07-12 20:27 cherry_ning 阅读(1850) 评论(0) 推荐(0)

导航