title: How to get value of div from inspect element using Selenium?
body: <p>I am trying to get the return value of the div modal popup dialog. 
  However, I could not get the value by using the</p>
  
  <pre><code>selenium.GetAttribute("id=lblPopUpMessageType");
  </code></pre>
  
  <p>What I wish to achieve is when I able to get the value then I can catch whether which progress is done.</p>
  
  <p>For example, the code is like below:   </p>
  
  <pre><code> &lt;span id="lblPopUpMessageType"&gt;error&lt;/span&gt;  (If i get the "error" value i know it is fail) 
  or 
   &lt;span id="lblPopUpMessageType"&gt;success&lt;/span&gt; (This mean success)
  </code></pre>
  
  <p>Well, I am not able to get by using the above function. 
  I also tried with Selenium.GetElementIndex().ToString() but not working. I am new to Selenium, any help would be appreciate. Thank you!</p>