07-03-2008, 07:55 PM
Hi,
I attached the code you proposed to my testscript, after the download is completed. It looks like this:
QTP steps into the IF-case. So it recognizes the browser. It then waits approximately 5 minutes (it does not timeout!) until it closes the browser.
As I saw QTP having closed the browser, I tested my earlier script again. Here it is the same problem... it just waits very long until it goes on. So the browser-object it still there. But somehow, QTP needs a long time to access the browser again.
So thanks for the help until now, but do you have any further idea, what the problem could be?
I attached the code you proposed to my testscript, after the download is completed. It looks like this:
Code:
'Download something
If Browser("Browser").Exist(1) Then
Browser("Browser").Close()
Else
Dim lala
lala = 12
End If
As I saw QTP having closed the browser, I tested my earlier script again. Here it is the same problem... it just waits very long until it goes on. So the browser-object it still there. But somehow, QTP needs a long time to access the browser again.
So thanks for the help until now, but do you have any further idea, what the problem could be?