Its possible to connect remote appium server?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 14:06:29

问题


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..


回答1:


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

Python code

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

Java code

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

C# code

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

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



来源:https://stackoverflow.com/questions/47868076/its-possible-to-connect-remote-appium-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!