Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get To property
#1
Hi all....
i used calculator to check using the getroproperty.can anyone help me how to check using the gettoproperty and getvisibletext for the same example.

Code:
systemutil.Run("C:\Documents and Settings\kAG-Trainee\Desktop\calculator") window("Calculator").WinButton("9").Click window("Calculator").WinButton("+").Click window("Calculator").WinButton("6").Click window("Calculator").WinButton("=").Click a=window("Calculator").WinEdit("Edit").GetROProperty("text") msgbox a

Thankz in advance
Quality Analyst
L.Rajesh
+919840149551
Reply
#2
Hi Rajesh,

We will use GetToProperty to see the property values that are there in the OR for the specified object.
For Eg:
Code:
systemutil.Run("C:\Documents and Settings\kAG-Trainee\Desktop\calculator") window("Calculator").WinButton("9").Click 'This will return the native class property value from OR for winbutton '9'. msgbox Window("Calculator").WinButton("9").GetTOProperty("nativeclass") window("Calculator").WinButton("+").Click window("Calculator").WinButton("6").Click window("Calculator").WinButton("=").Click msgbox Window("Calculator").WinButton("2").GetTOProperty("nativeclass")
Please let me know if you need any more info.
Thanks,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)