专栏名称: korbinzhao
目录
相关文章推荐
神经时讯  ·  2025版共识发布:混合性认知障碍临床诊断、 ... ·  4 小时前  
丁香园肿瘤时间  ·  朱梁军教授:攻坚克难,结直肠癌治疗的个体化进程 ·  昨天  
丁香园  ·  亚洲首例猪肾移植患者术后已 103 天 ·  2 天前  
51好读  ›  专栏  ›  korbinzhao

基于 python + WebDriverAgent 的“跳一跳”小程序高分教程

korbinzhao  · 掘金  ·  · 2018-01-09 10:46

正文

请到「今天看啥」查看全文


~ python3 -V
Python 3.6.4 

创建 python3 虚拟环境

文档地址:https://docs.python.org/3/tutorial/venv.html 方法如下:

~ python3 -m venv tutorial-env
~ source tutorial-env/bin/activate
(tutorial-env) ➜  ~

安装 pip

安装 python 包管理工具 pip。 文档地址:https://pip.pypa.io/en/latest/installing/ 方法如下:

(tutorial-env) ➜  ~ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
(tutorial-env) ➜  ~ python get-pip.py

安装 xcode

通过 appstore 安装

安装 WebDriverAgent

xcode,尽量新版。尽量升级Xcode到最新版,保持iPhone的版本大于9.3。

从github上下载代码

git clone https://github.com/facebook/WebDriverAgent

安装 carthage

brew install carthage

运行初始化脚本

./Scripts/bootstrap.sh

该脚本会使用Carthage下载所有的依赖,使用npm打包响应的js文件

执行完成后,直接双击打开WebDriverAgent.xcodeproj这个文件。







请到「今天看啥」查看全文