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
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 |
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 |
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 |
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 |
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 |
What is parameter in qtp?
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?
What is optional step in qtp? How you can add optional step in qtp?
Explain different checkpoints in qtp.
Think and Reply.. can we parameterize radio buttons, check boxes? as in flight web site on flight preference page, choosing different flight produces trouble if from port and to port been parameterize, and runs. Try it by own you will get the error.
HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............
what is the extension for the test version of the script?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
how qtp handles customised object
What are the benefits of quick test pro(qtp)?
Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?
what are the limitations of smart identification in qtp 9.0