title: How to get an element value in DOM using selenium2 java
body: <p>Here is the HTML code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form id="save" method="post"&gt;
    &lt;div class="row"&gt;
      &lt;div id="id2"&gt;
        &lt;div&gt;
          &lt;div id="id3"&gt;
            &lt;div&gt;
              &lt;div&gt;
                &lt;div&gt;
                  &lt;div&gt;
                    &lt;div&gt;
                      &lt;input id="TotalAmt" class="form-control" type="text" value="" readonly="readonly" name="TotalAmt"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>My DOM is like this </p>
  
  <p><a href="https://i.stack.imgur.com/G302a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G302a.png" alt="DOM"></a></p>
  
  <p>I want to get the highlighted property value from the DOM. It's not in the HTML. Is there a way to get that text using JavascriptExecutor or by another way? I'm using Selenium2 and Java as my programming language.</p>