title: pywinauto find element by name
body: <p>I have an element to be found within the tree and there's no distinctive element properties available for search according to pywinauto.findwindows.find_elements() or element.child_window() guidance.</p>
  
  <p>Is there a way to access element using LegacyIAccessiblePattern.Name?
  It works pretty well in VB code, but i have no clue how to locate this property in python.</p>
  
  <p>Child selection by index does not work for me as well: using <code>ctrl_index = N</code> returns listing of all children in the descendant tree (<code>top_level_only = True</code> does not help), so desired element has to be located among hundreds of other children.</p>
  
  <p>Here is the list of all properties that has non-zero values according to Accessibility Insights (and further below is the screenshot, representing required part of the element tree).</p>
  
  <pre><code>ControlType TabItem(50019)
  HeadingLevel    Unknown(80050)
  LegacyIAccessiblePattern.ChildId    4
  LegacyIAccessiblePattern.DefaultAction  Switch
  LegacyIAccessiblePattern.Name   Notes
  LegacyIAccessiblePattern.Role   37
  LegacyIAccessiblePattern.Selection  [tab item "Notes"]
  LegacyIAccessiblePattern.State  3145730
  LocalizedControlType    tab item
  Name    Notes
  ProcessId   11780
  ProviderDescription [pid:11780,providerId:0x0 Main(parent link):Microsoft: MSAA Proxy (unmanaged:UIAutomationCore.DLL)]
  SelectionItemPattern.SelectionContainer tab "lblSeparator"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/YIpNl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YIpNl.png" alt="snapshot from Accessibility Insights"></a></p>