title: How can I perform a click action on a button that is present on a child window using pywinauto?
body: <p>I am able to perform a button click on the parent window but I am not sure how I can perform a click action on the button of a child window.</p>
  
  <pre><code>app = Application().connect(path=newPath) 
  app.name_of_the_parent_window.draw_outline()
  app.name_of_the_parent_window.print_control_identifiers()
  app.name_of_the_parent_window.Button6.click()  #this click will open a new window with yes &amp; no buttons.I would like to click on yes button but I am unable to do that
  
  print(app.windows()[0].children(title_re=".*would you like to reset.*", class_name="Button")) #this prints the information about buttons
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/16VqB.png" rel="nofollow noreferrer">image of the result of the above print command</a></p>
  
  <p>I can see that Yes is a button. but I do not know of a way to perform click() on button yes</p>
  
  <p>I tried the following command which failed with the error message 
  <a href="https://i.stack.imgur.com/435wp.png" rel="nofollow noreferrer">error mesage image</a></p>
  
  <p>Please let me know how can I perform a click action on the button of a child window.</p>