美文网首页测试
Mac-appium-Android真机踩坑

Mac-appium-Android真机踩坑

作者: 七七总是很暴躁 | 来源:发表于2019-02-18 15:06 被阅读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
    

    相关文章

      网友评论

        本文标题:Mac-appium-Android真机踩坑

        本文链接:https://www.haomeiwen.com/subject/ximaeqtx.html