jamesjames1
Technical User
Hi,
I have created some code to output the contents of an Internet EXplorer Window. I need to be more detailed and find a string in the output. The problem I have is that the Inst functionappears to be ignored and the complete contents is displayed. Can I use Instr function, if so how???
stringy = Search
set ie = createobject("internetexplorer.application")
ie.navigate " do until ie.readystate = 4 : wscript.sleep 10: loop
if instr (ie.document.body.innerText,test) then
Wscript.echo ie.document.body.innerText
end if
ie.quit
I have created some code to output the contents of an Internet EXplorer Window. I need to be more detailed and find a string in the output. The problem I have is that the Inst functionappears to be ignored and the complete contents is displayed. Can I use Instr function, if so how???
stringy = Search
set ie = createobject("internetexplorer.application")
ie.navigate " do until ie.readystate = 4 : wscript.sleep 10: loop
if instr (ie.document.body.innerText,test) then
Wscript.echo ie.document.body.innerText
end if
ie.quit