i am entering wrong data or wrong password in a text box and
click on submit button .i am getting a popup window with a
message Please enter the correct password or data .How can i
handle this situation by using QTP.

Answer Posted / vamsi

if you want close all the pop-ups to be closed in QTP, we can use utility objects too
in the above comments they handled pop-ups using recovery scenario as well as through scripting.
but to handle pop-up with utility object write this statement in else block of verification point

Systemutil.CloseDescendantProcessess

if we add this statement the pop-up will be closed automatically by QTP

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

608


What are the things(properties, and other details) will be recorded while recording an object using normal recording?

1495


what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

1469


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

1524


whare exactly we have to use functions and sub routain

1846






What is object spy in quicktest professional (qtp)?

546


How the exception handling can be done using quicktest professional?

545


What is the difference between a Function and Action in QTP?

592


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

1763


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2278


When should I use smart identification?

604


What are the trigger events in qtp?

575


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1509


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

1254


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

1628