I need to go to the next page by clicking "Anmelden". enter image description here
This elements are described in html code as:
<nav id="main-menu" role="navigation">
<a href="https://csp.stocko-contact.com/portal/">Startseite</a>
<a href="https://csp.stocko-contact.com/portal/authenticate.php">Anmelden</a> </nav>
In my VBA code I try to pick this links with code:
Option Explicit
Dim IE As InternetExplorer
Dim l As Object
Dim link As HTMLAnchorElement
(...)
For Each l In IE.Document.getElementsByTagName("a")
If l.href = "https://csp.stocko-contact.com/portal/authenticate.php" Then
l.Click
End If
Exit For
Next
I work with IE8. Any advice? Thanks in advance.