Micro Focus QTP (UFT) Forums

Full Version: Want to Pull "View source" of the Application under test.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

While playing back my scripts, say I encountered a page crash. I need to pull "View source" of that page and save it at some location for future use.

Can anyone please let me know the procedure.

Thanks
What is your denotion of the word "Crash" ?

Well, if you are simply reffering to a instance where you need view source under a condition then just use the filesystemobject method to try and retrieve the data and then save as text.
Yes. I need to view source of the page where error occured.

can you pls elaborate of if possible give the code, for filesystemobject?
I wish i could, but due to demential problems i havent been able to re-collect it yet...Meanwhile would you please be able to perform a search on filesystemobject ?