Hopefulyl someone can help me with this one.

Basically what is happening is I run a report that is output to a browser. Each time this report is run the url is different. How do i capture this unique report url each time in the same script? I am running into the window not being recognized because of this and I nee to have each report printed for verification. Since the window is considered different each time because of the unique url I am having troubles.