Thank you @panzhigang 问题解决了
求助个,C# 使用 appium 连接 Android(4.3)模拟器,提示:
代码如下:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.SetCapability("browserName", "");
capabilities.SetCapability("appium-version", "1.1");
capabilities.SetCapability("platformName", "Android");
capabilities.SetCapability("platformVersion", "4.3");
capabilities.SetCapability("deviceName", "Android Emulator");
capabilities.SetCapability("app", @"F:\appium\appium-master\assets\ApiDemos.apk");
driver = new AppiumDriver(new Uri("http://127.0.0.1:4723/wd/hub"), capabilities);
进行测试,提示:
{"A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://127.0.0.1:4723/wd/hub/session. The status of the exception was ReceiveFailure, and the message was: 基础连接已经关闭: 接收时发生错误。"}
检查 appium 命令行中发现错误:
Arguments to path.resolve must be string。
运行环境: vs2013 + 最新版 nodejs,appium,虚拟机是使用 Genymotion 加载