title: Is there a way to store in a variable the text in a certain element in selenium?
body: <p>I have a selenium script that I created with Selenium IDE. I was
  wondering if there is anyway to store the text that is in a certain
  element in a variable so that I can use that text later in the script? I am using selenium IDE to do it and then importing it into browsermob. </p>
  
  <p>For Example: I have this html:</p>
  
  <pre><code>&lt;div id=title&gt;
       &lt;h2&gt;Website&lt;/h2&gt;
       &lt;h3&gt;&lt;span&gt;web app&lt;/span&gt;www.google.com&lt;/h3&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The text in the h3 (www.google.com) changes with different pages. I want a script to be able to run on all these pages that grabs the text in the h3 (in this case www.google.com), and stores it in a javascript variable which I can use in a later part of the script.</p>