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 |
In QTP if u got a defect , how to report to developer using Test director or Quality center .
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
On what basis we select test cases to automate?
how will load the object during runtime?
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
Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!
what is exit and entry criteria of automation testing. any body wants a real time script,please mail to me. contactno;9986435766
What is keyword driven Testing Framework. Anybody can explain it in details... Pls anybody can give the answer.. Thanks in advance...
how to write vbscript on web applications in qtp. explian with one example?
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
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?
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?