Jump to content

_IEDocGetObj($oIE).document not working for Angular site

Recommended Posts


Hi All

I am trying to automate logging into a site that uses angular (JFrog Artifactory).  I'm starting with the sample code for getting a document instance but its not working.  $oDoc is null so it just errors out when I try to read fileCreatedDate.  if I change the url to google then it works fine.  I'm trying to get to the document so I can call into Angular's scripting library.  Does anyone know why this might be failing?

#include <IE.au3>
#include <MsgBoxConstants.au3>

Local $oIE = _IECreate("https://MyCustomAppUrlHere")
Local $oDoc = _IEDocGetObj($oIE)
MsgBox($MB_SYSTEMMODAL, "Document Created Date", $oDoc.fileCreatedDate)

I'd settle for another way to work with Angular forms.  I tried setting the values directly with _IEFormElementSetValue but Angular's form validation won't let it work.  It only seems to pass when the values are typed into the fields.  Setting with ControlSend seems to let the validation fire but its also causing IE to hang for some reason. 

I'm really tearing my hair out on this one.  I'd appreciate any thoughts on this.

Share this post

Link to post
Share on other sites

Strange that you can't access the document object. Can you duplicate the issue on another site that runs Angular? If so, can you provide the URL for that site so that we can observe the issue?

Share this post

Link to post
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