如何在 Windows 7 机器上通过 cmd 提示符启动 appium 节点服务器 [英] how to launch appium node server through cmd prompt in windows 7 machine

查看:20
本文介绍了如何在 Windows 7 机器上通过 cmd 提示符启动 appium 节点服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 appium 和 selenium 进行移动自动化.

I am doing mobile automation using appium with selenium.

我愿意在 Windows 机器上通过 cmd 提示符使用命令运行 appium 服务器.

I willing to run the appium server using commands through cmd prompt in windows machine.

任何人都可以帮助如何通过cmd提示符运行以及在不单击appium.exe中的启动按钮的情况下运行它的命令是什么.

Could any one help how to run through cmd prompt and what is the command to run it without clicking launch button in appium.exe.

请任何人帮助我.提前致谢.

Please anyone help me.Thanks in advance.

推荐答案

您可以使用 Appium 支持库:

<dependency>
  <groupId>com.github.genium-framework</groupId>
  <artifactId>Appium-Support</artifactId>
  <version>1.0.5</version>
</dependency>

您可以通过执行以下操作在代码中启动服务器:

You can start the server in your code by doing this:

ServerArguments serverArguments = new ServerArguments();
serverArguments.setArgument("--address", "127.0.0.1");
serverArguments.setArgument("--chromedriver-port", 9516);
serverArguments.setArgument("--bootstrap-port", 4725);
serverArguments.setArgument("--no-reset", true);
serverArguments.setArgument("--local-timezone", true);

_appiumServer = new AppiumServer(serverArguments);

_appiumServer.startServer();

希望这会有所帮助.

这篇关于如何在 Windows 7 机器上通过 cmd 提示符启动 appium 节点服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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