当前位置:   article > 正文

iOS UI自动化--WebDriverAgent安装及使用

webdriveragent

一、WebDriverAgent Appium fork地址:GitHub - appium/WebDriverAgent: A WebDriver server for iOS and tvOS

二、Clone到本地:GitHub - appium/WebDriverAgent: A WebDriver server for iOS and tvOS

三、进入项目目录,双击启动文件WebDriverAgent.xcodeproj,在Xcode中打开项目

   修改配置信息:

     1、进入菜单Product → Scheme → WebDriverAgentRunner

     2、进入菜单Product → Destination → 连接的手机,例如,iPhonexxx

     3、在TARGETS中选择WebDriverAgentRunner

     4、点击 Signing & Capabilities 卡片

     4-1、勾选Automatically manage signing

     4-2、Team中选择自己的Apple 开发帐号

     4-3、将Bundle Identifier修改为:com.glazxxx.WebDriverAgentRunner               

     5、点击 Build Settings 卡片

     5-1、将Packaging中的Product Bundle Identifier修改为:com.glazxxx.WebDriverAgentRunner   

     6、进入菜单Product → Test           

四、build成功后Xcode控制台打印日志如下,生成Server URL,例如,http://10.8.0.160:8100      

五、在浏览器中访问http://10.8.0.160:8100/status  

【注意】通过浏览器访问WebDriverAgent Server URL时,要关闭电脑的代理

六、在手机上安装成功后的效果

        

下一篇:iOS UI自动化--Appium Inspector安装及使用-CSDN博客

前一篇:iOS UI自动化--Appium环境安装-CSDN博客

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/824269
推荐阅读
相关标签
  

闽ICP备14008679号