title: Using Selenium in Python to Login
body: <p>I am trying to use Selenium in Python to try and log into this website</p>
  
  <pre><code>https://commerce.spscommerce.com/auth/login/
  </code></pre>
  
  <p>All of the xpath's I have tried were not able to locate the element.</p>
  
  <pre><code>driver = webdriver.Chrome()
  driver.get("https://commerce.spscommerce.com/auth/login/")
  driver.find_element_by_xpath('//input[@id="username"]').send_keys("test")
  </code></pre>
  
  <p>I tried using name, type and class but have not been able to locate the element.
  Here is the HTML I got from inspect element</p>
  
  <pre><code>&lt;input id="username" name="username" type="email" required="" ng-model="ctrl.email" ng-
  blur="ctrl.checkEmail($event, ctrl.email)" ng-focus="ctrl.resetEmailBoolean()" autofocus="" 
  test="login-username" class="ng-pristine ng-valid ng-not-empty ng-valid-email ng-valid-required ng-touched"&gt;
  </code></pre>
  
  <p>Any Ideas on what path to use to locate the element and send the username/password? Thanks so much for the help.</p>