11-10-2010, 04:12 PM
(This post was last modified: 11-10-2010, 04:23 PM by Mukesh.Laxmidhar.)
Hi all,
I have started to see the cool and powerful side of Descriptive programming for QTP and so far understand basic stuff.
Question:
I have an InputBox and I am able to identify, but I want to edit the WinEdit in the InputBoxt and push Ok. I am able to push Ok but I don't know how to send text to WinEdit that does not have a name?
I have tried:
Result: Error
My main goal - to send "ctrl+v" key to WinEdit and push OK.
Thanks in advance for any help or suggestion.
Reagards,
Mukesh L.
Solution
I love how logical it is ))
I have started to see the cool and powerful side of Descriptive programming for QTP and so far understand basic stuff.
Question:
I have an InputBox and I am able to identify, but I want to edit the WinEdit in the InputBoxt and push Ok. I am able to push Ok but I don't know how to send text to WinEdit that does not have a name?
I have tried:
Code:
Dialog("name:=In").WinEdit().Set "Hi"
Dialog("name:=In").Set "Hi" 'Because the cursor is already set in WinEdit
My main goal - to send "ctrl+v" key to WinEdit and push OK.
Thanks in advance for any help or suggestion.
Reagards,
Mukesh L.
Solution
Code:
Dialog("name:=In").WinEdit("Class name:=WinEdit").Set "Hi"
I love how logical it is ))