title: protractor can not find element with id
body: <p>I'm using protractor and i can not understand why when i try to get something by css it works but if i try to get it with id it does not work.</p>
  
  <p>Error message on the btnLogin line</p>
  
  <pre><code>TypeError: undefined is not a function
  </code></pre>
  
  <p>Some part of the code</p>
  
  <pre><code>browser.get('http://localhost:3000/#!/signin');
  expect(element.all(by.css('.btn-social')).count()).toBe(2);
  expect(element(by.id('btnLogin').count())).toBe(1);
  </code></pre>
  
  <p>if i try to do something in a input it works</p>
  
  <pre><code>element(by.id('username')).clear().sendKeys('something');
  </code></pre>
  
  <p>html of button</p>
  
  <pre><code>&lt;button id="btnLogin" class="btn btn-lg btn-primary btn-block" type="submit"&gt;Login&lt;/button&gt;
  </code></pre>
  
  <p>I have no idea what i'm doing wrong :S</p>