Appium Safari test hangs and didn't finish - ios

I'm running an Appium simple test using Safari on iOS simulator on Mac with the latest version of Xcode and Appium
but sometimes the test hangs with the message "Let's browse", nothing happens on the simulator or appium GUI....
Screenshot
Here is my tests code
DesiredCapabilities capabilities = new DesiredCapabilities();
//Emulator
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6");
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "9.2");
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "Safari");
//driver = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
#Test
public void WebPageFormTest() throws Exception {
driver.get("http://saucelabs.com/test/guinea-pig");
Thread.sleep(2000);
WebElement idElement = driver.findElement(By.id("i_am_an_id"));
assertNotNull(idElement);
assertEquals("I am a div", idElement.getText());
WebElement commentElement = driver.findElement(By.id("comments"));
assertNotNull(commentElement);
commentElement.sendKeys("This is an awesome comment");
WebElement submitElement = driver.findElement(By.id("submit"));
assertNotNull(submitElement);
submitElement.click();
Thread.sleep(2000);
WebElement yourCommentsElement = driver.findElement(By.id("your_comments"));
assertNotNull(yourCommentsElement);
assertTrue(driver.findElement(By.id("your_comments")).getText().contains("This is an awesome comment"));
System.out.println(driver.getCurrentUrl());
}
Here is the log info
ionIdentifierKey":"6731e33c-c389-4d09-994c-f78fb7e22110"},"__selector":"_rpc_reportIdentifier:"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRSimulatorBuildKey":"13C75","WIRSimulatorProductVersionKey":"9.2","WIRSimulatorNameKey":"iPhone"},"__selector":"_rpc_reportSetup:"}
info: [debug] [REMOTE] Sim name: iPhone
info: [debug] [REMOTE] Sim build: 13C75
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRApplicationDictionaryKey":{"PID:30210":{"WIRApplicationIdentifierKey":"PID:30210","WIRIsApplicationProxyKey":false,"WIRApplicationNameKey":"Safari","WIRApplicationBundleIdentifierKey":"com.apple.mobilesafari","WIRIsApplicationActiveKey":1}}},"__selector":"_rpc_reportConnectedApplicationList:"}
info: [debug] Using remote debugger app key: PID:30210
info: [debug] [REMOTE] Selecting app PID:30210 (try #1 of 8)
info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"6731e33c-c389-4d09-994c-f78fb7e22110","WIRApplicationIdentifierKey":"PID:30210"},"__selector":"_rpc_forwardGetListing:"}
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:30223","WIRIsApplicationProxyKey":true,"WIRApplicationNameKey":"","WIRApplicationBundleIdentifierKey":"com.apple.WebKit.WebContent","WIRIsApplicationActiveKey":1,"WIRHostApplicationIdentifierKey":"PID:30210"},"__selector":"_rpc_applicationConnected:"}
info: [REMOTE] We were notified we connected to possibly the wrong app. Using the id key suggested and trying again
info: [debug] [REMOTE] Selecting app PID:30223 (try #2 of 8)
info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"6731e33c-c389-4d09-994c-f78fb7e22110","WIRApplicationIdentifierKey":"PID:30223"},"__selector":"_rpc_forwardGetListing:"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:30230","WIRIsApplicationProxyKey":true,"WIRApplicationNameKey":"","WIRApplicationBundleIdentifierKey":"com.apple.WebKit.WebContent","WIRIsApplicationActiveKey":1,"WIRHostApplicationIdentifierKey":"PID:30210"},"__selector":"_rpc_applicationConnected:"}
info: [REMOTE] We were notified we connected to possibly the wrong app. Using the id key suggested and trying again
info: [debug] [REMOTE] Selecting app PID:30230 (try #3 of 8)
info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"6731e33c-c389-4d09-994c-f78fb7e22110","WIRApplicationIdentifierKey":"PID:30230"},"__selector":"_rpc_forwardGetListing:"}
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:30210","WIRListingKey":{}},"__selector":"_rpc_applicationSentListing:"}
info: [REMOTE] Empty page dictionary received. Trying again.
info: [debug] [REMOTE] Se
lecting app PID:30230 (try #4 of 8)
info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"6731e33c-c389-4d09-994c-f78fb7e22110","WIRApplicationIdentifierKey":"PID:30230"},"__selector":"_rpc_forwardGetListing:"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:30223","WIRListingKey":{"1":{"WIRTitleKey":"Appium/welcome","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"http://127.0.0.1:4723/welcome","WIRPageIdentifierKey":1}}},"__selector":"_rpc_applicationSentListing:"}
info: [debug] [REMOTE] Connected to app PID:30223 [[{"id":1,"title":"Appium/welcome","url":"http://127.0.0.1:4723/welcome","isKey":false}]]
info: [debug] Picking webview WEBVIEW_1
info: [debug] Attempting to set context to 'WEBVIEW_1'
info: [debug] [REMOTE] Selecting page 1 and forwarding socket setup
info: [debug] [REMOTE] Sending _rpc_forwardSocketSetup: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:30230","WIRConnectionIdentifierKey":"6731e33c-c389-4d09-994c-f78fb7e22110","WIRSenderKey":"6818a56b-8c02-4491-b1d9-872c88a69678","WIRPageIdentifierKey":1},"__selector":"_rpc_forwardSocketSetup:"}
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:30230","WIRListingKey":{"1":{"WIRTitleKey":"Google","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"https://www.google.com/?client=safari&channel=iphone_bm","WIRPageIdentifierKey":1}}},"__selector":"_rpc_applicationSentListing:"}
info: [debug] Remote debugger notified us of a new page listing
info: [debug] We don't appear to have window set yet, ignoring
info: [debug] [REMOTE] Set sender key
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:30230","WIRListingKey":{"1":{"WIRTitleKey":"Google","WIRTypeKey":"WIRTypeWeb","WIRURLKey":"https://www.google.com/?client=safari&channel=iphone_bm","WIRPageIdentifierKey":1}}},"__selector":"_rpc_applicationSentListing:"}
info: [debug] Remote debugger notified us of a new page listing
info: [debug] We don't appear to have window set yet, ignoring
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] Enabled activity on page
info: [debug] [REMOTE] Unregistering from page readiness notifications
info: [debug] [REMOTE] Page loading
info: [debug] [REMOTE] Waiting for dom...
info: [debug] [REMOTE] Page loaded, verifying whether ready through readyState
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"PID:30230","WIRIsApplicationProxyKey":true,"WIRApplicationNameKey":"","WIRApplicationBundleIdentifierKey":"com.apple.WebKit.WebContent","WIRIsApplicationActiveKey":1,"WIRHostApplicationIdentifierKey":"PID:30210"},"__selector":"_rpc_applicationDisconnected:"}
info: [debug] [REMOTE] Checking document readyState
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"3a82a9f1-703f-4112-aa57-b39da2e69293"}
info: <-- GET /wd/hub/status 200 6.989 ms - 179 {"status":0,"value":{"build":{"version":"1.4.13","revision":"c75d8adcb66a75818a542fe1891a34260c21f76a"},"isShuttingDown":false},"sessionId":"3a82a9f1-703f-4112-aa57-b39da2e69293"}
info: --> GET /wd/hub/status {}

