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

Explain QTP using different development techniques ?

543


Is it possible to merge two object repository files in qtp?

626


The hybrid framework can be implemented for any application. Is it true?

597


How to handle dynamic objects in quicktest professional (qtp)?

554


Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

2429






Hi How to retrieve data from web element line by line?

1575


explain structured testing? plz guys with exp. do answer

1416


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.

1471


What is the basic concept of quicktest professional?

544


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1308


How did you use regular expressions in QTP and also in WR?

2170


what is the difference between modular framework & datadriven framework

1599


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1290


Can we run multiple QTP scripts one after the other without manual intervention? How?

602


How qtp identifies objects?

576