如何从 MAC 机器的命令提示符启动 Appium 服务器? [英] How to start the Appium server from command prompt in MAC machine?
问题描述
我正在自动化 ios 使用appium.到目前为止,我是通过单击 Launch 按钮从 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:
- 启动 Node.js 命令提示符
- 导航到 Appium bin 文件夹
- 使用命令
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屋!