Proxied response received with status 404: "unknown command: session/dac5f1400d5fd5c1396e7010be002a6

1,579 views
Skip to first unread message

Naidu A

unread,
Jun 2, 2014, 4:44:53 AM6/2/14
to appium-...@googlegroups.com
Hi,
when i am trying perform swipe action on chrome browser.
i am getting below error:
Proxied response received with status 404: "unknown command: session/dac5f1400d5fd5c1396e7010be002a6e/touch/perform

Here is the full log.

info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/dac5f1400d5fd5c1396e7010be002a6e/element","method":"POST","json":{"using":"xpath","value":"//*[@id='Frm1IDE_imagegallery213756257059179_img' and @index='1']"}}


debug: Request received with params: {"using":"xpath","value":"//*[@id='Frm1IDE_imagegallery213756257059179_img' and @index='1']"}

debug: Proxying command to 127.0.0.1:9515


debug: Proxied response received with status 200: {"sessionId":"dac5f1400d5fd5c1396e7010be002a6e","status":0,"value":{"ELEMENT":"0.6035820669494569-6"}}


POST /wd/hub/session/dac5f1400d5fd5c1396e7010be002a6e/element 200 332ms - 124b


debug: Appium request initiated at /wd/hub/session/dac5f1400d5fd5c1396e7010be002a6e/element/0.6035820669494569-6/displayed


info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/dac5f1400d5fd5c1396e7010be002a6e/element/0.6035820669494569-6/displayed","method":"GET"}


debug: Request received with params: {}

debug: Proxying command to 127.0.0.1:9515


debug: Proxied response received with status 200: "{\"sessionId\":\"dac5f1400d5fd5c1396e7010be002a6e\",\"status\":0,\"value\":false}"


GET /wd/hub/session/dac5f1400d5fd5c1396e7010be002a6e/element/0.6035820669494569-6/displayed 200 329ms - 73b


debug: Appium request initiated at /wd/hub/session/dac5f1400d5fd5c1396e7010be002a6e/touch/perform


info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/dac5f1400d5fd5c1396e7010be002a6e/touch/perform","method":"POST","json":{"actions":[{"action":"press","options":{"y":400,"x":250}},{"action":"wait","options":{"ms":500}},{"action":"moveTo","options":{"y":4,"x":250}},{"action":"release","options":{}}]}}


debug: Request received with params: {"actions":[{"action":"press","options":{"y":400,"x":250}},{"action":"wait","options":{"ms":500}},{"action":"moveTo","options":{"y":4,"x":250}},{"action":"release","options":{}}]}

debug: Proxying command to 127.0.0.1:9515


debug: Proxied response received with status 404: "unknown command: session/dac5f1400d5fd5c1396e7010be002a6e/touch/perform"


POST /wd/hub/session/dac5f1400d5fd5c1396e7010be002a6e/touch/perform 404 6ms - 71b


debug: Appium request initiated at /wd/hub/session/dac5f1400d5fd5c1396e7010be002a6e


info: Shutting down appium session...


debug: Request received with params: {}


info: Killing chromedriver

info: Chromedriver exited with code null

info: (killed by signal SIGTERM)


debug: executing: adb -s emulator-5554 shell "am force-stop com.android.chrome"


info: Cleaning up appium session

Naidu A

unread,
Jun 2, 2014, 4:50:34 AM6/2/14
to appium-...@googlegroups.com
I am using Appium 1.0.0 & Java-client 1.2.1

Isaac Murchie

unread,
Jun 2, 2014, 12:19:48 PM6/2/14
to Naidu A, appium-...@googlegroups.com
Yes. These won't work in ChromeDriver until it gets updated.


--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.

Naidu A

unread,
Jun 2, 2014, 12:31:27 PM6/2/14
to appium-...@googlegroups.com, sunny...@gmail.com
Does that mean we cannot swipe in chrome?
is there any other way, i can scroll to get the elements and perform actions in it?

Isaac Murchie

unread,
Jun 2, 2014, 12:58:31 PM6/2/14
to Naidu A, appium-...@googlegroups.com

Naidu A

unread,
Jun 3, 2014, 4:41:35 AM6/3/14
to appium-...@googlegroups.com, sunny...@gmail.com
Hi Issac,
Thanks for the reply.

I tried with the default selenium web driver scrolling.
how ever i am not able to scroll it. and appium says it succesfully scrolled.
Do i have to change my context?

Naidu A

unread,
Jun 3, 2014, 1:45:02 PM6/3/14
to appium-...@googlegroups.com, sunny...@gmail.com
Issac,
Do i have to use selendroid mode for this to work?

Isaac Murchie

unread,
Jun 3, 2014, 1:57:35 PM6/3/14
to Naidu A, appium-...@googlegroups.com
I don't think so. In my experience it is usually an issue with twiddling the parameters to scroll. I would just play with what you pass in and see if they work. Especially with duration. If the logs have "steps" listed, they have to be above zero or it won't work.

Naidu A

unread,
Jun 3, 2014, 2:05:02 PM6/3/14
to appium-...@googlegroups.com, sunny...@gmail.com
Isaac,
Thanks for the reply.
I am trying with different combinations.

Appium server log is different from swipe where it displays steps. 
but when i use web driver default scroll, this is the server log i observed.
can you see the log & see if it tells you something i might have missed.
I could not able to find any chromeTest examples in appium git hub. 

POST /wd/hub/session/04384ce00caddcb0e12c6e4580a3bc3b/execute 200 64ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/04384ce00caddcb0e12c6e4580a3bc3b/execute
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/04384ce00caddcb0e12c6e4580a3bc3b/execute","method":"POST","json":{"args":[""],"script":"window.scrollBy(0,400)"}}
> ERROR: debug: Request received with params: {"args":[""],"script":"window.scrollBy(0,400)"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"04384ce00caddcb0e12c6e4580a3bc3b","status":0,"value":null}
> ERROR: debug: Appium request initiated at /wd/hub/session/04384ce00caddcb0e12c6e4580a3bc3b
> info: Shutting down appium session...
> ERROR: debug: Request received with params: {}
> info: Killing chromedriver
> ERROR: debug: executing: "D:\android-sdk\platform-tools\adb.exe" -s emulator-5554 shell "am force-stop com.android.chrome"
> info: Cleaning up appium session
> info: Responding to client with success: {"status":0,"value":null,"sessionId":"04384ce00caddcb0e12c6e4580a3bc3b"}
> DELETE /wd/hub/session/04384ce00caddcb0e12c6e4580a3bc3b 200 3926ms - 85b

Jonathan Lipps

unread,
Jun 4, 2014, 4:10:11 PM6/4/14
to Naidu A, appium-...@googlegroups.com
Those touch commands are apparently not supported by Chromedriver

karthik holla

unread,
Aug 8, 2014, 10:52:12 PM8/8/14
to appium-...@googlegroups.com
Hi,

I tried with driver.swipe(400, 600, 400, 100, 1000); to perform a scroll operation on a real android device. it was not successful in performing scroll operation.
I am using appium 1.0 with java bindings. 

Below are the server logs:

