Micro Focus QTP (UFT) Forums
HTML code - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: HTML code (/Thread-HTML-code)



HTML code - stevol - 11-19-2008

Hi,
I'd like to compare the HTML code of a page with a template, but when I try to visualize the HTML code, it is open by a text editor, not in the browser, and QTP doesn't recognize well the editor... above all using the Object Spy on this editor i capture only a small part of the code, in the property regexpwndtitle.
Is there the possibility to capture in some way all the HTML code of a page, maybe putting it in a text file?
Thanks in advance
[I use QTP_8.2]


RE: HTML code - yaron.assa - 11-24-2008

If you ever do manage to load the file in a browser, you can add it and the page under it to the object repository, and then use:

Code:
MsgBox Browser("X").Page("Y").GetROProperty("innerhtml")

Where "X" and "Y" are the OR names of the browser and the page.