Hello, I have a VBA code that accesses a web page and excludes the registered items.
When I click the "delete item" button it will open an alert on the screen with two buttons ( "ok" and "cancel" >) and displaying the message "Confirm deletion of delivery location?"
I wanted to know how do I click the "ok" button.
Follow the code:
For Each elements In IE.Document.getElementsByTagName("input")
If elements.name = "quantidadeTotalInformada" Then
quantidaeTotal = elements.Value
End If
Next
If quantidaeTotal > 0 Then
For Each element In IE.Document.getElementsByTagName("a")
If element.innertext = "Selecione" Then
element.Click
Exit For
End If
Next
'o popup aparece depois de clicar neste botão
IE.Document.getElementById("id_btnExcluirLocal").Click
End If