maniootek Posted November 16, 2017 Share Posted November 16, 2017 (edited) #include <IE.au3> Local $oIE = _IECreate() Local $sHTML = "<!DOCTYPE html>" $sHTML &= "<HTML>" & @CRLF $sHTML &= "<HEAD>" & @CRLF $sHTML &= "<TITLE>Example</TITLE>" & @CRLF $sHTML &= "</HEAD>" & @CRLF $sHTML &= "<BODY>" & @CRLF $sHTML &= "<p>try to use ctrl+f to find this text</p>" & @CRLF $sHTML &= "</BODY>" & @CRLF $sHTML &= "</HTML>" _IEDocWriteHTML($oIE, $sHTML) _IEAction($oIE, "refresh") Search function does not match any text from the IE body. Any suggestions? Edited November 16, 2017 by maniootek Link to comment Share on other sites More sharing options...
JohnOne Posted November 17, 2017 Share Posted November 17, 2017 Get rid of _IEAction($oIE, "refresh") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
maniootek Posted November 17, 2017 Author Share Posted November 17, 2017 7 minutes ago, JohnOne said: Get rid of _IEAction($oIE, "refresh") same result as before Link to comment Share on other sites More sharing options...
JohnOne Posted November 17, 2017 Share Posted November 17, 2017 You are searching for text that is not in the document body. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
maniootek Posted November 17, 2017 Author Share Posted November 17, 2017 What you mean? As you can see, searching sentense is inside the <body></body> tag Link to comment Share on other sites More sharing options...
maniootek Posted November 22, 2017 Author Share Posted November 22, 2017 I will answer myself. To make it work you just have to put your body html into frameset: #include <IE.au3> Local $oIE = _IECreate() Local $sHTML = "<!DOCTYPE html>" $sHTML &= "<HTML>" & @CRLF $sHTML &= "<HEAD>" & @CRLF $sHTML &= "<TITLE>Example</TITLE>" & @CRLF $sHTML &= "</HEAD>" & @CRLF $sHTML &= "<FRAMESET>" & @CRLF $sHTML &= "<FRAME name=main src=about:blank>" & @CRLF $sHTML &= "</FRAMESET>" & @CRLF $sHTML &= "</HTML>" _IEDocWriteHTML($oIE, $sHTML) Local $oFrameMain = _IEFrameGetObjByName($oIE, "main") _IEBodyWriteHTML($oFrameMain, "<p>try to use ctrl+f to find this text</p>") 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