1.定位app的H5页面,使用 contexts = self.driver.contexts 打印print(contexts) 发现结果只有natives,
原因为要开发在打包时,开启webview的debug属性setWebContentDebuggingEnabled(true)
2.在调起app时必须加上 desired_caps['chromeOptions']={'androidProcess': '包名:tools'}
3.使用Chrome后页面为空白页,需要FQ~