Micro Focus QTP (UFT) Forums
how to disable a popup window opened during clicking links of a webpage - 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: how to disable a popup window opened during clicking links of a webpage (/Thread-how-to-disable-a-popup-window-opened-during-clicking-links-of-a-webpage)



how to disable a popup window opened during clicking links of a webpage - sanjeebpatel - 12-25-2009

how to disable a popup window opened during clicking links of a webpage

Code:
Browser("Siebel Analytics Log In").Page("Siebel Analytics Log In").WebButton("Log In").Click
Browser("Siebel Analytics Log In").Page("Siebel Analytics Log In").Frame("AnswersEntry").Link("Dashboards").Click


Browser("Siebel Analytics Log In").Dialog("Connect to sharepoint.yy.com").WinButton("Cancel").Click

(see above line, here i have to click cancel, i want without clicking any where the popup window should disappear)


Browser("Siebel Analytics Log In").Page("Siebel Analytics Log In").Link("I-View Incremental Status").Click
Browser("Siebel Analytics Log In").Page("Siebel Analytics Log In").Link("IMC Analysis").Click



RE: how to disable a popup window opened during clicking links of a webpage - upadhyay40 - 12-28-2009

Hi Sanjeeb,

You can use recovery scenario to handle Pop ups, just check in this forum using recovery scenario and try to implement in your code, you will solve your problem, if you need more information please let me know.

Thanks
Mahesh


RE: how to disable a popup window opened during clicking links of a webpage - Saket - 12-28-2009

I think this is the behaviour your application which can not be minimised.
may be you can try using a recovery scenario for this