How to terminate the unwanted window while executing the script - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: How to terminate the unwanted window while executing the script (/Thread-How-to-terminate-the-unwanted-window-while-executing-the-script) |
How to terminate the unwanted window while executing the script - venkatbatchu - 09-11-2009 Hi All, I have a [Print] button on web page , i have to test this fuinctionality whether by click on this button does the printer popup is displaying or not.In my case here it is working when i click on [Print] it is getting displayed print popup page Note: I have given the run option like run on specific url Could you please explain about the procedure to terminate this window Thanks in advance, Venkat.Batchu RE: How to terminate the unwanted window while executing the script - Saket - 09-11-2009 is this a web Page or window dialog which pops up after clicking on Print button? if this is a browser,Can you try does Browser().close works? or for dialog see there must be some cancel button to close that. RE: How to terminate the unwanted window while executing the script - venkatbatchu - 09-11-2009 Printer popup is window and please view the attached screen shot for more information... RE: How to terminate the unwanted window while executing the script - Saket - 09-11-2009 Hey Venkat, You have just click on the cancel button to terminate this or just close it. try the code below Code: Browser("").Dialog("Print").WinButton("Cancel").Click let me know if it works. RE: How to terminate the unwanted window while executing the script - venkatbatchu - 09-11-2009 Hi, Thanks saket, Its working |