How to write DP for a pop up window which appears only during execution and changes - 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 write DP for a pop up window which appears only during execution and changes (/Thread-How-to-write-DP-for-a-pop-up-window-which-appears-only-during-execution-and-changes) |
How to write DP for a pop up window which appears only during execution and changes - anushreebehura - 06-07-2012 Hi I am using windows based application and QTP 10. In middle of the execution a pop up window comes up and I need to write a DP for that. Problem is the pop up window does not comes up if we do the test manually and also its not fixed when it appears. So I cant use Object Spy for properties. Also the name of the dialog is different everytime it appears. Kindly suggest how I can write DP for this case. RE: How to write DP for a pop up window which appears only during execution and changes - supputuri - 06-07-2012 [attachment=1008]Hi Anushree, there are different ways we can handle this. But I think the best methodology is getting the hwnd of the popup window and then work on that. Below is the simple code with sample windows application. I have attached the screenshot for better understanding. Code: 'Step1: Simulate your action to bring the popup window |