title: how to getattribute of a span class value in selenium web driver
body: <p>I used .getAttribute("value"); but it gives null value
  .gettext() method also gives null value.Kindly suggest way forward.<a href="https://i.stack.imgur.com/PooXV.png" rel="nofollow noreferrer">Snapshot of xpath</a>  </p>
  
  <pre><code>&lt;span class="required-filled ng-binding" ng-hide="appc.model.oRareCaratSignup.msgError"&gt;Please fill required fields&lt;/span&gt;
  </code></pre>
  
  <p>Absolute xpath for the element is:</p>
  
  <pre><code>html/body/div[5]/div[2]/div/div/div[2]/div[3]/span[2]
  </code></pre>