Micro Focus QTP (UFT) Forums
Get the source code from a Page or Browser Object - 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: Get the source code from a Page or Browser Object (/Thread-Get-the-source-code-from-a-Page-or-Browser-Object)



Get the source code from a Page or Browser Object - aathimon - 02-04-2008

Hi all,

I am using QTP on a commercial Website and want to test if a portion of text exist in the webPage. The objects and webelement are'nt always defined with an id or a property and sometime it take me very long time to reconize it with a Description / childObjects method when i make my scripts.

I was wondering if there is any method to get the full source code from a page object in a single string, so i could compare it with the portion of text I want with a InStr() vb fonction.

Any Idea ?
Thx