我正在尝试将我的真实Android设备作为Selenium节点连接到集线器时出现此错误?
无法注册此节点:集线器已关闭或未响应:连接到x.x.x.x:4445 [/x.x.x.x]失败:网络无法访问
任何建议都将不胜感激。
config.json文件:
{ "capabilities":
[ {
"browserName": "Android",
"version":"4.4.2",
"maxInstances": 3,
"platform":"ANDROID",
"deviceName":"emulator-5554" } ],
"configuration":
{ "nodeTimeout":120,
"port":4728,
"hubPort":4444,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url":"127.0.0.1:4728/wd/hub",
"hub": "127.0.0.1:4444/grid/register",
"hubHost":"127.0.0.1",
"nodePolling":2000,
"registerCycle":10000,
"register":true,
"cleanUpCycle":2000,
"timeout":30000, "maxSession":1 }
}
答案 0 :(得分:0)
在selenium网格上为Android设备和模拟器提供适合我的config.json文件。试一试。
[HttpPost]
public ActionResult Index(UserRightViewSearch userRightView)
{
//Here may be validation failed or for some other reason, return to same view
userRightView._menu = GetMenuItems(); //Just for demo, but somehow you need to populate the default data to show as listbox items here, otherwise you see null reference exception or no items in list based on how you handle the case
return View(userRightView);
}
我收到以下错误消息。
错误:`
uncaughtException:无法读取未定义日期= Fri的属性“url” 2015年10月30日10:31:30 GMT + 0530(IST),pid = 2850,uid = 1020000013, GID = 1020000013, CWD = /家庭/ sandeepreddy / .npm-包/ lib目录/ node_modules / appium, execPath = / usr / bin / nodejs,version = v0.10.37,argv = [node, / usr / bin / appium, - nodeconfi **
`