Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML code
#1
Solved: 10 Years, 9 Months ago
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]
Reply
#2
Solved: 10 Years, 9 Months ago
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Customized HTML reports in QTP azeem 11 48,305 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,269 03-29-2016, 09:43 PM
Last Post: robertosalemi
  How to attach HTML file to Email Naresh 0 2,740 04-06-2015, 02:04 PM
Last Post: Naresh
  How to generate QTP report in a new file(html)? yogesh kancherla 5 14,454 10-21-2012, 04:52 PM
Last Post: yogesh kancherla
  HTML input element names flexdev 1 2,871 05-25-2012, 06:51 PM
Last Post: falvi

Forum Jump:


Users browsing this thread: 1 Guest(s)