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

Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

0 Answers  


what is the use of Data base check point ?

3 Answers  


i want to when we will write the scripts either after getting the build or after getting the SRS?

3 Answers  


What is vbscript procedures?

0 Answers  


Which in-built function related to an array joins substrings into one string in the vbscript language?

0 Answers  






where can i learn VB scripint ?

0 Answers   Satyam,


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

0 Answers  


How do I check that the names in a weblist are correct e.g in flight application the names of item are Denver, paris,London, etc. How do I ensure the correct item is displayed from the list after doing item count ?

2 Answers   IBM,


Explain few date functions in vbscript?

0 Answers  


How will you format a number in percetage format in vbscript?

0 Answers  


which is the bset training centre to learn automation tools?

2 Answers  


What is the differene between QTP 8.2 and QTP 9.0 and QTP 9.1,Pls give me answer ASAP.

3 Answers   Accenture,


Categories