Jump to content
KarenHo

Get html page after click

Recommended Posts

Dear bros, Please help.

I try get html page when click button. but after click $oIE is NULL. how to get HTML page after click when the url not changed.

 

Local $oIE = _IECreate("https://abc.aspx")
Local $oTextAreas = _IETagNameGetCollection($oIE, "textarea")
For $oTextArea In $oTextAreas
    If $oTextArea.id = 'kaka' Then
         $oTextArea.value = '123456'
         $oLinks = _IETagNameGetCollection($oIE, "input")
         For $oLink In $oLinks
             If String($oLink.name) = "haha" Then
                   _IEAction($oLink, "click")
                   ExitLoop
             EndIf
         Next
         _IELoadWait($oIE, 1000)

         Local $oSpans = _IETagNameGetCollection($oIE, "span")
         For $oSpan in $oSpans
            If $oSpan.id = "hehe" Then
               MsgBox(0,"Span", "HEHEE")
            EndIf
            ExitLoop
         Next
     
      _IEQuit($oIE)
    EndIf
 Next

 

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...