Shripal Purohit
Shripal Purohit

Reputation: 43

Winium- Locate elements not having name or automationId for desktop automation

I am working on winium for a new use case regarding desktop automation. The problem I face is to identify those elements which don't have a name, class name or automation ID. I am using Inspect.exe and UISpy to locate elements on the desktop.

I tried googling, but didn't find an answer to locate such elements. How can I locate such elements?

Upvotes: 1

Views: 1022

Answers (1)

rickm
rickm

Reputation: 31

There are two strategies to locale UI elements:

  1. using names, class, IDs like you mentioned.
  2. using visual recognition (based on component appearance and coordinates)

In the case of the second strategy, take a look at the following tools:

Using these tools you can navigate in the interface based on UI elements appearance:

Upvotes: 1

Related Questions