问题
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