Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Query:Input from Keyboard
#7
Not Solved
But while executing a scenario Tongueress 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.
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]
also tried dis:
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
Reply


Messages In This Thread
Query:Input from Keyboard - by Rachna - 04-02-2009, 05:13 PM
RE: Query:Input from Keyboard - by manojith1984 - 04-02-2009, 05:33 PM
RE: Query:Input from Keyboard - by Tarik Sheth - 04-02-2009, 07:16 PM
RE: Query:Input from Keyboard - by Tarik Sheth - 04-07-2009, 10:50 AM
RE: Query:Input from Keyboard - by Rachna - 04-07-2009, 11:45 AM
RE: Query:Input from Keyboard - by Rachna - 04-08-2009, 09:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to input Japanese Character through UFT Alaguraja 0 900 07-01-2020, 11:32 AM
Last Post: Alaguraja
  How to get input from the user in QTP? shanthiK 10 18,561 08-07-2017, 11:34 PM
Last Post: zunebuggy
  KeyBoard Events ravi.gajul 4 16,088 07-19-2017, 08:49 PM
Last Post: sathish_win@outlook.com
  how to use keyboard "Space' using qtp Naresh 2 3,098 06-11-2015, 06:30 PM
Last Post: venkatesh9032
  Query regarding "Call" statement anupam4j 1 2,028 09-26-2014, 01:46 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)