appium-mac2-driver
appium-mac2-driver copied to clipboard
How to access certain elements
Hello, I have a silly question and this is by no means an appium issue but I still hope to get some answers. I've been trying to do some macos app automation testing and I'm having a hard time inspecting the elements of the target apps using accessibility inspector. It appears that I can only inspect the native apps of mac for example, textedit, but when I try to inspect like a published app from a third party, like intellij, it only gives the locator of the entire frame/cell of the app, which makes it impossible to write automation scripts with appium. Is there some sort of security settings I need to make? Thanks!!!
This driver depends on how https://developer.apple.com/documentation/xctest works. For example, if an app did not use native element code to build its UI, perhaps this driver does not work since the XCTest framework cannot detect them.
I don't know well what security preference etc affects the detection, but what about enabling speak selection in System preference -> Accessibility -> Spoken Content? On iOS, the item extends element detection as OS system. I don't know this helps on macOS as well.
@AryaBaggins did you manage to fix your issue? if not perhaps i can help!
@aakrandan Is there any solution to this problem?