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 / pavani prasad

a=30
b=20
c=a+b
Timeout = "2"
Set ws = CreateObject("WScript.Shell")
ws.Popup c, TimeOut

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to write xml output check point bu useing descriptive programing .means without useing output check point

1862


Describe the differences between functions and actions in UFT?

810


How many types of recording modes in the qtp?

815


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

1756


What are the different attribute used with regular expression?

714


What is standalone database?

1982


what function you write to do database testing with the help of qtp?

1588


How to find the name of the machine where you are running your automation scripts in qtp?

753


How you calling actions in qtp?

829


What is accessibility check point?

856


I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

1791


How many types of status are there?

804


can test automation improve test effectiveness?

1718


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1784


What are the advantages of Object Repository?

816