I first create an InternetExplorer and then I extract an object. I was extracting text from it using:

myText=obj.childnodes(0).innertext text

However, I get an "Automation error": -2147352319 (80020101)

I can't figure out why. I can actually access it using a loop:

For each child in obj.Children
If child.className="my class name" Then myText=child.innertext
Next child

This is indeed a solution but I don't want to introduce loops every time I want to access child nodes... Thought?

Thanks,

Samuel