09-05-2011, 01:52 AM
(09-01-2011, 03:11 PM)ashita Wrote: [quote='SQT' pid='17856' dateline='1314867201']
Change your script as below:
invokeapplication("C:\ProgramFiles(x86)\MercuryInteractive\QuickTestProfessional\bin\QTPro.exe")
dialog("Login").WinEdit("AgentName").Set DataTable("agentname",dtGlobalSheet)
dialog("Login").WinEdit("Password").Set DataTable("password",dtGlobalSheet)
dialog("Login").WinButton("OK").Click
Wait(1)
Check your column name carefully ,It should be "agentname" , "password" in global sheet.
Hi,
I tried above script which u post it..
Now I am getting run time error
The Operation cannot be performed..
Why is this So?
Can you please help me...
Thanks
Ashita
Hi Ashita and Hi Paul,
Try this below code: It will work 100%
Quote:Invokeapplication("C:\ProgramFiles(x86)\MercuryInteractive\QuickTestProfessional\bin\QTPro.exe")
Dialog("text:=Login").activate
Dialog("text:=Login").WinEdit("attached text:=Agent Name:").set DataTable("agentname",dtGlobalSheet)
Dialog("text:=Login").WinEdit("attached text:=Password:").set DataTable("password",dtGlobalSheet)
Dialog("text:=Login").WinButton("text:=OK").Click
Window("text:=Flight Reservation").WinButton("object class:=Button").WaitProperty "enabled", 0, 500000
Window("text:=Flight Reservation").close
Please do reply guys.