title: Unable to click on close button (cross button on a tab strip) using vba
body: <p><a href="https://i.stack.imgur.com/K3jQQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K3jQQ.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/SC1Kb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SC1Kb.png" alt="enter image description here"></a></p>
  
  <pre><code>Set objDoc = objIE.document
  Set objElement = objDoc.getElementById("ext-gen2687")
  </code></pre>
  
  <p>Code execute successfully but not closed the tab strip</p>
  
  <pre><code>objElement.Click
  </code></pre>
  
  <p>Same using the loop code works perfectly,
  holds the object of anchor elements but not closed the tab strip</p>
  
  <pre><code>For Each ul In objDoc.getElementsByTagName("ul")
      For Each li In ul.getElementsByTagName("li")
          For Each anchor In li.getElementsByTagName("a")
              If anchor.ID = "ext-gen2687" Then
                  anchor.Click
              End If
          Next
      Next
  Next
  </code></pre>