Micro Focus QTP (UFT) Forums
Handling VBScript Dialog box - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Handling VBScript Dialog box (/Thread-Handling-VBScript-Dialog-box)



Handling VBScript Dialog box - srinivasadityab - 11-16-2008

Hi

Is there a way to handle VbScript dialog boxes automatically in QTP using the Vbscript itself instead of manual intervention. For Ex:The msgbox in the middle of a script will interrupt the script execution until we press "OK". Is there a way to script the pressing of OK button in QTP itself so that we can avoid manual intervention

Regards
Srinivas


RE: Handling VBScript Dialog box - niranjan - 11-17-2008

You can press OK by writing programmatic statements.
Or, you can use Recovery Scenarios.


RE: Handling VBScript Dialog box - roxer - 12-02-2008

Hi, Srinivas
Maybe this post will help you (read comments)


RE: Handling VBScript Dialog box - srinivas - 12-03-2008

I think you can use print statement . for example
a= 5
print a
wait 2
'msgbox a