title: Search for a button by its HTML Code
body: <p>I am writing Coded UI Test's for a web app. I am having problems such as I record actions using the test builder, however sometimes the button that is clicked has different information each time I run the test and as result VS can't find the button.</p>
  
  <p>The html code never changes so what I want to do is <strong>find the button by its html code and click it that way</strong>. </p>
  
  <p>For example on Google the path to the search button is </p>
  
  <pre><code>&lt;button id="gbqfba" aria-label="Google Search" name="btnK" class="gbqfba"&gt;&lt;span id="gbqfsa"&gt;Google Search&lt;/span&gt;&lt;/button&gt;
  </code></pre>
  
  <p>How can I click this button using the code above or Alternativly using the XPath</p>
  
  <pre><code>//*[@id="gbqfba"]
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>