This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
44 / 169
Feb 2015
25 days later

Hi @Appium_Master,I have seen your video posted.it's a nice video... I'm trying to connect my android device to the grid..when adb connect ...it shows below error.

How can i resolve it?Please suggest me that how to connect to the grid.

I saw your video twice..nice video. Ya it is resolved. Thank you @Appium_Master .But I'm unable connect through Grid. it is showing error.. Could you please go through the following link,my post looks there.

@bhaskar
{
"capabilities":
[
{
"browserName": "note3",
"device": "Appium",
"version":"",
"maxInstances": 1,
"platform":"ANDROID"
}
],
"configuration":
{
"cleanUpCycle":2000,
"timeout":10000,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url":"http://localhost:4568/wd/hub",
"maxSession": 1,
"port": 4568,
"host": "localhost",
"register": true,
"registerCycle": 5000,
"hubPort": 4040,
"hubHost": "localhost"
}
}

I have done the same as u said...but again it shows the same error...

@Appium_Master , please suggest me to get out of this error...Thank you in advance.!!!

Hi @bhaskar ,
'Cannot find module' is a node error, not an appium or grid related error.
If you are using AppiumForWindows, you must execute "node node_modules/appium" from AppiumForWindows folder instead of "node .".

Hi @rgonalo.. Many Thanks for your reply.!!! I'm not using Appium for windows(.exe)... i have installed it through command prompt by node.js..like " npm install -g appium "

Appium 1.34
Windows 7

Thanks alot @rgonalo . its working fine a bit...but showing error..

My json file looks like as follows.. Are there any changes required? Please let me know if any..!!! Thanks in advance.

{
"capabilities":
[
{
"browserName": "ANDROID",
"device": "LG Nexus5",
"version":"4.4.2",
"maxInstances": 1,
"platform":"ANDROID"
}
],
"configuration":
{
"cleanUpCycle":2000,
"timeout":10000,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url":"http://localhost:4723/wd/hub",
"maxSession": 1,
"port": 4723,
"host": "localhost",
"register": true,
"registerCycle": 5000,
"hubPort": 4444,
"hubHost": "localhost"
}
}

I have tried alot with many nodeconfig.json files, again and again it shows the same error...even i have tried with the samples posted by many others....i couldn't get the result except the error as follows,

I tried your file and it worked fine from my side. I can confirm that it is neither a problem with Appium nor with your configurations.

For some unknown reason your keyboard might be inserting the wrong characters, so please download the following file node.txt133), change the extension from .txt to .json (as the website here forbids uploading .json files) and try again.

Also to make sure that there is no syntax error with your json file, you can use the following website: http://www.jsoneditoronline.org/39

8 days later

@bhaskar
you can try to put your config file path into quotes like:> appium --nodeconfig "d:\your_path\file_name.json"