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

how to organize files in object repository of qtp

1 Answers  


which is the bset training centre to learn automation tools?

2 Answers  


How to get path of the file through scripting?

1 Answers   Hexaware,


Which operator can be used to do an xor operation in vbscript?

0 Answers  


Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?

0 Answers  






What is the main difference between function and sub-procedure?

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,


How to Enter Values on the Command promt using VB script

0 Answers  


Explain vbscript in detail?

0 Answers  


write a vb script create 5 folders test1 test2 test3 test4 test5

3 Answers  


did any one attended interview in applabs if you had gone through plz tell me the procedure

0 Answers  


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

0 Answers  


Categories