zoukankan      html  css  js  c++  java
  • iOS appium

    1.如果没有安装过Homebrew,先安装homebrew

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    安装依赖库

    brew install libimobiledevice --HEAD

    npm install -g ios-deploy  #如果是iOS10以上的系统才需要安装 

    如果没有安装 libimobiledevice,会导致Appium无法连接到iOS的设备,所以必须要安装,如果要在iOS10+的系统上使用appium,则需要安装ios-deploy

    (sudo npm install -g ios-deploy --unsafe-perm=true)

    appium-doctor 安装

    npm install appium-doctor -g

    安装后执行appium-doctor --ios指令,可以查看与iOS相关配置是否完整,下图是全部配置都成功,如果有那一项是打叉的,则进行安装就可以了。

    appium-doctor --ios 

    sudo npm install -g cnpm --registry=https://registry.npm.taobao.org --verbose

    通过终端获取已连接电脑的iPhone的 udid方法:

    idevice_id -l

    * 进入appium安装盘:/path/where/installed/bin/appium, 在以下路径下找到WebDriverAgent

        /usr/local/n/versions/node/10.4.0/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

    * 打开terminal到上面的目录下, 执行以下命令来配置项目:

        $ mkdir -p Resources/WebDriverAgent.bundle

        $ ./Scripts/bootstrap.sh -d

    用Xcode打开WebDriverAgent.xcodeproj,进行build。

    /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent

  • 相关阅读:
    说说oracle分页的sql语句
    在desk于webi中资料查询不一致
    hql语句查询实体类采用list方法的返回结果集
    Come and join us at English corner
    一个失败项目引发的思考
    Use excel Macro export data from database
    Mark
    恭送功臣
    整理下心情
    Insert data from excel to database
  • 原文地址:https://www.cnblogs.com/fousor/p/10875572.html
Copyright © 2011-2022 走看看