We have 10 page.In first page we 2 popup and next page we 3
popup window......(windows name is different)how can we
handle the all the popups without using recovery scenario

Answers were Sorted based on User's Feedback



We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is dif..

Answer / niranjan chandramouli reddy

IF you are getting in different pages of same browser.
then you can use the following code:

Do While Browser("Logical name :=Property").Dialog
("ispopupwindow:=True").Exist

Browser("Logical name :=Property").Dialog
("ispopupwindow:=True").Close

Loop

You can use this as function and call this function in
every page

Is This Answer Correct ?    5 Yes 1 No

We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is dif..

Answer / rahul

If the displayed dialog property is same then we can use below listed code

If Browser("").dialog("").exist then
Browser("").Dialog("").webbutton("").click
End If

Is This Answer Correct ?    1 Yes 1 No

We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is dif..

Answer / pramod mallick

use

SystemUtil.CloseProcessByName "IEXPLORE"
'It will close all Browsers with all dependant popup
windows.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More QTP Interview Questions

what is the extension for QTP files?

16 Answers   American Solutions,


How many types of actions are there in quicktest professional (qtp)?

0 Answers  


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

0 Answers  


What is API?

1 Answers  


i want to learn testing tools what i have to know before.iam fresher i dnt know any this..which langagues i have to before testing.

2 Answers   Wipro,






How to analyzing test results using quicktest professional?

0 Answers  


How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box

0 Answers   L&T,


WHAT IS OBJECT REPROSITORY?

4 Answers   BirlaSoft,


hi all, I have installed QTP successfully on windows vista. I am able to record and run on windows applications, but facing problem with web applications. While recording, I am able to open the web application, but when I click on any object or give login name and password, the events are not getting recorded in QTP. Could anyone solve the problem. Any settings to be done for web applications other than selecting web-addin? Waiting for replies. Thanks in advance.

4 Answers  


what about f2&f6 function keys

1 Answers  


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

0 Answers   IBM,


can anyone tell me from where i can download qtp demo or crack version

0 Answers  


Categories