How to check the particular window is exist or not with out
using check points

Answer Posted / manjunathareddy

Dim Expected
Dim Actual

Expected=Window("FlightReservation")
Actual=Window("FlightReservation")

If Actual=Expected Then
Reporter.ReportEvent micPass,Expected&"
"&Exist","CheckPoint Pass"
Else
Reporter.ReportEvent micFail,Expected&" "&Not
Exist","CheckPoint Fail"
End If

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the exponent of the given number in vbscript?

546


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1445


I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1540


What is dictionary object in vbscript? Explain?

615


What is the output of a + b in vbscript if a = 5 and b = 10?

2058






What is the use of option explicit statement?

575


How to write VB script for login module?

2668


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

1778


Explain the asc function?

502


Why is the use of exit do or exit for statements within loops discouraged?

556


Explain different types of segment?

558


how to set one column as primary key in QTP and fetch values accordingly

1815


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1796


What is event handling in vbscript?

589


What is select case statement?

589