I had to reinstall Appium and got the latest 2.12.1 version.
since the update, I cannot find elements for a desktop application, that used to work properly.
I have tried it with the python code and through Appium Inspector.
both ends with the same exception:
[965f04e1][Mac2Driver@27e8] Calling AppiumDriver.findElement() with args: ["xpath","//XCUIElementTypeDialog/XCUIElementTypeGroup[1]/XCUIElementTypeButton[2]","965f04e1-135a-41f8-9bb6-6e766441e927"]
[965f04e1][Mac2Driver@27e8] Valid locator strategies for this request: id, name, accessibility id, xpath, class name, -ios predicate string, predicate string, -ios class chain, class chain
[965f04e1][WD Proxy] Matched '/element' to command name 'findElement'
[965f04e1][WD Proxy] Proxying [POST /element] to [POST http://127.0.0.1:10100/session/C57D4897-AE07-4FC4-992B-D71B380E4473/element] with body: {"using":"xpath","value":"//XCUIElementTypeDialog/XCUIElementTypeGroup[1]/XCUIElementTypeButton[2]"}
[965f04e1][WD Proxy] Got response with status 400: {"value":{"error":"invalid selector","message":"XQueryError:6 - \"invalid type\"","traceback":"(\n\t0 CoreFoundation 0x00000001874ae2ec __exceptionPreprocess + 176\n\t1 libobjc.A.dylib 0x0000000186f92158 objc_exception_throw + 60\n\t2 WebDriverAgentLib 0x00000001056f1b18 +[FBXPath matchesWithRootElement:forQuery:includeOnlyFirstMatch:] + 664\n\t3 WebDriverAgentLib 0x00000001056ece4c -[XCUIElement(FBFind) fb_descendantsMatchingXPathQuery:shouldReturnAfterFirstMatch:] + 156\n\t4 WebDriverAgentLib 0x00000001056ea628 +[FBFindElementCommands elementsUsing:withValue:under:shouldReturnAfterFirstMatch:] + 328\n\t5 WebDriverAgentLib 0x00000001056ea480 +[FBFindElementCommands elementUsing:withValue:under:] + 132\n\t6 WebDriverAgentLib 0x00000001056e9694 +[FBFindElementCommands handleFindElement:] + 236\n\t7 WebDriverAgentLib 0x000000010572cf44 -[FBRoute_...
[965f04e1][W3C] Matched W3C error code 'invalid selector' to InvalidSelectorError
[965f04e1][Mac2Driver@27e8] Encountered internal error running command: InvalidSelectorError: XQueryError:6 - "invalid type"
I would like to go back to the previous version that worked but I don’t know which one it was. any help would be highly appreciated