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 |
Explain step generator in qtp?
what is the framework followed by ur company in qtp
Login to flight app, in window flight reservation set the date field and select flyfrom as Frankfurt and verify whether flyto list box has the item FrankFurt, log the results.
How you automate testscripts one by one or moduelwise or all at once
Hi, how can we retrieve a specific value from Excel Sheet (Not datatable. for externel file).i mean to say from .xls file. and also tell me from xml file and .doc file. and how can u parameterize ur script from .xls file.(Not data table).
what are the limitations of automation testing?
How many type of status messages are there ..explain?
Hi All, I am 4 yrs experieced in manual testing and new to automation tool QTP. Iam trying to learn it thru online and material i have.I am able to understand but unable to trace out which method or function to be used where necessary in VB Script. How come we know the functions or methods to be used to open a window when clicking on button or so...Pls suggest me.How can i proceed further to apt VB Script.
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
what is meant by source control?
How many types of parameters are available in quicktest professional (qtp)?
What are the different scripting languages you could use when working with QTP ?