是否可以连接远程appium服务器? [英] Its possible to connect remote appium server?
本文介绍了是否可以连接远程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屋!
查看全文