06-01-2011, 12:31 PM
Hi,
I am new to QTP, I want to set value to edit box in calc application.
Please help me to solve this problem.
Ex:
Above example is get value from edit box.
I want set value to edit box.
Thanks & Regards,
Kamalakannan Anandan
I am new to QTP, I want to set value to edit box in calc application.
Please help me to solve this problem.
Ex:
Code:
Window("Calculator").Activate
Window("Calculator").WinButton("5").Click
Window("Calculator").WinButton("+").Click
Window("Calculator").WinButton("5").Click
Window("Calculator").WinButton("=").Click
i = Window("Calculator").WinEdit("Edit").GetROProperty("text")
msgbox i, 64,"CalcApp"
Above example is get value from edit box.
I want set value to edit box.
Thanks & Regards,
Kamalakannan Anandan