View Code? Open in Web Editor
NEW
app控件唯一相对Xpath自动生成(增强版uiautomatorviewer)
Home Page: http://blog.csdn.net/kaka1121/article/details/51811509
lazyuiautomatorviewer's Introduction
lazyuiautomatorviewer's People
lazyuiautomatorviewer's Issues
1、根据您写的步骤,替换文件
2、我安装AndroidStudio时,安装的sdk,uiautomatorviewer.bat文件默认在\sdk\tools\bin目录下,并不在tools下
3、运行后,界面中无法看到xpath
请问何解?
![default](https://user-images.githubusercontent.com/22147453/46119957-1cb32c80-c240-11e8-8aa7-9734e7e5fe34.png)
获取个别页面会报错,没有用增强版之前是可以获取的,给帮忙看看
error log:
Error while parsing UI hierarchy XML file: Invalid XPath expression: //android.support.v7.app.ActionBar$Tab Unexpected '$'[Ljava.lang.StackTraceElement;@4eb1ef0a
Error while parsing UI hierarchy XML file: Invalid XPath expression: //android.support.v7.app.ActionBar$Tab Unexpected '$'[Ljava.lang.StackTraceElement;@4eb1ef0a
按照说明,替换了相关jar包,打开uiautomatorviewer.bat,点击Device ScreenShot(uiautomator dump)后,提示错误,截图如下:
(附加说明,下面是我原来的jar包,共7个。)
![qq 20180726173133](https://user-images.githubusercontent.com/11400746/43254458-ffe07d32-90f9-11e8-8fcc-81434ade9b65.png)
![qq 20180726174002](https://user-images.githubusercontent.com/11400746/43254901-f7740046-90fa-11e8-8365-b473a21265a6.png)
请问这是什么原因?
Error while parsing UI hierarchy XML file: Invalid XPath expression: //com.tencent.tbs.core.webkit.tencent.TencentWebViewProxy$InnerWebView Unexpected '$'[Ljava.lang.StackTraceElement;@4242d120
Error while parsing UI hierarchy XML file: Invalid XPath expression: //com.tencent.tbs.core.webkit.tencent.TencentWebViewProxy$InnerWebView Unexpected '$'[Ljava.lang.StackTraceElement;@4242d120