title: How to store and echo all ID's of present input fields by XPath in Selenium?
body: <p>I am learning Selenium for automation testing and I am going through and trying to build up some test steps for basic account sign up on a website.</p>
  
  <p>The process will involve grabbing all ID's of input fields within a form and then save those ID's to a variable(s) and echo all of those ID's back.</p>
  
  <p>Currently my XPath looks something like:</p>
  
  <pre><code>//*[contains(concat(' ', normalize-space(@class), ' '), ' textField')]/descendant::input
  </code></pre>
  
  <p>Which, in Firebug highlights all of the input fields. </p>
  
  <p>Now my question is, how would I go about saving the ID's of those input fields and echoing those back in Selenium for verification/debugging purposes?</p>
  
  <p>I tried getting a better idea from: <a href="https://stackoverflow.com/questions/11010992/how-to-store-the-content-value-of-xpath">How to store the content/value of xpath?</a>, but the only thing echo'd and saved in the temp variables is just the name of the variable I gave it. </p>
  
  <p>(We'll call this variable "AllFormInputIDs")</p>
  
  <p>Any and all help is super appreciated and any tips for more efficient XPath mark-up/code mark-up would be great! Thanks :)</p>