Hi Friends,
I am unable to tap burger menu button in my application on ios real device.
When I am using recored mode and tapping the button I am getting the below code.
“wd.findElement(By.xpath(”//UIAApplication[1]/UIAWindow[1]/UIAButton[1]")).click();"
But when I am try to run the above code in eclipse, I am getting the below error.
Exception in thread “main” org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.62 seconds
Appium Error:
info: [debug] Socket data received (38 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:0,“value”:{“ELEMENT”:“2”}}
info: [debug] Responding to client with success: {“status”:0,“value”:{“ELEMENT”:“2”},“sessionId”:“be995440-e631-404b-8e02-50b645af9c62”}
info: <-- POST /wd/hub/session/be995440-e631-404b-8e02-50b645af9c62/element 200 5350.795 ms - 87 {“status”:0,“value”:{“ELEMENT”:“2”},“sessionId”:“be995440-e631-404b-8e02-50b645af9c62”}
info: --> POST /wd/hub/session/be995440-e631-404b-8e02-50b645af9c62/element/2/click {“id”:“2”}
info: [debug] Pushing command to appium work queue: “au.tapById(‘2’)”
info: [debug] Sending command to instruments: au.tapById(‘2’)
info: [debug] [INST] 2015-05-29 09:50:16 +0000 Debug: Got new command 11 from instruments: au.tapById(‘2’)
info: [debug] [INST] 2015-05-29 09:50:16 +0000 Debug: evaluating au.tapById(‘2’)
info: [debug] [INST] 2015-05-29 09:50:16 +0000 Debug: target.frontMostApp().elements()[0].elements()[5].tap()
info: [debug] [INST] 2015-05-29 09:50:17 +0000 Debug: target.frontMostApp().elements()[0].elements()[5] could not be tapped
info: [debug] [INST] 2015-05-29 09:50:17 +0000 Error: VerboseError: elementId 2 could not be tapped
info: [debug] Socket data received (57 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {“status”:13,“value”:“elementId 2 could not be tapped”}
info: [debug] Responding to client with error: {“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command.”,“origValue”:“elementId 2 could not be tapped”},“sessionId”:“be995440-e631-404b-8e02-50b645af9c62”}
info: <-- POST /wd/hub/session/be995440-e631-404b-8e02-50b645af9c62/element/2/click 500 1499.982 ms - 200
info: [debug] [INST] 2015-05-29 09:50:17 +0000 Error: Error during eval: tapById@file:///Applications/Appium.app/Contents/Resources/node_modules/appium/264AE760-8A5F-495F-8786-800014F0807D/bootstrap-2911698fabce8e2c.js:1110:25
info: [debug] [INST] eval code
info: [debug] [INST] eval@[native code]
info: [debug] [INST] startProcessing@file:///Applications/Appium.app/Contents/Resources/node_modules/appium/264AE760-8A5F-495F-8786-800014F0807D/bootstrap-2911698fabce8e2c.js:2685:30
bootstrap@file:///Applications/Appium.app/Contents/Resources/node_modules/appium/264AE760-8A5F-495F-8786-800014F0807D/bootstrap-2911698fabce8e2c.js:2753:31
global code@file:///Applications/Appium.app/Contents/Resources/node_modules/appium/264AE760-8A5F-495F-8786-800014F0807D/bootstrap-2911698fabce8e2c.js:2762:10
info: [debug] [INST] 2015-05-29 09:50:17 +0000 Debug: responding with:
info: [debug] [INST] 2015-05-29 09:50:17 +0000 Debug: Running system command #12: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:13,“value”:“elementId 2 could not be tapped”}…