VBA automation can't get innerText (innerHTML, value) VBA automation can't get innerText (innerHTML, value) selenium selenium

VBA automation can't get innerText (innerHTML, value)


To get InnerText of the element, You need to call Text method

Set label = .FindElementsByClass("ng-binding")(91)name = label.Text

To get inner Html,

name = label.Attribute("innerHTML")


Sometimes I have found that I have to execute javascript to get what I'm after. You can try

name=driver.ExecuteScript("document.getElementsByClassName('ng-binding')[91].innerText;")