Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find some existing elements by FindAllDescendants() #601

Open
WangZhuoyuan0226 opened this issue Nov 30, 2023 · 3 comments
Open

Cannot find some existing elements by FindAllDescendants() #601

WangZhuoyuan0226 opened this issue Nov 30, 2023 · 3 comments

Comments

@WangZhuoyuan0226
Copy link

From my desktop application, I can clearly see some elements which look like ListItem. But when I hover and click my mouse on the item, the Inspect can only display its parent panel. Also, when I want to call FindAllDescendants() and DrawHighlight() to list and display all the descendants in this window, I cannot get the list item that I can see in the app.

The code is here:
var elementArr = currentWindow.FindAllDescendants();
foreach( var element in elementArr){
element.DrawHighlight();
}

For secret policy, I can only draw a picture to illustrate my app problem.
image
image

@tomczakmarcel
Copy link

You're using UIA2 or UIA3 automation?

@Roemer
Copy link
Member

Roemer commented Mar 8, 2024

Can you try with the treewalker?

@WangZhuoyuan0226
Copy link
Author

You're using UIA2 or UIA3 automation?

Hi, I am using UIA3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants