Appium inspector issues on real device iPad pro

We are trying to inspect the UICatalog test app on real ipad pro using Appium inspector, the app opens in inspector – it has two issues

  1. It appears in Landscape mode(horizontal) inside the inspector
  2. When we try to inspect the elements it selects the entire app (whole app turns to yellow color – I am attaching screen shots ) i.e. we cannot see the accessibility ID’s

Note: the same UICatalog app works good in simulator ipad

Environment:
Appium Desktop – v1.7.1
Eclipse: Version Oxygen.1a Release (4.7.1a)
Real device iPad pro (12.9 inch)

Our json Code is below for inspecting:

{
“platformVersion”: “11.2”,
“platformName”: “ios”,
“deviceName”: " Test iPad Pro",
“xcodeOrgid”: “LEXXXXXX”,
“xcodeSigningId”: “iphone Developer”,
“udid”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“automationName”: “XCUITest”,
“app”: “/Users/svc-mac/Desktop/UICatalog.app”,
“noReset”: true
}

Appium logs:

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[Appium] Welcome to Appium v1.7.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions {}
[MJSONWP] Calling AppiumDriver.getSessions() with args: []
[MJSONWP] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 6 ms - 40
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:"/Users/svc-mac/Desktop/UICatalog.app",“automationName”:“XCUITest”,“deviceName”:“PMIC Test iPad Pro”,“noReset”:true,“platformName”:“ios”,“platformVersion”:“11.2”,“udid”:“xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,“xcodeOrgid”:“XXXXXXXXX”,“xcodeSigningId”:“iphone Developer”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:"/Users/svc-mac/Desktop/UICatalog.app",“automationName”:“XCUITest”,“deviceName”:“PMIC Test iPad Pro”,“noReset”:true,“platformName”:“ios”,“platformVersion”:“11.2”,“udid”:“xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,“xcodeOrgid”:“XXXXXXXXX”,“xcodeSigningId”:“iphone Developer”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1518119320709 (13:48:40 GMT-0600 (CST))
[Appium] Creating new XCUITestDriver (v2.51.1) session
[Appium] Capabilities:
[Appium] app: ‘/Users/svc-mac/Desktop/UICatalog.app’
[Appium] automationName: ‘XCUITest’
[Appium] deviceName: ‘Test iPad Pro’
[Appium] noReset: true
[Appium] platformName: ‘ios’
[Appium] platformVersion: ‘11.2’
[Appium] udid: ‘xxxxxxxxxxxxxxxxxx’
[Appium] xcodeOrgid: ‘xxxxxxxxx’
[Appium] xcodeSigningId: ‘iphone Developer’
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] The following capabilities were provided, but are not recognized by appium: xcodeOrgid.
[BaseDriver] Session created with session id: 3bb5042f-cd41-47f5-ab23-0977be98b83d
[XCUITest] Xcode version set to ‘9.2’ (tools v9.2.0.0.1.1510905681)
[XCUITest] iOS SDK Version set to ‘11.2’
[BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1518119320748 (13:48:40 GMT-0600 (CST))
[XCUITest] Available devices: xxxxxxxxxxxxxxxxxxxxxxxxx
[XCUITest] Creating iDevice object with udid ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’
[XCUITest] Determining device to run tests on: udid: ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’, real device: true
[BaseDriver] Using local app ‘/Users/svc-mac/Desktop/UICatalog.app’
[BaseDriver] Event ‘appConfigured’ logged at 1518119320874 (13:48:40 GMT-0600 (CST))
[XCUITest] Checking whether app ‘/Users/svc-mac/Desktop/UICatalog.app’ is actually present on file system
[XCUITest] App is present
[iOS] Getting bundle ID from app ‘/Users/svc-mac/Desktop/UICatalog.app’: ‘com.example.apple-samplecode.UICatalog’
[BaseDriver] Event ‘resetStarted’ logged at 1518119320878 (13:48:40 GMT-0600 (CST))
[XCUITest] Reset: fullReset not set. Leaving as is
[BaseDriver] Event ‘resetComplete’ logged at 1518119320879 (13:48:40 GMT-0600 (CST))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Starting iOS device log capture with: ‘idevicesyslog’
[BaseDriver] Event ‘logCaptureStarted’ logged at 1518119321298 (13:48:41 GMT-0600 (CST))
[XCUITest] Setting up real device
[XCUITest] App ‘com.example.apple-samplecode.UICatalog’ is already installed. No need to reinstall.
[BaseDriver] Event ‘appInstalled’ logged at 1518119321519 (13:48:41 GMT-0600 (CST))
[XCUITest] Using WDA path: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Capability ‘useNewWDA’ set to false, so trying to reuse currently running WDA instance at ‘http://localhost:8100/
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[iProxy] Error connecting to device!
[XCUITest] WDA is not listening at ‘http://localhost:8100/’. Rebuilding…
[BaseDriver] Event ‘wdaStartAttempted’ logged at 1518119321537 (13:48:41 GMT-0600 (CST))
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[XCUITest] Killing running processes ‘xcodebuild.*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, iproxy 8100’ for the device xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx…
[XCUITest] ‘pgrep -nif xcodebuild.*xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’ didn’t detect any matching processes. Return code: 1
[XCUITest] iproxy exited with code ‘null’
[XCUITest] ‘pgrep -nif iproxy 8100’ didn’t detect any matching processes. Return code: 1
[XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[XCUITest] Using Xcode 9.2, so fixing WDA codebase
[XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx IPHONEOS_DEPLOYMENT_TARGET=11.2’ in directory ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Output from xcodebuild will not be logged. To see xcode logging, use ‘showXcodeLog’ desired capability
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[XCUITest] Log file for xcodebuild test: /var/folders/xh/br5ky4ms6n3115k2fmxwgb_1p1g0pb/T/com.apple.dt.XCTest/IDETestRunSession-36DB9EE7-FAFC-4760-9F6F-084586E995F5/WebDriverAgentRunner-0AF924D8-E7B7-4DD3-8548-A76D186E349D/Session-WebDriverAgentRunner-2018-02-08_134848-Eh5wLl.log
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[JSONWP Proxy] Got response with status 200: “{\n “value” : {\n “state” : “success”,\n “os” : {\n “name” : “iOS”,\n “version” : “11.2.5”\n },\n “ios” : {\n “simulatorVersion” : “11.2.5”,\n “ip” : “10.84.0.68”\n },\n “build” : {\n “time” : “Feb 7 2018 13:51:12”\n }\n },\n “sessionId” : “98327AF0-7C5B-4B50-832B-59BB77339BAB”,\n “status” : 0\n}”
[XCUITest] WebDriverAgent running on ip ‘10.84.0.68’
[XCUITest] WebDriverAgent successfully started after 6606ms
[BaseDriver] Event ‘wdaSessionAttempted’ logged at 1518119333372 (13:48:53 GMT-0600 (CST))
[XCUITest] Sending createSession command to WDA
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {“desiredCapabilities”:{“bundleId”:“com.example.apple-samplecode.UICatalog”,“arguments”:[],“environment”:{},“shouldWaitForQuiescence”:true,“shouldUseTestManagerForVisibilityDetection”:false,“maxTypingFrequency”:60,“shouldUseSingletonTestManager”:true}}
[JSONWP Proxy] Got response with status 200: {“value”:{“sessionId”:“BBC8E794-3C49-4A3F-8E12-2C634DB6CAE6”,“capabilities”:{“device”:“ipad”,“browserName”:“UICatalog”,“sdkVersion”:“11.2.5”,“CFBundleIdentifier”:“com.example.apple-samplecode.UICatalog”}},“sessionId”:“BBC8E794-3C49-4A3F-8E12-2C634DB6CAE6”,“status”:0}
[BaseDriver] Event ‘wdaSessionStarted’ logged at 1518119336001 (13:48:56 GMT-0600 (CST))
[XCUITest] Cannot find a match for DerivedData folder path from lsof. Trying to access logs
[XCUITest] Setting ‘555’ permissions to ‘/Users/svc-mac/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments’ folder
[BaseDriver] Event ‘wdaPermsAdjusted’ logged at 1518119336063 (13:48:56 GMT-0600 (CST))
[BaseDriver] Event ‘wdaStarted’ logged at 1518119336064 (13:48:56 GMT-0600 (CST))
[XCUITest] Setting initial orientation to ‘PORTRAIT’
[JSONWP Proxy] Proxying [POST /orientation] to [POST http://localhost:8100/session/BBC8E794-3C49-4A3F-8E12-2C634DB6CAE6/orientation] with body: {“orientation”:“PORTRAIT”}
[JSONWP Proxy] Got response with status 200: {“value”:{},“sessionId”:“BBC8E794-3C49-4A3F-8E12-2C634DB6CAE6”,“status”:0}
[BaseDriver] Event ‘orientationSet’ logged at 1518119338161 (13:48:58 GMT-0600 (CST))
[Appium] New XCUITestDriver session created successfully, session 3bb5042f-cd41-47f5-ab23-0977be98b83d added to master session list
[BaseDriver] Event ‘newSessionStarted’ logged at 1518119338162 (13:48:58 GMT-0600 (CST))
[MJSONWP] Responding to client with driver.createSession() result: {“webStorageEnabled”:false,“locationContextEnabled”:false,“browserName”:"",“platform”:“MAC”,“javascriptEnabled”:true,“databaseEnabled”:false,“takesScreenshot”:true,“networkConnectionEnabled”:false,“app”:"/Users/svc-mac/Desktop/UICatalog.app",“automationName”:“XCUITest”,“deviceName”:“PMIC Test iPad Pro”,“noReset”:true,“platformName”:“ios”,“platformVersion”:“11.2”,“udid”:“xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,“xcodeOrgid”:“XXXXXXXXX”,“xcodeSigningId”:“iphone Developer”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}
[HTTP] <-- POST /wd/hub/session 200 17455 ms - 602
[HTTP] --> POST /wd/hub/session/3bb5042f-cd41-47f5-ab23-0977be98b83d/context {“name”:“NATIVE_APP”}
[MJSONWP] Calling AppiumDriver.setContext() with args: [“NATIVE_APP”,“3bb5042f-cd41-47f5-ab23-0977be98b83d”]
[XCUITest] Executing command ‘setContext’
[iOS] Attempting to set context to ‘NATIVE_APP’
[MJSONWP] Responding to client with driver.setContext() result: null
[HTTP] <-- POST /wd/hub/session/3bb5042f-cd41-47f5-ab23-0977be98b83d/context 200 6 ms - 76
[HTTP] --> GET /wd/hub/session/3bb5042f-cd41-47f5-ab23-0977be98b83d/source {}
[MJSONWP] Calling AppiumDriver.getPageSource() with args: [“3bb5042f-cd41-47f5-ab23-0977be98b83d”]
[XCUITest] Executing command ‘getPageSource’
[JSONWP Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/BBC8E794-3C49-4A3F-8E12-2C634DB6CAE6/source] with no body
[JSONWP Proxy] Got response with status 200: "{\n “value” : "\n\n \n \n \n \n
[MJSONWP] Responding to client with driver.getPageSource() result: "\n \n \n \n \n \n
[HTTP] <-- GET /wd/hub/session/3bb5042f-cd41-47f5-ab23-0977be98b83d/source 200 78568 ms - 25040
[HTTP] --> GET /wd/hub/session/3bb5042f-cd41-47f5-ab23-0977be98b83d/screenshot {}
[MJSONWP] Calling AppiumDriver.getScreenshot() with args: [“3bb5042f-cd41-47f5-ab23-0977be98b83d”]
[XCUITest] Executing command ‘getScreenshot’
[JSONWP Proxy] Proxying [GET /screenshot] to [GET http://localhost:8100/session/BBC8E794-3C49-4A3F-8E12-2C634DB6CAE6/screenshot] with no body
[JSONWP Proxy] Got response with status 200: "{\n “value” : "iVBORw0KGgoAAAANSUhEUgAACqwAAAgACAIAAADWzRf5AAAAAXNSR0IArs4c6QAA\r\nAAlwSFlzAAAWJQAAFiUBSVIk8AAAABxpRE9UAAAAAgAAAAAAAAQAAAAAKAAABAAA\r\nAAQAAAGvUZbuKQwAAEAASURBVHgB7N15uJZ1uff\/7YiGKIgiak7kAQ1OSWlkWy23\r\nw9ZdZuXWTNIGTZt2qaE73Y6J1taoRMEJR3JAEUVDJEUkTQOZQ5BBZkTmaa21\/3p+\r\n5w+eh4Ojtn5Z617v1sU63+vosAVc9wfW6\/pc5z\/fc93rn\/7pn\/7pf\/xILPBfGz7+\r\njx8KbIUCr\/957Fb4r95q\/snyorcqeBWmhdH85OG2Fy2A8wHljXALjArLS\/MqTAuj\r\n+cnDbS9agOBVmBZG85OH2160AM4HlDfCLTAqLC\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YFZaX5lWYFkbzk4fbXrQAwaswLYzmJw+3vWgBnA8ob4RbYFRY3iLvxh0AlwBS\r\nrwK4BFB8TrygsgJOefTWyEvzKkwLo/nJw20vWoDgVZgWRvOTh9tetADOB5Q3wi0w\r\nKiwvzaswLYzmJw+3vWgBgldhWhjNTx5ue9ECOB9Q3gi3wKiwvEVelwBSH/9v/OJd\r\nAig+J15QWQGnPHpr5KV5FaaF0fzk4bYXLUDwKkwLo/nJw20vWgDnA8ob4RYYFZaX\r\n5lWYFkbzk4fbXrQAwaswLYzmJw+3vWgBnA8ob4RbYFRY3iKvSwAuAfjjAIqPiRdU\r\nV8Apj94beWlehWlhND95uO1FCxC8CtPCaH7ycNuLFsD5gPJGuAVGheWleRWmhdH8\r\n5OG2Fy1A8CpMC6P5ycNtL1oA5wPKG+EWGBWWt8jrEoBLAC4BFB8TL6iugFMevTfy\r\n…
[HTTP] <-- GET /wd/hub/session/3bb5042f-cd41-47f5-ab23-0977be98b83d/screenshot 200 187 ms - 351538
[HTTP] --> DELETE /wd/hub/session/3bb5042f-cd41-47f5-ab23-0977be98b83d {}
[MJSONWP] Calling AppiumDriver.deleteSession() with args: [“3bb5042f-cd41-47f5-ab23-0977be98b83d”]
[BaseDriver] Event ‘quitSessionRequested’ logged at 1518119440815 (13:50:40 GMT-0600 (CST))
[Appium] Removing session 3bb5042f-cd41-47f5-ab23-0977be98b83d from our master session list
[JSONWP Proxy] Proxying [DELETE /session/3bb5042f-cd41-47f5-ab23-0977be98b83d] to [DELETE http://localhost:8100/session/BBC8E794-3C49-4A3F-8E12-2C634DB6CAE6] with no body
[JSONWP Proxy] Got response with status 200: “{\n “value” : {\n\n },\n “sessionId” : “F0F0BFB5-A86E-46AD-9854-8202B482A072”,\n “status” : 0\n}”
[XCUITest] Setting ‘755’ permissions to ‘/Users/svc-mac/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Attachments’ folder
[XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.


[iOSLog] Stopping iOS log capture
[BaseDriver] Event ‘quitSessionFinished’ logged at 1518119441134 (13:50:41 GMT-0600 (CST))
[MJSONWP] Received response: null
[MJSONWP] But deleting session, so not returning
[MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/3bb5042f-cd41-47f5-ab23-0977be98b83d 200 321 ms - 76
[XCUITest] Connection to WDA timed out
[iProxy] recv failed: Operation not permitted

any help in trouble shooting for above issue will help us

the code works for 9.7 inch ipad – but for 12.9 inch - there is an issue what i have described above

Use orientation capability to solve this, for ipad set orientation capability to LANDSCAPE.

Hope it will help. :slight_smile:

Same issue is there with my device(iPad pro) also. As you have mentioned above, to use orientation. Still, it’s not working.

Model iPad Pro (2nd generation)
Screen Size 12.9-inch

Please help me regarding this issue.

imagehttps://discuss-new.appium.io/uploads/default/optimized/2X/a/ab82700da752f13cac9152bc534bb68d48efd5bb_1_690x288.png