title: Locating an element by id
body: <p>What is the difference between the following location techniques?</p>
  
  <ol>
  <li><code>element(by.id("id"));</code>  </li>
  <li><code>element(by.css("#id"));</code></li>
  <li><code>element(by.xpath("//*[@id='id']"));</code></li>
  <li><code>browser.executeScript("return document.querySelector('#id');");</code></li>
  <li><code>browser.executeScript("return document.getElementById('id');");</code></li>
  </ol>
  
  <p>And, from the <em>performance perspective</em>, which would be the fastest way to locate an element by id?</p>