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 capture data from images in QTP and produce them in Excel sheet ?
What is the current version of QTP?
Wher to use DATA TABLE METHODS in Qtp?What is the use of it?
What is the use of ordinal identifier in qtp?
Did the scripts need lot of maintenance? If yes, why?
Can we directly automate testscripts accrdoing to requirements
2 Answers CitiGroup, Novartis,
Hello everybody, can we maintain the state of page in QTP? 1. suppose i opened a notepad text file i entered some text and changed the font type and font size and saved that file. 2. Now next time when i will open a new notepad file it is showing me that font type and size which i changed in my previous step. 3. Here i want that QTP should capture the default setting i.e. it should maintain the state of the page. Thanks in advance, Gaytri
In one of the scripts the pwd in the DT was encripted. Can any one tell me how to I decript or undo the same?
If 2 gmail browsers are opened in our system, how to enter the mail id and password into second browser by using discriptive program?
How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani.
write a script to close all open browser in qtp except one browser whose name is xyz
QTP Data Table Having 10 records with 10 to 15 fields(lets say).now i want to get alternative records from datatable.pls can any one answer it?