velise
13 years agoOccasional Contributor
Get body of a web page with Iexplore
Hello,
I'm using Test Complete 8
and tring to get body of a web page by scripting.
I tried to use :
Sub Test
Dim url, browser, body, str
url = "http://www.google.fr"
Set browser = Sys.Process("iexplore").ToURL(url)
Set body = browser.contentDocument.body
Log.Message(body.textContent)
End Sub
If i use firefox instead of iexplore it works fine but if i'im usig IE8 i have this error :
Unable to find the object contentDocument. See Additional Information for details. 14:03:28 Normal
Anyone can explain me why ?
I'm using Test Complete 8
and tring to get body of a web page by scripting.
I tried to use :
Sub Test
Dim url, browser, body, str
url = "http://www.google.fr"
Set browser = Sys.Process("iexplore").ToURL(url)
Set body = browser.contentDocument.body
Log.Message(body.textContent)
End Sub
If i use firefox instead of iexplore it works fine but if i'im usig IE8 i have this error :
Unable to find the object contentDocument. See Additional Information for details. 14:03:28 Normal
Anyone can explain me why ?