Jump to content

IE Can't Return Data depending on the site accessing


Recommended Posts

Hi All,

I've tried to create a script to browse to a web page in IE, but it only works for some sites, I've tried to simplify the script as much as possible, hoping you can point me in the right direction - thanks.

This one going to Google does work:

#include <IE.au3>
$oIE = _IECreate("https://www.google.com.au/", 0, 1, 1)
_IELoadWait($oIE)
_IEQuit($oIE)

But this one going to OneDrive opens the IE page, but fails immediately returning the errors, and the IE window is not closed:
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147023174, Browser has been deleted prior to operation.)
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType ()
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType

#include <IE.au3>
$oIE = _IECreate("https://abccorp-my.sharepoint.com/", 0, 1, 1)
_IELoadWait($oIE)
_IEQuit($oIE)

Even if I put a sleep timer in for 10 seconds after the _IECreate it still doesn't work

Thanks all!

Edited by WoodGrain
Link to comment
Share on other sites

Hmm, are you on Windows 10?

I wonder if it's not working correctly on Widows 10 but working on earlier versions of Windows. I had a similar issue with this same process in PowerShell, worked flawlessly on Windows 8.1, would not work on Windows 10.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...