i have to check particular statement in the HTML page. The thing is that it wont be visible in the web page .i need to check the statement by viewing the HTML source of that web page.I want to check for the whole website.How can i do it BY QTP.
Originally posted by CRK: TArun is correct i tried using it and succeeded
Tarun what is the difference between inner and outerhtml
<font size="2" face="Verdana, Arial, Helvetica">The outerhtml includes the objects start and end tag, innerHTML doesn't. e.g. the outerHTML for a link object will contain the <a></a> tags, the inner HTML won't.
Try it and see what happens, output the innerhtml and outerhtml to msgbox's and you should be able to see the difference.
Everywhere's within walking distance if you have enough time.
thanks for all reply,i have tried with many website in that i can get html source code for some sites and not for some other site(one of the site http://www.bbc.co.uk ).when i trace out i can find small difference is , the sites where i cannot get the html source are contains "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">" this statement in the first line of there code.i dono exactly whether this is the reason i am not getting the html source ..plz help