getElementsByClassName???

This is the strangest problem I've ever encountered.  The following is the code in question:

$ie = New-Object -ComObject InternetExplorer.Application

$ie.Visible = $true

$ie.Navigate("www.google.com")

$ie.Document.body.getElementsByClassName("test")

Windows 7 32-bit fully patched, Powershell 3.0, IE 10 -- Doesn't work...gives:

Method invocation failed because [mshtml.HTMLBodyClass] doesn't contain a method named 'getElementsByClassName'.

Windows 7 64-bit fully patched, Powershell 3.0, IE 10 -- Does work

 

Any Ideas?

Parents
No Data
Reply Children
No Data