Selendroid not clicking an element in NATIVE APP mode, I couldn't able to find the issue please anyone resolve the issue

My Environment:

Win 7, Appium 1.4, Android 4.2.2, API 17, Automation: selendroid, App:Hybrid

Selendroid not clicking an element in NATIVE APP mode, I couldn’t able to find the issue please anyone resolve the issue

I Highlighted the element in this log and below are the xpath I used in the script

   driver.findElement(By.xpath("//android.widget.Button[@text='OK']")).click();  or 

   driver.findElement(By.xpath("//*[@text='OK']")).click();

Note: This piece of code working in Appium automation.

Log:-

info: [debug] Selendroid server is alive!
info: [debug] Listening for Selendroid logs
info: [debug] Creating Selendroid session
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/session",“method”:“POST”,“json”:{“desiredCapabilities”:{“warnings”:{},“desired”:{“app”:“D:\\Appium\\AppTest\\com.thehomedepot.apk”,“appActivity”:“com.thehomedepot.startup.activities.StartupActivity”,“appium-version”:“1.4”,“newCommandTimeout”:“180”,“platformVersion”:“4.4.4”,“automationName”:“selendroid”,“platformName”:“Android”,“deviceName”:“ZX1D646XB2”},“app”:“D:\\Appium\\AppTest\\com.thehomedepot.apk”,“appActivity”:“com.thehomedepot.startup.activities.StartupActivity”,“appium-version”:“1.4”,“newCommandTimeout”:“180”,“platformVersion”:“4.4.4”,“automationName”:“selendroid”,“platformName”:“Android”,“deviceName”:"ZX1D646XB2”}}}
info: [debug] [SELENDROID] [CDS]close[8080]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:8080]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:-1]
info: [debug] Successfully started selendroid session
info: [debug] Waiting for pkg “com.thehomedepot” and activity “com.thehomedepot.startup.activities.StartupActivity” to be focused
info: [debug] Getting focused package and activity
info: [debug] executing cmd: D:\Appium\AndroidSDK\sdk\platform-tools\adb.exe -s 0123456789ABCDEF shell “dumpsys window windows”
info: [debug] [SELENDROID] [CDS]close[8080]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:8080]
info: [debug] [SELENDROID] [socket][/192.168.0.105:46194] connected
info: [debug] [SELENDROID] [socket][/192.168.0.105:33887] connected
info: [debug] [SELENDROID] [CDS]rx timeout:10000
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][3] connection /54.235.115.126:443;LocalPort=52418(0)
info: [debug] [SELENDROID] [CDS]connect[/54.235.115.126:443] tm:90
info: [debug] [SELENDROID] [socket][/192.168.0.105:52418] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][4] connection device-api.urbanairship.com/23.61.80.184:443;LocalPort=51473(0)
info: [debug] [SELENDROID] [CDS]connect[device-api.urbanairship.com/23.61.80.184:443] tm:90
info: [debug] [SELENDROID] [socket][/192.168.0.105:51473] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] Overriding session id with “a12b254a-dae1-c813-9533-1466bd5b62ee”
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to 180 secs
info: [debug] Appium session started with sessionId a12b254a-dae1-c813-9533-1466bd5b62ee
info: ← POST /wd/hub/session 303 23450.299 ms - 74
info: → GET /wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee {}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee",“method”:"GET”}
info: [debug] [SELENDROID] close [socket][/0.0.0.0:-1]
info: [debug] Proxied response received with status 200: {“value”:{“automationName”:“selendroid”,“platform”:“android”,“app”:“D:\Appium\AppTest\com.thehomedepot.apk”,“acceptSslCerts”:true,“javascriptEnabled”:true,“browserName”:“selendroid”,“appActivity”:“com.thehomedepot.startup.activities.StartupActivity”,“networkConnectionEnabled”:true,“rotatable”:true,“desired”:{“newCommandTimeout”:“180”,“automationName”:“selendroid”,“app”:“D:\Appium\AppTest\com.thehomedepot.apk”,“platformVersion”:“4.4.4”,“platformName”:“Android”,“deviceName”:“ZX1D646XB2”,“appActivity”:“com.thehomedepot.startup.activities.StartupActivity”,“appium-version”:“1.4”},“version”:“0.13.0”,“newCommandTimeout”:“180”,“platformVersion”:“17”,“platformName”:“android”,“deviceName”:“ZX1D646XB2”,“handlesAlerts”:true,“appium-version”:“1.4”,“warnings”:{},“takesScreenshot”:true},“status”:0,“sessionId”:“a12b254a-dae1-c813-9533-1466bd5b62ee”}
info: ← GET /wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee 200 57.612 ms - 851
info: [debug] [SELENDROID] [CDS]close[8080]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:8080]
info: → POST /wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee/timeouts/implicit_wait {“ms”:180000}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee/timeouts/implicit_wait",“method”:“POST”,“json”:{"ms”:180000}}
info: [debug] [SELENDROID] close [socket][/0.0.0.0:-1]
info: [debug] Proxied response received with status 200: {“value”:“”,“status”:0,“sessionId”:“a12b254a-dae1-c813-9533-1466bd5b62ee”}
info: ← POST /wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee/timeouts/implicit_wait 200 32.100 ms - 74
info: [debug] [SELENDROID] [CDS]close[8080]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:8080]
info: → POST /wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee/window {“name”:“NATIVE_APP”}
info: [debug] Proxying command to localhost:8080
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee/window",“method”:“POST”,“json”:{“name”:"NATIVE_APP”}}
info: [debug] [SELENDROID] close [socket][/0.0.0.0:-1]
info: [debug] Proxied response received with status 200: {“value”:“”,“status”:0,“sessionId”:“a12b254a-dae1-c813-9533-1466bd5b62ee”}
info: ← POST /wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee/window 200 22.278 ms - 74
info: [debug] [SELENDROID] [CDS]close[8080]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:8080]
info: [debug] [SELENDROID] >doSendRequest
info: [debug] [SELENDROID] [CDS]rx timeout:20000
info: [debug] [SELENDROID] [CDS]rx timeout:20000
info: [debug] [SELENDROID] <doSendRequest
info: [debug] [SELENDROID] >doSendRequest
info: [debug] [SELENDROID] <doSendRequest
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][5] connection /54.235.115.126:443;LocalPort=47224(0)
info: [debug] [SELENDROID] [CDS]connect[/54.235.115.126:443] tm:90
info: [debug] [SELENDROID] [socket][/192.168.0.105:47224] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] >doSendRequest
info: [debug] [SELENDROID] <doSendRequest
info: [debug] [SELENDROID] [CDS]close[52418]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:52418]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [CDS]rx timeout:20000
info: [debug] [SELENDROID] [socket][6] connection hdcontent.homedepot.com/207.11.34.199:443;LocalPort=49477(20000)
info: [debug] [SELENDROID] [CDS]connect[hdcontent.homedepot.com/207.11.34.199:443] tm:20
info: [debug] [SELENDROID] [socket][/192.168.0.105:49477] connected
info: [debug] [SELENDROID] [CDS]rx timeout:20000
info: [debug] [SELENDROID] [CDS]rx timeout:20000
> info: → POST /wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee/element {“using”:“xpath”,“value”:“//*[@text=‘OK’]”}
> info: [debug] Proxying command to localhost:8080
> info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/session/a12b254a-dae1-c813-9533-1466bd5b62ee/element",“method”:“POST”,“json”:{“using”:“xpath”,“value”:"//*[@text=‘OK’]”}}
info: [debug] [SELENDROID] close [socket][/0.0.0.0:-1]
info: [debug] [SELENDROID] [CDS]close[47224]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:47224]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][7] connection apm.crittercism.com/54.241.32.29:443;LocalPort=36154(2500)
info: [debug] [SELENDROID] [CDS]connect[apm.crittercism.com/54.241.32.29:443] tm:2
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][8] connection txn.ingest.crittercism.com/54.193.212.11:443;LocalPort=53367(2500)
info: [debug] [SELENDROID] [CDS]connect[txn.ingest.crittercism.com/54.193.212.11:443] tm:2
info: [debug] [SELENDROID] [socket][/192.168.0.105:36154] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] [socket][/192.168.0.105:53367] connected
info: [debug] [SELENDROID] [CDS]rx timeout:2500
info: [debug] [SELENDROID] [CDS]close[36154]
info: [debug] [SELENDROID] [CDS]close[53367]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:53367]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:53367]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:36154]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:36154]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][9] connection apm.crittercism.com/54.241.32.29:443;LocalPort=46775(2500)
info: [debug] [SELENDROID] [CDS]connect[apm.crittercism.com/54.241.32.29:443] tm:2
info: [debug] [SELENDROID] [socket][/192.168.0.105:46775] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] [CDS]close[46775]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:46775]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:46775]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][10] connection /54.235.115.126:443;LocalPort=45444(0)
info: [debug] [SELENDROID] [CDS]connect[/54.235.115.126:443] tm:90
info: [debug] [SELENDROID] [socket][/192.168.0.105:45444] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] >doSendRequest
info: [debug] [SELENDROID] <doSendRequest
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][11] connection apm.crittercism.com/54.241.32.29:443;LocalPort=42755(2500)
info: [debug] [SELENDROID] [CDS]connect[apm.crittercism.com/54.241.32.29:443] tm:2
info: [debug] [SELENDROID] [CDS]close[45444]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:45444]
info: [debug] [SELENDROID] [socket][/192.168.0.105:42755] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] [CDS]close[42755]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:42755]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:42755]
info: [debug] [SELENDROID] [CDS]rx timeout:60000
info: [debug] [SELENDROID] [CDS]close[39108]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:39108]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:39108]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][44] connection www.google.com/216.58.220.36:443;LocalPort=45343(60000)
info: [debug] [SELENDROID] [CDS]connect[www.google.com/216.58.220.36:443] tm:60
info: [debug] [SELENDROID] [socket][/192.168.0.105:45343] connected
info: [debug] [SELENDROID] [CDS]rx timeout:60000
info: [debug] [SELENDROID] [CDS]rx timeout:60000
info: [debug] [SELENDROID] [CDS]rx timeout:60000
info: [debug] [SELENDROID] [CDS]rx timeout:60000
info: [debug] [SELENDROID] [CDS]rx timeout:60000
info: [debug] [SELENDROID] [CDS]close[0]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][12] connection combine.urbanairship.com/23.61.80.184:443;LocalPort=41205(0)
info: [debug] [SELENDROID] [CDS]connect[combine.urbanairship.com/23.61.80.184:443] tm:90
info: [debug] [SELENDROID] [socket][/192.168.0.105:41205] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] [CDS]close[41205]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:41205]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:41205]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][13] connection apm.crittercism.com/54.241.32.28:443;LocalPort=33351(2500)
info: [debug] [SELENDROID] [CDS]connect[apm.crittercism.com/54.241.32.28:443] tm:2
info: [debug] [SELENDROID] [socket][/192.168.0.105:33351] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] [CDS]close[33351]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:33351]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:33351]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][14] connection /54.235.115.126:443;LocalPort=37019(0)
info: [debug] [SELENDROID] [CDS]connect[/54.235.115.126:443] tm:90
info: [debug] [SELENDROID] [socket][/192.168.0.105:37019] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] >doSendRequest
info: [debug] [SELENDROID] <doSendRequest
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][15] connection apm.crittercism.com/54.241.32.28:443;LocalPort=54138(2500)
info: [debug] [SELENDROID] [CDS]connect[apm.crittercism.com/54.241.32.28:443] tm:2
info: [debug] [SELENDROID] [socket][/192.168.0.105:54138] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] [CDS]close[37019]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:37019]
info: [debug] [SELENDROID] [CDS]close[54138]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:54138]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:54138]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][16] connection /107.20.162.33:443;LocalPort=33909(0)
info: [debug] [SELENDROID] [CDS]connect[/107.20.162.33:443] tm:90
info: [debug] [SELENDROID] [socket][/192.168.0.105:33909] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] >doSendRequest
info: [debug] [SELENDROID] <doSendRequest
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][17] connection apm.crittercism.com/54.241.32.30:443;LocalPort=51780(2500)
info: [debug] [SELENDROID] [CDS]connect[apm.crittercism.com/54.241.32.30:443] tm:2
info: [debug] [SELENDROID] [socket][/192.168.0.105:51780] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] [CDS]close[51780]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:51780]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:51780]
info: [debug] [SELENDROID] [CDS]close[33909]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:33909]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][18] connection /107.20.162.33:443;LocalPort=50887(0)
info: [debug] [SELENDROID] [CDS]connect[/107.20.162.33:443] tm:90
info: [debug] [SELENDROID] [socket][/192.168.0.105:50887] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] >doSendRequest
info: [debug] [SELENDROID] <doSendRequest
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][19] connection apm.crittercism.com/54.241.32.30:443;LocalPort=41930(2500)
info: [debug] [SELENDROID] [CDS]connect[apm.crittercism.com/54.241.32.30:443] tm:2
info: [debug] [SELENDROID] [socket][/192.168.0.105:41930] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] [CDS]close[50887]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:50887]
info: [debug] [SELENDROID] [CDS]close[41930]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:41930]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:41930]
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][20] connection /107.20.162.33:443;LocalPort=34938(0)
info: [debug] [SELENDROID] [CDS]connect[/107.20.162.33:443] tm:90
info: [debug] [SELENDROID] [socket][/192.168.0.105:34938] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] >doSendRequest
info: [debug] [SELENDROID] <doSendRequest
info: [debug] [SELENDROID] propertyValue:true
info: [debug] [SELENDROID] [socket][21] connection apm.crittercism.com/54.241.32.31:443;LocalPort=34748(2500)
info: [debug] [SELENDROID] [CDS]connect[apm.crittercism.com/54.241.32.31:443] tm:2
info: [debug] [SELENDROID] [socket][/192.168.0.105:34748] connected
info: [debug] [SELENDROID] [CDS]rx timeout:0
info: [debug] [SELENDROID] [CDS]close[34938]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:34938]
info: [debug] [SELENDROID] [CDS]close[34748]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:34748]
info: [debug] [SELENDROID] close [socket][/0.0.0.0:34748]
info: [debug] Didn’t get a new command in 180 secs, shutting down…