appium-desktop
appium-desktop copied to clipboard
Appium Desktop - Interactions are not available for this element
Appium Desktop - v. v1.15.1
I have verified that my issue does not occur with Appium and should be investigated as an Appium Desktop issue
The problem
Not able to inspect elements for iOS app. Source tree is not visible. When click on the elements nothing happens:
In some cases getting an error 'Interactions are not available for this element'.
Appium Desktop find elements using Search. I'm getting the results when searching by ID:
Tried to install older version of the app and it works fine.
Environment
- I am running Appium Desktop version <1.15.1>.
- I am on (pick one):
- [x] Mac, Catana v. 10.15
Problem consistent IOS cannot find the corresponding markup element
Use Android elements to put IOS to execute logs like this
[info] [35m[Appium][39m Welcome to Appium v1.15.1 [info] [35m[Appium][39m Non-default server args: [info] [35m[Appium][39m allowInsecure: { [info] [35m[Appium][39m } [info] [35m[Appium][39m denyInsecure: { [info] [35m[Appium][39m } [info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m [info] [35m[HTTP][39m [90m{"capabilities":{"firstMatch":[{"platformName":"iOS","appium:automationName":"xcuitest","appium:app":"/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app","appium:udid":"00008020-00015C960A33002E","appium:deviceName":"刘程旭","appium:showXcodeLog":"true","appium:xcodeOrgId":"Q24M7JR2C4","appium:xcodeSigningId":"iPhone Developer"}]},"desiredCapabilities":{"platformName":"iOS","automationName":"xcuitest","app":"/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app","udid":"00008020-00015C960A33002E","deviceName":"刘程旭","showXcodeLog":"true","xcodeOrgId":"Q24M7JR2C4","xcodeSigningId":"iPhone Developer"}}[39m [debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"platformName":"iOS","automationName":"xcuitest","app":"/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app","udid":"00008020-00015C960A33002E","deviceName":"刘程旭","showXcodeLog":"true","xcodeOrgId":"Q24M7JR2C4","xcodeSigningId":"iPhone Developer"},null,{"firstMatch":[{"platformName":"iOS","appium:automationName":"xcuitest","appium:app":"/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app","appium:udid":"00008020-00015C960A33002E","appium:deviceName":"刘程旭","appium:showXcodeLog":"true","appium:xcodeOrgId":"Q24M7JR2C4","appium:xcodeSigningId":"iPhone Developer"}]}] [debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1571119182590 (13:59:42 GMT+0800 (CST)) [info] [Appium] Appium v1.15.1 creating new XCUITestDriver (v2.133.1) session [debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided [debug] [BaseDriver] Creating session with W3C capabilities: { [debug] [BaseDriver] "alwaysMatch": { [debug] [BaseDriver] "platformName": "iOS", [debug] [BaseDriver] "appium:automationName": "xcuitest", [debug] [BaseDriver] "appium:app": "/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app", [debug] [BaseDriver] "appium:udid": "00008020-00015C960A33002E", [debug] [BaseDriver] "appium:deviceName": "刘程旭", [debug] [BaseDriver] "appium:showXcodeLog": "true", [debug] [BaseDriver] "appium:xcodeOrgId": "Q24M7JR2C4", [debug] [BaseDriver] "appium:xcodeSigningId": "iPhone Developer" [debug] [BaseDriver] }, [debug] [BaseDriver] "firstMatch": [ [debug] [BaseDriver] {} [debug] [BaseDriver] ] [debug] [BaseDriver] } [warn] [BaseDriver] Capability 'showXcodeLog' changed from string to boolean. This may cause unexpected behavior [warn] [XCUITest] 'platformVersion' capability ('undefined') is not a valid version number. Consider fixing it or be ready to experience an inconsistent driver behavior. [info] [BaseDriver] Session created with session id: dbd7c633-c4b0-4d29-8bc2-137b1e347a0c[debug] [XCUITest] Current user: 'liuchengxu' [debug] [XCUITest] Available devices: 00008020-00015C960A33002E [debug] [XCUITest] Creating iDevice object with udid '00008020-00015C960A33002E' [info] [XCUITest] Getting the platformVersion from the phone since it was not specified in the capabilities [info] [XCUITest] Determining device to run tests on: udid: '00008020-00015C960A33002E', real device: true [info] [XCUITest] Normalized platformVersion capability value '13.1.2' to '13.1' [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1571119183586 (13:59:43 GMT+0800 (CST)) [info] [BaseDriver] Using local app '/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app' [debug] [BaseDriver] Event 'appConfigured' logged at 1571119183594 (13:59:43 GMT+0800 (CST)) [debug] [XCUITest] Checking whether app '/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app' is actually present on file system [debug] [XCUITest] App is present [debug] [iOS] Getting bundle ID from app '/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app': 'com.stone-cutter.bzz' [debug] [BaseDriver] Event 'resetStarted' logged at 1571119183602 (13:59:43 GMT+0800 (CST)) [debug] [XCUITest] Reset: running ios real device reset flow [debug] [BaseDriver] Event 'resetComplete' logged at 1571119183603 (13:59:43 GMT+0800 (CST))[debug] [XCUITest] Crash reports root '/Users/liuchengxu/Library/Logs/CrashReporter/MobileDevice/刘程旭的 iPhone' does not exist. Got nothing to gather. [debug] [BaseDriver] Event 'logCaptureStarted' logged at 1571119183844 (13:59:43 GMT+0800 (CST)) [info] [XCUITest] Setting up real device [debug] [XCUITest] Verifying application platform [debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"][debug] [XCUITest] Reset requested. Removing app with id 'com.stone-cutter.bzz' from the device[debug] [XCUITest] Installing '/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app' on device with UUID '00008020-00015C960A33002E'...[debug] [XCUITest] Pushed the app files successfully after 7068ms[info] [XCUITest] Installation is successful after 7904ms [debug] [XCUITest] The app has been installed successfully. [debug] [BaseDriver] Event 'appInstalled' logged at 1571119192258 (13:59:52 GMT+0800 (CST)) [info] [XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent' [info] [XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj' [debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found [info] [DevCon Factory] Requesting connection for device 00008020-00015C960A33002E on local port 8100, device port 8100 [debug] [DevCon Factory] Cached connections count: 0 [warn] [DevCon Factory] Port #8100 is busy [info] [DevCon Factory] Successfully requested the connection for 00008020-00015C960A33002E:8100 [debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver' [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [WD Proxy] Got response with status 200: { [debug] [WD Proxy] "value" : { [debug] [WD Proxy] "message" : "WebDriverAgent is ready to accept commands", [debug] [WD Proxy] "state" : "success", [debug] [WD Proxy] "os" : { [debug] [WD Proxy] "name" : "iOS", [debug] [WD Proxy] "version" : "13.1.2", [debug] [WD Proxy] "sdkVersion" : "13.0" [debug] [WD Proxy] }, [debug] [WD Proxy] "ios" : { [debug] [WD Proxy] "simulatorVersion" : "13.1.2", [debug] [WD Proxy] "ip" : "192.168.31.16" [debug] [WD Proxy] }, [debug] [WD Proxy] "ready" : true, [debug] [WD Proxy] "build" : { [debug] [WD Proxy] "upgradedAt" : "1569489061876", [debug] [WD Proxy] "time" : "Oct 14 2019 12:29:30", [debug] [WD Proxy] "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner" [debug] [WD Proxy] } [debug] [WD Proxy] }, [debug] [WD Proxy] "sessionId" : "060FD7BE-2478-4518-85CA-ED3C6E6DEC8F" [debug] [WD Proxy] } [debug] [XCUITest] Upgrade timestamp of the currently bundled WDA: null [debug] [XCUITest] Upgrade timestamp of the WDA on the device: 1569489061876 [info] [XCUITest] Will reuse previously cached WDA instance at 'http://localhost:8100/' with 'com.facebook.WebDriverAgentRunner'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior. [debug] [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval [debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities [debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1571119192345 (13:59:52 GMT+0800 (CST)) [info] [XCUITest] Using provided WebdriverAgent at 'http://localhost:8100/' [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body [debug] [WD Proxy] Got response with status 200: { [debug] [WD Proxy] "value" : { [debug] [WD Proxy] "message" : "WebDriverAgent is ready to accept commands", [debug] [WD Proxy] "state" : "success", [debug] [WD Proxy] "os" : { [debug] [WD Proxy] "name" : "iOS", [debug] [WD Proxy] "version" : "13.1.2", [debug] [WD Proxy] "sdkVersion" : "13.0" [debug] [WD Proxy] }, [debug] [WD Proxy] "ios" : { [debug] [WD Proxy] "simulatorVersion" : "13.1.2", [debug] [WD Proxy] "ip" : "192.168.31.16" [debug] [WD Proxy] }, [debug] [WD Proxy] "ready" : true, [debug] [WD Proxy] "build" : { [debug] [WD Proxy] "upgradedAt" : "1569489061876", [debug] [WD Proxy] "time" : "Oct 14 2019 12:29:30", [debug] [WD Proxy] "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner" [debug] [WD Proxy] } [debug] [WD Proxy] }, [debug] [WD Proxy] "sessionId" : "060FD7BE-2478-4518-85CA-ED3C6E6DEC8F" [debug] [WD Proxy] } [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1571119192356 (13:59:52 GMT+0800 (CST)) [debug] [XCUITest] Sending createSession command to WDA [debug] [WD Proxy] Matched '/session' to command name 'createSession' [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.stone-cutter.bzz","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}[debug] [WD Proxy] Got response with status 200: {"value":{"sessionId":"41F4899B-C008-4931-8F00-275E13FED819","capabilities":{"device":"iphone","browserName":"不占座","sdkVersion":"13.1.2","CFBundleIdentifier":"com.stone-cutter.bzz"}},"sessionId":"41F4899B-C008-4931-8F00-275E13FED819"} [info] [WD Proxy] Determined the downstream protocol as 'W3C' [debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1571119195112 (13:59:55 GMT+0800 (CST)) [debug] [BaseDriver] Event 'wdaStarted' logged at 1571119195112 (13:59:55 GMT+0800 (CST)) [info] [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior. [debug] [BaseDriver] Event 'orientationSet' logged at 1571119195113 (13:59:55 GMT+0800 (CST)) [info] [Appium] New XCUITestDriver session created successfully, session dbd7c633-c4b0-4d29-8bc2-137b1e347a0c added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1571119195114 (13:59:55 GMT+0800 (CST)) [debug] [W3C (dbd7c633)] Cached the protocol value 'W3C' for the new session dbd7c633-c4b0-4d29-8bc2-137b1e347a0c [debug] [W3C (dbd7c633)] 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","automationName":"xcuitest","app":"/Users/liuchengxu/Library/Developer/Xcode/DerivedData/bzz-dbznccgqghtlzvgfxmaxdmiikhvq/Build/Products/Release-iphoneos/bzz.app","udid":"00008020-00015C960A33002E","deviceName":"刘程旭","showXcodeLog":true,"xcodeOrgId":"Q24M7JR2C4","xcodeSigningId":"iPhone Developer"}} [info] [HTTP] <-- POST /wd/hub/session 200 12529 ms - 601 [info] [HTTP] [info] [HTTP] [37m-->[39m [37mPOST[39m [37m/wd/hub/session/dbd7c633-c4b0-4d29-8bc2-137b1e347a0c/timeouts[39m [info] [HTTP] {"implicit":10000} [debug] [W3C (dbd7c633)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,10000,"dbd7c633-c4b0-4d29-8bc2-137b1e347a0c"] [debug] [XCUITest] Executing command 'timeouts' [debug] [BaseDriver] W3C timeout argument: {"implicit":10000}} [debug] [BaseDriver] Set implicit wait to 10000ms [debug] [W3C (dbd7c633)] Responding to client with driver.timeouts() result: null [info] [HTTP] <-- POST /wd/hub/session/dbd7c633-c4b0-4d29-8bc2-137b1e347a0c/timeouts 200 56 ms - 14 [info] [HTTP] [info] [HTTP] [37m-->[39m [37mPOST[39m [37m/wd/hub/session/dbd7c633-c4b0-4d29-8bc2-137b1e347a0c/element[39m [info] [HTTP] {"using":"class name","value":"android.view.ViewGroup"} [debug] [W3C (dbd7c633)] Calling AppiumDriver.findElement() with args: ["class name","android.view.ViewGroup","dbd7c633-c4b0-4d29-8bc2-137b1e347a0c"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [info] [XCUITest] Rewrote incoming selector from 'android.view.ViewGroup' to 'XCUIElementTypeandroid.view.ViewGroup' to match XCUI type. You should consider updating your tests to use the new selectors directly [debug] [BaseDriver] Waiting up to 10000 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/41F4899B-C008-4931-8F00-275E13FED819/element] with body: {"using":"class name","value":"XCUIElementTypeandroid.view.ViewGroup"}[debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"07000000-0000-0000-5EA7-000000000000","element-6066-11e4-a52e-4f735466cecf":"07000000-0000-0000-5EA7-000000000000"},"sessionId":"41F4899B-C008-4931-8F00-275E13FED819"} [debug] [W3C (dbd7c633)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"07000000-0000-0000-5EA7-000000000000","ELEMENT":"07000000-0000-0000-5EA7-000000000000"} [info] [HTTP] <-- POST /wd/hub/session/dbd7c633-c4b0-4d29-8bc2-137b1e347a0c/element 200 332 ms - 137 [info] [HTTP] [info] [HTTP] [37m-->[39m [37mPOST[39m [37m/wd/hub/session/dbd7c633-c4b0-4d29-8bc2-137b1e347a0c/element/07000000-0000-0000-5EA7-000000000000/click[39m [info] [HTTP] {"id":"07000000-0000-0000-5EA7-000000000000"} [info] [W3C (dbd7c633)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/dbd7c633-c4b0-4d29-8bc2-137b1e347a0c/element/07000000-0000-0000-5EA7-000000000000/click' to command name 'click' [debug] [WD Proxy] Proxying [POST /wd/hub/session/dbd7c633-c4b0-4d29-8bc2-137b1e347a0c/element/07000000-0000-0000-5EA7-000000000000/click] to [POST http://localhost:8100/session/41F4899B-C008-4931-8F00-275E13FED819/element/07000000-0000-0000-5EA7-000000000000/click] with body: {"id":"07000000-0000-0000-5EA7-000000000000"}[debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":"41F4899B-C008-4931-8F00-275E13FED819"} [info] [WD Proxy] Replacing sessionId 41F4899B-C008-4931-8F00-275E13FED819 with dbd7c633-c4b0-4d29-8bc2-137b1e347a0c [info] [HTTP] <-- POST /wd/hub/session/dbd7c633-c4b0-4d29-8bc2-137b1e347a0c/element/07000000-0000-0000-5EA7-000000000000/click 200 208 ms - 76 [info] [HTTP]
IOS
Hi @liuchengxu11 , Thank you for the feedback. Could you please clarify what did you mean by Use Android elements to put IOS to execute logs like this?
Do you suggest to change desired capability to Android instead of iOS? Or you suggest to use Android app to locate elements and use it for iOS? - This case is not going to work for me. Our apps have completely different ids for each platform.
Thank you!
Hello,
Did you have any answers to this problem?
Thanks in advance.
@Mbachacou I didn't get any feedback regarding the issue.
@Mbachacou , Hello, tha same issue as you. The same errors raised when using both appium-desktop and appium-python-client. How do you resolve the issue? Thanks.
Is it solved?
It's still existing. xpath is not one recommended way to do it. But it only show xpath
Hi, Any update. Receiving the same error here as well.
this error happens when the inspector can't confirm that the found element is at the same place in the hierarchy. this could be for a variety of reasons, like maybe the hierarchy is changing really fast. it's best to do a refresh, then re-select the element in the hierarchy.