1。定位app的H5页面,使用 contexts = self.driver.contexts 打印print(contexts) 发现结果只有natives,
原因为要开发在打包时,开启webview的debug属性setWebContentDebuggingEnabled(true)
2.使用Chrome后页面为空白页,需要FQ~
1。定位app的H5页面,使用 contexts = self.driver.contexts 打印print(contexts) 发现结果只有natives,
原因为要开发在打包时,开启webview的debug属性setWebContentDebuggingEnabled(true)
2.使用Chrome后页面为空白页,需要FQ~