Closed Ajmx07 closed 2 weeks ago
I have the same issue for a week already. Did so many thing but nothing has changed the outcome. Not sure where is the issue here, but for me it does not work only for ios device/simulator. For android works well It's also worth to mention that in a meantime there were 2 updates for xcode. So im not sure where is the issue and what to troubleshoot anymore...
Hi @jlipps , Your help is needed, could you please look into this.
This issue has been posted multiple times already (#1700, #1705, #1716, #1741) and is related to Xcode 16/iOS 18. You can resolve this by upgrading your XCUITest driver to >=7.24.15 and rebuilding WebDriverAgentRunner, such that your device is using WDA 8.9.1 or later. Please refer to the XCUITest driver documentation for Xcode/iOS version compatibility. Closing as duplicate.
Hello, the versions are as follows, appium inspector opens but does not show pop ups and alerts in xml. I cleared WDA and XCode cache. I deleted the old webdriverAgent and installed 8.9.3, but it cannot parse pop ups and alerts in xml in iOS 17.4.0 and 18. I share Appium logs.
Appium : 2.12.0 Appium Inspector : 2024.9.1 WDA 8.9.3XCUITest - 7.28.0 UIAutomator2 - 3.8.0 Flutter - 2.9.2 node v22.9 java jdk 21.0.5 maven 3.9.9 XCode 16.0 Mac 14.7 Sonoma
m] Attempting to find matching driver for automationName 'XCUITest' and platformName 'ios'
2024-10-18 10:27:26:291 - [Appium] The 'xcuitest' driver was installed and matched caps.
2024-10-18 10:27:26:291 - [Appium] Will require it at /Users/mobven/.appium/node_modules/appium-xcuitest-driver
2024-10-18 10:27:26:292 - [Appium] Requiring driver at /Users/mobven/.appium/node_modules/appium-xcuitest-driver/build/index.js
2024-10-18 10:27:26:292 - [AppiumDriver@c2b7] Appium v2.12.0 creating new XCUITestDriver (v7.28.0) session
2024-10-18 10:27:26:292 - [AppiumDriver@c2b7] Checking BaseDriver versions for Appium and XCUITestDriver
2024-10-18 10:27:26:292 - [AppiumDriver@c2b7] Appium's BaseDriver version is 9.12.0
2024-10-18 10:27:26:292 - [AppiumDriver@c2b7] XCUITestDriver's BaseDriver version is 9.12.0
2024-10-18 10:27:26:292 - [AppiumDriver@c2b7] There are no active sessions for cleanup
2024-10-18 10:27:26:294 - [AppiumDriver@c2b7] Applying relaxed security to 'XCUITestDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
2024-10-18 10:27:26:295 - [AppiumDriver@c2b7] Explicitly enabling use of insecure features:
2024-10-18 10:27:26:295 - [AppiumDriver@c2b7] chromedriver_autodownload
2024-10-18 10:27:26:296 - [XCUITestDriver@016c]
2024-10-18 10:27:26:296 - [XCUITestDriver@016c] Creating session with W3C capabilities: {
"alwaysMatch": {
"platformName": "ios",
"appium:locale": "US",
"appium:language": "en",
"appium:noReset": true,
"appium:fullReset": false,
"appium:customSnapshotTimeout": 600,
"appium:waitForQuiescence": false,
"appium:snapshotMaxDepth": 500,
"appium:isHeadless": true,
"appium:skipUnlock": true,
"appium:locationServicesAuthorized": true,
"appium:locationServicesEnabled": true,
"appium:useNewWDA": false,
"appium:newCommandTimeout": 300000,
"appium:autoGrantPermissions": true,
"appium:udid": "00008120-00063D861E87C01E",
"appium:platformVersion": "18.0.0",
"appium:deviceName": "00008120-00063D861E87C01E",
"appium:osVersion": "18.0.0",
"appium:app": ".....",
"appium:automationName": "XCUITest",
"appium:wdaLocalPort": 6122,
"appium:remoteDebugProxy": "6122",
"appium:systemPort": 6122,
"appium:autoAcceptAlerts": true,
"appium:autoDissmissAlerts": true
},
"firstMatch": [
{}
]
}
2024-10-18 10:27:26:297 - [BaseDriver] The 'waitForQuiescence' capability has been deprecated and must not be used anymore. Please check the driver documentation for possible alternatives.
2024-10-18 10:27:26:301 - [BaseDriver] The 'waitForQuiescence' capability has been deprecated and must not be used anymore. Please check the driver documentation for possible alternatives.
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] The following provided capabilities were not recognized by this driver:
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] customSnapshotTimeout
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] snapshotMaxDepth
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] skipUnlock
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] locationServicesAuthorized
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] locationServicesEnabled
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] autoGrantPermissions
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] osVersion
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] systemPort
2024-10-18 10:27:26:301 - [XCUITestDriver@016c] autoDissmissAlerts
2024-10-18 10:27:26:302 - [ed072f6e][XCUITestDriver@016c] Session created with session id: ed072f6e-c5c5-48fb-a32a-ecc1567c304c
2024-10-18 10:27:26:309 - [ed072f6e][XCUITest] Current user: 'mobven'
2024-10-18 10:27:26:318 - [ed072f6e][XCUITestDriver@016c] Available real devices: 00008120-000264103433401E, 00008120-00063D861E87C01E
2024-10-18 10:27:26:318 - [ed072f6e][XCUITestDriver@016c] Creating iDevice object with udid '00008120-00063D861E87C01E'
2024-10-18 10:27:26:318 - [ed072f6e][XCUITestDriver@016c] Determining device to run tests on: udid: '00008120-00063D861E87C01E', real device: true
2024-10-18 10:27:26:318 - [ed072f6e][XCUITestDriver@016c] Normalized platformVersion capability value '18.0.0' to '18.0'
2024-10-18 10:27:26:335 - [ed072f6e][XCUITestDriver@016c] Event 'xcodeDetailsRetrieved' logged at 1729247246335 (13:27:26 GMT+0300 (GMT+03:00))
2024-10-18 10:27:26:336 - [ed072f6e][BaseDriver] Using downloadable app '*'
2024-10-18 10:27:26:336 - [ed072f6e][BaseDriver] Request headers: {"user-agent":"Appium (BaseDriver v9.12.0)"}
2024-10-18 10:27:26:647 - [ed072f6e][BaseDriver] Response status: 200
2024-10-18 10:27:26:647 - [ed072f6e][BaseDriver] Etag: "1db2131f19c4f42"
2024-10-18 10:27:26:647 - [ed072f6e][BaseDriver] Last-Modified: Fri, 18 Oct 2024 07:47:12 GMT
2024-10-18 10:27:26:648 - [ed072f6e][BaseDriver] Content-Type: application/octet-stream
2024-10-18 10:27:27:527 - [ed072f6e][XCUITestDriver@016c] The remote file (8.16 MB) has been downloaded to '/var/folders/wt/43_fd2ks0vg73vdx4b06p0m80000gn/T/2024918-10027-u24p55.h3hm/appium-app-1729247246649.ipa' in 0.877s
2024-10-18 10:27:27:549 - [ed072f6e][XCUITestDriver@016c] Caching the manifest 'Payload/RTCBroadcasting.app/Info.plist' for com.mobven.ios.enterprise.rtcbroadcasting app from the compressed source using the key '2196219914'
2024-10-18 10:27:27:579 - [ed072f6e][XCUITestDriver@016c] Event 'appConfigured' logged at 1729247247579 (13:27:27 GMT+0300 (GMT+03:00))
2024-10-18 10:27:27:579 - [ed072f6e][XCUITest] Checking whether app '/var/folders/wt/43_fd2ks0vg73vdx4b06p0m80000gn/T/2024918-10027-u24p55.h3hm/appium-app-1729247246649.ipa' is actually present on file system
2024-10-18 10:27:27:579 - [ed072f6e][XCUITest] App is present
2024-10-18 10:27:27:581 - [ed072f6e][XCUITestDriver@016c] CFBundleIdentifier: "com.mobven.ios.enterprise.rtcbroadcasting"
2024-10-18 10:27:27:581 - [ed072f6e][XCUITestDriver@016c] Event 'resetStarted' logged at 1729247247581 (13:27:27 GMT+0300 (GMT+03:00))
2024-10-18 10:27:27:581 - [ed072f6e][XCUITestDriver@016c] Reset: fullReset not set. Leaving as is
2024-10-18 10:27:27:581 - [ed072f6e][XCUITestDriver@016c] Event 'resetComplete' logged at 1729247247581 (13:27:27 GMT+0300 (GMT+03:00))
2024-10-18 10:27:27:581 - [ed072f6e][XCUITestDriver@016c] Using WDA path: '/Users/mobven/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
2024-10-18 10:27:27:581 - [ed072f6e][XCUITestDriver@016c] Using WDA agent: '/Users/mobven/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
2024-10-18 10:27:27:586 - [ed072f6e][XCUITestDriver@016c] The pyidevice tool is not present in PATH. Skipping crash logs collection for real devices.
2024-10-18 10:27:27:696 - [ed072f6e][XCUITestDriver@016c] Event 'logCaptureStarted' logged at 1729247247695 (13:27:27 GMT+0300 (GMT+03:00))
2024-10-18 10:27:27:696 - [ed072f6e][XCUITestDriver@016c] Setting up real device
2024-10-18 10:27:27:696 - [ed072f6e][XCUITestDriver@016c] Verifying application platform
2024-10-18 10:27:27:698 - [ed072f6e][XCUITestDriver@016c] CFBundleSupportedPlatforms: ["iPhoneOS"]
2024-10-18 10:27:27:858 - [ed072f6e][XCUITestDriver@016c] App 'com.mobven.ios.enterprise.rtcbroadcasting' is already installed
2024-10-18 10:27:27:858 - [ed072f6e][XCUITestDriver@016c] noReset is requested. The app will not be be (re)installed
2024-10-18 10:27:27:901 - [ed072f6e][XCUITestDriver@016c] No obsolete cached processes from previous WDA sessions listening on port 6122 have been found
2024-10-18 10:27:27:901 - [ed072f6e][DevCon Factory] Requesting connection for device 00008120-00063D861E87C01E on local port 6122, device port 6122
2024-10-18 10:27:27:901 - [ed072f6e][DevCon Factory] Cached connections count: 0
2024-10-18 10:27:27:902 - [ed072f6e][DevCon Factory] Successfully requested the connection for 00008120-00063D861E87C01E:6122
2024-10-18 10:27:27:902 - [ed072f6e][XCUITestDriver@016c] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
2024-10-18 10:27:27:904 - [ed072f6e][WD Proxy] Matched '/status' to command name 'getStatus'
2024-10-18 10:27:27:904 - [ed072f6e][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:6122/status] with no body
2024-10-18 10:27:27:914 - [ed072f6e][WD Proxy] Got response with status 200: {"value":{"build":{"upgradedAt":"1729163644359","version":"8.9.3","time":"Oct 18 2024 12:50:18","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"},"os":{"testmanagerdVersion":65535,"name":"iOS","sdkVersion":"18.0","version":"18.0"},"device":"iphone","ios":{"ip":"10.10.1.35"},"message":"WebDriverAgent is ready to accept commands","state":"success","ready":true},"sessionId":"7E81FF1F-F64D-4679-8A94-0C29BF617742"}
2024-10-18 10:27:27:914 - [ed072f6e][XCUITestDriver@016c] Upgrade timestamp of the currently bundled WDA: 1729163644359
2024-10-18 10:27:27:914 - [ed072f6e][XCUITestDriver@016c] Upgrade timestamp of the WDA on the device: 1729163644359
2024-10-18 10:27:27:914 - [ed072f6e][XCUITestDriver@016c] Will reuse previously cached WDA instance at 'http://127.0.0.1:6122/' with 'com.facebook.WebDriverAgentRunner'. Set the wdaLocalPort capability to a value different from 6122 if this is an undesired behavior.
2024-10-18 10:27:27:914 - [ed072f6e][XCUITestDriver@016c] Trying to start WebDriverAgent 1 times with 10000ms interval
2024-10-18 10:27:27:914 - [ed072f6e][XCUITestDriver@016c] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
2024-10-18 10:27:27:914 - [ed072f6e][XCUITestDriver@016c] Event 'wdaStartAttempted' logged at 1729247247914 (13:27:27 GMT+0300 (GMT+03:00))
2024-10-18 10:27:27:914 - [ed072f6e][XCUITestDriver@016c] Using provided WebdriverAgent at 'http://127.0.0.1:6122/'
2024-10-18 10:27:27:915 - [ed072f6e][WD Proxy] Matched '/status' to command name 'getStatus'
2024-10-18 10:27:27:915 - [ed072f6e][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:6122/status] with no body
2024-10-18 10:27:27:924 - [ed072f6e][WD Proxy] Got response with status 200: {"value":{"build":{"upgradedAt":"1729163644359","version":"8.9.3","time":"Oct 18 2024 12:50:18","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"},"os":{"testmanagerdVersion":65535,"name":"iOS","sdkVersion":"18.0","version":"18.0"},"device":"iphone","ios":{"ip":"10.10.1.35"},"message":"WebDriverAgent is ready to accept commands","state":"success","ready":true},"sessionId":"7E81FF1F-F64D-4679-8A94-0C29BF617742"}
2024-10-18 10:27:27:924 - [ed072f6e][XCUITestDriver@016c] Event 'wdaSessionAttempted' logged at 1729247247924 (13:27:27 GMT+0300 (GMT+03:00))
2024-10-18 10:27:27:924 - [ed072f6e][XCUITestDriver@016c] Sending createSession command to WDA
2024-10-18 10:27:27:925 - [ed072f6e][XCUITestDriver@016c] Matched '/session' to command name 'createSession'
2024-10-18 10:27:27:925 - [ed072f6e][XCUITestDriver@016c] Proxying [POST /session] to [POST http://127.0.0.1:6122/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.mobven.ios.enterprise.rtcbroadcasting","arguments":["-AppleLanguages","(en)","-NSLanguages","(en)","-AppleLocale","US"],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":false,"forceAppLaunch":false,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
2024-10-18 10:27:27:937 - [ed072f6e][XCUITestDriver@016c] Got response with status 200: {"value":{"sessionId":"F58E4B58-7C23-4B0B-9E5C-260884C861C4","capabilities":{"sdkVersion":"18.0","device":"iphone"}},"sessionId":"F58E4B58-7C23-4B0B-9E5C-260884C861C4"}
2024-10-18 10:27:27:937 - [ed072f6e][XCUITestDriver@016c] Determined the downstream protocol as 'W3C'
2024-10-18 10:27:27:937 - [ed072f6e][XCUITestDriver@016c] WDA session startup took 13ms
2024-10-18 10:27:27:937 - [ed072f6e][XCUITestDriver@016c] Event 'wdaSessionStarted' logged at 1729247247937 (13:27:27 GMT+0300 (GMT+03:00))
2024-10-18 10:27:27:937 - [ed072f6e][XCUITestDriver@016c] Event 'wdaStarted' logged at 1729247247937 (13:27:27 GMT+0300 (GMT+03:00))
2024-10-18 10:27:27:938 - [ed072f6e][BaseDriver] The value of 'elementResponseAttributes' setting did not change. Skipping the update for it
2024-10-18 10:27:27:938 - [ed072f6e][BaseDriver] The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it
2024-10-18 10:27:27:938 - [ed072f6e][AppiumDriver@c2b7] New XCUITestDriver session created successfully, session ed072f6e-c5c5-48fb-a32a-ecc1567c304c added to master session list
2024-10-18 10:27:27:938 - [ed072f6e][AppiumDriver@c2b7] Command 'createSession' was not handled by the following behaviours or plugins, even though they were registered to handle it: ["default"]. The command was handled by these: ["relaxed-caps","images"].
2024-10-18 10:27:27:938 - [ed072f6e][AppiumDriver@c2b7] Promoting 3 sessionless plugins to be attached to session ID ed072f6e-c5c5-48fb-a32a-ecc1567c304c
2024-10-18 10:27:27:938 - [ed072f6e][XCUITestDriver@016c] Cached the protocol value 'W3C' for the new session ed072f6e-c5c5-48fb-a32a-ecc1567c304c
2024-10-18 10:27:27:938 - [ed072f6e][XCUITestDriver@016c] Responding to client with driver.createSession() result: {"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"ios","locale":"US","language":"en","noReset":true,"fullReset":false,"customSnapshotTimeout":600,"waitForQuiescence":false,"snapshotMaxDepth":500,"isHeadless":true,"skipUnlock":true,"locationServicesAuthorized":true,"locationServicesEnabled":true,"useNewWDA":false,"newCommandTimeout":300000,"autoGrantPermissions":true,"udid":"00008120-00063D861E87C01E","platformVersion":"18.0","deviceName":"00008120-00063D861E87C01E","osVersion":"18.0.0","app":"*","automationName":"XCUITest","wdaLocalPort":6122,"remoteDebugProxy":"6122","systemPort":6122,"autoAcceptAlerts":true,"autoDissmissAlerts":true}}
2024-10-18 10:27:27:939 - [ed072f6e][HTTP] <-- POST /wd/hub/session 200 1657 ms - 1001
2024-10-18 10:27:28:220 - [ed072f6e][XCUITestDriver@016c] Parsed BUILD_DIR configuration value: '/Users/mobven/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/build'
2024-10-18 10:27:28:220 - [ed072f6e][XCUITestDriver@016c] Got derived data root: '/Users/mobven/.appium/node_modules/appium-xcuitest-driver/node_modules'
2024-10-18 10:27:31:200 - [ed072f6e][HTTP] --> GET /wd/hub/session/ed072f6e-c5c5-48fb-a32a-ecc1567c304c/source {}
2024-10-18 10:27:31:202 - [ed072f6e][XCUITestDriver@016c] Calling AppiumDriver.getPageSource() with args: ["ed072f6e-c5c5-48fb-a32a-ecc1567c304c"]
2024-10-18 10:27:31:202 - [ed072f6e][AppiumDriver@c2b7] Clearing new command timeout pre-emptively since plugin(s) will handle this command
2024-10-18 10:27:31:202 - [ed072f6e][AppiumDriver@c2b7] Plugins which can handle cmd 'getPageSource': images
2024-10-18 10:27:31:202 - [ed072f6e][AppiumDriver@c2b7] Plugin images is now handling cmd 'getPageSource'
2024-10-18 10:27:31:202 - [ed072f6e][AppiumDriver@c2b7] Executing default handling behavior for command 'getPageSource'
2024-10-18 10:27:31:202 - [ed072f6e][XCUITestDriver@016c] Executing command 'getPageSource'
2024-10-18 10:27:31:208 - [ed072f6e][XCUITestDriver@016c] Matched '/source?format=xml&scope=AppiumAUT' to command name 'getPageSource'
2024-10-18 10:27:31:209 - [ed072f6e][XCUITestDriver@016c] Proxying [GET /source?format=xml&scope=AppiumAUT] to [GET http://127.0.0.1:6122/session/F58E4B58-7C23-4B0B-9E5C-260884C861C4/source?format=xml&scope=AppiumAUT] with no body
2024-10-18 10:27:31:422 - [ed072f6e][XCUITestDriver@016c] Got response with status 200: {"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n
@hakantektas this issue is about the XML not being loaded at all, so your problem is unrelated. If you are referring to the inability to see popups that appear in the native iOS style, please refer to the XCUITest driver documentation on handling native alerts. If this doesn't help, please create a new issue. (also just so you know, you are using a whole bunch of capabilities and many of them are not being recognised, as you can see near the start of the server log. I would suggest removing or modifying those capabilities)
Is this an issue specifically with Appium Inspector?
Is there an existing issue for this?
Current Behavior
Appium Inspector fails to display the screen shown in the simulator and remains stuck in a continuous loading state, even though the app is installed and launched successfully.
Capabilities:
{ "platformName": "IOS", "appium:deviceName": "iPhone 15 Pro Max", "appium:platformVersion": "18.0", "appium:automationName": "XCUITest", "appium:UIID": "CA985009-546A-487A-BCF1-F1120A5B2B0A", "app": "File path" }
Version:
Appium - 2.11.5 Appium Inspector App - 2024.9.1 IOS version - 18.0
Expected Behavior
Appium Inspector should load the view after App is installed and launched in simulator.
Operating System
Mac
Appium Inspector Version
2024.9.1
Appium Version
2.11.5
Further Information
Appium logs .pdf