title: Locating WebElements using XPATH (NoSuchElementException)
body: <p>I am having problems with locating elements using xpath while trying to write automated webUI tests with Arquillian Drone + Graphene. 
  To figure things out I tried to locate the search-button on the <a href="https://www.google.com/" rel="nofollow">google homepage</a>. Even that I am not getting done. Neither with an absolute or a relative xpath. </p>
  
  <p>However, I am able to locate elements using IDs or when the xpath string has an ID in it. But only when the ID is a real ID and is not generated. For example on google homepage: The google-logo has a real ID "hplogo". I can locate this element by using directly the ID or the ID within the xpath-expression.</p>
  
  <p>Why is locating the google logo using the ID "hplogo" possible but it fails while using the absolute xpath <code>"/html/body/div[1]/div[5]/span/center/div[1]/div/div"</code>?
  I am really confused. What am I doing wrong? Any help is appreciated!</p>
  
  <p><strong>EDIT</strong>: </p>
  
  <p><code>WebElement e = browser.findElement(By.xpath("/html/body/div[1]/div[5]/span/center/div[1]/div/div"));</code>
  is causing a NoSuchElementException.</p>