{"id":6368,"date":"2018-01-02T09:23:48","date_gmt":"2018-01-02T01:23:48","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=6368"},"modified":"2018-01-02T09:25:24","modified_gmt":"2018-01-02T01:25:24","slug":"%e5%be%ae%e4%bf%a1%e8%b7%b3%e4%b8%80%e8%b7%b3%e6%b8%b8%e6%88%8f%e5%a4%96%e6%8c%82%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/6368.html","title":{"rendered":"\u5fae\u4fe1\u8df3\u4e00\u8df3\u6e38\u620f\u5916\u6302\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"<p>\u5b9e\u9a8c\u73af\u5883\uff0cmacOS+iPhone6<\/p>\n<h1>\u5b89\u88c5 WebDriverAgent<\/h1>\n<p>\u9996\u5148\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0\u5728mac\u7cfb\u7edf\u4e0a\u9762\u5b89\u88c5\u597d WebDriverAgent \uff1ahttps:\/\/testerhome.com\/topics\/7220<\/p>\n<p>1\u3001\u4ecegithub\u4e0a\u4e0b\u8f7d\u4ee3\u7801<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngit clone https:\/\/github.com\/facebook\/WebDriverAgent\r\n<\/pre>\n<p>2\u3001\u8fd0\u884c\u521d\u59cb\u5316\u811a\u672c<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n.\/Scripts\/bootstrap.sh\r\n<\/pre>\n<p>\u8be5\u811a\u672c\u4f1a\u4f7f\u7528Carthage\u4e0b\u8f7d\u6240\u6709\u7684\u4f9d\u8d56\uff0c\u4f7f\u7528npm\u6253\u5305\u54cd\u5e94\u7684js\u6587\u4ef6<\/p>\n<p>3\u3001\u6267\u884c\u5b8c\u6210\u540e\uff0c\u76f4\u63a5\u53cc\u51fb\u6253\u5f00WebDriverAgent.xcodeproj\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n<p>\u5176\u4e2dXCode\u7684\u8bc1\u4e66\u95ee\u9898\uff0c\u5728\u8bbe\u7f6e\u7684account\u4e2d\u767b\u5f55\u597d\u4f60\u7684Apple ID\uff0c\u7136\u540e\u5c31\u80fd\u751f\u6210\u4e00\u4e2a\u514d\u8d39\u7684\u5f00\u53d1\u8005\u8bc1\u4e66\u3002<\/p>\n<h1>\u7aef\u53e3\u8f6c\u53d1<\/h1>\n<p>\u7ecf\u8fc7\u4e0a\u9762\u5b89\u88c5\u597d WebDriverAgent\uff0c\u5e76\u8fd0\u884c\u8d77\u6765\u540e\uff0c\u5728XCode\u7684\u83dc\u5355View-&gt;Debug Area-&gt;Activate Console\uff0c\u51fa\u6765\u7684\u754c\u9762\u53ef\u4ee5\u770b\u5230\u65e5\u5fd7\uff1a<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n    t =     0.00s Start Test at 2018-01-02 08:57:31.029\r\n    t =     0.01s Set Up\r\n2018-01-02 08:57:31.122386+0800 WebDriverAgentRunner-Runner&#x5B;448:87796] Built at Jan  1 2018 21:18:44\r\n2018-01-02 08:57:31.234608+0800 WebDriverAgentRunner-Runner&#x5B;448:87796] ServerURLHere-&gt;http:\/\/10.0.0.4:8100&lt;-ServerURLHere\r\n    t =   135.31s Find the Application &quot;com.tencent.xin&quot; 0x10565bf30\r\n<\/pre>\n<p>\u4ece\u4e0a\u9762\u7684\u65e5\u5fd7\u53ef\u4ee5\u627e\u5230 WebDriverAgent \u5f00\u653e\u7684\u7aef\u53e3\uff0c\u4f46\u662f\uff0c\u6211\u7684\u624b\u673a\u5e76\u4e0d\u80fd\u8bbf\u95eeserver\u5730\u5740 http:\/\/10.0.0.4:8100\uff0c\u8fd9\u65f6\u5019\u9700\u8981\u7528\u5230\u4e00\u4e2a\u5de5\u5177\uff0c\u5c06\u624b\u673a\u4e0a\u7684\u7aef\u53e3\u8f6c\u53d1\u5230\u7535\u8111\u4e0a\u6765\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nbrew install usbmuxd\r\niproxy 8100 8100\r\n<\/pre>\n<p>\u8fd9\u65f6\u8bbf\u95ee WebDriverAgent \u7684\u65f6\u5019\uff0c\u76f4\u63a5\u7528\u5730\u5740 http:\/\/localhost:8100 \u5c31\u884c\u4e86\u3002<\/p>\n<h1>\u8fd0\u884c\u5916\u6302\u811a\u672c<\/h1>\n<p>\u6211\u5c1d\u8bd5\u8fc7\u4e24\u4e2a\u9879\u76ee\uff0c\u4e00\u4e2aGo\u8bed\u8a00\u7248\u672c\uff08https:\/\/github.com\/faceair\/youjumpijump\uff09\uff0c\u4e00\u4e2aPython\u7248\u672c\uff08https:\/\/github.com\/wangshub\/wechat_jump_game\uff09\uff0c\u53d1\u73b0Python\u9879\u76ee\u7684\u6548\u679c\u597d\u4e00\u4e9b\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4f7f\u7528python\u7248\uff0c\u524d\u63d0\u8981\u5728XCode\u4e2d\u8fd0\u884c\u597dWebDriverAgent\uff0c\u5fae\u4fe1\u4e2d\u6253\u5f00\u8df3\u4e00\u8df3\u6e38\u620f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngit clone https:\/\/github.com\/wangshub\/wechat_jump_game\r\ncd wechat_jump_game\r\nvirtualenv --python=\/usr\/local\/bin\/python3 env --system-site-packages\r\nenv\/bin\/pip3 install -r requirements.txt\r\nenv\/bin\/pip3 install --pre facebook-wda\r\ncp config\/iPhone\/6_config.json config.json\r\nenv\/bin\/python3 wechat_jump_auto_iOS.py\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9e\u9a8c\u73af\u5883\uff0cmacOS+iPhone6 \u5b89\u88c5 WebDriverAgent \u9996\u5148\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0\u5728mac\u7cfb\u7edf\u4e0a\u9762\u5b89\u88c5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-6368","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=6368"}],"version-history":[{"count":3,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6368\/revisions"}],"predecessor-version":[{"id":6371,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6368\/revisions\/6371"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=6368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=6368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=6368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}