yinkaisheng / Python-UIAutomation-for-Windows

🐍Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...
Apache License 2.0
2.31k stars 462 forks source link

Get list of elements by Name/RegexName #244

Closed Loocos closed 6 months ago

Loocos commented 1 year ago

Hi,

Thank you yinkaisheng for this library.

I would want to know if there's a way to get a list of elements by name/regex. In my case, I've multiple elements with the same name. And I want to target the second one. Or currently, it focus on the first found.

Is there an existing way to do this ?

Thanks in advance

qq463505965 commented 1 year ago

first found.GetNextSiblingControl() # navigate to the next one