Mac-appium-Android真机踩坑
2019-02-18 本文已影响0人
七七总是很暴躁
1.appium下的webdriver和selenium下的webdriver有出入,要使用hide_keyboard、tap等操作时,webdriver需要从appium引入而不能从selenium引入,即:
from appium import webdriver
2.有登录等会调起键盘的操作,建议提前安装appium键盘。
a.代码安装appium键盘
npm i android-unicode --save
b.真机上,设置里,选择appium键盘
c.setup代码里添加如下:
desired_caps['resetKeyboard'] = 'true'
desired_caps['unicodeKeyboard'] = 'true'
3提示no module named appium,原因是未安装Appium-Python-Client,安装即可。
pip3 install Appium-Python-Client