Powershell, ie9 and getElementById


I use successfully a script for web automation from this site: heise web automation

I know it is in german, but perhaps someone can help.

The important part of the e-plus website:

the part of the Powershell script:

the getElementById worked for ie8 but now I have updated to ie9 and it is not working anymore.

the errormessage:

the count of the arguments is wrong.

all I was able to find was a hint, that in ie9 getElementById changed.

can anybody help?

Thanks, David


When automating only one concrete site (and the script is not generic or any site) you can try to set compatibility view in IE settings (Tools -> Compatibility View settings). IE should switch to IE8 view when browsing the site.


Powershell, ie9 and getElementById by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply