But while executing a scenario ress CTRL F10 once the "Insertcard dailog" appears so that "keyEnter Dialog" appears and we can enter the Card number. i have used the below mentioned script ,but it doesnt work.Kindly help.
also tried dis:
no action is seen on the screen.
Please let me know how it can be resolved?
I am using QTP9.2 and working on Java Windows application
Code:
JavaWindow("Sales_BasicFlow").JavaButton("Card").Click
JavaWindow("Sales_BasicFlow").JavaDialog("Credit/Debit Card Payment").JavaButton("£50.00").Click
set WshShell = CreateObject("WScript.Shell")
JavaWindow("Sales_BasicFlow").JavaDialog("Insert Card").Activate
wait(2)
WshShell.SendKeys("^{F10}")
JavaWindow("Sales_BasicFlow").JavaDialog("Key Enter").JavaEdit("Card Number").Set "5454609899026213"[hr]
Code:
Set WshShell = CreateObject("WScript.Shell") WshShell.AppActivate "Sales_BasicFlow" WshShell.Sleep 3000 WshShell.SendKeys "^{F10}"
i tried using this ,but still as in real scenario after press of Ctrl + F10 the next pop up appears of KEY entry...but after executing the script
in this statement:
WshShell.SendKeys "^{F10}"
no action is seen on the screen.
Please let me know how it can be resolved?
I am using QTP9.2 and working on Java Windows application