Appium python切换到webview在活动窗口中等待根AccessibilityNodeInfo的时间为15525ms后超时
打印日志为:Appium python切换到webview在活动窗口中等待根AccessibilityNodeInfo的时间为15525ms后超时,python,selenium,appium,Python,Selenium,Appium,打印日志为: ... driver.find_element_by_xpath("//*[@text='xxx']").click() self.dc['noReset'] = True self.dc['appPackage'] = "com.tencent.mm" self.dc['appActivity'] = ".ui.LauncherUI" self.dc['platform
...
driver.find_element_by_xpath("//*[@text='xxx']").click()
self.dc['noReset'] = True
self.dc['appPackage'] = "com.tencent.mm"
self.dc['appActivity'] = ".ui.LauncherUI"
self.dc['platformName'] = 'Android'
self.dc['deviceName'] = 'M2010J19SC'
self.dc['chromeOptions'] = {'androidProcess': 'com.tencent.mm:tools'}
self.driver = webdriver.Remote("http://localhost:4723/wd/hub", self.dc)
...
print("1 ", driver.contexts)
print("1 ", driver.current_context)
time.sleep(5)
print("2 ", driver.contexts)
print("2 ", driver.current_context)
driver.switch_to.context('WEBVIEW_com.tencent.mm:tools')
print("3 ", driver.contexts)
print("3 ", driver.current_context)
...
selenium.common.exceptions.WebDriverException:消息:处理命令时发生未知的服务器端错误。原始错误:io.appium.uiautomator2.common.exceptions.UiAutomator2Exception:在活动窗口中等待根AccessibilityNodeInfo的时间为15525ms后超时。确保活动窗口没有持续占用主UI线程(例如,应用程序空闲的时间足够长),以便辅助功能管理器可以执行其工作。为什么不能切换到“WEBVIEW_com.tencent.mm:tools”?有人可以帮忙吗?我遇到了类似的问题,appium正在使用旧版本的微信7.0.12,但现在腾讯阻止了旧版本的微信登录
1 ['NATIVE_APP']
1 NATIVE_APP
2 ['NATIVE_APP', 'WEBVIEW_com.tencent.mm:tools']
2 NATIVE_APP