Internet Explorer Automation Troubleshooting
Sometimes IE automation stops working because of oleacc.dll, which is a system windows DLL file responsible with Active Accessibility support.
To fix it you'll need to register oleacc.dll in windows registry using regsvr32.exe command line tool as explained below:
- open an elevated command line (cmd.exe with admin rights)
- execute command: regsvr32.exe oleacc.dll
IE automation can also fail because of security settings. On Windows server is very likely that IE has default security settings that prevents scripting. You have to allow active scripting for the site you want to automate like this:
in IE Tools/Internet Options/Security tab/Custom level button/Scripting/Allow active scripting