title: issue while finding the xpath for span located inside div/h2 inside document
body: <p>/*
        Returning visitors login</p>
  
  <pre><code>    &lt;h2&gt;
          &lt;label for="ctl00_Login2_UserName" id="ctl00_Login2_UserNameLabel"&gt;Email&lt;/label&gt;
  
          &lt;br /&gt;
  
          &lt;input name="ctl00$Login2$UserName" type="text" value="pallavi@ensarm.com" maxlength="100" id="ctl00_Login2_UserName" class="formstyle2" style="width:150px;" /&gt;
  
          &lt;span id="ctl00_Login2_UserNameRequired" title="User Name is required." style="color:Red;visibility:hidden;"&gt;*&lt;/span&gt;
  
          &lt;br /&gt;
          &lt;br /&gt;
  
          &lt;label for="ctl00_Login2_Password" id="ctl00_Login2_PasswordLabel"&gt;Password&lt;/label&gt;
  
          &lt;br /&gt;
  
          &lt;input name="ctl00$Login2$Password" type="password" maxlength="100" id="ctl00_Login2_Password" class="formstyle2" style="width:150px;" /&gt;
  
          &lt;span id="ctl00_Login2_PasswordRequired" title="Password is required." style="color:Red;visibility:hidden;"&gt;*&lt;/span&gt;
  
          &lt;a id="ctl00_Login2_ForgottenPasswordLink" href="ForgottenPassword.aspx"&gt;Forgotten password?&lt;/a&gt;
      &lt;/h2&gt;
  
      &lt;h2 align="right"&gt;
          &lt;span id="ctl00_Login2_FailureText" style="color:Red;"&gt;Your login attempt was not successful.  Please try again.&lt;/span&gt;
  
          &lt;div class="button_right button_fixedwidth"&gt;
              &lt;a id="ctl00_Login2_ibnLogin" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&amp;quot;ctl00$Login2$ibnLogin&amp;quot;, &amp;quot;&amp;quot;, true, &amp;quot;Login2&amp;quot;, &amp;quot;&amp;quot;, false, true))"&gt;Login&lt;/a&gt;
          &lt;/div&gt;
      &lt;/h2&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>*/</p>
  
  <p>Above is my html pagesource i want xpath expression of span with id ctl00_Login2_FailureText. which is located inside div/h2</p>
  
  <p>I have tried the fololowing xpath but its not working:
  //span[@id='ctl00_Login2_FailureText' and contains(text(),'Your account has been temporarily locked because of a maximum number of incorrect login attempts.')]</p>