how to write code: to check whether the window of an
Application Under Test exist or not . plz give with example

Answers were Sorted based on User's Feedback



how to write code: to check whether the window of an Application Under Test exist or not . plz giv..

Answer / saleh

I can show you with an example:

Dialog("Login").Exist
if it returns true then you can say that the above object
exists else not. For QTP you can write as below:
msgbox Dialog("Login").Exist
if it is true then ...........

Is This Answer Correct ?    2 Yes 1 No

how to write code: to check whether the window of an Application Under Test exist or not . plz giv..

Answer / sandeep

It is possible to check window of an applocation exist or
not by using javacript call

function checkWin()
{
if (Window.closed)
alert("Window closed")
else
alert("Window closed")

}

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More VB Script Interview Questions

How can I access an object in another frame?

1 Answers  


What is the difference between vbscript and vba?

0 Answers  


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

0 Answers  


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

0 Answers  


Mention what is select case statement?

0 Answers  






Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.

3 Answers   Amazon,


how to increase the values in text box in a given text box increament by two values by clicking on button

0 Answers  


What is the equivalent of VBScript?s On Error In Jscript ?

1 Answers   Microsoft,


When to use function procedures and what are its characteristics?

0 Answers  


Is vbscript language a case-sensitive language and what does it mean?

0 Answers  


write a vb script to find the size of d drive?

3 Answers  


Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

0 Answers   Microsoft,


Categories