问题解决

来源:互联网 发布:java迭代器遍历vector 编辑:程序博客网 时间:2024/05/16 23:36

1、软件重复安装问题:['noReset'] = True

2、d.hide_keyboard()#隐藏键盘


3、appium 混合测试 切换 webview与native

        d = self.driver # 获取驱动
        list = d.contexts  # 所有的上下文对象
        print(list)
        sleep(3)
        for con in list:
            if con.lower().startswith('webview'):  # 如果以webview开头
                d._switch_to.context(con)  # 切入到这个context
                print('success')
        print(d.context)  # 获取当前的上下文对象