利用driver.press_keycode(4) 或者 driver.pressKeyCode(AndroidKeyCode) 报错 显示拒绝连接错误 ConnectionResetError: [Errno 54] Connection reset by peer
找了好久原因也没找到,但是adb 命令是能用的 所有用 os 执行 adb命令去实现
mingling = 'adb shell input keyevent KEYCODE_BACK'
os.system(mingling)
利用driver.press_keycode(4) 或者 driver.pressKeyCode(AndroidKeyCode) 报错 显示拒绝连接错误 ConnectionResetError: [Errno 54] Connection reset by peer
找了好久原因也没找到,但是adb 命令是能用的 所有用 os 执行 adb命令去实现
mingling = 'adb shell input keyevent KEYCODE_BACK'
os.system(mingling)
本文标题:appnium 物理操作返回键 报错解决
本文链接:https://www.haomeiwen.com/subject/qcholdtx.html
网友评论