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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the operator precedence in vb script?

647


Mention the rules for using option explicit statement?

480


What is the technology used by vb script?

537


Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

1426


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

3181






what is the object hyrarchy in QTP for a web based application

1877


Explain about .wsf files?

616


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

479


In what way program "hello world" you can write in vbscript?

632


Write a code to print numbers from 5 to 0?

673


Mention what are the rules to name variable in vbscript?

530


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1737


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1558


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2057


What are the rules to name variable in vbscript?

580