Get elements inside a div VBA
<p>I have the HTML below:</p>

<pre><code> &lt;div id="div_2_1_3" class="Button  CoachView CoachView_show" 
   data-type="com.ibm.bpm.coach.Snapshot_5b0cf92e_d5be_41c3_b0d3_f101b717826c.Button"
  data-binding="" data-bindingtype="" data-config="config3" 
   data-viewid="Button3" data-eventid="boundaryEvent_4"&gt;

      &lt;button type="button" class="BPMButton BPMButtonBorder"
</code></pre>

<p>and I have to click in button that class is BPMButton BPMButtonBorder.</p>

<p>I am trying this code, but is returning the error: Run-time error: '438': Object doesn't support this property or method.
How can I click on BPMButton BPMButtonBorder?</p>

<pre><code>sub html

Set divs = ie.getElementBytagname("div")
For Each divi In divs   
    If divi.id = "div_2_1_3" Then Set botoes = ie.Document.getElementsByTagName("BUTTON")
       For Each bt In botoes
            If bt.ClassName = "BPMButton BPMButtonBorder" Then
                bt.Click
                Exit For
            End If
        Next bt
Next divi
end sub
</code></pre>