摘要: 1、weditor界面 1、几种元素定位 d(resourceId="com.tencent.qqlite:id/mainlogindropdown").click() d(className='android.widget.TextView').click() d(text='联系人').clic 阅读全文
posted @ 2021-05-20 19:08 SpriteGirl 阅读(496) 评论(0) 推荐(0)
摘要: 1、安装uiautomator2 pip install --pre uiautomator2 pip install pillow 2、初始化,部署相关的守护进程 设备上会安装uiautomator-test.apk python -m uiautomator2 init 3、连接手机 (1)wi 阅读全文
posted @ 2021-05-20 18:59 SpriteGirl 阅读(136) 评论(0) 推荐(0)
摘要: 报错代码: AttributeError:module “uiautomator2” has no attribute “connect” 4种解决方法: 1、未安装则点击安装,有时需要重启生效 2、检查模块单词,输入是否正确 3、文件夹或包名是否与导入模块相同,导致导入错误 4、Python环境变 阅读全文
posted @ 2021-05-20 17:44 SpriteGirl 阅读(588) 评论(0) 推荐(0)
摘要: 1.需求:循环点击首页6个tag 2.找到一组元素相同点 3.实现 1 # -*- coding:utf-8 -* 2 import time 3 from selenium import webdriver 4 5 driver = webdriver.Chrome() 6 driver.get( 阅读全文
posted @ 2021-05-20 15:42 SpriteGirl 阅读(4357) 评论(0) 推荐(0)