03 2020 档案

摘要:1、切换上下文 contexts = self.driver.contexts #获取全部的上下文 self.driver.switch_to.context(contexts[-1]) #切换到webview页面driver.switch_to.context(contexts[0]) #切换回N 阅读全文
posted @ 2020-03-17 18:21 spellbound 阅读(996) 评论(0) 推荐(0)
摘要:原因是设置最先加载的activiity写错,通过启动手机上的APP,执行以下命令:adb shell dumpsys window | findstr mCurrentFocus(获取到的activity不是最先加载的) 解决问题: 下载APP到电脑本地,执行aapt dump badging ap 阅读全文
posted @ 2020-03-13 15:28 spellbound 阅读(1565) 评论(0) 推荐(0)