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.

Answers were Sorted based on User's Feedback



Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / 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

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / sreekanth chilam

Check it out with the below code & this will be the answer
for ur question..

Dim x, y
Set x =CreateObject("WScript.Shell")
y=x.Popup("Do you feel alright?",2,"Answer This Question:",
4 + 32)

Is This Answer Correct ?    10 Yes 5 No

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / 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

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / sreekanth chilam

Hi sastry...

4 --->indicates to Show "Yes" and "No" buttons.
32--->indicates to Show "Question Mark" icon.

"Answer this Question.." indicates the Title of
messagebox ...

I hope u got ..it ..right?

Is This Answer Correct ?    4 Yes 0 No

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / wilco

Is this possible with an inputbox too?

Is This Answer Correct ?    1 Yes 1 No

Can we set a timeout for the msgbox.I want the msgbox to disappear after 2 seconds during the scri..

Answer / sastry

hI Sreekanth Chilam ,Can u tell me wat is 4+32
and ,"Answer This Question:".....

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

In QTP if u got a defect , how to report to developer using Test director or Quality center .

5 Answers   Wipro,


hi i have one issue while selecting weblist i want show one particalur item in weblist .ex one weblist they are monday to sunday i want show the reporter like thurday in particular weblist can you help me about this thanks balaji

5 Answers  


On what basis we select test cases to automate?

0 Answers  


how will load the object during runtime?

0 Answers  


Hi all please solve this.It is urgent..... When I right clicked on a Web image manually It displayed Open link,open link in new window,save picture as, Email picture,Printpicture,propeties...etc. While automation I have written a code like this 'browser("Google").Page("ramseeker®: Memory and_3").Image ("graphOfModel").Click 10,10,micRightBtn But the right click menu was not displayed. I want to save that image in a seperate folder

6 Answers  


Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!

3 Answers  


what is exit and entry criteria of automation testing. any body wants a real time script,please mail to me. contactno;9986435766

2 Answers  


What is keyword driven Testing Framework. Anybody can explain it in details... Pls anybody can give the answer.. Thanks in advance...

1 Answers   Navis,


how to write vbscript on web applications in qtp. explian with one example?

4 Answers   Wipro,


Hi I am from delhi, Now I can surely say that no institution of QTP here in Delhi After reading you people I want to get cry, from last six month I am trying to learn QTP, I have knowledge too but dont know VB Script. Now it appears that without learning QTP no one can learn complete QTP, I want to get a formal learning in QTP. Can you suggest me the best institution. and please let me know the charges and span of the course too. thanks in advance to you alkaa.dugaal@gmail.com

1 Answers  


Hi, I want to retrieve the cell data in the WebTable. For that I have defined a new test object under the browser and have given html tag and text as the test object properties. But while I try to identify it it says 'Object description is not unique'. I tried adding innerhtml, outerhtml, innertext and outertext along with the ordinal identifiers; but no use. What more properties need to be added to identify it? Also I want to enable smart identification for this object but the field is disabled in the object repository for this object alone(In QTP tools->object identification the enable smart identification checkbox is enabled). How do I enable it?

3 Answers  


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

0 Answers  


Categories