can u give one scenario for for PopWindow Exception & write
Code for that?

Answer Posted / nani

Hi,

The best example for popup window is when ever your login
in gmail then you will receive a pop message box for
remembering password at that time you have to clck any one
of the optin like remember me or not now..

instead of writting code repeatedly for this one..
just create recovery sceneriao and use it.
otherwise just create a function and store it in utility
file then use it anywhere.

eg:

Function LoginPopup.

If Object_Exixt(Browser("name").Page("Name").Dialogbox
("name")) then

ObjClick(Browser("name").Page("name").winbutton
("buttonname"))

End Function.

just u can use this function where you want in the code.

Nani..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is expert view in qtp?

573


what is the diffrence bw qtp architectute and qtp framework?

1533


How to save your test using quicktest professional (qtp)?

583


Is virtual object supported in low level recording mode?

613


Please Don't mind .i want in detail the real time process i.e in each document what it contains.

1429






if anyone has idea of the interview procedure in covansys, plz send me a mail?

1519


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

1495


What is file database?

1684


What are the five challenges you faced in QTP?

2748


i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.

1370


is there any addin for remedy user application

1738


How will you check that your test cases covered all the requirements?

553


Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

1569


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1691


What are the technologies supported by qtp?

552