appium: Appium can't handle properly iOS native system popups on real device
Hello everyone,
My environment:
- Appium 1.3.5 (npm & source), iPhone 5s (7.1.1), Mac OS 10.9.5, Xcode 6.1.1, SafariLauncher
- Appium prepared for using device real safari (./reset.sh --ios --real-safari)
- SafariLauncher built with proper developer account and provisioning profile(which include mine device)
I’m trying to automate Profile Installation on iOS but i can’t workaround problem i have faced with native system popups. My case is quite simple:
- On real device visit webpage (SafariLauncher)
- Click button on that page which invokes profile installation
- Switch to NATIVE_APP view
- Go through “Installing Profile” process (managed by accepting system popups)
What i was able to do:
- OK
- OK
- OK. Below you can see that after switching to NATIVE_APP view appium inspector is able to see native screen with all elements properly
how current page.source looks like:
[1] pry(#<RSpec::ExampleGroups::MobileDeviceManagementScenarios>)> appium_driver.set_context(appium_driver.available_contexts[0])
=> ""
[2] pry(#<RSpec::ExampleGroups::MobileDeviceManagementScenarios>)> page.source
=> "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<AppiumAUT>\n <UIAApplication name=\"Settings\" label=\"Settings\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0\" x=\"0\" y=\"20\" width=\"320\" height=\"548\">\n <UIAWindow name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0\" x=\"0\" y=\"0\" width=\"320\" height=\"568\">\n <UIANavigationBar name=\"Install Profile\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/0\" x=\"0\" y=\"20\" width=\"320\" height=\"44\">\n <UIAImage name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"false\" hint=\"\" path=\"/0/0/0/0\" x=\"0\" y=\"0\" width=\"320\" height=\"64\">\n <UIAImage name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"false\" hint=\"\" path=\"/0/0/0/0/0\" x=\"0\" y=\"64\" width=\"320\" height=\"0.5\">\n </UIAImage>\n </UIAImage>\n <UIAButton name=\"Cancel\" label=\"Cancel\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/0/1\" x=\"8\" y=\"28\" width=\"54\" height=\"30\">\n </UIAButton>\n <UIAButton name=\"UINavigationBarBackIndicatorDefault.png\" label=\"Back\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"false\" hint=\"\" path=\"/0/0/0/2\" x=\"8\" y=\"32\" width=\"12.5\" height=\"20.5\">\n </UIAButton>\n <UIAStaticText name=\"Install Profile\" label=\"Install Profile\" value=\"Install Profile\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/0/3\" x=\"109\" y=\"28\" width=\"102\" height=\"27\">\n </UIAStaticText>\n </UIANavigationBar>\n <UIATableView name=\"Empty list\" label=\"Empty list\" value=\"rows 1 to 3 of 3\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1\" x=\"0\" y=\"0\" width=\"320\" height=\"568\">\n <UIATableCell name=\"Profile Service, Test Inc., Verified,\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/0\" x=\"0\" y=\"99\" width=\"320\" height=\"86\">\n <UIAStaticText name=\"Profile Service, Test Inc., Verified,\" label=\"Profile Service, Test Inc., Verified,\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/0/0\" x=\"0\" y=\"99\" width=\"320\" height=\"86\">\n </UIAStaticText>\n <UIAButton name=\"Install\" label=\"Install\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/0/1\" x=\"234\" y=\"150\" width=\"74\" height=\"25\">\n </UIAButton>\n </UIATableCell>\n <UIATableCell name=\"Description: Enter device into the encrypted profile service.Signed: *.test.com.Received: 03 Mar 2015.Contains: Device enrollment challenge.\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/1\" x=\"0\" y=\"185\" width=\"320\" height=\"120\">\n <UIAStaticText name=\"Description: Enter device into the encrypted profile service.Signed: *.test.com.Received: 03 Mar 2015.Contains: Device enrollment challenge.\" label=\"Description: Enter device into the encrypted profile service.Signed: *.test.com.Received: 03 Mar 2015.Contains: Device enrollment challenge.\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/1/0\" x=\"0\" y=\"185\" width=\"320\" height=\"120\">\n </UIAStaticText>\n </UIATableCell>\n <UIATableCell name=\"More Details\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/2\" x=\"0\" y=\"305\" width=\"320\" height=\"44\">\n <UIAStaticText name=\"More Details\" label=\"More Details\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/1/2/0\" x=\"0\" y=\"305\" width=\"320\" height=\"44\">\n </UIAStaticText>\n </UIATableCell>\n </UIATableView>\n </UIAWindow>\n <UIAWindow name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/1\" x=\"0\" y=\"0\" width=\"320\" height=\"568\">\n <UIAStatusBar name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/1/0\" x=\"0\" y=\"0\" width=\"320\" height=\"20\">\n <UIAElement name=\"3 of 5 bars, signal strength\" label=\"3 of 5 bars, signal strength\" value=\"\" dom=\"\" 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=\"35\" height=\"20\">\n </UIAElement>\n <UIAElement name=\"T-Mobile.pl network\" label=\"T-Mobile.pl network\" value=\"\" dom=\"\" 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=\"44\" y=\"0\" width=\"62\" height=\"20\">\n </UIAElement>\n <UIAElement name=\"3 of 3 Wi-Fi bars\" label=\"3 of 3 Wi-Fi bars\" value=\"wifie!\" dom=\"\" 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=\"111\" y=\"0\" width=\"13\" height=\"20\">\n </UIAElement>\n <UIAElement name=\"12:19\" label=\"12:19\" value=\"\" dom=\"\" 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=\"146\" y=\"0\" width=\"28\" height=\"20\">\n </UIAElement>\n <UIAElement name=\"100% battery power, On AC Power\" label=\"100% battery power, On AC Power\" value=\"\" dom=\"\" 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/4\" x=\"248\" y=\"0\" width=\"67\" height=\"20\">\n </UIAElement>\n </UIAStatusBar>\n </UIAWindow>\n </UIAApplication>\n</AppiumAUT>"
To this point everything works fine, i can expand/collapse “More Details” section etc.
4.Clicking “Install” button kills all fun:
Another thing is that this button is somehow wrongly scaled, clicking “Install” label doesn’t work, i have to perform “Precise Click” inside red rectangle to make it work (this is bug? or am i doing smth wrong?):
appium_driver.execute_script 'mobile: tap', :tapCount => 1, :touchCount => 1, :duration => 0.5, :x => 252, :y => 160
From now on Appium hangs, Appium Inspector busy indicator is still spinning, view is not refreshed:
On real device system popup appears:
I have no idea how can i go further from now on. I tried _autoAcceptAlerts_ capability but it is not working in this case. There is also reported bug https://github.com/appium/appium/issues/4178 but here i have no influence when this system popup occurrs so i can’t delay it. Accept allerts etc. also don’t work.
Is there ANY way to accept/go through system generated popups? There are few more popups that i will have deal with after i pass this one like:
Below im attaching appium logs:
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5070/displayed {}
info: [debug] [REMOTE] Executing 'is_displayed' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function(){return function(){function h(a){return...]
Debugger web socket received data : {"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":true}"},"wasThrown":false},"id":122}
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5070/displayed 200 126.106 ms - 76 {"status":0,"value":true,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5070/name {}
info: [debug] [REMOTE] Executing 'execute_script' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function(){return function(){var g=this;\nfunctio...]
Debugger web socket received data : {"result":{"result":{"type":"object","value":{"status":0,"value":"a"}},"wasThrown":false},"id":123}
info: [debug] Responding to client with success: {"status":0,"value":"a","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5070/name 200 22.291 ms - 75 {"status":0,"value":"a","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5070/click {}
info: [debug] [REMOTE] Executing 'click' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function(){return function(){function h(a){return...]
Debugger web socket received data : {"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":null}"},"wasThrown":false},"id":124}
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5070/click 200 2188.823 ms - 76 {"status":0,"value":null,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/window_handle {}
info: [debug] Responding to client with success: {"status":0,"value":"1","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/window_handle 200 1.386 ms - 75 {"status":0,"value":"1","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/window_handle {}
info: [debug] Responding to client with success: {"status":0,"value":"1","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/window_handle 200 1.487 ms - 75 {"status":0,"value":"1","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/frame {"id":"Test"}
info: [debug] [REMOTE] Executing 'frame_by_id_or_name' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function(){return function(){function h(a){return...]
Debugger web socket received data : {"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":{\"WINDOW\":\":wdc:1425380325562\"}}"},"wasThrown":false},"id":125}
info: [debug] Entering new web frame: :wdc:1425380325562
info: [debug] Responding to client with success: {"status":0,"value":{"WINDOW":":wdc:1425380325562"},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/frame 200 40.773 ms - 103 {"status":0,"value":{"WINDOW":":wdc:1425380325562"},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/elements {"using":"xpath","value":".//a[./@href][(((./@id = 'Enroll IOS Device' or normalize-space(string(.)) = 'Enroll IOS Device') or ./@title = 'Enroll IOS Device') or .//img[./@alt = 'Enroll IOS Device'])] | .//input[./@type = 'submit' or ./@type = 'reset' or ./@type = 'image' or ./@type = 'button'][((./@id = 'Enroll IOS Device' or ./@value = 'Enroll IOS Device') or ./@title = 'Enroll IOS Device')] | .//input[./@type = 'image'][./@alt = 'Enroll IOS Device'] | .//button[(((./@id = 'Enroll IOS Device' or ./@value = 'Enroll IOS Device') or normalize-space(string(.)) = 'Enroll IOS Device') or ./@title = 'Enroll IOS Device')] | .//input[./@type = 'image'][./@alt = 'Enroll IOS Device']"}
info: [debug] Waiting up to 30000ms for condition
info: [debug] [REMOTE] Wrapping script for frame :wdc:1425380325562
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function (window) { var document = window.documen...]
Debugger web socket received data : {"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":[]}"},"wasThrown":false},"id":126}
info: [debug] Waited for 41ms so far
info: [debug] [REMOTE] Wrapping script for frame :wdc:1425380325562
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function (window) { var document = window.documen...]
Debugger web socket received data : {"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":[{\"ELEMENT\":\":wdc:1425380342072\"},{\"ELEMENT\":\":wdc:1425380342073\"}]}"},"wasThrown":false},"id":127}
info: [debug] Responding to client with success: {"status":0,"value":[{"ELEMENT":"5071"},{"ELEMENT":"5072"}],"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/elements 200 686.862 ms - 111 {"status":0,"value":[{"ELEMENT":"5071"},{"ELEMENT":"5072"}],"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5071/displayed {}
info: [debug] [REMOTE] Wrapping script for frame :wdc:1425380325562
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function (window) { var document = window.documen...]
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:02 QAs-iPhone geod[110] <Warning>: Can't get bundle identifier for process 60
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:02 QAs-iPhone geod[110] <Warning>: Can't get bundle identifier for process 60
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:02 QAs-iPhone locationd[60] <Notice>: Location icon should now be in state 'Active'
Debugger web socket received data : {"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":true}"},"wasThrown":false},"id":128}
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5071/displayed 200 292.653 ms - 76 {"status":0,"value":true,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5071/name {}
info: [debug] [REMOTE] Wrapping script for frame :wdc:1425380325562
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function (window) { var document = window.documen...]
Debugger web socket received data : {"result":{"result":{"type":"object","value":{"status":0,"value":"button"}},"wasThrown":false},"id":129}
info: [debug] Responding to client with success: {"status":0,"value":"button","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5071/name 200 29.690 ms - 80 {"status":0,"value":"button","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5071/enabled {}
info: [debug] [REMOTE] Wrapping script for frame :wdc:1425380325562
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function (window) { var document = window.documen...]
Debugger web socket received data : {"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":true}"},"wasThrown":false},"id":130}
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5071/enabled 200 68.987 ms - 76 {"status":0,"value":true,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5072/displayed {}
info: [debug] [REMOTE] Wrapping script for frame :wdc:1425380325562
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function (window) { var document = window.documen...]
Debugger web socket received data : {"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":false}"},"wasThrown":false},"id":131}
info: [debug] Responding to client with success: {"status":0,"value":false,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5072/displayed 200 59.902 ms - 77 {"status":0,"value":false,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5071/click {}
info: [debug] [REMOTE] Wrapping script for frame :wdc:1425380325562
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Remote debugger data sent [{"method":"Runtime.evaluate","params":{"objectGroup":"console","includeCommandLineAPI":true,"doNotPauseOnExceptionsAndMuteConsole":true,"expression":"(function (window) { var document = window.documen...]
Debugger web socket received data : {"result":{"result":{"type":"string","value":"{\"status\":0,\"value\":null}"},"wasThrown":false},"id":132}
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/element/5071/click 200 330.001 ms - 76 {"status":0,"value":null,"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/window_handle {}
info: [debug] Responding to client with success: {"status":0,"value":"1","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/window_handle 200 1.245 ms - 75 {"status":0,"value":"1","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/frame {"id":null}
info: [debug] Leaving web frame and going back to default content
info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/frame 200 1.389 ms - 74 {"status":0,"value":"","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/window_handle {}
info: [debug] Responding to client with success: {"status":0,"value":"1","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/window_handle 200 1.074 ms - 75 {"status":0,"value":"1","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:03 QAs-iPhone profiled[2795] <Notice>: (Note ) profiled: Service starting...
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:03 QAs-iPhone profiled[2795] <Notice>: (Note ) MC: Profile “com.Test.mobile.profile.profile-service” queued for installation.
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:03 QAs-iPhone backboardd[31] <Error>: HID: The 'Passive' connection 'Preferences' access to protected services is denied.
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:03 QAs-iPhone Preferences[2796] <Warning>: BTM: attaching to BTServer
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/contexts {}
info: [debug] [REMOTE] Getting WebKitRemoteDebugger pageArray
info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/contexts 200 11.194 ms - 98 {"status":0,"value":["NATIVE_APP","WEBVIEW_1"],"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/context {"name":"NATIVE_APP"}
info: [debug] Attempting to set context to 'NATIVE_APP'
info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/context 200 2.769 ms - 74 {"status":0,"value":"","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: [debug] [REMOTE] Disconnecting from remote debugger
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:14 QAs-iPhone profiled[2795] <Notice>: (Note ) profiled: Service stopping.
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:14 QAs-iPhone locationd[60] <Notice>: Location icon should now be in state 'Inactive'
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/source {}
info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"
info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2015-03-03 10:59:18 +0000 Debug: Got new command 3 from instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2015-03-03 10:59:18 +0000 Debug: evaluating au.mainApp().getTreeForXML()
info: [debug] [INST] 2015-03-03 10:59:18 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-03-03 10:59:18 +0000 Debug: responding with:valid":true,"visible":true,"hint":null,"path":"/0/0","x":0,"y":0,"width":320,"height":568},">":[{"UIANavigationBar":{"@":{"name":"Install Profile","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/0","x":0,"y":20,"width":320,"height":44},">":[{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/0/0","x":0,"y":0,"width":320,"height":64},">":[{"UIAImage":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/0/0/0","x":0,"y":64,"width":320,"height":0.5},">":[]}}]}},{"UIAButton":{"@":{"name":"Cancel","label":"Cancel","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/0/1","x":8,"y":28,"width":54,"height":30},">":[]}},{"UIAButton":{"@":{"name":"UINavigationBarBackIndicatorDefault.png","label":"Back","value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/0/2","x":8,"y":32,"width":12.5,"height":20.5},">":[]}},{"UIAStaticText":{"@":{"name":"Install Profile","label":"Install Profile","value":"Install Profile","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/0/3","x":109,"y":28,"width":102,"height":27},">":[]}}]}},{"UIATableView":{"@":{"name":"Empty list","label":"Empty list","value":"rows 1 to 3 of 3","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1","x":0,"y":0,"width":320,"height":568},">":[{"UIATableCell":{"@":{"name":"Profile Service, Test Inc., Verified,","label":null,"value":"","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1/0","x":0,"y":99,"width":320,"height":86},">":[{"UIAStaticText":{"@":{"name":"Profile Service, Test Inc., Verified,","label":"Profile Service, Test Inc., Verified,","value":"","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1/0/0","x":0,"y":99,"width":320,"height":86},">":[]}},{"UIAButton":{"@":{"name":"Install","label":"Install","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1/0/1","x":234,"y":150,"width":74,"height":25},">":[]}}]}},{"UIATableCell":{"@":{"name":"Description: Enter device into the encrypted profile service.Signed: *.test.com.Received: 03 Mar 2015.Contains: Device enrollment challenge.","label":null,"value":"","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1/1","x":0,"y":185,"width":320,"height":120},">":[{"UIAStaticText":{"@":{"name":"Description: Enter device into the encrypted profile service.Signed: *.test.com.Received: 03 Mar 2015.Contains: Device enrollment challenge.","label":"Description: Enter device into the encrypted profile service.Signed: *.test.com.Received: 03 Mar 2015.Contains: Device enrollment challenge.","value":"","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1/1/0","x":0,"y":185,"width":320,"height":120},">":[]}}]}},{"UIATableCell":{"@":{"name":"More Details","label":null,"value":"","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1/2","x":0,"y":305,"width":320,"height":44},">":[{"UIAStaticText":{"@":{"name":"More Details","label":"More Details","value":"","dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0/0/1/2/0","x":0,"y":305,"width":320,"height":44},">":[]}}]}}]}}]}},{"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":"3 of 5 bars, signal strength","label":"3 of 5 bars, signal strength","value":null,"dom":null,"enabled":true,"valid":true,"visibl
e":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":35,"height":20},">":[]}},{"UIAElement":{"@":{"name":"T-Mobile network","label":"T-Mobilel network","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":44,"y":0,"width":62,"height":20},">":[]}},{"UIAElement":{"@":{"name":"3 of 3 Wi-Fi bars","label":"3 of 3 Wi-Fi bars","value":"xxxx","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":111,"y":0,"width":13,"height":20},">":[]}},{"UIAElement":{"@":{"name":"11:59","label":"11:59","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":146,"y":0,"width":29,"height":20},">":[]}},{"UIAElement":{"@":{"name":"100% battery power, Charging","label":"100% battery power, Charging","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/4","x":248,"y":0,"width":67,"height":20},">":[]}}]}}]}}]}}}
info: [debug] [INST] 2015-03-03 10:59:18 +0000 Debug: Running system command #4: /Applications/Appium.app/Contents/Resources/node/bin/node /Users/myuser/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"UIAApplication":{"@":{"name":"Settings","label":"Settings","value":null,"dom":null,"enabled":true,"valid":t...
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.5-beta","revision":"63e51239d06aa517ffb8ac45ac108c506b470335"},"isShuttingDown":false},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/status 200 7.469 ms - 183 {"status":0,"value":{"build":{"version":"1.3.5-beta","revision":"63e51239d06aa517ffb8ac45ac108c506b470335"},"isShuttingDown":false},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: [debug] Socket data received (6035 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"@":{"name":"Settings","label":"Settings","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":true,"
info: [debug] Responding to client with success: {"status":0,"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<AppiumAUT>\n <UIAApplication name=\"Settings\" label=\"Settings\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0\" x=\"0\" y=\"20\" width=\"320\" height=\"548\">\n <UIAWindow name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0\" x=\"0\" y=\"0\" width=\"320\" height=\"568\">\n <UIANavigationBar name=\"Install Profile\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/0\" x=\"0\" y=\"20\" width=\"320\" height=\"44\">\n <UIAImage name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"false\" hint=\"\" path=\"/0/0/0/0\" x=\"0\" y=\"0\" width=\"320\" height=\"64\">\n <UIAImage name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"false\" hint=\"\" path=\"/0/0/0/0/0\" x=\"0\" y=\"64\" width=\"320\" height=\"0.5\">\n </UIAImage>\n </UIAImage>\n <UIAButton name=\"Cancel\" label=\"Ca...","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/source 200 967.480 ms - 7046 {"status":0,"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<AppiumAUT>\n <UIAApplication name=\"Settings\" label=\"Settings\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0\" x=\"0\" y=\"20\" width=\"320\" height=\"548\">\n <UIAWindow name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0\" x=\"0\" y=\"0\" width=\"320\" height=\"568\">\n <UIANavigationBar name=\"Install Profile\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"true\" hint=\"\" path=\"/0/0/0\" x=\"0\" y=\"20\" width=\"320\" height=\"44\">\n <UIAImage name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"false\" hint=\"\" path=\"/0/0/0/0\" x=\"0\" y=\"0\" width=\"320\" height=\"64\">\n <UIAImage name=\"\" label=\"\" value=\"\" dom=\"\" enabled=\"true\" valid=\"true\" visible=\"false\" hint=\"\" path=\"/0/0/0/0/0\" x=\"0\" y=\"64\" width=\"320\" height=\"0.5\">\n </UIAImage>\n </UIAImage>\n <UIAButton name=\"Cancel\" label=\"Ca...","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.5-beta","revision":"63e51239d06aa517ffb8ac45ac108c506b470335"},"isShuttingDown":false},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/status 200 81.978 ms - 183 {"status":0,"value":{"build":{"version":"1.3.5-beta","revision":"63e51239d06aa517ffb8ac45ac108c506b470335"},"isShuttingDown":false},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/execute {"script":"mobile: tap","args":[{"tapCount":1,"touchCount":1,"duration":0.5,"x":252,"y":160}]}
info: [debug] Pushing command to appium work queue: "au.complexTap({\"tapCount\":1,\"touchCount\":1,\"duration\":0.5,\"x\":252,\"y\":160})"
info: [debug] Sending command to instruments: au.complexTap({"tapCount":1,"touchCount":1,"duration":0.5,"x":252,"y":160})
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:42 QAs-iPhone backboardd[31] <Error>: HID: The 'Rate Controlled' connection 'ScriptAgent' access to protected services is denied.
info: [debug] [INST] 2015-03-03 10:59:42 +0000 Debug: Got new command 4 from instruments: au.complexTap({"tapCount":1,"touchCount":1,"duration":0.5,"x":252,"y":160})
info: [debug] [INST] 2015-03-03 10:59:42 +0000 Debug: evaluating au.complexTap({"tapCount":1,"touchCount":1,"duration":0.5,"x":252,"y":160})
info: [debug] [INST] 2015-03-03 10:59:42 +0000 Debug: target.tapWithOptions({x:"252", y:"160"}, {touchCount:"1", tapCount:"1", duration:"0.5"})
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:43 QAs-iPhone profiled[2797] <Notice>: (Note ) profiled: Service starting...
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:43 QAs-iPhone profiled[2797] <Notice>: (Note ) MC: Checking for MDM installation...
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:43 QAs-iPhone profiled[2797] <Notice>: (Note ) MC: ...finished checking for MDM installation.
info: [IOS_SYSLOG_ROW ] Mar 3 11:59:43 QAs-iPhone backboardd[31] <Error>: HID: The 'Rate Controlled' connection 'Preferences' access to protected services is denied.
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":""}
info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- POST /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/execute 200 1745.799 ms - 74 {"status":0,"value":"","sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/session/7ad8d70e-b0cc-4b38-8361-500c2e17c7ed/source {}
info: [debug] Pushing command to appium work queue: "au.mainApp().getTreeForXML()"
info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()
info: [debug] [INST] 2015-03-03 10:59:43 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-03-03 10:59:43 +0000 Debug: responding with:
info: [debug] [INST] 2015-03-03 10:59:43 +0000 Debug: Running system command #5: /Applications/Appium.app/Contents/Resources/node/bin/node /Users/myuser/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}...
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.5-beta","revision":"63e51239d06aa517ffb8ac45ac108c506b470335"},"isShuttingDown":false},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/status 200 0.970 ms - 183 {"status":0,"value":{"build":{"version":"1.3.5-beta","revision":"63e51239d06aa517ffb8ac45ac108c506b470335"},"isShuttingDown":false},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/status {}
info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.5-beta","revision":"63e51239d06aa517ffb8ac45ac108c506b470335"},"isShuttingDown":false},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: <-- GET /wd/hub/status 200 4.208 ms - 183 {"status":0,"value":{"build":{"version":"1.3.5-beta","revision":"63e51239d06aa517ffb8ac45ac108c506b470335"},"isShuttingDown":false},"sessionId":"7ad8d70e-b0cc-4b38-8361-500c2e17c7ed"}
info: --> GET /wd/hub/status {}
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 30 (9 by maintainers)
Has anyone found a solution yet to this issue i.e. tapping Install button? Even the precise tap did not work (using Appium 1.5.3 and iOS 9.3.5).