A
A
Antonio2020-02-12 16:05:37
Java
Antonio, 2020-02-12 16:05:37

How to get the AutomationId value of an element by coordinates?

Hello!
How can I get the AutomationId value of a desktop application interface element knowing only the coordinates of the element? Are there such frameworks and libraries?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2020-02-12
@BasiC2k

I did not understand AutomationId, but I solved similar tasks using WinAPI.
First, the cursor coordinates are obtained, then through WinAPI - the handle of the window under the cursor is obtained. Well, knowing the handle, you can send a message to the window or get the parent, child windows, etc.
If you follow this path, the WinID and Spy ++ utility helps a lot in your work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question