我试图从“pShowMore”类的第二个元素中获取 URL。
我有这个:
For Each wd In CreateObject("Shell.Application").Windows
If InStr(wd.LocationName, "Institution") <> 0 Then
Exit For
End If
Next wd
Dim newURL As String
newURL = wd.document.getElementsByClassName("pShowMore").getElementsByTagName("a")(1).getAttribute("href")
我得到错误:438-“对象不支持属性或方法”进行检索(即 wd.document .....)
我该怎么做才能在 href 中获取 URL?另外,为什么它不支持属性或方法?