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

Q) Please any body can help me how we can create descriptive programming if the application is not ready i.e we don't have unique property of object ? note:build not ready means we can't use object spy in build to get unique property .

2 Answers  


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

0 Answers  


How can i learn Descriptive programming in QTP. Please reply.

3 Answers  


tell me about if in the interview what i should tell about pharma application,what r the pharma application concepts,i need pharma application testing features

0 Answers  


When should I use smart identification?

0 Answers  






in my application,validation message has in japanise language.how to validate this message is appears properly or not

0 Answers  


we have a link in a website or webtable How can we record link in that table or site? link is not static we don't know exact location of that link? how ? if u know pls give reply with script also?

6 Answers   Cognizant, Covansys,


What is Step generator in qtp? wt is the use? can u any body explain me? plz

1 Answers  


With what extension you can save the list of tests in a file to run in test batch runner?

0 Answers  


What is the entry and exit point of automation testing

2 Answers   Infosys,


How will you handle the situation when object is not captured during record?

12 Answers   AZTEC,


if you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?

2 Answers   Ordain Solutions,


Categories