Micro Focus QTP (UFT) Forums
Navigating history pages of IE - 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: Navigating history pages of IE (/Thread-Navigating-history-pages-of-IE)



Navigating history pages of IE - TurtleRock - 03-16-2011

Hi,

I need to list all the pages(URLs) from IE history, and depending upon datatable entry, i have to navigate to one of those URLs.

Eg. If I have following URLs in my IE history,

Code:
https://www.learnqtp.com/forums/newthread.php?fid=4
https://www.learnqtp.com/forums/QTPthread.php?fid=5
https://www.learnqtp.com/forums/Googlethread.php?fid=4

I would like my browser to navigate to one of these URLs, depending upon user entry.

Kindly help me in doing this.

Regards
Turtle Rock


RE: Navigating history pages of IE - basanth27 - 03-17-2011

Turtle Rock ( nice name though Smile ) -
I was wondering, have you ever considered the option of using filesystem object to navigate to the path C:\Documents and Settings\Administrator\Local Settings\History which actually houses the historical IE data. Once you read the directory, loop through the urls and export them to either an File and then read from that file to compare against the url on your datatable.
Have i made sense?


RE: Navigating history pages of IE - TurtleRock - 04-15-2011

Thanks basanth,

I tried to get a work around in following path.
C:\Documents and Settings\Administrator\Local Settings\History

But didnt find an index.dat file which is encrypted.

I tried with following folder :

c:\Documents and Settings\user\Local Settings\Temporary Internet Files

But it contains objects, and for every URL it is having number of objects ( image, txt etc). So if I write a code to retrieve all the URLs available in here, then I will end up with having a long list of URLs, in which so many redundancy will exist.