get css selector of focused element


Stefan Moisei
 

Hi,
Is it possible to get a css selector for the focused web element?   I tried IA2 attribeutes and iSimpleDomNode, but I only managed to get the class and id. this is not enough, since web devs hardly respect the rule of unique ID’s.
Doing it with js is not reliable either, as, even with nvda+8 turned  off, focus is not always correctly found.
Thanks,
 

Join nvda-addons@nvda-addons.groups.io to automatically receive all group messages.