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

Answers were Sorted based on User's Feedback



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

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

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

Answer / archana

If window("Flight Reservation").Exist<>0 Then

msgbox "window exists"

else

msgbox "window doesnot exists"

End If

Is This Answer Correct ?    7 Yes 16 No

Post New Answer

More VB Script Interview Questions

please can you help me to get a code of flames using a visual basic 6

0 Answers  


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

1 Answers  


What are the special sub-types in vbscript?

1 Answers  


Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its size to 7 elements and then find out which of the elements are prime (use functions)

2 Answers  


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

1 Answers   Accenture,


What are subprocedures in vbscript?

1 Answers  


Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

1 Answers   Quest,


what is the difference between modular and data and keyword driven framework

1 Answers  


give me an ex. of unoverloaded method?

2 Answers   Misys,


How can you test font size, type and color using QTP tool?

3 Answers  


What is the purpose of regexp object in vbscript?

1 Answers  


WHAT IS ENVIRONMENT VARIABLES?and where it is used in real time scenario?

2 Answers  


Categories