KarenHo Posted February 10, 2020 Share Posted February 10, 2020 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 Link to comment Share on other sites More sharing options...
Subz Posted February 10, 2020 Share Posted February 10, 2020 Use _IEAttach Link to comment Share on other sites More sharing options...
KarenHo Posted February 11, 2020 Author Share Posted February 11, 2020 Thanks Bro, _IEAttach not working , i used _IEGetActiveTab and succes. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now