I am trying to download an Excel file from a website using VBA Selenium. However I am getting the error:
Object Does not Support This Property or Method (Error 438)
Here is the html:
<a href="../Shared/RepositoryFileServer.ashx?
fieldId=26737&Type=Attachment" id = "DownloadLink"
class="SystemURL">click her</a> == $0
Here is the line of code that is causing the error:
.FindElementbyCssSelector("a[href*='Type=Attachment']").Click
I have also tried these:
.FindElementbyID("DownloadLink").Click
.FindElementbyXpath(".//a[contains(@href,'Type=Attachment')]").Click
.FindElementByClass("SystemURL").Click