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
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 |
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 |
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 |
How to import the Test Results in QTP to an Excel sheet
How to test the mandatory fields in QTP?
Can anybody give the script to addsheet, add column,add values under that column in the rows?
Explain advantages and disadvantages of ddf?
What is qtp window?
Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?
HOW TO DO THE BATCH TESTING USING QTP?
Does the Existing reusable action can be modified at the time of calling the action?? Please help me..
Why we load add-ins in qtp?
how can we retrieve ten rows from the data table using loop concept?
How to create runtime property for an object?
how many test scripts we will write in qtp? very urgent. please??? Thanks in advance..