线下班第二期_appcrawler_20180311

appcrawler

项目文档地址:https://github.com/seveniruby/AppCrawler
下载地址:https://pan.baidu.com/s/1dE0JDCH#list/path=%2Fshare%2Fappcrawler&parentPath=%2Fshare
XPath测试:https://www.freeformatter.com/xpath-tester.html

#先不要用-a参数,有bug
java -jar appcrawler-2.1.3.jar  --capability appPackage=com.xueqiu.android,appActivity=.view.WelcomeActivityAlias
java -jar appcrawler-2.1.3.jar --demo
java -jar appcrawler-2.1.3.jar -c [你的配置文件路径]

配置讲解

yaml语法介绍: http://www.ruanyifeng.com/blog/2016/07/yaml.html

演练配置

选择控件

capability:
  appium: "http://127.0.0.1:4723/wd/hub"
  autoLaunch: "true"
  noReset: "true"
  fullReset: "false"
androidCapability:
  app: ""
  appPackage: "com.xueqiu.android"
  appActivity: ".view.WelcomeActivityAlias"

selectedList:
- "//*[@clickable='true']/*[@class='android.widget.TextView']"

顺序

黑白名单

关闭