Problem with GetROProperty - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Problem with GetROProperty (/Thread-Problem-with-GetROProperty) |
Problem with GetROProperty - QADBA - 07-14-2008 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: Code: While Browser("Creationtime:=" & CreationTime).Exist 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 RE: Problem with GetROProperty - stevol - 07-15-2008 maybe you must use getroproperty on the object page, child of browser. If i use object spy on "http://www.test.com/test.pdf" i see the property url (of object page, not browser) valorized with "http://www.test.com/test.pdf" [with object spy I never see 'url' as property of browser... are you sure that the property to call is not 'title'?] RE: Problem with GetROProperty - QADBA - 07-15-2008 Thx, if i use 'title' i can close pages which contain pdf-files. But now i've got a new problem. I've updatet from QTP 9.2 to QTP 9.5 and the solution with the CreationTime doesn't work anymore and it seems to be a infinite loop now. Does somebody know a solution? |