07-14-2008, 11:14 PM
Hello,
i've a problem with closing certain windows.
I want to close all browser windows with a specified url, regardless if the window is opend bevor the script is started or at run time of the script.
So i use following code:
Most windows can be closed without any problem.
But there is always a window that remains open. A page with a pdf-file, something like http://www.test.com/test.pdf
If i want to get the url of such a page, the URL is always blank?
Can someone help me, please?
Thank you
i've a problem with closing certain windows.
I want to close all browser windows with a specified url, regardless if the window is opend bevor the script is started or at run time of the script.
So i use following code:
Code:
While Browser("Creationtime:=" & CreationTime).Exist
URL = Browser("Creationtime:=" & CreationTime).GetROProperty("URL")
If instr(URL, Mask) Then
Browser("Creationtime:=" & CreationTime).Close
Else
CreationTime = CreationTime + 1
End If
Wend
Most windows can be closed without any problem.
But there is always a window that remains open. A page with a pdf-file, something like http://www.test.com/test.pdf
If i want to get the url of such a page, the URL is always blank?
Can someone help me, please?
Thank you