title: jasmine code for document.getElementById("username").focus()
body: <p>I am facing below error </p>
  
  <blockquote>
    <p>Typerror : can not read property focus of <code>null</code></p>
  </blockquote>
  
  <p>Sample source code</p>
  
  <pre><code>myapp.controller ('MyController',fucntion ($scope){
    document.getElementById("userame").focus();
    ....
  });
  </code></pre>
  
  <p>Please suggest jasmine code for <code>document.getElementById()...</code></p>