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

what is the use of QCUtil? explain with one example?

1 Answers  


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

0 Answers  


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

0 Answers  


What is vbscript?

0 Answers  


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

0 Answers  


How do you declare a variable in vbscript?

0 Answers  


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,


Mention how to access array data?

0 Answers  


Which operator is used to perform the comparison among 2 operands in the vbscript language?

0 Answers  


What is a class in CSS?

1 Answers  


Hi all..I have two values. a=20 ,b=30 I want to perform c= a+b and c= a*b using user define function.please anyone give the answer

1 Answers  


hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time..and what property we should take while we r using descriptive programming for a link..

6 Answers  


Categories