title: How to find all WebElements on page by presence of id?
body: <p>I know I can find element by <code>id</code>:</p>
  
  <pre><code>driver.findElement(By.xpath("//*[@id='some_id']"));
  </code></pre>
  
  <p>And I can find all elements with this <code>id</code>, but I want to find all elements with an <code>id</code> attribute. I'm looking for something like:</p>
  
  <pre><code>driver.findElements(By.xpath("//*[@id]"));
  // or
  driver.findElements(By.xpath("//*[@id='*']"));
  // or
  driver.findElements(By.xpath("//*[contains(@id)]"));
  </code></pre>
  
  <p>I'm using Java. Thanks!</p>
  
  <p>UPD: The only solution for me is to get all elements by <code>"//*"</code>, go through them and get their <code>id</code> attributes. Is there a way to get all attributes at once, something like <code>"//*@A"</code> from Java?</p>