Link in application - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Link in application (/Thread-Link-in-application) |
Link in application - laura - 08-05-2009 On my application when I select this 'help' link manually it opens up as a pop up window. whenevr i run with qtp it sometimes just opens loads the help page in same browser. that is it does not open up as a popup. When this happens my script fails as i have a code browser(title:=help", creationtime:-1") .close. if there is no popup qtp goeas ahead to close my main window. I dont want this to happen i only want to close window when there is a pop window. which is why i have the creation 1 there. but yet its not worked. Can anyone help/ Thanks all. RE: Link in application - basanth27 - 08-06-2009 Try this, Code: If Browser("creationtime:=1","title:=help").Exist Then RE: Link in application - laura - 08-06-2009 Tried that and still didnt work when a new browser isnt opened it just closes off the main browser. RE: Link in application - Saket - 08-06-2009 Try to get the number of count of browsers opened if Browser count is > 1 then execute the statement to close the help browser. RE: Link in application - basanth27 - 08-06-2009 Laura - Please upload a screenshot of your browser popup and the spyshot for the popup. |