mercredi 5 juin 2019

How to Click on Href that is within a td tag?

I am trying navigate to an href link within a td tag but to no luck This is what it looks like Entries

It doesnt have an id or a classname. This td is within a tr which is inside a table. This table has a classname and an id.

I have tried the below:

Dim HTMLas as MSHTML.IHTMLElementCollection Dim HTMLa as MSHTML.IHTMLElement

Set HTMLas = HTMLDoc.getElementsByTagName("a")

For each HTMLa in HTMLas

If HTMLa.getattribute("href") = "/......."; then

HTMLa.CLick

Exit For

End if

Next HTMLa

The website acts as if it does not see it and doesnt provide any error messages




Aucun commentaire:

Enregistrer un commentaire