Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to invoke the recording of QTP using AOM(automation object model) of QTP
#3
Not Solved
I tried with the following code:

Code:
Dim shl
set shl = createobject("wscript.shell")
shl.sendkeys "{ENTER}"
wscript.Sleep (5000)


I am facing the below runtime error:

Object required: 'wscript'

Function file: C:\modal_window.vbs
Code:
Line (4): "wscript.Sleep (5000)".


I replaced 4th line of code as below:
Code:
Dim shl
set shl = createobject("wscript.shell")
shl.sendkeys "{ENTER}"
shl.Sleep (5000)

I am facing the below error:
Object doesn't support this property or method: 'Sleep'

Function file: C:\modal_window.vbs
Code:
Line (4): "shl.Sleep (5000)".
Reply


Messages In This Thread
RE: How to invoke the recording of QTP using AOM(automation object model) of QTP - by Shriram - 05-08-2014, 10:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP and CEF automation testing smmehadi@gmail.com 1 2,976 10-27-2017, 08:08 AM
Last Post: liuyuns
  How to find and change text in PDF document using QTP UFT automation VBscript alexwhite 0 11,921 02-18-2017, 04:20 AM
Last Post: alexwhite
  When trying to recognize the object in QTP, each object is recognized as “WinObject:S geetasarvadnya 2 3,514 10-28-2015, 12:34 PM
Last Post: vinod123
  QTP not recording script for webtable alpha1 4 2,685 07-20-2015, 03:47 PM
Last Post: alpha1
  AOM script is running only one or two scripts. jramya 4 3,915 07-24-2014, 06:15 PM
Last Post: jramya

Forum Jump:


Users browsing this thread: 1 Guest(s)