Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How will you report the bug and explain the defect tracking sheet you handled?

0 Answers   TCS,


what is meant by automation tool?

1 Answers  


hi nani my doubt is how does qtp process metrix related to software process.

0 Answers  


what is the object properties settings in the QTP

5 Answers   DigiTech,


what r the drawbacks and limitations of QTP?

2 Answers   NIIT,


Tell me the situations where we will use Data Driven?

4 Answers   Ordain Solutions,


what is framework and types of framework? Need of framework in automation? write folder strucuture of framework.

3 Answers   HealthAsyst,


While creating Recovery Scenario for Pop-up window..In 'Recovery operation' we have to call a function. Can u tell me that function.

4 Answers   Alcatel-Lucent, Ordain Solutions,


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?

0 Answers  


can we take 'dim my pen is good' as a paramerter

2 Answers  


Tell when we call the function? tell with example.

1 Answers  


vb script for calling one function to the another function

2 Answers  


Categories