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 many types of operators are available in the vbscript language?

0 Answers  


when we use filter funtiom invb script(QTP)

0 Answers   TCS,


If else for do while select in vb script?

0 Answers  


I want good books or good sites for scripting.Can any one help me.

0 Answers   Wipro,


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

0 Answers  


write a vbscrpit to swap values

2 Answers   Adani,


write a program to display configuration of a local system with the help of vb script.

0 Answers  


We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below

0 Answers  


How to open excel in vb script?

0 Answers  


How can you test font size, type and color using QTP tool?

3 Answers  


What is the extension of the vbscript file?

0 Answers  


How to generate 3 digit random number?

3 Answers   IBM, Virtusa,


Categories