title: How to extract the ID attribute of a DOM element, if i know corresponding text through Selenium Webdriver and Java
body: <p>I used following code:</p>
  
  <pre><code>driver.getPageSource().contains("My value in text box");
  </code></pre>
  
  <p>This will let me know, element present in dom or not.</p>
  
  <p>Now, i need to know , value containing text-box "My value in text box". What is id of this text box.</p>