title: WebElement not identified in selenium c#
body: <p>Here is the HTML which i am using</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;div class="modal-footer"&gt;
  &lt;button class="btn btn-primary" type="button" value="Show Alert" ng-click="questions.getIrMessage()" 
  data-dismiss="modal"&gt;Confirm&lt;/button&gt;
  &lt;button class="btn btn-primary" type="button" ng-click="questions.showIrGrid()" data-dismiss="modal"&gt;Edit&lt;/button&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I am trying to find 'Edit' button using the below line of code</p>
  
  <pre><code> [FindsBy(How = How.XPath, Using = "//button[contains(text(),'Edit')]")]
   public IWebElement btnEdit;
  </code></pre>
  
  <p>I am getting No Element found exception when i try to use this property.</p>
  
  <p>When i expand btnEdit property in the code, i can see that the 'Displayed' property is false and also text property is empty  <a href="https://i.stack.imgur.com/a6XHd.png" rel="nofollow noreferrer">Property image</a></p>
  
  <p>Please find the attached image.</p>
  
  <p>But when i try to find 'confirm' button there are no issues and i am able to find the webelement.</p>
  
  <p>What is the reason for not getting the button webelemnt.Thank you in advance</p>