如何从MAC机中的命令提示符启动Appium服务器? [英] How to start the Appium server from command prompt in MAC machine?

查看:384
本文介绍了如何从MAC机中的命令提示符启动Appium服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在自动使用本地移动应用程序的问题.到目前为止,我是通过单击启动"按钮从Appium GUI启动服务器的.现在,我要从命令提示符启动服务器.

I am automating ios native mobile application using appium. Until now I was launching the server from the Appium GUI by clicking on the Launch button. Now I want to start the server from a command prompt.

通过执行以下步骤,我可以在Windows计算机中执行相同的操作:

I was able to do the same in Windows machine by following the below steps:

  1. 启动Node.js命令提示符
  2. 导航到Appium bin文件夹
  3. 使用命令node appium

在Mac上如何启动Node.js命令提示符时,我受阻.您能告诉我如何从Mac上的命令提示符启动Appium服务器吗?

I got blocked on how to start the Node.js command prompt on a Mac. Can you pleases tell me how I can start the Appium server from a command prompt on a Mac.

推荐答案

如果使用npm install -g appium,则应该可以使用命令直接打开

if you used npm install -g appium then you should be able to directly open one with the command

appium //plus any server args you want ex: appium -p 4474 

或者您仍然可以导航到node_modules的文件夹并进入appium并使用

Or you can still navigate to the folder of your node_modules and into appium and go with

node . //plus any server args you want

如果您想拥有其他服务器标志,则可以在其站点上找到所有带有文档的标志.

if you want to have additional server flags, all are available at their site with documentations.

这篇关于如何从MAC机中的命令提示符启动Appium服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