Hi Manasa,
I followed you, however still not able to start app, getting following error : -
error: Unhandled error: ReferenceError: grep is not defined
at [object Object].ADB.shell (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:192:46)
at [object Object].<anonymous> (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:942:16)
at [object Object].<anonymous> (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:180:9)
at ChildProcess.exithandler (child_process.js:742:7)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1016:16)
at Socket.<anonymous> (child_process.js:1184:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:484:11) context: [POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"appPackage":"svf.viewlift.com.test","app":"C:\\Users\\bhuvnesh.sharma\\workspace\\SVFAN\\app\\svf_release_buiild_v_1.0.016.apk","platformVersion":"7.0","browse]
info: [debug] executing cmd: C:\Users\bhuvnesh.sharma\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s ZY223P4F3Z kill-server
info: [debug] Getting connected devices...
info: [debug] executing cmd: C:\Users\bhuvnesh.sharma\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s ZY223P4F3Z devices
info: [debug] 1 device(s) connected
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: C:\Users\bhuvnesh.sharma\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s ZY223P4F3Z wait-for-device
error: Unhandled error: ReferenceError: grep is not defined
at [object Object].ADB.shell (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:192:46)
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:942:16)
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:180:9)
at ChildProcess.exithandler (child_process.js:742:7)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1016:16)
at Process.ChildProcess.handle.onexit (childprocess.js:1088:5) context: [POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"appPackage":"svf.viewlift.com.test","app":"C:\Users\bhuvnesh.sharma\workspace\SVFAN\app\svf_release_buiild_v_1.0.016.apk","platformVersion":"7.0","browse]
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
warn: UiAutomator did not shut down fast enough, calling it gone
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Device did not become ready in 5 secs; are you sure it's powered on?
info: [debug] undefined
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created.","origValue":"Device did not become ready in 5 secs; are you sure it's powered on?"},"sessionId":null}
info: <-- POST /wd/hub/session 500 48930.688 ms - 171
Please help..
Anybody else getting this error ?
Thanks