powershell - "Method Not found" error when calling GetElementsbyClassName -
i created powershell automation script , gave friend when run it, said
method invocation failed because [mshtml.htmlbodyclass] not contain method named 'getelementsbyclassname'. @ c:\users\עמית\documents\asaf.ps1:22 char:3 + $a=$docs.body.getelementsbyclassname("fadeout-scroll") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : invalidoperation: (:) [], runtimeexception + fullyqualifiederrorid : methodnotfound
why happened?
we both have ie11, .net 4.5, visual studio, have function , not.
and looks here in computer ie console have function:
but powershell not:
how update powershell?
found after alot of time:
the missing want microsoft core xml
Comments
Post a Comment