摘要: 1、appium调用键盘事件 driver.press_keycode() 括号内填入pc端键盘的代号 2、uiautomator2 3、adb shell input keyevent 代号表: 电话键 控制键 基本 组合键 KEYCODE_CALL 拨号键5 KEYCODE_ENTER 回车键 阅读全文
posted @ 2021-05-27 15:52 SpriteGirl 阅读(246) 评论(0) 推荐(0)
摘要: 1、SyntaxError异常 报错内容: SyntaxError: Non-UTF-8 code starting with '\xd2' in file *.py on line 24, but no encoding declared; see http://python.org/dev/pe 阅读全文
posted @ 2021-05-27 15:22 SpriteGirl 阅读(194) 评论(0) 推荐(0)
摘要: 报错内容: The instrumentation process cannot be initialized. Make sure the application under test does. 前一分钟Pycharm开心编译成功代码,后一分钟优化完代码再编译运行一直报错,心好累,百度所有方法无 阅读全文
posted @ 2021-05-27 15:19 SpriteGirl 阅读(230) 评论(0) 推荐(0)
摘要: 1、工具 Python+Appium Pycharm、雷电模拟器 2、代码 # coding:utf-8 import time from appium import webdriver def start_app(): qqlite_caps = { "platformName": "Androi 阅读全文
posted @ 2021-05-27 14:11 SpriteGirl 阅读(144) 评论(0) 推荐(0)