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

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

问题描述

我正在使用带有硒的appium进行移动自动化.

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.

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

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天全站免登陆