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

What is string concatenation function in VBScript?

2 Answers  


give me any information abou vb script books learn quckly

0 Answers  


Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.

1 Answers  


What is the use of the date function in the vbscript language?

0 Answers  


how to declare a variable in vbscript using vbscript

4 Answers  


Which date function is used in the vbscript language to find the difference between the 2 dates?

0 Answers  


Which constant is used for print and display functions and works as same as pressing enter key?

0 Answers  


Mention how to create a cookie using vbscript?

0 Answers  


What are the disadvantages of vbscript?

0 Answers  


How are values assigned to string type and numeric type variables?

0 Answers  


compare the string without using stringcomp function?

1 Answers   CSS Corp,


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

0 Answers  


Categories