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

Name the different types of recording modes?

0 Answers  


I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”

0 Answers  


Which version of QTP is using by companies nowadays?

4 Answers  


What is an environment variable?

1 Answers  


When a requirement is given to u to automate , What is ur basic approach ?

4 Answers  






How to insert screenshot on to the body of outlook? -1 how to use insert-picture tab in new email outlook to insert image in the body. Suggest something.......

1 Answers  


What is difference between the For..Next and While..Wend statements?

2 Answers  


Pls let me know completely about descriptive programming, where it is used, pls explain with a real time example of its occurence and the program code written in qtp.

3 Answers  


Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version

0 Answers  


Hoe to generate all numbers in between to numbers suppose all numbers in between 1 to 100 using vbscript give me code

2 Answers  


What are the enhancements u did after recording ur script?

3 Answers  


Can anybody help me by sharing the code for checkbox in qtp using vbscript.

2 Answers  


Categories