1.appium下的webdriver和selenium下的webdriver有出入,要使用hide_keyboard臼寄、tap等操作時伪朽,webdriver需要從appium引入而不能從selenium引入行您,即:
from appium import webdriver
2.有登錄等會調(diào)起鍵盤的操作铭乾,建議提前安裝appium鍵盤。
a.代碼安裝appium鍵盤
npm i android-unicode --save
b.真機(jī)上娃循,設(shè)置里炕檩,選擇appium鍵盤
c.setup代碼里添加如下:
desired_caps['resetKeyboard'] = 'true'
desired_caps['unicodeKeyboard'] = 'true'
3提示no module named appium,原因是未安裝Appium-Python-Client捌斧,安裝即可笛质。
pip3 install Appium-Python-Client