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

write a vb script to generate hello 5 times using do until loop

4 Answers  


How do you create a recordset object in VBScript?

3 Answers  


How will you get the octal value of the given number in vbscript?

0 Answers  


The function template cocept is implemented in vb.net is ???

0 Answers  


Write a program to resize an array of 5 elements to 4 elements and display all the elements.

1 Answers  






who you define variables and functions in VB?

1 Answers  


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

0 Answers  


How will you get a random number between 0 and 1 in vbscript?

0 Answers  


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

0 Answers  


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

3 Answers   TCS,


1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)

0 Answers   iFlex,


Suppose by navigation I went from 1 st page to 5 page ,so Write a generic script for coming from any page to the 1st page and by executing where the page may be it will come to 1st page

1 Answers   CybAge,


Categories