title: click button without id on vba to use on IE
body: <p>I'm trying to made a click on a button that does not have an ID or a Name; I tried using tabs, but it didn't work, and I tried the following code, but it doesn't do anything:</p>
  
  <pre><code>Set tags = Ie.document.getElementsByTagName("button")
  For Each tagx In tags
      If tagx.Value = "Save" Then
          tagx.onclick
          Exit For
      End If
  Next
  </code></pre>
  
  <p>And here is the HTML markup:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"&gt;
    &lt;div class="ui-dialog-buttonset"&gt;
      &lt;button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"&gt;&lt;span class="ui-button-text"&gt;Cancel&lt;/span&gt;&lt;/button&gt;
      &lt;button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"&gt;&lt;span class="ui-button-text"&gt;Save&lt;/span&gt;&lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>