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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is CMMP and CMMH?

696


What is Distributed testing? How does UFT support it?

605


What is the registration process and examination fees?

549


if our qtp vb Script may be Currepted then What we want do?

1479


What is the descriptive programming?

1511






Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

606


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

1729


I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

2420


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1549


what QTP Options do you know?

2922


what is the difference between development and testing

2371


Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

1768


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

2738


HOw to add the recovery file at runtime to the test file .

1535


Explain the check points in quicktest professional?

537