I am trying to automate the login on a website. So far I managed to let the script type in a user-name and password and also click on a login button. This works just fine and I am logged into the website. Next step would be to click on some links to get to the right page where I can enter the search data the site needs to find the data for me.
This is the HTML-code of the tag involved:
<a title="Klik hier voor de dienst Kadaster-on-line" class="serviceAvailable" href="https://kadaster-on-line.kadaster.nl/default.asp" target="_self" ng-if="!menuItem.items" ng-repeat-start="menuItem in menuItems">Kadaster-on-line</a>
I have been trying to get VBA to click on a link but can't get in right. This is my latest attempt:
Set alle_keuzes = IE.document.getElementsByTagName("a")
For Each keuze_voor_kadaster In alle_keuzes
If keuze_voor_kadaster.getAttribute("title") = "Klik hier voor de dienst Kadaster-on-line" Then
keuze_voor_kadaster.Click
Exit For
End If
Next keuze_voor_kadaster
What would be a proper way to do this?