Micro Focus QTP (UFT) Forums
Link Object - 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: Link Object (/Thread-Link-Object)



Link Object - stevol - 07-15-2008

Hi,
is it possible through Object Spy understand if a clicked link opens a new browser or changes only the page on the same browser?
I have a page full of many links (some open a new browser and the others open only a new page on the same browser) and i must click every link to see if the destination page exists...
with ChildObjects and a For-cycle I can click all links, but my idea was to capture the url of destination page or destination browser, to understand if they are reachable... but before i must know in which case i am...
Any idea? or also other approachs to solve this problem?

thanks for every suggestion


RE: Link Object - Ankur - 07-16-2008

yes if you can capture target property. target="_top" means new page opens on the top of current page while target="_blank" means new page opens on a different page.


RE: Link Object - stevol - 07-16-2008

thanks Ankur :-)
links with target property "_top" or "_blank" have the behaviour you have explained, but i have also links with target property not valorized... is it normal? About these links, some have a "_top" behaviour, other "_blank" behaviour...
(i use QTP_8.2)

[for example in "www.google.it" I see links with this not valorized property]

Thanks