Can we set a timeout for the msgbox.I want the msgbox to
disappear after 2 seconds during the script execution
without clicking on the OK button manually.

Answer Posted / guest

Ya we can make the msg box disappear withou even clicking
on the msgbox. by using the time out property of the
vbscript.

Text_MsgBox = "Test"
Timeout = "2" 'in seconds
Set WshShell = CreateObject("WScript.Shell")
wshShell.Popup Text_MsgBox, TimeOut 'Prompt Message box

Is This Answer Correct ?    19 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this

1403


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1430


after click on compose mail how can we attached a file in qtp with vbscript code

1621


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

1640


Both static and dynamic arrays are handled by the vb script. Is it true?

565






What are the common defects found in your project? (in qtp interview)

1621


How to use conditional loops in qtp ?

594


Explain the checkpoint in qtp?

596


"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...

1446


Hi All, How to get repeated word in string . Thanks Balaji

943


Discuss quicktest professional environment?

592


Where we use data driver in qtp?

613


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1363


What is the synchronization point in qtp?

567


If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?

1747