可以连接远程appium服务器吗? [英] Its possible to connect remote appium server?

查看:38
本文介绍了可以连接远程appium服务器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在远程服务器上运行 appium 并在本地系统中运行连接 android 设备的测试用例,但我收到错误无法找到已连接的 android 设备..

I'm trying to run appium in remote server and running test cases connecting android device in local system and i'm getting error could not find a connected android device..

推荐答案

如果你用远程地址初始化你的驱动程序,你应该没有任何问题:

If you initialize your driver with remote address you should not have any problem:

Python 代码

driver = webdriver.Remote('http://192.168.1.50:4723/wd/hub', desired_caps)

Java 代码

driver = new AndroidDriver<WebElement>(new URL("http://192.168.1.50:4723/wd/hub"), capabilities);

C# 代码

driver = new AndroidDriver<IWebElement>(new Uri(""http://192.168.1.50:4723/wd/hub""), capabilities);

唯一的问题是... 您的设备必须直接连接到运行 Appium 的 192.168.1.50 机器

The only thing is... Your device must be connected directly to 192.168.1.50 machine where Appium is running

这篇关于可以连接远程appium服务器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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