Related

Getting Text field Appium for iOS

I am trying to access the text field of the login page of my app in appium test case. Currently i am using "Restoration Id" to identify the text field and using it as a unique identifier.
Currently appium is not able to find the text field through "Restoration Id" and giving error
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":""}
info: [debug] Id selector, 'com.myapps.myappDummyName:id\/loginButton', not found in Localizable.strings.
info: [debug] Pushing command to appium work queue: "au.getElementById('com.myapps.myappDummyName:id\\/loginButton')"
info: [debug] Sending command to instruments: au.getElementById('com.myapps.myappDummyName:id\/loginButton')
info: [debug] [INST] 2016-05-17 12:54:11 +0000 Debug: Got new command 68 from instruments: au.getElementById('com.myapps.myappDummyName:id\/loginButton')
info: [debug] [INST] 2016-05-17 12:54:11 +0000 Debug: evaluating au.getElementById('com.myapps.myappDummyName:id\/loginButton')
info: [debug] [INST] 2016-05-17 12:54:11 +0000 Debug: evaluation finished
info: [debug] [INST] 2016-05-17 12:54:11 +0000 Debug: responding with:
info: [debug] [INST] 2016-05-17 12:54:11 +0000 Debug: Running system command #69: /usr/local/Cellar/node/5.6.0/bin/node /Users/Harry/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}...
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":""}
info: [debug] Condition unmet after 6942ms. Timing out.
info: [debug] Responding to client with error: {"status":7,"value":{"message":"An element could not be located on the page using the given search parameters.","origValue":""},"sessionId":"345b24b8-82da-31da-85c1-45ae33325c15"}
Can some one tell how can i get the text field by using the method findElementById() and passing unique id to it. How can i get that id from UITextField in storyboard and where to specify that id in story board.
WebElement textField = driver.findElement(By.id("<resource-id of element>"));
This line of code shall let you have an element out of your text field if you specify the id correctly.
To what I can read out of logs :
info: [debug] Id selector, 'com.myapps.myappDummyName:id/loginButton',
not found in Localizable.strings.
You are probably using incorrect id string to access the element.
Also, I hope you are not facing this : IOS Storyboards: Restoration ID just like Storyboard ID?

Appium sendKeys doesn't work for iPhone 6

