Jump to content

IE.au3 cant parse dynamic added content


ADIN
 Share

Recommended Posts

I want use _IEFormGetCollection to get form content which was generated by javascript

Local $oIE = _IECreate("https://www.example.com/login.html")    ;Open the login page

   Local $oSpans = _IETagNameGetCollection($oIE, "span")
   For $oSpan In $oSpans
    if $oSpan.innertext == "Login" Then
       _IEAction($oSpan, "click")
       EndIf
    Next
    ;click span which ganerate by javascript login form

Local $oForm = _IEFormGetCollection($oIE, 0)    ;get my form, but that was not on website after loading, appears after click button and this function cant see it

Local $oEmail = _IEFormElementGetObjByName($oForm, "email") ; trying to parse form but cant
_IEFormElementSetValue($oEmail, "example@gmail.com") ; _IEFormGetCollection dont see generated dynamically elements

Is here any way to _IETagNameGetCollection read website content again after i inititate a javascript which generate additional content?

Edited by ADIN
Link to comment
Share on other sites

I found what was a problem. IE and Chrome recieve little different forms and i was checking select name by Chrome but actually it was different in IE. Sorry for disturb and you can remove this topic.

Anyway big thanks for trying to help me :)

Edited by ADIN
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...