QTP -object reposistory spy tool is not able to spy the pop
up message appearing in the application, so how is that i
can handle such run time pop ups in QTP by code???

Answers were Sorted based on User's Feedback



QTP -object reposistory spy tool is not able to spy the pop up message appearing in the applicatio..

Answer / pratap bandagi

use Sendkeys method to Click on the button highlited.
for Example if there are two buttons on the popup use Sendkeys method to click on the default button like {"ENTER"} or {"TAB"} or {"ALT+F4"} so that u can close the popup or perform any operation on the popup.

Is This Answer Correct ?    6 Yes 2 No

QTP -object reposistory spy tool is not able to spy the pop up message appearing in the applicatio..

Answer / amruta

using shell object

a=10
b=20
set objshell=createobject("wscript")
If b=10+a Then
objshell.popup"b is equal to a"

else

objshell.popup"b is not equal to a"

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More QTP Interview Questions

Hi..friends can anybody write the script for this question... Am having some 20 nos of links in a web application, i want to click some 5,13 & 17th links. So please....can anybody give the answer....??? -->Hani<--

4 Answers  


is the institute MindQ laid by Mr.Nageswar rao.. heard alot about Nageswar rao...can you briefly let me know about the Nageswar rao inst. and MinQ...THANX IN ADVANCE

44 Answers   InterGraph,


what is Entry Criteria and Exit Criteria?

2 Answers  


Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach

1 Answers   AppLabs,


how can we handle exceptional handling in qtp

6 Answers   NIIT,


tell me the script for envirnment value parameeter with an example. which situation envirnment valu parameter is used

2 Answers   HCL,


If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle?

7 Answers   Covansys,


Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?

3 Answers  


Approach for Installation,comaptibility,system testing

1 Answers   Diebold,


what is the syntax for regular expression in QTP? how to create user defined functions in QTP?

6 Answers   CTS, MBT, TCS,


How to make arguments optional in a function?

0 Answers   Crea,


Is it possible to run QTP scripts created in IE 6.0 in IE 7.0?

4 Answers   TCS,


Categories