appium - 无法从 cmd 启动 Appium
问题描述
我使用appium-desktop-setup-1.8.2。
在 Windows 上,我使用以下选项从控制台启动它:
appium
appium -p 4724
start appium
但我只打开了 Appium 启动窗口。Appium 不会自动启动。它必须手动运行。
我究竟做错了什么?
我不明白这个回复:
C:\Program Files (x86)\Appium>appium -U 0b36774b032fbdba -p 4724
C:\Program Files (x86)\Appium>
Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://github.com/facebook/prop-types#prop-types
Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://github.com/facebook/prop-types#prop-types
(node:10212) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
解决方案
要启动 appium 服务器,您可以使用
appium -a 127.0.0.1 -p 4723
确保端口 4723 未被任何其他进程使用。检查使用
netstat –aon | find "4723"
您可以从上面的代码中找到 processId。终止进程:
taskkill /F /pid processID
然后你可以使用appium -a 127.0.0.1 -p 4723来启动 appium 服务器。
推荐阅读
- sql - ms-access sql-query 中是否有可以提取某个字符串的函数?
- typescript - 如何使用动态字段名称创建 Formik YUP 模式?
- spring-boot - 关于将 spring-data-rest-hal-browser 依赖项添加到我的 Spring Boot 应用程序(v 2.2.4)-我的应用程序无法启动。如何修复它?
- ionic-framework - Ionic 4 拦截 android 后退按钮进行导航
- windows - 将歌曲名称和艺术家添加到文件属性的 Scipt
- spring - 此行为的 Spring 自定义注释
- javascript - Javascript点击功能一次只选择第一个元素或所有元素
- sharepoint - SharePoint:对文件夹和文档集的编程复制/移动操作是否保证是原子的?
- android - Android TextView ellipsize 与 RTL 文本错误
- r - 部分函数保持其签名