-
用xpath查找元素时报错:webview Page.getElementByXpath unimplemented
原因:有可能是调试基础库版本太低了,调高即可。

-
用self.navigate_to_open(router)报错:MiniAppError: can not navigateTo a tabbar page
原因:navigateTo/redirectTo都不能跳转tarBar内的页面
解决方法:用self.mini.app.switch_tab(route)即可
【小程序自动化Minium】元素定位问题及解决方法
于 2022-12-26 14:54:38 首次发布
本文介绍了使用XPath查找元素时遇到的webviewPage.getElementByXpathunimplemented错误及调试基础库版本过低的原因,并提供了解决方案。同时,针对使用self.navigate_to_open(router)时出现的MiniAppError:cannotnavigateToatabbarpage错误,给出了使用self.mini.app.switch_tab(route)的解决方法。

3124

被折叠的 条评论
为什么被折叠?



