Avec le script suivant j'obtiens le BODY de la page HTML affichée dans IE.
Set oIE = CreateObject("InternetExplorer.Application")
With oIE
.Navigate "www.google.fr"
Do While .Busy
Wscript.Sleep 200
Loop
.Visible = 2
wscript.echo .Document.Body.InnerHTML
End With
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Jean
Bonjour,
'---8<--- Set oIE = CreateObject("InternetExplorer.Application") With oIE .Navigate "www.google.fr" Do While .Busy Wscript.Sleep 200 Loop .Visible = 2 wscript.echo .Document.DocumentElement.OuterHTML End With '---8<---
Amicalement,
Jean - JMST Belgium
"Christophe CHENAVIER" a écrit dans le message de news:%
Bonjour,
Avec le script suivant j'obtiens le BODY de la page HTML affichée dans IE.
Set oIE = CreateObject("InternetExplorer.Application") With oIE .Navigate "www.google.fr" Do While .Busy Wscript.Sleep 200 Loop .Visible = 2 wscript.echo .Document.Body.InnerHTML End With
Comment obtenir toute la page HTML ?
Christophe.
Bonjour,
'---8<---
Set oIE = CreateObject("InternetExplorer.Application")
With oIE
.Navigate "www.google.fr"
Do While .Busy
Wscript.Sleep 200
Loop
.Visible = 2
wscript.echo .Document.DocumentElement.OuterHTML
End With
'---8<---
Amicalement,
Jean - JMST
Belgium
"Christophe CHENAVIER" <c.chenavier_@_corwin.fr> a écrit dans le message de news:%23bsTLDfWEHA.1380@TK2MSFTNGP12.phx.gbl...
Bonjour,
Avec le script suivant j'obtiens le BODY de la page HTML affichée dans IE.
Set oIE = CreateObject("InternetExplorer.Application")
With oIE
.Navigate "www.google.fr"
Do While .Busy
Wscript.Sleep 200
Loop
.Visible = 2
wscript.echo .Document.Body.InnerHTML
End With
'---8<--- Set oIE = CreateObject("InternetExplorer.Application") With oIE .Navigate "www.google.fr" Do While .Busy Wscript.Sleep 200 Loop .Visible = 2 wscript.echo .Document.DocumentElement.OuterHTML End With '---8<---
Amicalement,
Jean - JMST Belgium
"Christophe CHENAVIER" a écrit dans le message de news:%
Bonjour,
Avec le script suivant j'obtiens le BODY de la page HTML affichée dans IE.
Set oIE = CreateObject("InternetExplorer.Application") With oIE .Navigate "www.google.fr" Do While .Busy Wscript.Sleep 200 Loop .Visible = 2 wscript.echo .Document.Body.InnerHTML End With