title: Pywinauto: click Chrome's tab
body: <p>Using this code to access Chrome and its window using <strong>Python</strong> and <strong>pywinauto</strong>:</p>
  
  <pre><code>from pywinauto import application
  
  app = application.Application()
  app.connect(title_re=".*Chrome.*")
  dlg = app.top_window_()
  </code></pre>
  
  <p>Getting a list of controls (suppose, the tab is a control as well):</p>
  
  <pre><code>dlg.PrintControlIdentifiers()
  </code></pre>
  
  <p>It returns something like:</p>
  
  <pre><code>Chrome_RenderWidgetHostHWND - 'Chrome Legacy Window'   (L0, T90, R1920, B1160)
      'Chrome Legacy Window' 'Chrome Legacy Window0' 'Chrome Legacy Window1' 'Chrome Legacy WindowChrome_RenderWidgetHostHWND' 'Chrome Legacy WindowChrome_RenderWidgetHostHWND0' 'Chrome Legacy WindowChrome_RenderWidgetHostHWND1' 'Chrome_RenderWidgetHostHWND' 'Chrome_RenderWidgetHostHWND0' 'Chrome_RenderWidgetHostHWND1' ()
  </code></pre>
  
  <p>The goal is to click on one of the tabs in the Chrome browser. </p>
  
  <p>Any ideas how to access Chrome's tabs?</p>
  
  <p><strong>EDIT:</strong> I found that it can be accessed using:</p>
  
  <pre><code>dlg.Chrome_RenderWidgetHostHWND.Exists()
  </code></pre>
  
  <p>Now, the goal is to click it, since <code>.Click()</code> seems not to work.</p>