Micro Focus QTP (UFT) Forums

Full Version: Handling VBScript Dialog box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
You can press OK by writing programmatic statements.
Or, you can use Recovery Scenarios.
Hi, Srinivas
Maybe this post will help you (read comments)
I think you can use print statement . for example
a= 5
print a
wait 2
'msgbox a