Giter Club home page Giter Club logo

autotest_helper's Issues

失效

uiautomatorviewer.jar最新版目录好像变为:
tools\lib\monitor-x86_64\configuration\org.eclipse.osgi\bundles\2\1.cp\libs

且无法获取画面层级了:
2021-06-08_18-45-00

作者大大,能否修复一下?

Error while parsing UI hierarchy XML file: null[Ljava.lang.StackTraceElement;@14243dd4

已通过adb shell 查看LvmamaXmlKit.jar
java -XstartOnFirstThread -jar uiautomatorviewer-26.0.0-dev.jar
shell报错:文件加载异常:/var/folders/k5/5xsk3r9s4b7b9_k0qw7xw3bw0000gn/T/uiautomatorviewer_4402091181245857770/dump_1398279819454324593.uix
Lvmama UI Automator Viewer报错:Error while parsing UI hierarchy XML file: null[Ljava.lang.StackTraceElement;@14243dd4
Error while parsing UI hierarchy XML file: null[Ljava.lang.StackTraceElement;@14243dd4

你好,这个还维护吗 右键选input的时候,不管选何种定位方式,自动生成的python代码都是xpath的,且有些问题

自动生成的python代码如下:(最后一个操作少了driver,且这个元素是有唯一ID属性定的,我选ID 也是出来XPATH
driver.find_element_by_xpath("//android.widget.EditText[@resource-id='com.flash.download:id/add_input' and @text='输入下载链接,支持http、https、ftp、ed2k、magnet等']").clear()
time.sleep(2)
.find_element_by_xpath("//android.widget.EditText[@resource-id='com.flash.download:id/add_input' and @text='输入下载链接,支持http、https、ftp、ed2k、magnet等']").send_keys(333)

如果还维护的话,代码输出框这能不能加个清屏按钮,另外右键find生成的元素变量命名能不能自动加个数字来区分

Error while parsing UI hierarchy XML file: null[Ljava.lang.StackTraceElement;@ca36d68 Error while parsing UI hierarchy XML file: null[Ljava.lang.StackTraceElement;@ca36d68

pc

  • win10
    真机
  • 小米android10系统
    java
  • version "1.8.0_271"
    按照文档需求已把LvmamaXmlKit.jar文件推送到临时目录下
    android-sdk\tools\lib 下面仅有一个uiautomatorviewer-26.0.0-dev.jar把这个jar 按照需求替换成库里那个jar。

127|apollo:/data/local/tmp $ pwd
/data/local/tmp
apollo:/data/local/tmp $ ls -l
total 9186
-rw-rw-rw- 1 shell shell 1118 2020-11-22 22:45 LvmamaXmlK
drwxrwxrwx 3 shell shell 3488 2020-11-21 23:38 dalvik-cache
drwxrwxrwx 5 shell shell 3488 2020-11-14 17:47 perfd

打开android-sdk\tools\bin\uiautomatorviewer.bat 抓取xml时出现
“Error while parsing UI hierarchy XML file: null[Ljava.lang.StackTraceElement;@2d47b33
Error while parsing UI hierarchy XML file: null[Ljava.lang.StackTraceElement;@2d47b33

dos窗口
文件加载异常:
C:\Users\ADMINI~1\AppData\Local\Temp\uiautomatorviewer_7276255349737423856\dump_5897836361985842193.uix
adb服务、手机都重启多次还是如此,这个项目还在维护的话请关注下这个问题, 谢谢~

解析XML文件出错

screenshot from 2018-10-23 18-21-15

Error while parsing UI hierarchy XML file: null[Ljava.lang.StackTraceElement;@6589d966
Error while parsing UI hierarchy XML file: null[Ljava.lang.StackTraceElement;@6589d966

LvmamaXmlKit.jar已经复制到手机上

athene_f:/data/local/tmp # ls -l
total 1632
-rw-rw---- 1 shell shell   1118 2018-10-23 18:15 LvmamaXmlKit.jar

能开源吗?想完善一些内容

1,adb connect 手机,想摆脱数据线
2,原版带有搜索功能,此版本的jar包,没有搜索了
3,增加名称,元素唯一性检验,多谢!

使用夜神模拟器

无法截图,出来的图像是0kb,夜神模拟器和小米8SE都是这样的。
default

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.