Could not GetAncestryInfo

I am using an automation that starts the App version of Microsoft OneNote. I am trying to delete an already existing section in OneNote, but when I use the click activity for deleting it, I get the error message “Could not GetAncestryInfo”.

I could not find any information about this error anywhere so I figured I would ask here to see if anyone knows anything about this or has a solution!

@Robert_Wennberg Could you please share the selector of Click activity?

1 Like

That’s the other issue, there is no selector at all. It’s not possible to get any result from the click activity since the error occurs as soon as I click.

1 Like

I’ve faced the same issue - Just UIA framework don’t work at all - Empty selector returned from activity Click and “Indicate element”, and this error Could not GetAncestryInfo after indicating via UI Explorer