I setup the Appium for UI iOS testing. But I failed to get the sendKeys work at all. My testing environment:
OSX 10.10.2
Appium 1.3.6
Xcode 6.2
iPhone 6 (8.1) simulator, the softkey is default to be shown
I tried to "Send Keys" in Appium. But nothing happened. The log in Appium shows no error at all.
Here is the script: (Objective-C)
[[wd findElementBy:[SEBy xPath:#"//UIAApplication[1]/UIAWindow[1]/UIATextField[1]/UIATextField[1]"]] sendKeys:#"username"];
Here is the log file: (Any idea? Thanks.)
info: --> POST /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/element {"using":"name"}
info: [debug] Missing params for request: ["selector"] info: <-- POST /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/element 400 0.761 ms - 32
info: --> GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/source {} info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()" info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
info: [debug] Socket data received (8192 bytes)
info: [debug] Socket data received (3184 bytes) info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"#":{"name":"TestDemo","label":"TestDemo","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0","x":0,"y":20,"width":375,"height":647},">":[{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"
info: [debug] Responding to client with success: {"status":0,"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<AppiumAUT>\n <UIAApplication name=\"TestDemo\" label=\"TestDemo\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0\" x=\"0\" y=\"20\" width=\"375\" height=\"647\">\n <UIAWindow name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0\" x=\"0\" y=\"0\" width=\"375\" height=\"667\">\n <UIAStaticText name=\"Login\" label=\"Login\" value=\"Login\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/0\" x=\"156.5\" y=\"108\" width=\"62\" height=\"29\">\n </UIAStaticText>\n <UIATextField name=\"\" label=\"\" value=\"User name\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1\" x=\"107.5\" y=\"174\" width=\"161\" height=\"30\">\n <UIATextField name=\"\" label=\"\" value=\"User name\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/0\" x=\"107.5\" y=\"174\" width=\"161\" height=\"30\">\n </UIATextField>\n </UIATextField...","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"}
info: <-- GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/source 200
229.958 ms - 13364 {"status":0,"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<AppiumAUT>\n <UIAApplication name=\"TestDemo\" label=\"TestDemo\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0\" x=\"0\" y=\"20\" width=\"375\" height=\"647\">\n <UIAWindow name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0\" x=\"0\" y=\"0\" width=\"375\" height=\"667\">\n <UIAStaticText name=\"Login\" label=\"Login\" value=\"Login\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/0\" x=\"156.5\" y=\"108\" width=\"62\" height=\"29\">\n </UIAStaticText>\n <UIATextField name=\"\" label=\"\" value=\"User name\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1\" x=\"107.5\" y=\"174\" width=\"161\" height=\"30\">\n <UIATextField name=\"\" label=\"\" value=\"User name\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/0\" x=\"107.5\" y=\"174\" width=\"161\" height=\"30\">\n </UIATextField>\n </UIATextField...","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"}
info: --> GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/orientation {} info: [debug] Pushing command to appium work queue: "au.getScreenOrientation()" info: [debug] Sending command to instruments: au.getScreenOrientation()
info: [debug] Socket data received (33 bytes)
info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"} info: [debug] Setting internal orientation to PORTRAIT info: [debug] Responding to client with success: {"status":0,"value":"PORTRAIT","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"}
info: <-- GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/orientation 200
117.559 ms - 82 {"status":0,"value":"PORTRAIT","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: --> GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/screenshot {} info: [debug] Pushing command to appium work queue: "au.getScreenOrientation()" info: [debug] Sending command to instruments: au.getScreenOrientation()
info: [debug] Socket data received (33 bytes)
info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"} info: [debug] Setting internal orientation to PORTRAIT info: [debug] Pushing command to appium work queue: "au.capture('screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503')" info: [debug] Sending command to instruments: au.capture('screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503')
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed. info: [debug] Got result from instruments: {"status":0,"value":""} info: [debug] Waiting 10000 ms for screenshot to ge generated.
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Got new command 47 from instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluating au.mainApp().getTreeForXML()
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: responding with:valid":true,"visible":true,"hint":null,"path":"/0/0","x":0,"y":0,"width":375,"height":667},">":[{"UIAStaticText":{"#":{"name":"Login","label":"Login","value":"Login","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/0","x":156.5,"y":108,"width":62,"height":29},">":[]}},{"UIATextField":{"#":{"name":null,"label":null,"value":"User name","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1","x":107.5,"y":174,"width":161,"height":30},">":[{"UIATextField":{"#":{"name":null,"label":null,"value":"User name","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1/0","x":107.5,"y":174,"width":161,"height":30},">":[]}}]}},{"UIAStaticText":{"#":{"name":"Label","label":"Label","value":"Label","dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/2","x":117.5,"y":184,"width":42,"height":20.5},">":[]}},{"UIASecureTextField":{"#":{"name":null,"label":null,"value":"Password","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/3","x":107.5,"y":227.5,"width":161,"height":30},">":[{"UIASecureTextField":{"#":{"name":null,"label":null,"value":"Password","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/3/0","x":107.5,"y":227.5,"width":161,"height":30},">":[]}}]}},{"UIAButton":{"#":{"name":"Login","label":"Login","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/4","x":130.5,"y":290,"width":114,"height":30},">":[]}}]}},{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1","x":0,"y":0,"width":375,"height":667},">":[{"UIAKeyboard":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0","x":0,"y":409,"width":375,"height":258},">":[{"UIAImage":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/0","x":0,"y":409,"width":375,"height":42},">":[]}},{"UIAElement":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/0/1","x":6,"y":407,"width":112,"height":42},">":[]}},{"UIAElement":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/0/2","x":131,"y":407,"width":113,"height":42},">":[]}},{"UIAElement":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/1/0/3","x":257,"y":407,"width":112,"height":42},">":[]}},{"UIAKey":{"#":{"name":"q","label":"q","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/4","x":0,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"w","label":"w","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/5","x":37.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"e","label":"e","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/6","x":75,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"r","label":"r","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/7","x":112.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"t","label":"t","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/8","x":150,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"y","label":"y","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/9","x":187.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"u","label":"u","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/10","x":225,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"i","label":"i","val ue":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/11","x":262.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"o","label":"o","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/12","x":300,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"p","label":"p","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/13","x":337.5,"y":460,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"a","label":"a","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/14","x":18.5,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"s","label":"s","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/15","x":56,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"d","label":"d","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/16","x":93.5,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"f","label":"f","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/17","x":131,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"g","label":"g","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/18","x":169,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"h","label":"h","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/19","x":206.5,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"j","label":"j","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/20","x":244,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"k","label":"k","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/21","x":281.5,"y":514,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"l","label":"l","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/22","x":319,"y":514,"width":37.5,"height":46},">":[]}},{"UIAButton":{"#":{"name":"shift","label":"shift","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Triple-tap to enter caps lock","path":"/0/1/0/23","x":0,"y":568,"width":48,"height":46},">":[]}},{"UIAKey":{"#":{"name":"z","label":"z","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/24","x":56,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"x","label":"x","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/25","x":93.5,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"c","label":"c","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/26","x":131,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"v","label":"v","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/27","x":169,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"b","label":"b","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/28","x":206.5,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"n","label":"n","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/29","x":244,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"m","label":"m","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/30","x":281.5,"y":568,"width":37.5,"height":46},">":[]}},{"UIAKey":{"#":{"name":"Delete","label":"Delete","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/31","x":327,"y":568,"width":48,"height":46},">":[]}},{"UIAKey":{"#":{"name":"more, numbers","label":"more, numbers","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint" :null,"path":"/0/1/0/32","x":0,"y":6 info: [debug] [INST] 20,"width":46.5,"height":46},">":[]}},{"UIAButton":{"#":{"name":"Next keyboard","label":"Next keyboard","value":"Emoji","dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Double-tap and hold, then drag up to select another keyboard","path":"/0/1/0/33","x":46.5,"y":620,"width":47,"height":46},">":[]}},{"UIAKey":{"#":{"name":"space","label":"space","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/34","x":93,"y":620,"width":188.5,"height":46},">":[]}},{"UIAButton":{"#":{"name":"Dictate","label":"Dictate","value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":"Double tap to start dictation. Two finger double tap when finished","path":"/0/1/0/35","x":93.5,"y":620,"width":37.5,"height":46},">":[]}},{"UIAButton":{"#":{"name":"Return","label":"return","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0/36","x":281.5,"y":620,"width":93.5,"height":46},">":[]}}]}}]}},{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/2","x":0,"y":0,"width":375,"height":667},">":[{"UIAStatusBar":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/2/0","x":0,"y":0,"width":375,"height":20},">":[{"UIAElement":{"#":{"name":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/2/0/0","x":6,"y":0,"width":38,"height":20},">":[]}},{"UIAElement":{"#":{"name":"3 of 3 Wi-Fi bars","label":"3 of 3 Wi-Fi bars","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/2/0/1","x":49,"y":0,"width":13,"height":20},">":[]}},{"UIAElement":{"#":{"name":"3:59 PM","label":"3:59 PM","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/2/0/2","x":164,"y":0,"width":47,"height":20},">":[]}},{"UIAElement":{"#":{"name":"100% battery power","label":"100% battery power","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/2/0/3","x":345,"y":0,"width":25,"height":20},">":[]}}]}}]}}]}}} info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Running system command #48: /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":0,"value":{"UIAApplication":{"#":{"name":"TestDemo","label":"TestDemo","value":null,"dom"... info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Got new command 48 from instruments: au.getScreenOrientation()
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluating au.getScreenOrientation() info: [debug] [INST] 2015-03-24 07:59:21
+0000 Debug: evaluation finished
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: responding with: info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Running system command #49: /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":0,"value":"PORTRAIT"}...
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Got new command 49 from instruments: au.getScreenOrientation() info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluating au.getScreenOrientation()
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: responding with: info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Running system command #50: /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":0,"value":"PORTRAIT"}...
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Got new command 50 from instruments: au.capture('screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503')
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluating au.capture('screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503') info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: target.captureRectOnScreenWithName("{origin:{x:0.00,y:0.00}, size:{height:667.00,width:375.00}}", UIScreen, "screenshot10e27e81-2e0c-4cb4-851d-d5fad89ba503")
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Screenshot captured.
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: responding with:
info: [debug] [INST] 2015-03-24 07:59:21 +0000 Debug: Running system command #51: /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":0,"value":""}...
info: [debug] Responding to client with success: {"status":0,"value":"iVBORw0KGgoAAAANSUhEUgAAAu4AAAU2CAYAAADK1zMGAAAAAXNSR0IArs4c6QAAQABJREFUeAHs3QmYHFd5KOyjXdZuy9ZqW4t3C2xDApjNQCAhEELYg4EkJGENYU+ACyRAuFzITyAQIJgtkBC4XCBwgbAkIXAhLGYPtoV3LV60WZJl7Xv/9ZWoUU9P9UyN1DPV0/Oe52l1d9WpOqfe0lR/derUqQmNLCWJAAECBAgQIECAAIGuFpjY1bVTOQIECBAgQIAAAQIEcgGBu/8IBAgQIECAAAECBMaAgMB9DOwkVSRAgAABAgQIECAgcPd/gAABAgQIECBAgMAYEBC4j4GdpIoECBAgQIAAAQIEBO7+DxAgQIAAAQIECBAYAwIC9zGwk1SRAAECBAgQIECAgMDd/wECBAgQIECAAAECY0BA4D4GdpIqEiBAgAABAgQIEBC4+z9AgAABAgQIECBAYAwITO5UHQ8ePJiuueaa9OMf/zht3bo1nXPOOemiiy5Kl112WaeK6Nh67rjjjnTo0KF05plnpilTpnRsvSOxosOHD6dvfOMb6Zvf/Gb6yU9+km6++eZ09913p507d6Y5c+akU089NZ133nnpV37lV9IjHvGI9Gu/9mtp8uSO7daR2CTrJDDmBbZs2ZLmz5+fJk2aVPu2xPH29NNPP+F6bNy4Me3fv7/t8kuWLEnTpk1rO791+Tguhc1gae/evWnz5s39sqxYsaLfd18IECBQVeB//+//nd75znfmcVLVZUY7X8Rpr3jFK9KVV155ckU3TjJt27at8cQnPrExderUxoQJEwa8Lr/88sa//du/nWQpnV38wgsvzOv505/+tLMr7uDa1q9f38h2cCP7QR5gGs7ZXi+dHvljuVheIkCgcwLXXXdd47GPfWwjC0rzv73spL9xn/vcp/HP//zPjSNHjpxQQS9/+csbv/qrvzroK2toGLDuL37xi42HPOQhjblz5+Z1WbhwYeNJT3pSI/vx...","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"}
info: <-- GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/screenshot 200
884.141 ms - 97822 {"status":0,"value":"iVBORw0KGgoAAAANSUhEUgAAAu4AAAU2CAYAAADK1zMGAAAAAXNSR0IArs4c6QAAQABJREFUeAHs3QmYHFd5KOyjXdZuy9ZqW4t3C2xDApjNQCAhEELYg4EkJGENYU+ACyRAuFzITyAQIJgtkBC4XCBwgbAkIXAhLGYPtoV3LV60WZJl7Xv/9ZWoUU9P9UyN1DPV0/Oe52l1d9WpOqfe0lR/derUqQmNLCWJAAECBAgQIECAAIGuFpjY1bVTOQIECBAgQIAAAQIEcgGBu/8IBAgQIECAAAECBMaAgMB9DOwkVSRAgAABAgQIECAgcPd/gAABAgQIECBAgMAYEBC4j4GdpIoECBAgQIAAAQIEBO7+DxAgQIAAAQIECBAYAwIC9zGwk1SRAAECBAgQIECAgMDd/wECBAgQIECAAAECY0BA4D4GdpIqEiBAgAABAgQIEBC4+z9AgAABAgQIECBAYAwITO5UHQ8ePJiuueaa9OMf/zht3bo1nXPOOemiiy5Kl112WaeK6Nh67rjjjnTo0KF05plnpilTpnRsvSOxosOHD6dvfOMb6Zvf/Gb6yU9+km6++eZ09913p507d6Y5c+akU089NZ133nnpV37lV9IjHvGI9Gu/9mtp8uSO7daR2CTrJDDmBbZs2ZLmz5+fJk2aVPu2xPH29NNPP+F6bNy4Me3fv7/t8kuWLEnTpk1rO791+Tguhc1gae/evWnz5s39sqxYsaLfd18IECBQVeB//+//nd75znfmcVLVZUY7X8Rpr3jFK9KVV155ckU3TjJt27at8cQnPrExderUxoQJEwa8Lr/88sa//du/nWQpnV38wgsvzOv505/+tLMr7uDa1q9f38h2cCP7QR5gGs7ZXi+dHvljuVheIkCgcwLXXXdd47GPfWwjC0rzv73spL9xn/vcp/HP//zPjSNHjpxQQS9/+csbv/qrvzroK2toGLDuL37xi42HPOQhjblz5+Z1WbhwYeNJT3pSI/vx...","sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"}
info: --> GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/contexts {} info: [debug] [REMOTE] Debugger socket connected to ::1:27753 info: [debug] [REMOTE] Sending connection key info: [debug] [REMOTE] Sending
_rpc_reportIdentifier: message to remote debugger info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"c81f2b85-5108-449d-a70b-95aab0877f21"},"__selector":"_rpc_reportIdentifier:"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger info: [debug] [REMOTE] {"__argument":{"WIRSimulatorBuildKey":"12B411","WIRSimulatorProductVersionKey":"8.1","WIRSimulatorNameKey":"iPhone Simulator"},"__selector":"_rpc_reportSetup:"} info: [debug] [REMOTE] Sim name: iPhone Simulator info: [debug] [REMOTE] Sim build: 12B411 info: [debug] [REMOTE] {"__argument":{"WIRApplicationDictionaryKey":{}},"__selector":"_rpc_reportConnectedApplicationList:"} warn: Remote debugger did not list com.wowtv.TestDemo among its available apps info: [debug] [REMOTE] Disconnecting from remote debugger info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP"],"sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"}
info: <-- GET /wd/hub/session/5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111/contexts 200
80.879 ms - 86 {"status":0,"value":["NATIVE_APP"],"sessionId":"5e8073d7-8fa3-4bc1-8cfe-51f3b4d69111"} info: [debug] [REMOTE] Debugger socket disconnected
Make sure that you have disable the option to Connect Hardware Keyboard on your simulator keyboard setting. Hardware>Keyboard

iOS Hybrid App -Appium click() is not working

I just setup Appium 1.3.6 to test my hybrid cordova iOS app on iPhone Simulator. Able to find button element and its Text, width,Height.But click() is not working.But I am getting 200 success response for click. Please check the appium logs below.
Welcome to Appium v1.3.6 (REV 004f52f249d3513809e7d0734d9205d1fec19f8e)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"}}
info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)
info: [debug] Using local app from desired caps: /Users/rajesh.madaswamy/Fly dotREZ.app
info: [debug] Creating new appium session e385db7f-319a-4c0c-888b-1cc14c415879
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version
info: [debug] Setting iOS SDK Version
info: [debug] Getting sdk version from xcrun with a timeout
info: [debug] iOS SDK Version set to 7.0
info: [debug] Instruments v < 7.1, not checking device string support
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Parsed app Localizable.strings
info: [debug] Getting bundle ID from app
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/usr/local/bin/node","commandProxyClientPath":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"oneByOne"}
info: [debug] Dynamic bootstrap code: // This file is automatically generated. D...ot manually modify!
info: [debug] Dynamic bootstrap path: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js
info: [debug] Reusing dynamic bootstrap: /Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js
info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"}
info: [debug] fixDevice is on
info: [debug] Final device string is: 'iPhone'
info: [debug] Parsed app Info.plist (as binary)
info: [debug] Wrote new app Info.plist with device type
info: [debug] Checking whether we need to set app preferences
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
info: [debug] Cleaning sim data files
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/TCC
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Caches/locationd
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/BackBoard/applicationState.plist
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Media
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Keychains
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/TCC
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Caches/locationd
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/BackBoard/applicationState.plist
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Media
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Keychains
info: [debug] Cleaning sim preferences
info: [debug] Cleaning app data files
info: Couldn't find app directories to delete. Probably it's not installed
info: [debug] Not setting locale
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS 7.* simulator log capture
info: [debug] Pre-launching simulator
info: [debug] Killing the simulator process
info: [debug] Killall iPhoneSimulator
info: [debug] Killing any other simulator daemons
info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"}
info: [debug] fixDevice is on
info: [debug] Final device string is: 'iPhone'
info: [debug] Launching device: iPhone
info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"5.0.2","iOSSDKVersion":"7.0","deviceName":"iPhone Simulator","platformVersion":"7.0"}
info: [debug] fixDevice is on
info: [debug] Final device string is: 'iPhone'
info: [debug] Simulator is now ready.
info: [debug] No device id or app, not installing to real device.
info: [debug] Starting command proxy.
info: [debug] Instruments socket server started at /tmp/instruments_sock
info: [debug] Starting instruments
info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: Launching instruments
info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace "/Users/rajesh.madaswamy/Fly dotREZ.app" -e UIASCRIPT "/Users/rajesh.madaswamy/Library/Application Support/appium/bootstrap/bootstrap-13f238e80ecb92ad.js" -e UIARESULTSPATH /tmp/appium-instruments
info: [debug] And extra without-delay env: {"DYLD_INSERT_LIBRARIES":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd5/InstrumentsShim.dylib","LIB_PATH":"/Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd5"}
info: [debug] And launch timeouts (in ms): {"global":90000}
info: [debug] [INST STDERR] 2015-03-13 17:57:19.701 ScriptAgent[30296:2d07] CLTilesManagerClient: initialize, sSharedTilesManagerClient
info: [debug] [INST STDERR] 2015-03-13 17:57:19.702 ScriptAgent[30296:2d07] CLTilesManagerClient: init
2015-03-13 17:57:19.703 ScriptAgent[30296:2d07] CLTilesManagerClient: reconnecting, 0x9472910
info: Instruments is ready to receive commands
info: [debug] Instruments launched. Starting poll loop for new commands.
info: [debug] Setting bootstrap config keys/values
info: [debug] Pushing command to appium work queue: "target = $.target();\nau = $;\n$.isVerbose = true;\n"
info: [debug] Socket data received (2 bytes)
info: [debug] Socket data being routed.
info: [debug] Sending command to instruments: target = $.target();
au = $;
$.isVerbose = true;
info: [debug] Socket data received (27 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":true}
info: [debug] Setting initial orientation to PORTRAIT
info: [debug] Pushing command to appium work queue: "au.setScreenOrientation('PORTRAIT')"
info: [debug] Sending command to instruments: au.setScreenOrientation('PORTRAIT')
info: [debug] Socket data received (33 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":"PORTRAIT"}
info: [debug] Waiting for app source to contain elements
info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"
info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
info: [debug] Socket data received (3339 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"#":{"name":"Fly dotREZ","label":"Fly dotREZ","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0","x":0,"y":20,"width":320,"height":548},">":[{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":tr
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to the default of 60 secs
info: [debug] Appium session started with sessionId e385db7f-319a-4c0c-888b-1cc14c415879
info: <-- POST /wd/hub/session 303 8761.761 ms - 9
info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 {}
info: [debug] Responding to client with success: {"status":0,"value":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 200 4.339 ms - 586 {"status":0,"value":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"iOS","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"warnings":{},"desired":{"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"app":"/Users/rajesh.madaswamy/Fly dotREZ.app","platformVersion":"7.0","nativeWebTap":true,"platformName":"iOS","deviceName":"iPhone Simulator"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/contexts {}
info: [debug] [REMOTE] Debugger socket connected to ::1:27753
info: [debug] [REMOTE] Sending connection key
info: [debug] [REMOTE] Sending _rpc_reportIdentifier: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13"},"__selector":"_rpc_reportIdentifier:"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__selector":"_rpc_reportSetup:","__argument":{"WIRSimulatorNameKey":"iPhone Simulator","WIRSimulatorProductVersionKey":"7.0.3","WIRSimulatorBuildKey":"11B508"}}
info: [debug] [REMOTE] Sim name: iPhone Simulator
info: [debug] [REMOTE] Sim build: 11B508
info: [debug] [REMOTE] {"__selector":"_rpc_reportConnectedApplicationList:","__argument":{"WIRApplicationDictionaryKey":{"com.accenture.londonVoyage-Extension":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRApplicationNameKey":"Fly dotREZ","WIRIsApplicationProxyKey":false}}}}
info: [debug] Using remote debugger app key: com.accenture.londonVoyage-Extension
info: [debug] [REMOTE] Selecting app com.accenture.londonVoyage-Extension (try #1)
info: [debug] [REMOTE] function () { [native code] }
info: [debug] [REMOTE] Sending _rpc_forwardGetListing: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension"},"__selector":"_rpc_forwardGetListing:"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRListingKey":{"1":{"WIRPageIdentifierKey":1,"WIRTitleKey":"NavAir","WIRURLKey":"file:///Users/rajesh.madaswamy/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F/Fly%20dotREZ.app/www/index.html"}}}}
info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/contexts 200 14.960 ms - 98 {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/context {"name":"WEBVIEW_1"}
info: [debug] Attempting to set context to 'WEBVIEW_1'
info: [debug] [REMOTE] Selecting page 1 and forwarding socket setup
info: [debug] [REMOTE] Sending _rpc_forwardSocketSetup: message to remote debugger
info: [debug] [REMOTE] {"__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRSenderKey":"7f6f5954-242e-42aa-a96b-5686585201f0","WIRPageIdentifierKey":1},"__selector":"_rpc_forwardSocketSetup:"}
info: [debug] [REMOTE] Set sender key
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] Enabled activity on page
info: [debug] [REMOTE] Checking document readyState
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] readyState was complete
info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/context 200 23.866 ms - 74 {"status":0,"value":"","sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element {"using":"class name","value":"x-button-normal"}
info: [debug] Waiting up to 0ms for condition
info: [debug] [REMOTE] Executing 'find_element' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"5000"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element 200 13.041 ms - 90 {"status":0,"value":{"ELEMENT":"5000"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5000/displayed {}
info: [debug] [REMOTE] Executing 'is_displayed' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- GET /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5000/displayed 200 17.283 ms - 76 {"status":0,"value":true,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__selector":"_rpc_applicationSentListing:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRListingKey":{"1":{"WIRConnectionIdentifierKey":"40415480-7ff5-4c0f-a545-741769052f13","WIRURLKey":"file:///Users/rajesh.madaswamy/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F/Fly%20dotREZ.app/www/index.html","WIRTitleKey":"NavAir","WIRPageIdentifierKey":1}}}}
info: [debug] Remote debugger notified us of a new page listing
info: [debug] New page listing is same as old, doing nothing
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] Got a blank data response from debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] Got a blank data response from debugger
info: [debug] [INST STDERR] 2015-03-13 17:57:25.264 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: script status is 2
info: [debug] [INST STDERR] 2015-03-13 17:57:25.264 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: Calling onAlert
info: [debug] [INST STDERR] 2015-03-13 17:57:25.266 ScriptAgent[30296:2d07] -[ScriptAgent handleAlert:]: Call to onAlert returned 'YES'
info: [debug] Emiting alert message...
info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element {"using":"class name","value":"x-button-normal"}
info: [debug] Waiting up to 0ms for condition
info: [debug] [REMOTE] Executing 'find_element' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"5001"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element 200 8.367 ms - 90 {"status":0,"value":{"ELEMENT":"5001"},"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5001/click {"id":"5001"}
info: [debug] [REMOTE] Executing 'click' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- POST /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879/element/5001/click 200 24.389 ms - 76 {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: --> DELETE /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 {}
info: Shutting down appium session
info: [debug] Stopping ios
info: [debug] Destroying instruments client socket.
info: [debug] Closing socket server.
info: [debug] Instruments socket server was closed
info: [debug] Sending sigterm to instruments
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] {"__selector":"_rpc_applicationDisconnected:","__argument":{"WIRApplicationIdentifierKey":"com.accenture.londonVoyage-Extension","WIRApplicationNameKey":"Fly dotREZ","WIRIsApplicationProxyKey":false}}
info: [debug] [INST] 2015-03-13 12:27:20 +0000 Debug: evaluation finished
2015-03-13 12:27:20 +0000 Debug: responding with:
2015-03-13 12:27:20 +0000 Debug: Running system command #1: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":true}...
2015-03-13 12:27:20 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation('PORTRAIT')
2015-03-13 12:27:20 +0000 Debug: evaluating au.setScreenOrientation('PORTRAIT')
2015-03-13 12:27:20 +0000 Debug: target.setDeviceOrientation("1")
2015-03-13 12:27:20 +0000 Debug: evaluation finished
2015-03-13 12:27:20 +0000 Debug: responding with:
2015-03-13 12:27:20 +0000 Debug: Running system command #2: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":"PORTRAIT"}...
2015-03-13 12:27:20 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()
2015-03-13 12:27:20 +0000 Debug: evaluating au.mainApp().getTreeForXML()
2015-03-13 12:27:20 +0000 Debug: evaluation finished
2015-03-13 12:27:20 +0000 Debug: responding with:ue,"valid":true,"visible":true,"hint":null,"path":"/0/0","x":0,"y":0,"width":320,"height":568},">":[{"UIAImage":{"#":{"name":"Default-568h","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/0","x":0,"y":0,"width":320,"height":568},">":[]}},{"UIAScrollView":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1","x":0,"y":20,"width":320,"height":548},">":[{"UIAWebView":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/1/0","x":0,"y":20,"width":320,"height":548},">":[]}}]}},{"UIAImage":{"#":{"name":"loading_ani.png","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/2","x":125.5,"y":249,"width":69,"height":70},">":[]}},{"UIAImage":{"#":{"name":"loading_ani_plane.png","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/3","x":138.5,"y":275.5,"width":43,"height":17},">":[]}}]}},{"UIAWindow":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1","x":0,"y":0,"width":320,"height":568},">":[{"UIAStatusBar":{"#":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/1/0","x":0,"y":0,"width":320,"height":20},">":[{"UIAElement":{"#":{"name":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/0","x":6,"y":0,"width":38,"height":20},">":[]}},{"UIAElement":{"#":{"name":"3 of 3 Wi-Fi bars","label":"3 of 3 Wi-Fi bars","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/1","x":49,"y":0,"width":13,"height":20},">":[]}},{"UIAElement":{"#":{"name":"5:57 PM","label":"5:57 PM","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/2","x":137,"y":0,"width":47,"height":20},">":[]}},{"UIAElement":{"#":{"name":"100% battery power","label":"100% battery power","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":"Swipe down with three fingers to reveal the notification center., Swipe up with three fingers to reveal the control center, Double-tap to scroll to top","path":"/0/1/0/3","x":290,"y":0,"width":25,"height":20},">":[]}}]}}]}}]}}}
2015-03-13 12:27:20 +0000 Debug: Running system command #3: /usr/local/bin/node /Users/rajesh.madaswamy/.npm-packages/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"#":{"name":"Fly dotREZ","label":"Fly dotREZ","value":null,"dom":null,"enabled":true,"valid":true,"v...
2015-03-13 12:27:30 +0000 Stopped: Script was stopped by the user
Instruments Trace Complete (Duration : 15.250390s; Output : /tmp/appium-instruments/instrumentscli0.trace)
info: [debug] [INSTSERVER] Instruments exited with code 0
info: [debug] Cleaning up after instruments exit
info: [debug] Stopping iOS log capture
info: [debug] [REMOTE] Disconnecting from remote debugger
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killing any other simulator daemons
info: [debug] [REMOTE] Debugger socket disconnected
info: [debug] Cleaning sim data files
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/TCC
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Caches/locationd
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/BackBoard/applicationState.plist
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Media
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Library/Keychains
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/TCC
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Caches/locationd
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/BackBoard/applicationState.plist
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Media
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3-64/Library/Keychains
info: [debug] Cleaning sim preferences
info: [debug] Clearing key: SimulateDevice
info: [debug] Writing new preferences plist data
info: [debug] Cleaning app data files
info: [debug] Deleting /Users/rajesh.madaswamy/Library/Application Support/iPhone Simulator/7.0.3/Applications/D0CB53D1-EB39-40F2-B8D4-C010C8EE691F
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
info: <-- DELETE /wd/hub/session/e385db7f-319a-4c0c-888b-1cc14c415879 200 317.723 ms - 76 {"status":0,"value":null,"sessionId":"e385db7f-319a-4c0c-888b-1cc14c415879"}
Try next method:
Let driver be Selenium::WebDriver instance, and el your element:
On Ruby:
driver.action.move_to(el, 0, 30).click.perform

Log capture did not start in a reasonable amount of time - Error when trying to run iOS tests on a remote appium server - appium log attached

I am trying to run appium tests on iPhones using a remote appium server.
When I run the tests locally they pass but when I just send the remote server's ip and try to execute the test I get the following errors in my log:
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 87610d1a-b873-46e5-96b0-b54b412f10a0
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version
info: [debug] Setting iOS SDK Version
info: [debug] Getting sdk version from xcrun with a timeout
info: [debug] iOS SDK Version set to 8.1
info: [debug] Not checking whether simulator is available since we're on a real device
info: [debug] Detecting automation tracetemplate
info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /usr/local/lib/node_modules/appium/com.viber.testing/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /usr/local/lib/node_modules/appium/com.viber.testing/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings; assuming it doesn't exist
info: [debug] Creating instruments
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/Desktop-QA/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {"nodePath":"/usr/local/bin/node","commandProxyClientPath":"/usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"sendKeyStrategy":"grouped"}
...o: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
info: [debug] Dynamic bootstrap path: /Users/Desktop-QA/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js
info: [debug] Reusing dynamic bootstrap: /Users/Desktop-QA/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js
info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.1.1","iOSSDKVersion":"8.1","deviceName":"none","platformVersion":"8.0.2"}
info: [debug] fixDevice is on
info: [debug] Final device string is: 'none (8.0.2 Simulator)'
info: [debug] Not setting device type since we're on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we're on a real device
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Not setting locale because we're using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole
error: Log capture did not start in a reasonable amount of time
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Log capture did not start in a reasonable amount of time
info: [debug] Error: Log capture did not start in a reasonable amount of time
at null.onTimeout (/usr/local/lib/nodemodules/appium/lib/devices/ios/ios-log.js:139:10)
at Timer.listOnTimeout as ontimeout
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Log capture did not start in a reasonable amount of time)","origValue":"Log capture did not start in a reasonable amount of time"},"sessionId":null}
info: <-- POST /wd/hub/session 500 11148.632 ms - 234
I tried newer devices ,cleaning the logs from the device and restarting it but all of these didn't help.
Any help will be more then welcome.
Thanks in advance!
A temporary solution for me was to run appium from source,replacing Deviceconsole with devicesyslog (the previous one) and now it works and i can get the logs from the device even when i am running on a remote appium with a remote device

Appium Error: start point is not within the bounds of the screen

I'm trying to run automated tests of a web app on iOS using Appium (via SauceLabs) and am getting a problem with a relatively simple test case detailed below.
I get the following error in the Appium Log:
info: [INSTSERVER] Got result from instruments: {"status":17,"value":"start point is not within the bounds of the screen"}
2014-05-29T17:21:01.282Z - info: Responding to client with error: {"status":17,"value":{"message":"An error occurred while executing user supplied JavaScript.","origValue":"start point is not within the bounds of the screen"},"sessionId":"47322525-37e0-4f4b-a236-224906d0135c"}
Looking at the screenshots, the element in question does appear to be on the screen.
I've tried scrolling to the element before attempting to click it using:
((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].scrollIntoView();", driver.FindElement(By.Id(elementId)));
and scrolling to it via javascript doesn't appear to make any difference. It seems to be that some set of coordinates is getting messed up, but I don't know enough about how Appium works to figure it out.
The test
I have created a jsFiddle HERE (view-only here) which the tests point at.
It has a set of fields laid out down the page.
I'm setting up the web driver with capabilities like this:
DesiredCapabilities caps = DesiredCapabilities.IPad();
caps.SetCapability(CapabilityType.Platform, "OS X 10.9");
caps.SetCapability(CapabilityType.Version, "7");
caps.SetCapability("device-orientation", "portrait");
caps.SetCapability("nonSyntheticWebClick", "false");
The WebDriver test itself (written in C#) looks like:
[Test]
public void TestSequence()
{
string sequence = "button4,button3,button2";
var fieldIds = sequence.Split(',');
foreach (var fieldId in fieldIds)
{
Console.Write("{0},", fieldId);
if (fieldId[0] == 't')
{
driver.FindElement(By.Id(fieldId)).SendKeys("1");
}
else
{
driver.FindElement(By.Id(fieldId)).Click();
}
}
}
You can see that it takes a 'sequence' of fields to be clicked. Just a way of trying out different combinations.
To illustrate the issue, the following combinations fail:
text1,button1,text4,button3
text4,button3
button4,text3,button2
button4,button3,button2
whereas these are fine:
button1,button4,button1,button4,button1
button1,button2,button3,button4
Any help gratefully appreciated.
(The log)
The (hopefully) relevant part of the Appium Log is here:
2014-05-29T17:48:32.074Z - debug: Appium request initiated at /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element
2014-05-29T17:48:32.074Z - debug: Request received with params: {"using":"id","value":"button4"}
2014-05-29T17:48:32.075Z - info: [REMOTE] Executing 'find_element' atom in default context
2014-05-29T17:48:32.076Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:32.076Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:32.084Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:32.084Z - debug: [REMOTE] got applicationSentData response
2014-05-29T17:48:32.085Z - info: Responding to client with success: {"status":0,"value":{"ELEMENT":"5000"},"sessionId":"fc441e9f-8ade-4799-8f87-1653a50a5a49"}
POST /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element 200 11ms - 112b
2014-05-29T17:48:32.687Z - debug: Appium request initiated at /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element/5000/click
2014-05-29T17:48:32.687Z - debug: Request received with params: {}
2014-05-29T17:48:32.688Z - info: [REMOTE] Executing 'get_top_left_coordinates' atom in default context
2014-05-29T17:48:32.688Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:32.689Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:32.712Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:32.712Z - debug: [REMOTE] got applicationSentData response
2014-05-29T17:48:32.712Z - info: [REMOTE] Executing 'get_size' atom in default context
2014-05-29T17:48:32.713Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:32.713Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:32.731Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:32.731Z - debug: [REMOTE] got applicationSentData response
2014-05-29T17:48:32.732Z - info: Pushing command to appium work queue: "au.getElementsByType('webview')"
2014-05-29T17:48:32.732Z - debug: Sending command to instruments: au.getElementsByType('webview')
info: [INSTSERVER] Sending command to instruments: au.getElementsByType('webview')
info: [INSTSERVER] Socket data received (63 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":0,"value":[{"ELEMENT":"1"}]}
2014-05-29T17:48:32.879Z - info: Pushing command to appium work queue: "au.getElement('1').rect()"
2014-05-29T17:48:32.879Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:32.879Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:32.879Z - debug: Sending command to instruments: au.getElement('1').rect()
info: [INSTSERVER] Sending command to instruments: au.getElement('1').rect()
2014-05-29T17:48:32.880Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:32.880Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:32.881Z - debug: [REMOTE] got applicationSentData response
info: [INSTSERVER] Socket data received (108 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":0,"value":{"origin":{"x":0,"y":-423},"size":{"width":768,"height":1467}}}
2014-05-29T17:48:32.987Z - info: Converted web coords {"x":351,"y":734}into real coords {"x":275.069387755102,"y":132.2019230769231}
2014-05-29T17:48:32.987Z - info: Pushing command to appium work queue: "au.complexTap({\"x\":275.069387755102,\"y\":132.2019230769231,\"tapCount\":1,\"duration\":0.3,\"touchCount\":1})"
2014-05-29T17:48:32.987Z - debug: Sending command to instruments: au.complexTap({"x":275.069387755102,"y":132.2019230769231,"tapCount":1,"duration":0.3,"touchCount":1})
info: [INSTSERVER] Sending command to instruments: au.complexTap({"x":275.069387755102,"y":132.2019230769231,"tapCount":1,"duration":0.3,"touchCount":1})
info: [INSTSERVER] Socket data received (48 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":0,"value":""}
2014-05-29T17:48:34.002Z - info: Responding to client with success: {"status":0,"value":"","sessionId":"fc441e9f-8ade-4799-8f87-1653a50a5a49"}
POST /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element/5000/click 200 1317ms - 87b
2014-05-29T17:48:34.737Z - debug: Appium request initiated at /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element
2014-05-29T17:48:34.737Z - debug: Request received with params: {"using":"id","value":"button3"}
2014-05-29T17:48:34.738Z - info: [REMOTE] Executing 'find_element' atom in default context
2014-05-29T17:48:34.738Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:34.738Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:34.748Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:34.749Z - debug: [REMOTE] got applicationSentData response
2014-05-29T17:48:34.749Z - info: Responding to client with success: {"status":0,"value":{"ELEMENT":"5001"},"sessionId":"fc441e9f-8ade-4799-8f87-1653a50a5a49"}
POST /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element 200 14ms - 112b
2014-05-29T17:48:35.352Z - debug: Appium request initiated at /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element/5001/click
2014-05-29T17:48:35.352Z - debug: Request received with params: {}
2014-05-29T17:48:35.352Z - info: [REMOTE] Executing 'get_top_left_coordinates' atom in default context
2014-05-29T17:48:35.353Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:35.353Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:35.364Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:35.364Z - debug: [REMOTE] got applicationSentData response
2014-05-29T17:48:35.365Z - info: [REMOTE] Executing 'get_size' atom in default context
2014-05-29T17:48:35.365Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:35.365Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:35.377Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:35.378Z - debug: [REMOTE] got applicationSentData response
2014-05-29T17:48:35.378Z - info: Pushing command to appium work queue: "au.getElementsByType('webview')"
2014-05-29T17:48:35.378Z - debug: Sending command to instruments: au.getElementsByType('webview')
info: [INSTSERVER] Sending command to instruments: au.getElementsByType('webview')
info: [INSTSERVER] Socket data received (63 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":0,"value":[{"ELEMENT":"2"}]}
2014-05-29T17:48:35.544Z - info: Pushing command to appium work queue: "au.getElement('2').rect()"
2014-05-29T17:48:35.544Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:35.545Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:35.545Z - debug: Sending command to instruments: au.getElement('2').rect()
info: [INSTSERVER] Sending command to instruments: au.getElement('2').rect()
2014-05-29T17:48:35.547Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:35.547Z - debug: [REMOTE] got applicationSentData response
info: [INSTSERVER] Socket data received (110 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":0,"value":{"origin":{"x":0,"y":-137.5},"size":{"width":768,"height":1467}}}
2014-05-29T17:48:35.651Z - info: Converted web coords {"x":351,"y":629}into real coords {"x":275.069387755102,"y":335.4182692307692}
2014-05-29T17:48:35.651Z - info: Pushing command to appium work queue: "au.complexTap({\"x\":275.069387755102,\"y\":335.4182692307692,\"tapCount\":1,\"duration\":0.3,\"touchCount\":1})"
2014-05-29T17:48:35.651Z - debug: Sending command to instruments: au.complexTap({"x":275.069387755102,"y":335.4182692307692,"tapCount":1,"duration":0.3,"touchCount":1})
info: [INSTSERVER] Sending command to instruments: au.complexTap({"x":275.069387755102,"y":335.4182692307692,"tapCount":1,"duration":0.3,"touchCount":1})
info: [INSTSERVER] Socket data received (48 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":0,"value":""}
2014-05-29T17:48:36.634Z - info: Responding to client with success: {"status":0,"value":"","sessionId":"fc441e9f-8ade-4799-8f87-1653a50a5a49"}
POST /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element/5001/click 200 1282ms - 87b
2014-05-29T17:48:37.337Z - debug: Appium request initiated at /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element
2014-05-29T17:48:37.337Z - debug: Request received with params: {"using":"id","value":"button2"}
2014-05-29T17:48:37.337Z - info: [REMOTE] Executing 'find_element' atom in default context
2014-05-29T17:48:37.337Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:37.337Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:37.355Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:37.355Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:37.355Z - debug: [REMOTE] got applicationSentData response
2014-05-29T17:48:37.356Z - info: Responding to client with success: {"status":0,"value":{"ELEMENT":"5002"},"sessionId":"fc441e9f-8ade-4799-8f87-1653a50a5a49"}
POST /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element 200 20ms - 112b
2014-05-29T17:48:37.952Z - debug: Appium request initiated at /wd/hub/session/fc441e9f-8ade-4799-8f87-1653a50a5a49/element/5002/click
2014-05-29T17:48:37.952Z - debug: Request received with params: {}
2014-05-29T17:48:37.952Z - info: [REMOTE] Executing 'get_top_left_coordinates' atom in default context
2014-05-29T17:48:37.952Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:37.953Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:37.965Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:37.965Z - debug: [REMOTE] got applicationSentData response
2014-05-29T17:48:37.966Z - info: [REMOTE] Executing 'get_size' atom in default context
2014-05-29T17:48:37.966Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:37.967Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:37.977Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:37.977Z - debug: [REMOTE] got applicationSentData response
2014-05-29T17:48:37.977Z - info: Pushing command to appium work queue: "au.getElementsByType('webview')"
2014-05-29T17:48:37.977Z - debug: Sending command to instruments: au.getElementsByType('webview')
info: [INSTSERVER] Sending command to instruments: au.getElementsByType('webview')
info: [INSTSERVER] Socket data received (63 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":0,"value":[{"ELEMENT":"3"}]}
2014-05-29T17:48:38.132Z - info: Pushing command to appium work queue: "au.getElement('3').rect()"
2014-05-29T17:48:38.132Z - info: [REMOTE] Sending javascript command
2014-05-29T17:48:38.132Z - debug: [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
2014-05-29T17:48:38.133Z - debug: Sending command to instruments: au.getElement('3').rect()
info: [INSTSERVER] Sending command to instruments: au.getElement('3').rect()
2014-05-29T17:48:38.133Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:38.134Z - debug: [REMOTE] Receiving data from remote debugger
2014-05-29T17:48:38.134Z - debug: [REMOTE] got applicationSentData response
info: [INSTSERVER] Socket data received (110 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":0,"value":{"origin":{"x":0,"y":-137.5},"size":{"width":768,"height":1467}}}
2014-05-29T17:48:38.243Z - info: Converted web coords {"x":351,"y":161}into real coords {"x":275.069387755102,"y":-31.331730769230774}
2014-05-29T17:48:38.243Z - info: Pushing command to appium work queue: "au.complexTap({\"x\":275.069387755102,\"y\":-31.331730769230774,\"tapCount\":1,\"duration\":0.3,\"touchCount\":1})"
2014-05-29T17:48:38.243Z - debug: Sending command to instruments: au.complexTap({"x":275.069387755102,"y":-31.331730769230774,"tapCount":1,"duration":0.3,"touchCount":1})
info: [INSTSERVER] Sending command to instruments: au.complexTap({"x":275.069387755102,"y":-31.331730769230774,"tapCount":1,"duration":0.3,"touchCount":1})
info: [INSTSERVER] Socket data received (99 bytes)
info: [INSTSERVER] Socket data being routed for 'cmd' event
info: [INSTSERVER] Got result from instruments: {"status":17,"value":"start point is not within the bounds of the screen"}
2014-05-29T17:48:38.902Z - info: Responding to client with error: {"status":17,"value":{"message":"An error occurred while executing user supplied JavaScript.","origValue":"start point is not within the bounds of the screen"},"sessionId":"fc441e9f-8ade-4799-8f87-1653a50a5a49"}
I can't recreate your error, try updating to Appium v1.1 or 1.2. Sauce Labs defaults to v0.18 right now.
You can change the appium version on Sauce Labs by adding the following capability:
appium-version: '1.1'
Also, I used value instead of keys to type into the input field. Not sure what that translates to in C#
I used javascript, but here's a working gist

Resources