Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identifying WinEdit in InputBox
#1
Solved: 10 Years, 8 Months, 4 Weeks ago Question 
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:
Code:
Dialog("name:=In").WinEdit().Set "Hi"
Dialog("name:=In").Set "Hi"  'Because the cursor is already set in WinEdit
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 Smile

Code:
Dialog("name:=In").WinEdit("Class name:=WinEdit").Set "Hi"

I love how logical it is Smile))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)