> Starting Node Server
> info: Welcome to Appium v1.0.0 (REV f0a00fab2335fa88cb355ab4dc43a9cd3f3236c0)
> info: Appium REST http interface listener started on 127.0.0.1:4723
> info: socket.io started
> info: Non-default server args: {"address":"127.0.0.1","fullReset":true,"logNoColors":true}
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Looks like we want chrome on android
> info: Creating new appium session bab7a21d-31cc-4d04-a614-027dda1e15f1
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> ERROR: debug: executing: adb devices
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> info: Setting device id to 085d3b920c928938
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: adb -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "dumpsys window"
> info: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\.dumpsys.log
> info: Creating Chrome session
> info: Ensuring Chromedriver exists
> ERROR: debug: Screen already unlocked, continuing.
> info: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> info: No old chromedrivers seemed to exist
> info: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> info: Successfully started chrome session
> info: Overriding session id with "7a04be7cf0ddb0c11cfe89e7627ac059"
> info: Device launched! Ready for commands
> info: Setting command timeout to the default of 60 secs
> info: Appium session started with sessionId 7a04be7cf0ddb0c11cfe89e7627ac059
> POST /wd/hub/session 303 6405ms - 9b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059","method":"GET"}
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"7a04be7cf0ddb0c11cfe89e7627ac059\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"36.0.1985.131\",\"webStorageEnabled\":true}}"
> GET /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059 200 6ms - 476b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/url
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/url","method":"POST","json":{"url":"http://www.flipkart.com"}}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059","status":0,"value":null}
> POST /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/url 200 2423ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element","method":"POST","json":{"using":"xpath","value":"//span[text()='No Thanks']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059","status":0,"value":{"ELEMENT":"0.027857254492118955-1"}}
> POST /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element 200 86ms - 126b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.027857254492118955-1/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.027857254492118955-1/click","method":"POST","json":{"id":"0.027857254492118955-1"}}
> ERROR: debug: Request received with params: {"id":"0.027857254492118955-1"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059","status":0,"value":null}
> POST /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.027857254492118955-1/click 200 143ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059","status":0,"value":{"ELEMENT":"0.027857254492118955-2"}}
> POST /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element 200 69ms - 126b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.027857254492118955-2/value
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.027857254492118955-2/value","method":"POST","json":{"id":"0.027857254492118955-2","value":["Moto x"]}}
> ERROR: debug: Request received with params: {"id":"0.027857254492118955-2","value":["Moto x"]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059","status":0,"value":null}
> POST /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.027857254492118955-2/value 200 253ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element","method":"POST","json":{"using":"xpath","value":"//button[@id='_submit']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059","status":0,"value":{"ELEMENT":"0.027857254492118955-3"}}
> POST /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element 200 61ms - 126b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.027857254492118955-3/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.027857254492118955-3/click","method":"POST","json":{"id":"0.027857254492118955-3"}}
> ERROR: debug: Request received with params: {"id":"0.027857254492118955-3"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059","status":0,"value":null}
> POST /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.027857254492118955-3/click 200 2773ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element","method":"POST","json":{"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059","status":0,"value":{"ELEMENT":"0.8195866469759494-1"}}
> POST /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element 200 60ms - 124b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.8195866469759494-1/text
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"7a04be7cf0ddb0c11cfe89e7627ac059\",\"status\":0,\"value\":\"Royal Blue\"}"
> GET /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/element/0.8195866469759494-1/text 200 85ms - 80b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/touch/perform
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/touch/perform","method":"POST","json":{"actions":[{"action":"press","options":{"y":600,"x":400}},{"action":"wait","options":{"ms":1000}},{"action":"moveTo","options":{"y":100,"x":400}},{"action":"release","options":{}}]}}
> ERROR: debug: Request received with params: {"actions":[{"action":"press","options":{"y":600,"x":400}},{"action":"wait","options":{"ms":1000}},{"action":"moveTo","options":{"y":100,"x":400}},{"action":"release","options":{}}]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 404: "unknown command: session/7a04be7cf0ddb0c11cfe89e7627ac059/touch/perform"
> POST /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/touch/perform 404 3ms - 71b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/window
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/window","method":"DELETE"}
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Error: Requested a new session but one was in progress
>     at Appium.start (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\appium.js:112:15)
>     at exports.createSession (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\server\controller.js:155:16)
>     at callbacks (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:164:37)
>     at param (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:138:11)
>     at pass (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:145:5)
>     at nextRoute (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:100:7)
>     at callbacks (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:167:11)
>     at C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\server\controller.js:41:7
>     at callbacks (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:164:37)
>     at param (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:138:11)
> ERROR: debug: Request received with params: {"desiredCapabilities":{"device":"android"}}
> info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Requested a new session but one was in progress)","origValue":"Requested a new session but one was in progress"},"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059"}
> POST /wd/hub/session 500 4ms - 274b
> ERROR: error: Failed to start an Appium session, err was: Error: Requested a new session but one was in progress
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"7a04be7cf0ddb0c11cfe89e7627ac059\",\"status\":0,\"value\":null}"
> DELETE /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059/window 200 660ms - 72b
> ERROR: debug: Appium request initiated at /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059
> info: Shutting down appium session...
> info: Killing chromedriver
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "am force-stop com.android.chrome"
> info: (killed by signal SIGTERM)
> info: Cleaning up appium session
> info: Responding to client with success: {"status":0,"value":null,"sessionId":"7a04be7cf0ddb0c11cfe89e7627ac059"}
> DELETE /wd/hub/session/7a04be7cf0ddb0c11cfe89e7627ac059 200 646ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> info: Trying to find a connected android device
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> ERROR: debug: Pushing unlock helper app to device...
> info: Setting device id to 085d3b920c928938
> ERROR: debug: executing: adb -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "dumpsys window"
> info: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\.dumpsys.log
> ERROR: debug: Screen already unlocked, continuing.
> info: Creating Chrome session
> info: Ensuring Chromedriver exists
> info: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> info: No old chromedrivers seemed to exist
> info: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> info: Successfully started chrome session
> info: Overriding session id with "28c493f5a69c4b897373e0a98fd34183"
> info: Device launched! Ready for commands
> info: Setting command timeout to the default of 60 secs
> info: Appium session started with sessionId 28c493f5a69c4b897373e0a98fd34183
> POST /wd/hub/session 303 5832ms - 9b
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/28c493f5a69c4b897373e0a98fd34183","method":"GET"}
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"28c493f5a69c4b897373e0a98fd34183\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"36.0.1985.131\",\"webStorageEnabled\":true}}"
> GET /wd/hub/session/28c493f5a69c4b897373e0a98fd34183 200 5ms - 476b
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/url
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/28c493f5a69c4b897373e0a98fd34183/url","method":"POST","json":{"url":"http://www.flipkart.com"}}
> ERROR: debug: Request received with params: {"url":"http://www.flipkart.com"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Error: Requested a new session but one was in progress
>     at Appium.start (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\appium.js:112:15)
>     at exports.createSession (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\server\controller.js:155:16)
>     at callbacks (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:164:37)
>     at param (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:138:11)
>     at pass (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:145:5)
>     at nextRoute (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:100:7)
>     at callbacks (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:167:11)
>     at C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\server\controller.js:41:7
>     at callbacks (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:164:37)
>     at param (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:138:11)
> info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Requested a new session but one was in progress)","origValue":"Requested a new session but one was in progress"},"sessionId":"28c493f5a69c4b897373e0a98fd34183"}
> POST /wd/hub/session 500 6ms - 274b
> ERROR: debug: Proxied response received with status 200: {"sessionId":"28c493f5a69c4b897373e0a98fd34183","status":0,"value":null}
> POST /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/url 200 2840ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element","method":"POST","json":{"using":"xpath","value":"//span[text()='No Thanks']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"28c493f5a69c4b897373e0a98fd34183","status":0,"value":{"ELEMENT":"0.4009506767615676-1"}}
> POST /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element 200 125ms - 124b
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.4009506767615676-1/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.4009506767615676-1/click","method":"POST","json":{"id":"0.4009506767615676-1"}}
> ERROR: debug: Request received with params: {"id":"0.4009506767615676-1"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"28c493f5a69c4b897373e0a98fd34183","status":0,"value":null}
> POST /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.4009506767615676-1/click 200 139ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element","method":"POST","json":{"using":"xpath","value":"//input[@id='text']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"28c493f5a69c4b897373e0a98fd34183","status":0,"value":{"ELEMENT":"0.4009506767615676-2"}}
> POST /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element 200 49ms - 124b
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.4009506767615676-2/value","method":"POST","json":{"id":"0.4009506767615676-2","value":["Moto x"]}}
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.4009506767615676-2/value
> ERROR: debug: Request received with params: {"id":"0.4009506767615676-2","value":["Moto x"]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"28c493f5a69c4b897373e0a98fd34183","status":0,"value":null}
> POST /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.4009506767615676-2/value 200 360ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element","method":"POST","json":{"using":"xpath","value":"//button[@id='_submit']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"28c493f5a69c4b897373e0a98fd34183","status":0,"value":{"ELEMENT":"0.4009506767615676-3"}}
> POST /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element 200 103ms - 124b
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.4009506767615676-3/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.4009506767615676-3/click","method":"POST","json":{"id":"0.4009506767615676-3"}}
> ERROR: debug: Request received with params: {"id":"0.4009506767615676-3"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"28c493f5a69c4b897373e0a98fd34183","status":0,"value":null}
> POST /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.4009506767615676-3/click 200 2938ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> POST /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element 200 72ms - 124b
> ERROR: debug: Proxied response received with status 200: {"sessionId":"28c493f5a69c4b897373e0a98fd34183","status":0,"value":{"ELEMENT":"0.8989914676640183-1"}}
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.8989914676640183-1/text
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> GET /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/element/0.8989914676640183-1/text 200 74ms - 80b
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"28c493f5a69c4b897373e0a98fd34183\",\"status\":0,\"value\":\"Royal Blue\"}"
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/28c493f5a69c4b897373e0a98fd34183/touch/perform","method":"POST","json":{"actions":[{"action":"press","options":{"y":600,"x":400}},{"action":"wait","options":{"ms":1000}},{"action":"moveTo","options":{"y":100,"x":400}},{"action":"release","options":{}}]}}
> ERROR: debug: Appium request initiated at /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/touch/perform
> ERROR: debug: Request received with params: {"actions":[{"action":"press","options":{"y":600,"x":400}},{"action":"wait","options":{"ms":1000}},{"action":"moveTo","options":{"y":100,"x":400}},{"action":"release","options":{}}]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 404: "unknown command: session/28c493f5a69c4b897373e0a98fd34183/touch/perform"
> POST /wd/hub/session/28c493f5a69c4b897373e0a98fd34183/touch/perform 404 11ms - 71b
> info: Didn't get a new command in 60 secs, shutting down...
> info: Shutting down appium session...
> info: Killing chromedriver
> info: Chromedriver exited with code null
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "am force-stop com.android.chrome"
> info: (killed by signal SIGTERM)
> info: Cleaning up appium session
> info: We shut down because no new commands came in

Please suggest any other alternate method which can be used to perform scroll operation. Also are any other touch actions supported on chrome by appium.

Thanks and regards,
M.Karthik

karthik holla

unread,
Aug 9, 2014, 10:17:50 AM8/9/14
to appium-...@googlegroups.com
Hi Jonathan,

Please suggest if there are any methods which are helpful in performing mobile gesture actions on real android devices. I tried with the below code it failed.

public class RecommendedTablets  {

static DesiredCapabilities capabilities; 
static AppiumDriver driver;
    static TouchAction action;
    TouchScreen touch;
@BeforeClass
public static void setUpBeforeClass() 
{
 capabilities = new DesiredCapabilities();
     capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
    //capabilities.setCapability("deviceName", "Default");
     capabilities.setCapability(CapabilityType.VERSION, "4.4.4");
     capabilities.setCapability("appium-version", "1.0.0.0");
     capabilities.setCapability("appPackage", "com.android.chrome"); // This is package name of your app (you can get it from apk info app)
     capabilities.setCapability("appActivity", "com.google.android.apps.chrome.Main"); // This is Launcher activity of your app (you can get it from apk info app)
     capabilities.setCapability("appWaitActivity","com.google.android.apps.chrome.Main");
}

@AfterClass
public static void tearDownAfterClass() throws Exception 
{
//driver.close();
//driver.quit();
}

@Test
public void test() {
try 
{
driver = new AppiumDriver(new URL("http://localhost:4723/wd/hub"), capabilities);
driver.get("http://www.flipkart.com");
try {
Thread.sleep(7000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
 driver.findElement(By.xpath("//span[text()='No Thanks']")).click();
     driver.findElement(By.xpath("//input[@id='text']")).sendKeys("Moto x");
     try {
  Thread.sleep(7000);
  } catch (InterruptedException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
     
     driver.findElement(By.xpath("//button[@id='_submit']")).click();
     try {
Thread.sleep(7000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
    //temporary scroll method
     for (int second = 0;; second++) {
           if(second >=60){
               break;
           }
               driver.executeScript("window.scrollBy(0,200)", "");
               WebElement element = driver.findElement(By.xpath("//a/div/div[contains(text(),'Royal')]"));    
               try {
Thread.sleep(1000);
 if(element!=null)
 { 
 MobileDriver mDriver=driver;
 TouchAction touch=new TouchAction(mDriver);
 touch.tap(element).perform();
 
 break;
     }
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
           }
     //driver.swipe(400, 600, 400, 100, 1000);
    //MobileDriver mDriver=driver;
    //TouchAction act=new TouchAction(mDriver);
    //act.tap(element).perform();
   //driver.findElement(By.xpath("//a[div[*[contains(text(),'Royal')]]]/descendant::*[contains(text(),'Moto X (16 GB)')]"));
   
     
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

Server logs:

> Starting Node Server
> info: Welcome to Appium v1.0.0 (REV f0a00fab2335fa88cb355ab4dc43a9cd3f3236c0)
> info: Appium REST http interface listener started on 127.0.0.1:4723
> info: socket.io started
> info: Non-default server args: {"address":"127.0.0.1","fullReset":true,"logNoColors":true}
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Looks like we want chrome on android
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> info: Creating new appium session 266fb1a4-8526-4647-82f0-d5e03fd2fc4d
> ERROR: debug: executing: adb devices
> info: Trying to find a connected android device
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> info: Setting device id to 085d3b920c928938
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: adb -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "dumpsys window"
> info: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\.dumpsys.log
> ERROR: debug: Screen already unlocked, continuing.
> info: Creating Chrome session
> info: Ensuring Chromedriver exists
> info: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> info: No old chromedrivers seemed to exist
> info: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> info: Successfully started chrome session
> info: Overriding session id with "a4ee21705ff9133cf4ef86b405d1f5e1"
> info: Device launched! Ready for commands
> info: Setting command timeout to the default of 60 secs
> info: Appium session started with sessionId a4ee21705ff9133cf4ef86b405d1f5e1
> POST /wd/hub/session 303 10827ms - 9b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1","method":"GET"}
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"a4ee21705ff9133cf4ef86b405d1f5e1\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"36.0.1985.131\",\"webStorageEnabled\":true}}"
> GET /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1 200 4ms - 476b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/url
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/url","method":"POST","json":{"url":"http://www.flipkart.com"}}
> ERROR: debug: Request received with params: {"url":"http://www.flipkart.com"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1","status":0,"value":null}
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/url 200 6256ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element","method":"POST","json":{"using":"xpath","value":"//span[text()='No Thanks']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1","status":0,"value":{"ELEMENT":"0.353954030899331-1"}}
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element 200 112ms - 123b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element/0.353954030899331-1/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element/0.353954030899331-1/click","method":"POST","json":{"id":"0.353954030899331-1"}}
> ERROR: debug: Request received with params: {"id":"0.353954030899331-1"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1","status":0,"value":null}
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element/0.353954030899331-1/click 200 320ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element","method":"POST","json":{"using":"xpath","value":"//input[@id='text']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1","status":0,"value":{"ELEMENT":"0.353954030899331-2"}}
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element 200 74ms - 123b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element/0.353954030899331-2/value
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element/0.353954030899331-2/value","method":"POST","json":{"id":"0.353954030899331-2","value":["Moto x"]}}
> ERROR: debug: Request received with params: {"id":"0.353954030899331-2","value":["Moto x"]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1","status":0,"value":null}
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element/0.353954030899331-2/value 200 484ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element","method":"POST","json":{"using":"xpath","value":"//button[@id='_submit']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1","status":0,"value":{"ELEMENT":"0.353954030899331-3"}}
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element 200 162ms - 123b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element/0.353954030899331-3/click
> ERROR: debug: Request received with params: {"id":"0.353954030899331-3"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1","status":0,"value":null}
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element/0.353954030899331-3/click 200 3700ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/execute
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/execute","method":"POST","json":{"args":[""],"script":"window.scrollBy(0,200)"}}
> ERROR: debug: Request received with params: {"args":[""],"script":"window.scrollBy(0,200)"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1","status":0,"value":null}
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/execute 200 47ms - 85b
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element","method":"POST","json":{"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}}
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1","status":0,"value":{"ELEMENT":"0.8277102559804916-1"}}
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/element 200 69ms - 124b
> ERROR: debug: Appium request initiated at /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/touch/perform
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/touch/perform","method":"POST","json":{"actions":[{"action":"tap","options":{"element":"0.8277102559804916-1"}}]}}
> ERROR: debug: Request received with params: {"actions":[{"action":"tap","options":{"element":"0.8277102559804916-1"}}]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 404: "unknown command: session/a4ee21705ff9133cf4ef86b405d1f5e1/touch/perform"
> POST /wd/hub/session/a4ee21705ff9133cf4ef86b405d1f5e1/touch/perform 404 5ms - 71b
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Error: Requested a new session but one was in progress
>     at Appium.start (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\appium.js:112:15)
>     at exports.createSession (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\server\controller.js:155:16)
>     at callbacks (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:164:37)
>     at param (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:138:11)
>     at pass (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:145:5)
>     at nextRoute (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:100:7)
>     at callbacks (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:167:11)
>     at C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\server\controller.js:41:7
>     at callbacks (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:164:37)
>     at param (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\express\lib\router\index.js:138:11)
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> ERROR: error: Failed to start an Appium session, err was: Error: Requested a new session but one was in progress
> info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Requested a new session but one was in progress)","origValue":"Requested a new session but one was in progress"},"sessionId":"a4ee21705ff9133cf4ef86b405d1f5e1"}
> POST /wd/hub/session 500 3ms - 274b
> info: Chromedriver exited with code 1
> ERROR: debug: executing: adb -s 085d3b920c928938 devices
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "am force-stop com.android.chrome"
> info: Cleaning up appium session
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Looks like we want chrome on android
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> ERROR: debug: executing: adb devices
> info: Creating new appium session daed685d-89d8-49eb-b5c1-d1e14dbee2db
> info: Trying to find a connected android device
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: adb -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "dumpsys window"
> info: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\.dumpsys.log
> ERROR: debug: Screen already unlocked, continuing.
> info: Ensuring Chromedriver exists
> info: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> info: No old chromedrivers seemed to exist
> info: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> info: Successfully started chrome session
> info: Overriding session id with "6b433eeaf8c2dd70b8c072e8a5fe39f9"
> info: Device launched! Ready for commands
> info: Setting command timeout to the default of 60 secs
> info: Appium session started with sessionId 6b433eeaf8c2dd70b8c072e8a5fe39f9
> POST /wd/hub/session 303 6621ms - 9b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9","method":"GET"}
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"6b433eeaf8c2dd70b8c072e8a5fe39f9\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"36.0.1985.131\",\"webStorageEnabled\":true}}"
> GET /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9 200 29ms - 476b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/url
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/url","method":"POST","json":{"url":"http://www.flipkart.com"}}
> ERROR: debug: Request received with params: {"url":"http://www.flipkart.com"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"6b433eeaf8c2dd70b8c072e8a5fe39f9","status":0,"value":null}
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/url 200 5434ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element","method":"POST","json":{"using":"xpath","value":"//span[text()='No Thanks']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"6b433eeaf8c2dd70b8c072e8a5fe39f9","status":0,"value":{"ELEMENT":"0.320357461925596-1"}}
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element 200 123ms - 123b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element/0.320357461925596-1/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element/0.320357461925596-1/click","method":"POST","json":{"id":"0.320357461925596-1"}}
> ERROR: debug: Request received with params: {"id":"0.320357461925596-1"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"6b433eeaf8c2dd70b8c072e8a5fe39f9","status":0,"value":null}
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element/0.320357461925596-1/click 200 179ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element","method":"POST","json":{"using":"xpath","value":"//input[@id='text']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"6b433eeaf8c2dd70b8c072e8a5fe39f9","status":0,"value":{"ELEMENT":"0.320357461925596-2"}}
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element 200 113ms - 123b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element/0.320357461925596-2/value
> ERROR: debug: Request received with params: {"id":"0.320357461925596-2","value":["Moto x"]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element/0.320357461925596-2/value","method":"POST","json":{"id":"0.320357461925596-2","value":["Moto x"]}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"6b433eeaf8c2dd70b8c072e8a5fe39f9","status":0,"value":null}
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element/0.320357461925596-2/value 200 417ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element","method":"POST","json":{"using":"xpath","value":"//button[@id='_submit']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"6b433eeaf8c2dd70b8c072e8a5fe39f9","status":0,"value":{"ELEMENT":"0.320357461925596-3"}}
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element 200 96ms - 123b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element/0.320357461925596-3/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element/0.320357461925596-3/click","method":"POST","json":{"id":"0.320357461925596-3"}}
> ERROR: debug: Request received with params: {"id":"0.320357461925596-3"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"6b433eeaf8c2dd70b8c072e8a5fe39f9","status":0,"value":null}
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element/0.320357461925596-3/click 200 47987ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/execute
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/execute","method":"POST","json":{"args":[""],"script":"window.scrollBy(0,200)"}}
> ERROR: debug: Request received with params: {"args":[""],"script":"window.scrollBy(0,200)"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"6b433eeaf8c2dd70b8c072e8a5fe39f9","status":0,"value":null}
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/execute 200 22ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element","method":"POST","json":{"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"6b433eeaf8c2dd70b8c072e8a5fe39f9","status":0,"value":{"ELEMENT":"0.8006678693927824-1"}}
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/element 200 87ms - 124b
> ERROR: debug: Appium request initiated at /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/touch/perform
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/touch/perform","method":"POST","json":{"actions":[{"action":"tap","options":{"element":"0.8006678693927824-1"}}]}}
> ERROR: debug: Request received with params: {"actions":[{"action":"tap","options":{"element":"0.8006678693927824-1"}}]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 404: "unknown command: session/6b433eeaf8c2dd70b8c072e8a5fe39f9/touch/perform"
> POST /wd/hub/session/6b433eeaf8c2dd70b8c072e8a5fe39f9/touch/perform 404 7ms - 71b
> info: Didn't get a new command in 60 secs, shutting down...
> info: Shutting down appium session...
> info: Killing chromedriver
> info: Chromedriver exited with code null
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "am force-stop com.android.chrome"
> info: (killed by signal SIGTERM)
> info: Cleaning up appium session
> info: We shut down because no new commands came in

Android: 4.4.2
Browser: Chrome
Java: JDK 1.7
Appium version: 1.0.0

Thanks and regards,
M.Karthik

karthik holla

unread,
Aug 11, 2014, 6:57:52 AM8/11/14
to appium-...@googlegroups.com
Hi All,

Does any one any suggestion to overcome this?

Thanks and regards,
M.Karthik

On Monday, 2 June 2014 14:14:53 UTC+5:30, Naidu A wrote:

Jonah Stiennon

unread,
Aug 11, 2014, 4:36:46 PM8/11/14
to appium-...@googlegroups.com
I see this in the logs

"actions":[{"action":"tap","options":{"element":"0.8277102559804916-1"}}]}
It can't be right to have a fraction for an element id, can it?

karthik holla

unread,
Aug 12, 2014, 5:32:00 AM8/12/14
to appium-...@googlegroups.com
Hi Jonah,

Thank you for your reply. In the below mentioned step i tried:
1) passing the WebElement reference to the tap function
2)passing the location of element based on cor-ordinates

MobileDriver mDriver=driver;
TouchAction tap = new TouchAction(mDriver);

1)tap.press(element).waitAction(1000).release().perform();
2)tap.press(element.getLocation().getX(),element.getLocation().getY()).waitAction(1000).release().perform();

Both attempts failed. Below are the logs for the same:

Server log when element is passed to tap:

> Starting Node Server
> info: Welcome to Appium v1.0.0 (REV f0a00fab2335fa88cb355ab4dc43a9cd3f3236c0)
> info: Appium REST http interface listener started on 127.0.0.1:4723
> info: socket.io started
> info: Non-default server args: {"address":"127.0.0.1","fullReset":true,"logNoColors":true}
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Looks like we want chrome on android
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> info: Creating new appium session cb9039af-f8d6-4c2a-bc71-6a67daa925b7
> ERROR: debug: executing: adb devices
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> info: Setting device id to 085d3b920c928938
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: adb -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "dumpsys window"
> info: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\.dumpsys.log
> ERROR: debug: Screen already unlocked, continuing.
> info: Creating Chrome session
> info: Ensuring Chromedriver exists
> info: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> info: No old chromedrivers seemed to exist
> info: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> ERROR: debug: executing: adb -s 085d3b920c928938 devices
> info: [CHROMEDRIVER STDERR] [0.006][SEVERE]: Could not bind socket to 0.0.0.0:9515
> info: [CHROMEDRIVER] Port not available. Exiting...
> info: Chromedriver exited with code 1
> info: [ADB] Getting connected devices...
> ERROR: error: Chromedriver create session did not work. Status was 200 and body was {"sessionId":"d55a6a515a6a4afff1ad454e7995b0e8","status":13,"value":{"message":"unknown error: Device 085d3b920c928938 is already in use\n  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)"}}
> info: Cleaning up appium session
> ERROR: error: Failed to start an Appium session, err was: Error: Did not get session redirect from Chromedriver
> info: Error: Did not get session redirect from Chromedriver
>     at null.<anonymous> (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\devices\android\chromedriver.js:195:12)
>     at Request._callback (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\devices\common.js:104:5)
>     at Request.self.callback (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\request\request.js:121:22)
>     at Request.EventEmitter.emit (events.js:98:17)
>     at Request.<anonymous> (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\request\request.js:978:14)
>     at Request.EventEmitter.emit (events.js:117:20)
>     at IncomingMessage.<anonymous> (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\request\request.js:929:12)
>     at IncomingMessage.EventEmitter.emit (events.js:117:20)
>     at _stream_readable.js:920:16
>     at process._tickCallback (node.js:415:13)
> info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Did not get session redirect from Chromedriver)","origValue":"Did not get session redirect from Chromedriver"},"sessionId":null}
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "am force-stop com.android.chrome"
> POST /wd/hub/session 500 1420ms - 242b
> info: [ADB] 1 device(s) connected
> info: Cleaning up appium session
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Looks like we want chrome on android
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> info: Creating new appium session 7864a23e-7345-446a-8455-dc191e8040b2
> ERROR: debug: executing: adb devices
> info: Trying to find a connected android device
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> info: Setting device id to 085d3b920c928938
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: adb -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "dumpsys window"
> info: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\.dumpsys.log
> info: Creating Chrome session
> ERROR: debug: Screen already unlocked, continuing.
> info: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> info: No old chromedrivers seemed to exist
> info: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> info: Successfully started chrome session
> info: Overriding session id with "bbd9cf85844461f2b215d18aac1ff349"
> info: Device launched! Ready for commands
> info: Setting command timeout to the default of 60 secs
> info: Appium session started with sessionId bbd9cf85844461f2b215d18aac1ff349
> POST /wd/hub/session 303 6150ms - 9b
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349","method":"GET"}
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> GET /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349 200 6ms - 476b
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"bbd9cf85844461f2b215d18aac1ff349\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"36.0.1985.131\",\"webStorageEnabled\":true}}"
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/url
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/url","method":"POST","json":{"url":"http://www.flipkart.com"}}
> ERROR: debug: Request received with params: {"url":"http://www.flipkart.com"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/url 200 2389ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element","method":"POST","json":{"using":"xpath","value":"//span[text()='No Thanks']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":{"ELEMENT":"0.11198481684550643-1"}}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element 200 85ms - 125b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-1/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-1/click","method":"POST","json":{"id":"0.11198481684550643-1"}}
> ERROR: debug: Request received with params: {"id":"0.11198481684550643-1"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-1/click 200 186ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element","method":"POST","json":{"using":"xpath","value":"//input[@id='text']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":{"ELEMENT":"0.11198481684550643-2"}}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element 200 40ms - 125b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-2/value
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-2/value","method":"POST","json":{"id":"0.11198481684550643-2","value":["Moto x"]}}
> ERROR: debug: Request received with params: {"id":"0.11198481684550643-2","value":["Moto x"]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-2/value 200 264ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element","method":"POST","json":{"using":"xpath","value":"//button[@id='_submit']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":{"ELEMENT":"0.11198481684550643-3"}}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element 200 122ms - 125b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-3/click
> ERROR: debug: Request received with params: {"id":"0.11198481684550643-3"}
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-3/click","method":"POST","json":{"id":"0.11198481684550643-3"}}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-3/click 200 3052ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element","method":"POST","json":{"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":{"ELEMENT":"0.21703581302426755-1"}}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element 200 57ms - 125b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.21703581302426755-1/location
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"bbd9cf85844461f2b215d18aac1ff349\",\"status\":0,\"value\":{\"toString\":{},\"x\":102,\"y\":937}}"
> GET /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.21703581302426755-1/location 200 26ms - 99b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/execute
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/execute","method":"POST","json":{"args":[""],"script":"window.scrollBy(0,102)"}}
> ERROR: debug: Request received with params: {"args":[""],"script":"window.scrollBy(0,102)"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/execute 200 9ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/touch/perform
> ERROR: debug: Request received with params: {"actions":[{"action":"press","options":{"element":"0.21703581302426755-1"}},{"action":"wait","options":{"ms":1000}},{"action":"release","options":{}}]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/touch/perform","method":"POST","json":{"actions":[{"action":"press","options":{"element":"0.21703581302426755-1"}},{"action":"wait","options":{"ms":1000}},{"action":"release","options":{}}]}}
> ERROR: debug: Proxied response received with status 404: "unknown command: session/bbd9cf85844461f2b215d18aac1ff349/touch/perform"
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/touch/perform 404 10ms - 71b


Server log with co-ordinates being passed:

> Starting Node Server
> info: Welcome to Appium v1.0.0 (REV f0a00fab2335fa88cb355ab4dc43a9cd3f3236c0)
> info: Appium REST http interface listener started on 127.0.0.1:4723
> info: socket.io started
> info: Non-default server args: {"address":"127.0.0.1","fullReset":true,"logNoColors":true}
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Looks like we want chrome on android
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> info: Creating new appium session cb9039af-f8d6-4c2a-bc71-6a67daa925b7
> ERROR: debug: executing: adb devices
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> info: Setting device id to 085d3b920c928938
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: adb -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "dumpsys window"
> info: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\.dumpsys.log
> ERROR: debug: Screen already unlocked, continuing.
> info: Creating Chrome session
> info: Ensuring Chromedriver exists
> info: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> info: No old chromedrivers seemed to exist
> info: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> ERROR: debug: executing: adb -s 085d3b920c928938 devices
> info: [CHROMEDRIVER STDERR] [0.006][SEVERE]: Could not bind socket to 0.0.0.0:9515
> info: [CHROMEDRIVER] Port not available. Exiting...
> info: Chromedriver exited with code 1
> info: [ADB] Getting connected devices...
> ERROR: error: Chromedriver create session did not work. Status was 200 and body was {"sessionId":"d55a6a515a6a4afff1ad454e7995b0e8","status":13,"value":{"message":"unknown error: Device 085d3b920c928938 is already in use\n  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)"}}
> info: Cleaning up appium session
> ERROR: error: Failed to start an Appium session, err was: Error: Did not get session redirect from Chromedriver
> info: Error: Did not get session redirect from Chromedriver
>     at null.<anonymous> (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\devices\android\chromedriver.js:195:12)
>     at Request._callback (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\lib\devices\common.js:104:5)
>     at Request.self.callback (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\request\request.js:121:22)
>     at Request.EventEmitter.emit (events.js:98:17)
>     at Request.<anonymous> (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\request\request.js:978:14)
>     at Request.EventEmitter.emit (events.js:117:20)
>     at IncomingMessage.<anonymous> (C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\node_modules\request\request.js:929:12)
>     at IncomingMessage.EventEmitter.emit (events.js:117:20)
>     at _stream_readable.js:920:16
>     at process._tickCallback (node.js:415:13)
> info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Did not get session redirect from Chromedriver)","origValue":"Did not get session redirect from Chromedriver"},"sessionId":null}
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "am force-stop com.android.chrome"
> POST /wd/hub/session 500 1420ms - 242b
> info: [ADB] 1 device(s) connected
> info: Cleaning up appium session
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Looks like we want chrome on android
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> info: Creating new appium session 7864a23e-7345-446a-8455-dc191e8040b2
> ERROR: debug: executing: adb devices
> info: Trying to find a connected android device
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> info: Setting device id to 085d3b920c928938
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: adb -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "dumpsys window"
> info: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\.dumpsys.log
> info: Creating Chrome session
> ERROR: debug: Screen already unlocked, continuing.
> info: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> info: No old chromedrivers seemed to exist
> info: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> info: Successfully started chrome session
> info: Overriding session id with "bbd9cf85844461f2b215d18aac1ff349"
> info: Device launched! Ready for commands
> info: Setting command timeout to the default of 60 secs
> info: Appium session started with sessionId bbd9cf85844461f2b215d18aac1ff349
> POST /wd/hub/session 303 6150ms - 9b
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349","method":"GET"}
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> GET /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349 200 6ms - 476b
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"bbd9cf85844461f2b215d18aac1ff349\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"36.0.1985.131\",\"webStorageEnabled\":true}}"
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/url
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/url","method":"POST","json":{"url":"http://www.flipkart.com"}}
> ERROR: debug: Request received with params: {"url":"http://www.flipkart.com"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/url 200 2389ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element","method":"POST","json":{"using":"xpath","value":"//span[text()='No Thanks']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":{"ELEMENT":"0.11198481684550643-1"}}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element 200 85ms - 125b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-1/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-1/click","method":"POST","json":{"id":"0.11198481684550643-1"}}
> ERROR: debug: Request received with params: {"id":"0.11198481684550643-1"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-1/click 200 186ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element","method":"POST","json":{"using":"xpath","value":"//input[@id='text']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":{"ELEMENT":"0.11198481684550643-2"}}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element 200 40ms - 125b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-2/value
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-2/value","method":"POST","json":{"id":"0.11198481684550643-2","value":["Moto x"]}}
> ERROR: debug: Request received with params: {"id":"0.11198481684550643-2","value":["Moto x"]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-2/value 200 264ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element","method":"POST","json":{"using":"xpath","value":"//button[@id='_submit']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":{"ELEMENT":"0.11198481684550643-3"}}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element 200 122ms - 125b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-3/click
> ERROR: debug: Request received with params: {"id":"0.11198481684550643-3"}
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-3/click","method":"POST","json":{"id":"0.11198481684550643-3"}}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.11198481684550643-3/click 200 3052ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element","method":"POST","json":{"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":{"ELEMENT":"0.21703581302426755-1"}}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element 200 57ms - 125b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.21703581302426755-1/location
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"bbd9cf85844461f2b215d18aac1ff349\",\"status\":0,\"value\":{\"toString\":{},\"x\":102,\"y\":937}}"
> GET /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/element/0.21703581302426755-1/location 200 26ms - 99b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/execute
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/execute","method":"POST","json":{"args":[""],"script":"window.scrollBy(0,102)"}}
> ERROR: debug: Request received with params: {"args":[""],"script":"window.scrollBy(0,102)"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"bbd9cf85844461f2b215d18aac1ff349","status":0,"value":null}
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/execute 200 9ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/touch/perform
> ERROR: debug: Request received with params: {"actions":[{"action":"press","options":{"element":"0.21703581302426755-1"}},{"action":"wait","options":{"ms":1000}},{"action":"release","options":{}}]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/touch/perform","method":"POST","json":{"actions":[{"action":"press","options":{"element":"0.21703581302426755-1"}},{"action":"wait","options":{"ms":1000}},{"action":"release","options":{}}]}}
> ERROR: debug: Proxied response received with status 404: "unknown command: session/bbd9cf85844461f2b215d18aac1ff349/touch/perform"
> POST /wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/touch/perform 404 10ms - 71b
> info: Didn't get a new command in 60 secs, shutting down...
> info: Shutting down appium session...
> info: Killing chromedriver
> info: Chromedriver exited with code null
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "am force-stop com.android.chrome"
> info: (killed by signal SIGTERM)
> info: Cleaning up appium session
> info: We shut down because no new commands came in
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Looks like we want chrome on android
> ERROR: debug: Request received with params: {"desiredCapabilities":{"browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.0.0.0","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> info: Creating new appium session 92ce02dc-ded4-4f0d-8915-3df35bb1a817
> ERROR: debug: executing: adb devices
> info: [ADB] Getting connected devices...
> info: [ADB] 1 device(s) connected
> info: Setting device id to 085d3b920c928938
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: adb -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: adb -s 085d3b920c928938 shell "dumpsys window"
> info: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\.dumpsys.log
> ERROR: debug: Screen already unlocked, continuing.
> info: Creating Chrome session
> info: Ensuring Chromedriver exists
> info: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> info: No old chromedrivers seemed to exist
> info: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\AppiumForWindows\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> info: Successfully started chrome session
> info: Overriding session id with "943c10a1d330ef9068d45e8554496903"
> info: Device launched! Ready for commands
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903
> info: Setting command timeout to the default of 60 secs
> ERROR: debug: Request received with params: {}
> info: Appium session started with sessionId 943c10a1d330ef9068d45e8554496903
> ERROR: debug: Proxying command to 127.0.0.1:9515
> POST /wd/hub/session 303 6032ms - 9b
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903","method":"GET"}
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"943c10a1d330ef9068d45e8554496903\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"36.0.1985.131\",\"webStorageEnabled\":true}}"
> GET /wd/hub/session/943c10a1d330ef9068d45e8554496903 200 5ms - 476b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/url
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/url","method":"POST","json":{"url":"http://www.flipkart.com"}}
> ERROR: debug: Request received with params: {"url":"http://www.flipkart.com"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"943c10a1d330ef9068d45e8554496903","status":0,"value":null}
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/url 200 2576ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/element","method":"POST","json":{"using":"xpath","value":"//span[text()='No Thanks']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"943c10a1d330ef9068d45e8554496903","status":0,"value":{"ELEMENT":"0.3727641017176211-1"}}
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/element 200 94ms - 124b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.3727641017176211-1/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.3727641017176211-1/click","method":"POST","json":{"id":"0.3727641017176211-1"}}
> ERROR: debug: Request received with params: {"id":"0.3727641017176211-1"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"943c10a1d330ef9068d45e8554496903","status":0,"value":null}
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.3727641017176211-1/click 200 245ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/element","method":"POST","json":{"using":"xpath","value":"//input[@id='text']"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"943c10a1d330ef9068d45e8554496903","status":0,"value":{"ELEMENT":"0.3727641017176211-2"}}
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/element 200 44ms - 124b
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.3727641017176211-2/value","method":"POST","json":{"id":"0.3727641017176211-2","value":["Moto x"]}}
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.3727641017176211-2/value
> ERROR: debug: Request received with params: {"id":"0.3727641017176211-2","value":["Moto x"]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"943c10a1d330ef9068d45e8554496903","status":0,"value":null}
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.3727641017176211-2/value 200 241ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/element","method":"POST","json":{"using":"xpath","value":"//button[@id='_submit']"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"943c10a1d330ef9068d45e8554496903","status":0,"value":{"ELEMENT":"0.3727641017176211-3"}}
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/element 200 129ms - 124b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.3727641017176211-3/click
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.3727641017176211-3/click","method":"POST","json":{"id":"0.3727641017176211-3"}}
> ERROR: debug: Request received with params: {"id":"0.3727641017176211-3"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"943c10a1d330ef9068d45e8554496903","status":0,"value":null}
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.3727641017176211-3/click 200 2039ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/element","method":"POST","json":{"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//a/div/div[contains(text(),'Royal')]"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"943c10a1d330ef9068d45e8554496903","status":0,"value":{"ELEMENT":"0.28541846573352814-1"}}
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/element 200 61ms - 125b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.28541846573352814-1/location
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"943c10a1d330ef9068d45e8554496903\",\"status\":0,\"value\":{\"toString\":{},\"x\":102,\"y\":937}}"
> GET /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.28541846573352814-1/location 200 12ms - 99b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/execute
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/execute","method":"POST","json":{"args":[""],"script":"window.scrollBy(0,102)"}}
> ERROR: debug: Request received with params: {"args":[""],"script":"window.scrollBy(0,102)"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: {"sessionId":"943c10a1d330ef9068d45e8554496903","status":0,"value":null}
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/execute 200 9ms - 85b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.28541846573352814-1/location
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"943c10a1d330ef9068d45e8554496903\",\"status\":0,\"value\":{\"toString\":{},\"x\":102,\"y\":937}}"
> GET /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.28541846573352814-1/location 200 17ms - 99b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.28541846573352814-1/location
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"943c10a1d330ef9068d45e8554496903\",\"status\":0,\"value\":{\"toString\":{},\"x\":102,\"y\":937}}"
> GET /wd/hub/session/943c10a1d330ef9068d45e8554496903/element/0.28541846573352814-1/location 200 13ms - 99b
> ERROR: debug: Appium request initiated at /wd/hub/session/943c10a1d330ef9068d45e8554496903/touch/perform
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/943c10a1d330ef9068d45e8554496903/touch/perform","method":"POST","json":{"actions":[{"action":"press","options":{"y":937,"x":102}},{"action":"wait","options":{"ms":1000}},{"action":"release","options":{}}]}}
> ERROR: debug: Request received with params: {"actions":[{"action":"press","options":{"y":937,"x":102}},{"action":"wait","options":{"ms":1000}},{"action":"release","options":{}}]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Proxied response received with status 404: "unknown command: session/943c10a1d330ef9068d45e8554496903/touch/perform"
> POST /wd/hub/session/943c10a1d330ef9068d45e8554496903/touch/perform 404 3ms - 71b

Not sure why element is taken as fraction. Can you please have a look at it and and correct incase if i have made any mistake.

The code used is as shown below:

import static org.junit.Assert.*;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileDriver;
import io.appium.java_client.TouchAction;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.interactions.HasTouchScreen;
import org.openqa.selenium.interactions.TouchScreen;
import org.openqa.selenium.interactions.internal.Coordinates;
import org.openqa.selenium.interactions.touch.TouchActions;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebElement;
               //driver.executeScript("window.scrollBy(0,200)", "");
               WebElement element = driver.findElement(By.xpath("//a/div/div[contains(text(),'Royal')]"));    
               try {
                driver.executeScript("window.scrollBy(0,"+element.getLocation().getX()+")", "");
Thread.sleep(1000);
 if(element!=null)
 { 
 MobileDriver mDriver=driver;
 TouchAction tap = new TouchAction(mDriver);
 tap.press(element.getLocation().getX(),element.getLocation().getY()).waitAction(1000).release().perform();//unable to perform tap even with tap.press(element).waitAction(1000).release().perform(); 
//int x=element.getLocation().getX();
//int y=element.getLocation().getY();
break;
     }
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
            }
     

Jonah Stiennon

unread,
Aug 12, 2014, 3:23:43 PM8/12/14
to karthik holla, appium-...@googlegroups.com
Can you update to appium v1.2.1?

Also, can you try doing the same tap action, but on a different element where you do not need to scroll? Maybe scrolling changes things.


--
http://appium.io
---
You received this message because you are subscribed to a topic in the Google Groups "Appium-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appium-discuss/qryH9k25qDo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appium-discus...@googlegroups.com.

karthik holla

unread,
Aug 18, 2014, 5:29:50 AM8/18/14
to appium-...@googlegroups.com, chicoo...@gmail.com
Hi Jonah,

Thank you for your honest reply. i downloaded appium 1.2.0.1 and appium 1.2.0.0 and tried to execute the below script:

DesiredCapabilities capabilities = new DesiredCapabilities();
      capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
     // capabilities.setCapability("deviceName", "Default");
      capabilities.setCapability(CapabilityType.VERSION, "4.4.4");
      capabilities.setCapability("deviceName", "hammerhead");
      capabilities.setCapability("platform", "Windows");
      capabilities.setCapability("platformName", "Android");
      capabilities.setCapability("appium-version", "1.2.0.1");
      capabilities.setCapability("appPackage", "com.android.chrome"); // This is package name of your app (you can get it from apk info app)
      capabilities.setCapability("appActivity", "com.google.android.apps.chrome.Main"); // This is Launcher activity of your app (you can get it from apk info app)
      capabilities.setCapability("appWaitActivity","com.google.android.apps.chrome.Main");
      WebDriver driver = new AppiumDriver(new URL("http://localhost:4723/wd/hub"), capabilities);
 
  //driver = new AppiumDriver(new URL("http://localhost:4723/wd/hub"), capabilities);
  //driver.get("http://www.flipkart.com");
      driver.get("http://www.flipkart.com");

The execution failed with the below mentioned server logs:

> Starting Node Server
> info: Welcome to Appium v1.2.0 (REV e53f49c706a25242e66d36685c268b599cc18da5)
> ERROR: debug: Non-default server args: {"address":"127.0.0.1","logNoColors":true,"platformName":"Android","platformVersion":"18","automationName":"Appium"}
> info: Appium REST http interface listener started on 127.0.0.1:4723
> info: LogLevel: debug
> info: --> POST /wd/hub/session {"desiredCapabilities":{"platform":"Windows","deviceName":"hammerhead","platformName":"Android","browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.2.0.1","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Starting android appium
> ERROR: debug: Request received with params: {"desiredCapabilities":{"platform":"Windows","deviceName":"hammerhead","platformName":"Android","browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.2.0.1","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"}}
> ERROR: debug: The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : platform, appium-version, version
> info: Retrieving device
> ERROR: debug: Didn't get app but did get Android package, will attempt to launch it on the device
> ERROR: debug: Creating new appium session 34fd6c73-0c07-4ca2-9770-9bd3c04a11a4
> ERROR: debug: Using fast reset? true
> ERROR: debug: Preparing device for session
> ERROR: debug: Not checking whether app is present since we are assuming it's already on the device
> ERROR: debug: Checking whether adb is present
> ERROR: debug: Using adb from C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe
> ERROR: debug: Trying to find a connected android device
> ERROR: debug: Getting connected devices...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" devices
> ERROR: debug: 1 device(s) connected
> info: Found device 085d3b920c928938
> ERROR: debug: Setting device id to 085d3b920c928938
> ERROR: debug: Waiting for device to be ready and to respond to shell commands (timeout = 5)
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 wait-for-device
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "echo 'ready'"
> ERROR: debug: Starting logcat capture
> ERROR: debug: Getting device API level
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "getprop ro.build.version.sdk"
> ERROR: debug: Device is at API Level 19
> info: Device API level is: 19
> ERROR: debug: Apk doesn't exist locally
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "rm -rf /data/local/tmp/strings.json"
> ERROR: debug: Not uninstalling app since server not started with --full-reset
> ERROR: debug: Skipping install since we launched with a package instead of an app path
> ERROR: debug: Forwarding system:4724 to device:4724
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 forward tcp:4724 tcp:4724
> ERROR: debug: Pushing appium bootstrap to device...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 push "C:\\Users\\mkarthik\\Documents\\selenium\\Appium\\node_modules\\appium\\build\\android_bootstrap\\AppiumBootstrap.jar" /data/local/tmp/
> ERROR: debug: Pushing settings apk to device...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk"
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> info: Starting App
> ERROR: debug: Attempting to kill all 'uiautomator' processes
> ERROR: debug: Getting all processes with 'uiautomator'
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "ps 'uiautomator'"
> ERROR: debug: No matching processes found
> ERROR: debug: Running bootstrap
> ERROR: debug: spawning: C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe -s 085d3b920c928938 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
> ERROR: debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
> ERROR: debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
> ERROR: debug: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
> ERROR: debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
> ERROR: debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
> ERROR: debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
> ERROR: debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
> ERROR: debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
> ERROR: debug: [BOOTSTRAP] [debug] Socket opened on port 4724
> ERROR: debug: [BOOTSTRAP] [debug] Appium Socket Server Ready
> ERROR: debug: [BOOTSTRAP] [debug] Loading json...
> ERROR: debug: Waking up device if it's not alive
> ERROR: debug: Pushing command to appium work queue: ["wake",{}]
> ERROR: debug: [BOOTSTRAP] [debug] Registered crash watchers.
> ERROR: debug: [BOOTSTRAP] [debug] Client connected
> ERROR: debug: [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"wake","params":{}}
> ERROR: debug: [BOOTSTRAP] [debug] Got command of type ACTION
> ERROR: debug: [BOOTSTRAP] [debug] Got command action: wake
> ERROR: debug: [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "dumpsys window"
> ERROR: debug: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\.dumpsys.log
> ERROR: debug: Screen already unlocked, continuing.
> ERROR: debug: Pushing command to appium work queue: ["getDataDir",{}]
> ERROR: debug: [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}
> ERROR: debug: [BOOTSTRAP] [debug] Got command of type ACTION
> ERROR: debug: [BOOTSTRAP] [debug] Got command action: getDataDir
> ERROR: debug: [BOOTSTRAP] [debug] Returning result: {"value":"\/data\/local\/tmp","status":0}
> ERROR: debug: dataDir set to: /data/local/tmp
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.android.chrome/com.google.android.apps.chrome.Main"
> ERROR: debug: Waiting for pkg "com.android.chrome" and activity "com.google.android.apps.chrome.Main" to be focused
> ERROR: debug: Getting focused package and activity
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "dumpsys window windows"
> ERROR: debug: Device launched! Ready for commands
> ERROR: debug: Setting command timeout to the default of 60 secs
> ERROR: debug: Appium session started with sessionId 34fd6c73-0c07-4ca2-9770-9bd3c04a11a4
> info: <-- POST /wd/hub/session 303 8230.025 ms - 9 
> info: --> GET /wd/hub/session/34fd6c73-0c07-4ca2-9770-9bd3c04a11a4 {}
> ERROR: debug: Appium request initiated at /wd/hub/session/34fd6c73-0c07-4ca2-9770-9bd3c04a11a4
> info: <-- GET /wd/hub/session/34fd6c73-0c07-4ca2-9770-9bd3c04a11a4 200 3.728 ms - 773 {"status":0,"value":{"platform":"Windows","browserName":"","platformVersion":"4.1","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"warnings":{},"desired":{"platform":"Windows","deviceName":"hammerhead","platformName":"Android","browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.2.0.1","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"},"deviceName":"hammerhead","platformName":"Android","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.2.0.1","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"},"sessionId":"34fd6c73-0c07-4ca2-9770-9bd3c04a11a4"}
> ERROR: debug: Request received with params: {}
> ERROR: debug: Responding to client with success: {"status":0,"value":{"platform":"Windows","browserName":"","platformVersion":"4.1","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"warnings":{},"desired":{"platform":"Windows","deviceName":"hammerhead","platformName":"Android","browserName":"","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.2.0.1","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"},"deviceName":"hammerhead","platformName":"Android","appActivity":"com.google.android.apps.chrome.Main","appium-version":"1.2.0.1","appWaitActivity":"com.google.android.apps.chrome.Main","appPackage":"com.android.chrome","version":"4.4.4"},"sessionId":"34fd6c73-0c07-4ca2-9770-9bd3c04a11a4"}
> info: --> POST /wd/hub/session/34fd6c73-0c07-4ca2-9770-9bd3c04a11a4/url {"url":"http://www.flipkart.com"}
> ERROR: debug: Appium request initiated at /wd/hub/session/34fd6c73-0c07-4ca2-9770-9bd3c04a11a4/url
> info: <-- POST /wd/hub/session/34fd6c73-0c07-4ca2-9770-9bd3c04a11a4/url 501 3.315 ms - 158 
> ERROR: debug: Request received with params: {"url":"http://www.flipkart.com"}
> ERROR: debug: Responding to client that a method is not implemented


please let me know if i have missed anything. 

Thanks and regards,
M.Karthik
> info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/bbd9cf85844461f2b215d18aac1ff349/url","method":"POST","json":{&
...

Isaac Murchie

unread,
Aug 18, 2014, 1:33:41 PM8/18/14
to karthik holla, appium-...@googlegroups.com
The weird id is fine. That is just ChromeDriver doing its thing.

The problem with your last script is that you never enter into the ChromeDriver context, so nothing will work. In the earlier tests, the problem was that ChromeDriver doesn't support the TouchAction API. Once in ChromeDriver you shouldn't need to scroll. Elements in the web context ought to be findable without scrolling, like in a normal WebDriver test.


You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.

karthik holla

unread,
Aug 19, 2014, 3:04:58 AM8/19/14
to appium-...@googlegroups.com, chicoo...@gmail.com
Hi Issac/Jonah,

I tried to execute the below mentioned script with changing the capabilities. i.r browsername,Chrome. The script executed but failed when it tried to perform a tap action on the element.

Test Script:

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileDriver;
import io.appium.java_client.TouchAction;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.touch.TouchActions;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

public class Trail{
 
 
public static void main(String [] args) throws MalformedURLException, InterruptedException
{
 DesiredCapabilities capabilities = new DesiredCapabilities();
      capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
      capabilities.setCapability("browserName", "Chrome");
     // capabilities.setCapability("deviceName", "Default");
      capabilities.setCapability(CapabilityType.VERSION, "4.4.4");
      capabilities.setCapability("deviceName", "hammerhead");
      //capabilities.setCapability("platform", "Windows");
      capabilities.setCapability("platformName", "Android");
      //capabilities.setCapability("appium-version", "1.0.0.0");
      //capabilities.setCapability("appPackage", "com.android.chrome"); // This is package name of your app (you can get it from apk info app)
     // capabilities.setCapability("appActivity", "com.google.android.apps.chrome.Main"); // This is Launcher activity of your app (you can get it from apk info app)
      //capabilities.setCapability("appWaitActivity","com.google.android.apps.chrome.Main");
      WebDriver driver = new AppiumDriver(new URL("http://localhost:4723/wd/hub"), capabilities);
      Thread.sleep(5000);
 
  //driver = new AppiumDriver(new URL("http://localhost:4723/wd/hub"), capabilities);
  //driver.get("http://www.flipkart.com");
      driver.get("http://www.flipkart.com");
  try {
  Thread.sleep(7000);
  } catch (InterruptedException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
   driver.findElement(By.xpath("//span[text()='No Thanks']")).click();
       driver.findElement(By.xpath("//input[@id='text']")).sendKeys("Moto x");
       try {
    Thread.sleep(7000);
    } catch (InterruptedException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
       
       driver.findElement(By.xpath("//button[@id='_submit']")).click();
       try {
  Thread.sleep(7000);
  } catch (InterruptedException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
      //temporary scroll method
       for (int second = 0;; second++) {
             if(second >=60){
                 break;
             }
                // ((RemoteWebDriver) driver).executeScript("window.scrollBy(0,200)", "");
                 WebElement element = driver.findElement(By.xpath("//a/div/div[contains(text(),'Red')]"));    
                 try {
  Thread.sleep(1000);
   if(element!=null)
   { 
   MobileDriver mDriver=(AppiumDriver)driver;
   TouchAction touch=new TouchAction(mDriver);
   touch.tap(element).perform();
   
   break;
       }
  } catch (InterruptedException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
  }
             }
      System.out.println("done...");
 }
 }

Server logs:

> info: --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"hammerhead","platformName":"Android","browserName":"Chrome","version":"4.4.4"}}
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: <-- POST /wd/hub/session 500 1.318 ms - 246 
> ERROR: debug: Request received with params: {"desiredCapabilities":{"deviceName":"hammerhead","platformName":"Android","browserName":"Chrome","version":"4.4.4"}}
> ERROR: error: Failed to start an Appium session, err was: Error: Requested a new session but one was in progress
> ERROR: debug: Error: Requested a new session but one was in progress
> ERROR:     at Appium.start (C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\lib\appium.js:110:15)
> ERROR:     at Object.exports.createSession [as handle] (C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\lib\server\controller.js:159:16)
> ERROR:     at next_layer (C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\node_modules\express\lib\router\route.js:103:13)
> ERROR:     at Route.dispatch (C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\node_modules\express\lib\router\route.js:107:5)
> ERROR:     at C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\node_modules\express\lib\router\index.js:213:24
> ERROR:     at Function.proto.process_params (C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\node_modules\express\lib\router\index.js:286:12)
> ERROR:     at next (C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\node_modules\express\lib\router\index.js:207:19)
> ERROR:     at next (C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\node_modules\express\lib\router\index.js:182:38)
> ERROR:     at next (C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\node_modules\express\lib\router\index.js:182:38)
> ERROR:     at next (C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\node_modules\express\lib\router\index.js:182:38)
> ERROR: debug: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Requested a new session but one was in progress)","origValue":"Requested a new session but one was in progress"},"sessionId":"2cf771c1f955e24259a3fdb44d51a862"}
> ERROR: debug: Chromedriver exited with code 1
> ERROR: debug: Getting connected devices...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 devices
> ERROR: debug: 1 device(s) connected
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "am force-stop com.android.chrome"
> ERROR: debug: Cleaning up appium session
> info: --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"hammerhead","platformName":"Android","browserName":"Chrome","version":"4.4.4"}}
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Retrieving device
> ERROR: debug: Request received with params: {"desiredCapabilities":{"deviceName":"hammerhead","platformName":"Android","browserName":"Chrome","version":"4.4.4"}}
> ERROR: debug: The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : version
> ERROR: debug: Looks like we want chrome on android
> ERROR: debug: Creating new appium session b0419c35-2860-4e80-812c-eebb69e1557d
> ERROR: debug: Preparing device for session
> ERROR: debug: Not checking whether app is present since we are assuming it's already on the device
> ERROR: debug: Checking whether adb is present
> ERROR: debug: Using adb from C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe
> ERROR: debug: Trying to find a connected android device
> ERROR: debug: Getting connected devices...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" devices
> ERROR: debug: 1 device(s) connected
> ERROR: debug: Setting device id to 085d3b920c928938
> ERROR: debug: Waiting for device to be ready and to respond to shell commands (timeout = 5)
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 wait-for-device
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "echo 'ready'"
> ERROR: debug: Starting logcat capture
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "dumpsys window"
> ERROR: debug: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\.dumpsys.log
> ERROR: debug: Screen already unlocked, continuing.
> ERROR: debug: Creating Chrome session
> ERROR: debug: Ensuring Chromedriver exists
> ERROR: debug: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> ERROR: debug: No old chromedrivers seemed to exist
> ERROR: debug: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> ERROR: debug: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> ERROR: debug: Successfully started chrome session
> info: <-- POST /wd/hub/session 303 8684.994 ms - 9 
> ERROR: debug: Overriding session id with "e8eeaa58e859e2b2e1072f53c859d2d7"
> ERROR: debug: Device launched! Ready for commands
> ERROR: debug: Setting command timeout to the default of 60 secs
> ERROR: debug: Appium session started with sessionId e8eeaa58e859e2b2e1072f53c859d2d7
> info: --> GET /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7 {}
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> info: <-- GET /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7 200 4.068 ms - 475 
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7","method":"GET"}
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"e8eeaa58e859e2b2e1072f53c859d2d7\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"32.0.1700.99\",\"webStorageEnabled\":true}}"
> info: --> POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/url {"url":"http://www.flipkart.com"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/url
> ERROR: debug: Request received with params: {"url":"http://www.flipkart.com"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/url","method":"POST","json":{"url":"http://www.flipkart.com"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e8eeaa58e859e2b2e1072f53c859d2d7","status":0,"value":null}
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/url 200 3973.456 ms - 72 
> info: --> POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element","method":"POST","json":{"using":"xpath","value":"//span[text()='No Thanks']"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e8eeaa58e859e2b2e1072f53c859d2d7","status":0,"value":{"ELEMENT":"0.586061539594084-1"}}
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element 200 92.417 ms - 101 
> info: --> POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-1/click {"id":"0.586061539594084-1"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-1/click
> ERROR: debug: Request received with params: {"id":"0.586061539594084-1"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-1/click","method":"POST","json":{"id":"0.586061539594084-1"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e8eeaa58e859e2b2e1072f53c859d2d7","status":0,"value":null}
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-1/click 200 191.051 ms - 72 
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element
> info: --> POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element","method":"POST","json":{"using":"xpath","value":"//input[@id='text']"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e8eeaa58e859e2b2e1072f53c859d2d7","status":0,"value":{"ELEMENT":"0.586061539594084-2"}}
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element 200 63.674 ms - 101 
> info: --> POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-2/value {"id":"0.586061539594084-2","value":["Moto x"]}
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-2/value
> ERROR: debug: Request received with params: {"id":"0.586061539594084-2","value":["Moto x"]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-2/value","method":"POST","json":{"id":"0.586061539594084-2","value":["Moto x"]}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e8eeaa58e859e2b2e1072f53c859d2d7","status":0,"value":null}
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-2/value 200 289.963 ms - 72 
> info: --> POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element","method":"POST","json":{"using":"xpath","value":"//button[@id='_submit']"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e8eeaa58e859e2b2e1072f53c859d2d7","status":0,"value":{"ELEMENT":"0.586061539594084-3"}}
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element 200 47.649 ms - 101 
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-3/click
> ERROR: debug: Request received with params: {"id":"0.586061539594084-3"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-3/click","method":"POST","json":{"id":"0.586061539594084-3"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e8eeaa58e859e2b2e1072f53c859d2d7","status":0,"value":null}
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element/0.586061539594084-3/click 200 1532.140 ms - 72 
> info: --> POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/execute {"args":[""],"script":"window.scrollBy(0,200)"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/execute
> ERROR: debug: Request received with params: {"args":[""],"script":"window.scrollBy(0,200)"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/execute","method":"POST","json":{"args":[""],"script":"window.scrollBy(0,200)"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e8eeaa58e859e2b2e1072f53c859d2d7","status":0,"value":null}
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/execute 200 29.406 ms - 72 
> info: --> POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element {"using":"xpath","value":"//a/div/div[contains(text(),'Red')]"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//a/div/div[contains(text(),'Red')]"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element","method":"POST","json":{"using":"xpath","value":"//a/div/div[contains(text(),'Red')]"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e8eeaa58e859e2b2e1072f53c859d2d7","status":0,"value":{"ELEMENT":"0.2850979007780552-1"}}
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/element 200 66.646 ms - 102 
> info: --> POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/touch/perform {"actions":[{"action":"tap","options":{"element":"0.2850979007780552-1"}}]}
> ERROR: debug: Appium request initiated at /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/touch/perform
> ERROR: debug: Request received with params: {"actions":[{"action":"tap","options":{"element":"0.2850979007780552-1"}}]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/touch/perform","method":"POST","json":{"actions":[{"action":"tap","options":{"element":"0.2850979007780552-1"}}]}}
> ERROR: debug: Proxied response received with status 404: "unknown command: session/e8eeaa58e859e2b2e1072f53c859d2d7/touch/perform"
> info: <-- POST /wd/hub/session/e8eeaa58e859e2b2e1072f53c859d2d7/touch/perform 404 3.528 ms - 71 
> ERROR: debug: Chromedriver exited with code 1
> ERROR: debug: Getting connected devices...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 devices
> ERROR: debug: 1 device(s) connected
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "am force-stop com.android.chrome"
> ERROR: debug: Cleaning up appium session
> info: --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"hammerhead","platformName":"Android","browserName":"Chrome","version":"4.4.4"}}
> ERROR: debug: Appium request initiated at /wd/hub/session
> info: Retrieving device
> ERROR: debug: Request received with params: {"desiredCapabilities":{"deviceName":"hammerhead","platformName":"Android","browserName":"Chrome","version":"4.4.4"}}
> ERROR: debug: The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : version
> ERROR: debug: Looks like we want chrome on android
> ERROR: debug: Creating new appium session 557efaa0-11ef-48bd-b2cf-28d5873055d3
> ERROR: debug: Preparing device for session
> ERROR: debug: Not checking whether app is present since we are assuming it's already on the device
> ERROR: debug: Checking whether adb is present
> ERROR: debug: Using adb from C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe
> ERROR: debug: Trying to find a connected android device
> ERROR: debug: Getting connected devices...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" devices
> ERROR: debug: 1 device(s) connected
> info: Found device 085d3b920c928938
> ERROR: debug: Setting device id to 085d3b920c928938
> ERROR: debug: Waiting for device to be ready and to respond to shell commands (timeout = 5)
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 wait-for-device
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "echo 'ready'"
> ERROR: debug: Starting logcat capture
> ERROR: debug: Pushing unlock helper app to device...
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 install "C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> ERROR: debug: executing: "C:\Users\mkarthik\Documents\selenium\android\adt-bundle-windows-x86_64-20130911\sdk\platform-tools\adb.exe" -s 085d3b920c928938 shell "dumpsys window"
> ERROR: debug: Writing dumpsys output to C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\.dumpsys.log
> ERROR: debug: Screen already unlocked, continuing.
> ERROR: debug: Creating Chrome session
> ERROR: debug: Ensuring Chromedriver exists
> ERROR: debug: Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"9515 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %b))
> ERROR: debug: No old chromedrivers seemed to exist
> ERROR: debug: Spawning chromedriver with: C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\build\chromedriver\windows\chromedriver.exe
> ERROR: debug: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248315) on port 9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"085d3b920c928938"}}}}
> ERROR: debug: Successfully started chrome session
> info: <-- POST /wd/hub/session 303 8591.097 ms - 9 
> ERROR: debug: Overriding session id with "e52d2ea229c2937edfbf7e4fb69baac5"
> ERROR: debug: Device launched! Ready for commands
> ERROR: debug: Setting command timeout to the default of 60 secs
> ERROR: debug: Appium session started with sessionId e52d2ea229c2937edfbf7e4fb69baac5
> info: --> GET /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5 {}
> ERROR: debug: Appium request initiated at /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5
> ERROR: debug: Request received with params: {}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5","method":"GET"}
> ERROR: debug: Proxied response received with status 200: "{\"sessionId\":\"e52d2ea229c2937edfbf7e4fb69baac5\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"32.0.1700.99\",\"webStorageEnabled\":true}}"
> info: <-- GET /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5 200 4.462 ms - 475 
> info: --> POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/url {"url":"http://www.flipkart.com"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/url
> ERROR: debug: Request received with params: {"url":"http://www.flipkart.com"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/url","method":"POST","json":{"url":"http://www.flipkart.com"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e52d2ea229c2937edfbf7e4fb69baac5","status":0,"value":null}
> info: <-- POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/url 200 1047.588 ms - 72 
> info: --> POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//span[text()='No Thanks']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element","method":"POST","json":{"using":"xpath","value":"//span[text()='No Thanks']"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e52d2ea229c2937edfbf7e4fb69baac5","status":0,"value":{"ELEMENT":"0.4059342839755118-1"}}
> info: <-- POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element 200 79.167 ms - 102 
> info: --> POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-1/click {"id":"0.4059342839755118-1"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-1/click
> ERROR: debug: Request received with params: {"id":"0.4059342839755118-1"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-1/click","method":"POST","json":{"id":"0.4059342839755118-1"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e52d2ea229c2937edfbf7e4fb69baac5","status":0,"value":null}
> info: <-- POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-1/click 200 160.875 ms - 72 
> ERROR: debug: Appium request initiated at /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element","method":"POST","json":{"using":"xpath","value":"//input[@id='text']"}}
> info: --> POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element {"using":"xpath","value":"//input[@id='text']"}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e52d2ea229c2937edfbf7e4fb69baac5","status":0,"value":{"ELEMENT":"0.4059342839755118-2"}}
> info: <-- POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element 200 79.243 ms - 102 
> info: --> POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-2/value {"id":"0.4059342839755118-2","value":["Moto x"]}
> ERROR: debug: Appium request initiated at /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-2/value
> ERROR: debug: Request received with params: {"id":"0.4059342839755118-2","value":["Moto x"]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-2/value","method":"POST","json":{"id":"0.4059342839755118-2","value":["Moto x"]}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e52d2ea229c2937edfbf7e4fb69baac5","status":0,"value":null}
> info: <-- POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-2/value 200 336.727 ms - 72 
> info: --> POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Request received with params: {"using":"xpath","value":"//button[@id='_submit']"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element","method":"POST","json":{"using":"xpath","value":"//button[@id='_submit']"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e52d2ea229c2937edfbf7e4fb69baac5","status":0,"value":{"ELEMENT":"0.4059342839755118-3"}}
> info: <-- POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element 200 98.553 ms - 102 
> info: --> POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-3/click {"id":"0.4059342839755118-3"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-3/click
> ERROR: debug: Request received with params: {"id":"0.4059342839755118-3"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-3/click","method":"POST","json":{"id":"0.4059342839755118-3"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e52d2ea229c2937edfbf7e4fb69baac5","status":0,"value":null}
> info: <-- POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element/0.4059342839755118-3/click 200 2948.798 ms - 72 
> info: --> POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element {"using":"xpath","value":"//a/div/div[contains(text(),'Red')]"}
> ERROR: debug: Appium request initiated at /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element
> ERROR: debug: Request received with params: {"using":"xpath","value":"//a/div/div[contains(text(),'Red')]"}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element","method":"POST","json":{"using":"xpath","value":"//a/div/div[contains(text(),'Red')]"}}
> ERROR: debug: Proxied response received with status 200: {"sessionId":"e52d2ea229c2937edfbf7e4fb69baac5","status":0,"value":{"ELEMENT":"0.31522317440249026-1"}}
> info: <-- POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/element 200 93.370 ms - 103 
> ERROR: debug: Appium request initiated at /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/touch/perform
> ERROR: debug: Request received with params: {"actions":[{"action":"tap","options":{"element":"0.31522317440249026-1"}}]}
> ERROR: debug: Proxying command to 127.0.0.1:9515
> ERROR: debug: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/touch/perform","method":"POST","json":{"actions":[{"action":"tap","options":{"element":"0.31522317440249026-1"}}]}}
> ERROR: debug: Proxied response received with status 404: "unknown command: session/e52d2ea229c2937edfbf7e4fb69baac5/touch/perform"
> info: <-- POST /wd/hub/session/e52d2ea229c2937edfbf7e4fb69baac5/touch/perform 404 19.868 ms - 71 

Appium: 1.2.0.1
Device: Nexus 5

Issac,
Does any touch action work on real devices? Please advice and suggest any changes needs to be done to overcome this issue.

Regards,
M.Karthik
...

Isaac Murchie

unread,
Aug 19, 2014, 1:14:25 PM8/19/14
to karthik holla, appium-...@googlegroups.com
Yes. ChromeDriver does not support the TouchAction API. Have a look around at how to do gestures in ChromeDriver. Once you are in a web view context, the commands are just proxied to it.


--

karthik holla

unread,
Aug 20, 2014, 4:36:16 AM8/20/14
to appium-...@googlegroups.com, chicoo...@gmail.com
Hi Issac,

Thank you for confirming that touch action do not work on chrome. 
I tried to search how to perform gestures on chrome i did not get any result.
May be is searched wrong. As i am new to appium could you please share any link which has solution to this problem.??
Will try the solution accordingly. Thanks in advance.

Regards,
M.Karthik
...

Jonah Stiennon

unread,
Aug 20, 2014, 12:13:21 PM8/20/14
to karthik holla, appium-...@googlegroups.com
Try these instructions. It's the way that selenium does Touch Actions currently:

At some point they will update to doing it using the new TouchAction api that appium uses.


--
http://appium.io
---
You received this message because you are subscribed to a topic in the Google Groups "Appium-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appium-discuss/qryH9k25qDo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appium-discus...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages