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

I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

0 Answers  


what is meant by Utility object and utility functions?can u all pls explain these clearly.

1 Answers  


images are dynamically changes how to compare two images with out using the bitmap

0 Answers   Hexaware,


What is the extension of script and object repositary files?

2 Answers  


We have an application which generates links( more than thousand) based on the time stamp dynmically.Each link will download an xls file. we are supposed to click a particular link (which link to click will be obtained thru some buisiness logic).Now the issue is QTP is not recogniging the link(say Var1) though its properties showed mandatory fields text=xyz and html tag=A.I used following code to do this. Browser("ABC").Page("123").Link("text:=" &Var1,"html tag:=A").click, can any one suggest why this is not recognised by QTP though syntax is correct?(Is there any sync issue to be considered?Because on clicking the link it will take 5 mins to open that file)

3 Answers  


With out using the task manager,how to close the application using vbscript and what is the statement?

1 Answers  


How do you handle XML exceptions in QTP (Here it is Exception, not the checkpoint)

2 Answers   CFC, CTS,


HOW CAN QTP AND TEST DIRECTOR CONNECTED TO THE DATABASE AND WHAT R THE OPTIONS?

0 Answers  


how to recall a function in QTP?

3 Answers   Ordain Solutions,


hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji

2 Answers  


What is diff betwee datatable.importsheet "path" and datatable.import

2 Answers  


i have 2 year experience in manual and automation testing, I have less percentages in X, Xii (Second grade), can i elgible to TCS interview (Or MNC's)

3 Answers  


Categories