05-26-2011, 03:12 PM
Hi,
I am new QTP, How to set Delay Time in QTP vb Script
Here sample Code
WScript.Sleep(1000) It Show a error message
Object Required: WScript
Please Help me to solve this problem.
Thanks & Regards,
Kamalakannan Anandan
I am new QTP, How to set Delay Time in QTP vb Script
Here sample Code
Code:
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("passCount").Select "4"
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("fromPort").Select "New York"
'Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("fromMonth").Select "December"
WScript.Sleep( 1000 )
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("fromMonth").Select "January"
WScript.Sleep(1000)
Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("fromMonth").Select "February"
WScript.Sleep(1000)
WScript.Sleep(1000) It Show a error message
Object Required: WScript
Please Help me to solve this problem.
Thanks & Regards,
Kamalakannan Anandan