CreateObject("InternetExplorer.Application") getelementbyname after navigate to another page

0

This will work fine.

(VB.NET)

Dim InternetExplorer = CreateObject("InternetExplorer.Application")
With InternetExplorer
      .Visible = True
      .Navigate("www.test.com")
      .document.getElementsByName("value")(0).Value = "test"
end With

But if i navigate to another page and try to "getElementsByName" again, i will become this error "HRESULT: 0x800A01B6".

How can i fix it?

I am grateful for every suggestion.

vb.net
internet-explorer
asked on Stack Overflow Apr 7, 2017 by Leumas

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0