Hi,
In a window based application, i have a textbox.  i want to enter a value 
(for e.g. 5) in the text box using keyboard input, but the below code is 
not working, pls suggest what is the error
WpfWindow("title").WpfEdit("title").Click
WpfWindow("title").WpfEdit("title").Type "5"
erorr shown is Unable to cast object of type 
'ActiproSoftware.Windows.Controls.Editors.Int32EditBox' to type 
'ActiproSoftware.Windows.Controls.Editors.Parts.Primitives.TypeSpecificPartBase`1[System.Nullable`1[System.Int32]]'.

also tried using sendkeys, but it is also not working
Set WshShell = CreateObject("WScript.Shell")
WpfWindow("title").WpfEdit("title").Click
 wait(3)
 WshShell.SendKeys ("5")
 wait(2) 
Regards
Shilpa

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to