title: Pywinauto: click() method not found
body: <p>I'm beginning a project using Pywinauto on PyCharm. Here is my project structure:</p>
  
  <pre><code>mybeautifulproject
      utils
          Utils
      pages
          LoginPage
      tests
          MyTest
  </code></pre>
  
  <p>Here is my <code>Utils</code> file:</p>
  
  <pre><code>from __future__ import print_function
  import logging
  from pywinauto import actionlogger
  from pywinauto import Application
  
  import argparse
  
  class Test:
      app = Application(backend='uia')
  
      def __init__(self):
          parser = argparse.ArgumentParser()
          parser.add_argument("--log", help="enable logging", type=str, required=False)
          args = parser.parse_args()
  
          actionlogger.enable()
          logger = logging.getLogger('pywinauto')
          if args.log:
              logger.handlers[0] = logging.FileHandler(args.log)
  
          self.app = Application(backend='uia').start(r'mybeautifulapp.EXE')
  </code></pre>
  
  <p>So basically this file will be always used (<code>self.app</code> with be the tested app during the test).</p>
  
  <p>My <code>MyTest</code> file:</p>
  
  <pre><code>from __future__ import print_function
  from utils import Utils
  from pages import LoginPage
  
  test = Utils.Test()
  
  class MyTest:
      loginPage= LoginPage.LoginPage(test)
      loginPage.connexion("login", "password")
  </code></pre>
  
  <p>And the last one, <code>LoginPage</code>:</p>
  
  <pre><code>from __future__ import print_function
  
  class LoginPage:
  
      def __init__(self, test):
          self.FENETRE_AUTHENTIFICATION = test.app.window(auto_id='UserAuthentication')
          self.INPUT_NOM = self.FENETRE_AUTHENTIFICATION.child_window(auto_id="tbLogin")
          self.INPUT_MOT_DE_PASSE = self.FENETRE_AUTHENTIFICATION.child_window(auto_id="tbPassword")
          self.BTN_VALIDER = self.FENETRE_AUTHENTIFICATION.child_window(title="Mot de Passe", found_index=0)
  
      def connexion(self, login, password):
          self.INPUT_NOM.set_text(login)
          self.INPUT_MOT_DE_PASSE.set_text(password)
          self.BTN_VALIDER.click()
  </code></pre>
  
  <p>When I launch <code>MyTest</code>, the app opens, fields are correctly filled, but then I get the error:</p>
  
  <pre><code>AttributeError: Neither GUI element (wrapper) nor wrapper method 'click' were found (typo?)
  </code></pre>
  
  <p>I don't know why the button can't be clicked. I know it's found, because, when I put a wrong identifier there's an error that explicitly says that the object cannot be found.</p>
  
  <p>What am I missing?</p>
  
  <p>Thank you.</p>