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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / taruna

you can also use optionalstep

OptionalStep.Browser("name").Page("name").winbutton
("buttonname").click

then it willl for sometime and move further if pop up
window appears.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

what are the functions availabla in QTP? what are the data types in QTP?

2 Answers   Spry Technologies,


How to make Shared object repository in qtp 9.1 and 9.2?

2 Answers  


does qtp need record and playback in realtime. plz tell exactly wat happens

3 Answers   HP,


WHAT ARE THE SHORTCUT KEYS IN QTP?

4 Answers   TCS,


In qtp, how you can get the last character from a string?

0 Answers  






can any one tell me the script to click on a button in the wintoolbar.

1 Answers  


How to check which add-ins are associated with a test in qtp?

0 Answers  


There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code

0 Answers  


what is run-time object in qtp? explain with example?

2 Answers  


str="ramanareddy12345@gmail.com"to count alphabets,numarics and special charcters pls any one knows send to answer

3 Answers   Ziynx,


what is qtp automation framework, what is the purpose of the framework and which folders included in this framework pls tell me with brief description

2 Answers   PSI Data Systems,


Can we directly automate test script according to requirements?

1 Answers  


Categories