Forum Discussion
godbout
Jan 18, 2024Copper Contributor
enable Accessibility Tree on macOS in the new Teams (work or school)
hello! so i build apps for macOS that use the AX Tree exposed by other apps. in the old Teams, i was able to expose the AX Tree by sending a call to Teams (see https://www.electronjs.org/docs/latest/tutorial/accessibility#macos for more info). it doesn't work anymore in the new Teams. there's another flag that can be sent to apps, but it doesn't work either. the new Teams doesn't expose its AX Tree to my calls. but i **KNOW** it is possible to expose it, because i've found at least one third party app that is able to do so. so, my question, what needs to be done to the new Teams so that i can have access to the AX Tree with my own apps?
thank you!
- Timon van HasseltCopper Contributor
This is exactly what I was looking for! Thanks for posting this. I came across this GitHub repo, it’s old(er) but maybe helpful?
https://github.com/JonathanGawrych/set-electron-app-accessible
source: https://apple.stackexchange.com/questions/435980/applescript-does-not-see-sub-element-of-renderwidgethostviewcocoa-but-enablin/443835#443835Haven’t tried it myself, but it would be very nice to join forces in this quest ☺️. Please feel free to contact me also: Timonvanhasselt at Visio.org.
BTW:
Would the Teams website version maybe work? Don’t know if they support Safari already or only Chrome etc.- godboutCopper Contributor
this was a more complicated case: 1) the new Teams' app AX Tree was broken, so you couldn't get from parents down to children. you had to get back to parents FROM children. like A had B has children, but then when you ask for B's parent you get C rather than A. total shatshow. 2) the AX Tree had to be enable not from the main Teams app but for another subprocess. but they keep changing the stuff, so depending on the version you're trying, it may just work with the links above (the AXManual stuff). latest versions are more "standard" slash less broken. good luck.
- ChetanSharma-msft
Microsoft
Hello,
We are mainly responsible for Microsoft Teams app development related issues.
For Microsoft Teams product issues/failures your tenant Admin can reach out to Microsoft 365 Product Support.
For general questions about Microsoft Teams please post your question on Microsoft Teams Community.- godboutCopper Contributor
ChetanSharma-msft thanks for the answer. but my question is directly targeted at Teams' developers. this is definitely not something that can be understood or explained by a sales, or users. it's quite technical and specific. thanks.
- soyunagiCopper Contributor
Hey godbout,
Have you found a solution? I’ve been able to navigate through the AX tree of Microsoft Teams from my macOS Swift app, but the results are unstable. It only works if the Accessibility Inspector is open, which somehow refreshes it occasionally. When I turn off the inspector, it no longer queries the UI content, even though the content is still visible on the screen and accessible to the VoiceOver app.
- ChetanSharma-msft
Microsoft
You can also raise your feature/feedback in Teams UserVoice.
Microsoft will always focus on customer’s feedback and experience. Some new features would be added to the services based on customers' feedback in the future, and your good ideas will be very helpful for them to improve the service.
- godboutCopper Contributorhmm, thank you, but again the feature is already here in Teams. it just needs to be "activated" somehow. so it's not like i need UserVoice to do something new. i just need to know how to get Teams starting exposing its AX Tree, which it does already when using the macOS Accessibility Inspector or VoiceOver. thanks.