All Projects → yaming116 → uiautomatorview

yaming116 / uiautomatorview

Licence: other
给uiautomatorview添加xpath等待

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to uiautomatorview

Jsonquery
jsonq package for Go. Golang XPath query for JSON query.
Stars: ✭ 134 (+197.78%)
Mutual labels:  xpath
Jquery Xpath
jQuery XPath plugin (with full XPath 2.0 language support)
Stars: ✭ 173 (+284.44%)
Mutual labels:  xpath
Ftr Site Config
Site-specific article extraction rules to aid content extractors, feed readers, and 'read later' applications.
Stars: ✭ 231 (+413.33%)
Mutual labels:  xpath
Cssplus
CSSplus is a collection of CSS Reprocessor plugins that dynamically update CSS variables
Stars: ✭ 141 (+213.33%)
Mutual labels:  xpath
Xquery
Extract data or evaluate value from HTML/XML documents using XPath
Stars: ✭ 155 (+244.44%)
Mutual labels:  xpath
Xmlquery
xmlquery is Golang XPath package for XML query.
Stars: ✭ 209 (+364.44%)
Mutual labels:  xpath
Graphquery
GraphQuery is a query language and execution engine tied to any backend service.
Stars: ✭ 112 (+148.89%)
Mutual labels:  xpath
panthro
An implementation of XPath 3.0 in Objective-C/Cocoa
Stars: ✭ 45 (+0%)
Mutual labels:  xpath
Astpath
A command-line search utility for Python ASTs using XPath syntax.
Stars: ✭ 167 (+271.11%)
Mutual labels:  xpath
Pugixml
Light-weight, simple and fast XML parser for C++ with XPath support
Stars: ✭ 2,809 (+6142.22%)
Mutual labels:  xpath
Xsltdev.ru
Справочник web-разработчика с примерами
Stars: ✭ 148 (+228.89%)
Mutual labels:  xpath
Html Agility Pack
Html Agility Pack (HAP) is a free and open-source HTML parser written in C# to read/write DOM and supports plain XPATH or XSLT. It is a .NET code library that allows you to parse "out of the web" HTML files.
Stars: ✭ 2,014 (+4375.56%)
Mutual labels:  xpath
Xembly
Assembly for XML: imperative language to modify XML documents
Stars: ✭ 212 (+371.11%)
Mutual labels:  xpath
Harser
Easy way for HTML parsing and building XPath
Stars: ✭ 135 (+200%)
Mutual labels:  xpath
Ono
A sensible way to deal with XML & HTML for iOS & macOS
Stars: ✭ 2,599 (+5675.56%)
Mutual labels:  xpath
Docs
《数据采集从入门到放弃》源码。内容简介:爬虫介绍、就业情况、爬虫工程师面试题 ;HTTP协议介绍; Requests使用 ;解析器Xpath介绍; MongoDB与MySQL; 多线程爬虫; Scrapy介绍 ;Scrapy-redis介绍; 使用docker部署; 使用nomad管理docker集群; 使用EFK查询docker日志
Stars: ✭ 118 (+162.22%)
Mutual labels:  xpath
Zson
专为测试人员打造的JSON解析器
Stars: ✭ 181 (+302.22%)
Mutual labels:  xpath
cypress-xpath
Adds XPath command to Cypress test runner
Stars: ✭ 145 (+222.22%)
Mutual labels:  xpath
Meeseeks
An Elixir library for parsing and extracting data from HTML and XML with CSS or XPath selectors.
Stars: ✭ 252 (+460%)
Mutual labels:  xpath
Nokogiri
HTML parser for PHP - Парсер HTML
Stars: ✭ 214 (+375.56%)
Mutual labels:  xpath

UIautomatorvViewer

为什么又重新开一个UIautomatorvViewer的项目?

  1. 目前社区或能查到修改版本和开放源码的版本的基本都是基于4.4之前的版本,目前Android已经9.x了。
  2. 编写一个易于大家修改构建的版本,目前只需按照下面说明,直接可以从官网选择自己喜欢的版本构建。

adb

使用方式:

方式1.直接下载根目录下的uiautomatorviewer.jar,替换你本地的${ANDROID_HOME}/tools/lib下的uiautomatorviewer.jar即可

方式2.执行gradle jar命令(或gradlew jar),编译工程,将build目录下编译出来的uiautomatorviewer.jar替换你本地的${ANDROID_HOME}/tools/lib下的uiautomatorviewer.jar即可

目前默认使用adb截图和dump xml

adb截图使用的是LvmamaXmlKit,所以使用此功能需要把这个#jar 导入到手机中#,命令如下:

//复制LvmamaXmlKit.jar到本地D盘根目录下
adb push D:\LvmamaXmlKit.jar /data/local/tmp/
背景:

在做UI自动化时必不可少需要使用到uiautomatorviewer这个工具,但是有时候我们进行元素定位的时候希望使用xpath定位,而这个 工具自身并没提供,为了方便自动生成xpath。在网上找到的方法感觉不是很完整,于是打算自己亲自对该工具进行二次开发。

  • 开发环境:
    • ide:intellij idea
    • 编译环境:gradle
    • 语言环境:java
    • 还要必不可少的android sdk
下载源码
  • 下载marshmallow uiautomatorviewer源代码,不同版本的代码可以自己切换分支下载。
  • 依赖jar可以右键以zip形式打开uiautomatorviewer.jarMETA-INF\MANIFEST.MF找到,如下:
Manifest-Version: 1.0
Class-Path:  org-eclipse-jface-3.6.2.jar ddmlib.jar org-eclipse-core-c
 ommands-3.6.0.jar org-eclipse-equinox-common-3.6.0.jar osgi-4.0.0.jar
  common.jar kxml2-2.3.0.jar annotations.jar guava-18.0.jar
Main-Class: com.android.uiautomator.UiAutomatorViewer

这些jar可以到你本地的${ANDROID_HOME}/tools/lib中找到

希望添加的功能列表:

  • 添加xpath
  • 增加adb截图
  • 增加右键点击事件
  • 添加ios版本支持
  • 添加appium脚本代码
  • 等等

感谢

yangzaiCN/uiautomatorviewer

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].