前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >支付宝登山赛助手

支付宝登山赛助手

作者头像
iOSDevLog
发布2018-09-20 10:37:05
7.6K0
发布2018-09-20 10:37:05
举报
文章被收录于专栏:iOSDevLogiOSDevLogiOSDevLog

WebDriverAgent

标记.png

登山赛 https://github.com/iOSDevLog/Mountaineering-Race

未完成...

$ git clone https://github.com/facebook/WebDriverAgent
$ cd WebDriverAgent
$ brew install carthage
$ ./Scripts/bootstrap.sh
# open WebDriverAgent.xcodeproj with Xcode
# Xcode:
# - code sign (general and build_settings): WebDriverAgentLib/WebDriverAgentRunner
# - Product -> Destination -> <your device> 选择设备
# - Product -> Scheme -> WebDriverAgentRunner 选择方案
# - Product -> Test  `cmd+u` 测试
# - WebDriverAgentRunner -> Bundle Identifie -> "com.facebook.WebDriverAgentRunner.race"
  • 打开 控制台 cmd + shift + y 显示如下内容
WebDriverAgentRunner-Runner[3730:734863] ServerURLHere->http://10.0.0.25:8100<-ServerURLHere

libimobiledevice (iproxy)

$ brew install libimobiledevice
$ iproxy 8100 8100
# browse: http://localhost:8100/status 状态
{
  "value" : {
    "state" : "success",
    "os" : {
      "name" : "iOS",
      "version" : "11.4.1"
    },
    "ios" : {
      "simulatorVersion" : "11.4.1",
      "ip" : "10.0.0.25"
    },
    "build" : {
      "time" : "Aug 22 2018 10:29:19"
    }
  },
  "sessionId" : "28D5CD8E-50C7-49ED-A6B1-AF1926B15AFF",
  "status" : 0
}
# browse: http://localhost:8100/inspector

auto_race.py

$ mkvirtualenv race --python=python3
(race) $ pip install Pillow
(race) $ pip install --pre facebook-wda

已实现功能:

  • 开始
  • 再来一局
  • 左右移动
  • 金币位置

TODO:

  • 移动到准确位置

问题

2 秒才能截屏一次,估计是玩不成了

源码: https://github.com/iOSDevLog/Mountaineering-Race

原文:http://iosdevlog.com/2018/08/22/mountaineering-race.html

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018.08.22 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • WebDriverAgent
  • libimobiledevice (iproxy)
  • auto_race.py
  • 问题
  • 原文:http://iosdevlog.com/2018/08/22/mountaineering-race.html
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档