Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Handle Modal Dialogs In QTP
#1
Not Solved
Hi Experts,
I am using below code to handle Modal Dialogs in SAP but its not working .
Can you please correct the code or let me know in detail how to handle Modal Dialogs


Code:
'C:\closedialog.vbs

WScript.Sleep 400
Set oShell = WScript.CreateObject("WScript.Shell")
While Not oShell.AppActivate ("Save As"):Wend
oShell.SendKeys "{ENTER}"

'Obove code saved with the file name closedialog.vbs in C drive

I am calling the code in qtp by using the below code but its not working

Code:
SystemUtil.Run "wscript","c:\closedialog.vbs"

Please find the screenshot regarding the same
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,491 10-01-2019, 10:44 AM
Last Post: shilpi952
  How to handle KeyUp Event used in my App Hpqtp 3 3,966 07-03-2014, 05:25 AM
Last Post: supputuri
  How to handle scroll down in the web page Mala 14 25,028 04-01-2013, 09:55 AM
Last Post: basanth27
  How to handle the hidden fields using vbscript? Rameshkatru 0 2,751 11-17-2011, 12:33 PM
Last Post: Rameshkatru
  How to handle 2 datatables in QTP Anu123 2 4,132 11-11-2011, 05:53 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)