05-27-2014, 03:08 PM
(This post was last modified: 05-28-2014, 11:19 AM by excellentpawan123.)
Hi
I am facing a problem i.e. i am unable to select item in dropdown box. Earliar it was working fine but due to some refactoring, static text control is used. As i run script it gives message as "Object disabled"
I wonder that it is giving correct count but on selection it fails. Please help........
image of object spy is attached
Thanks in advance
I am facing a problem i.e. i am unable to select item in dropdown box. Earliar it was working fine but due to some refactoring, static text control is used. As i run script it gives message as "Object disabled"
Code:
count1 = Dialog("text:=XYZ").WinComboBox("attached text:=Primary Property","nativeclass:=ComboBox").GetROProperty("Items count")
print count1
For i =0 to count1-2
Dialog("text:=XYZ").static("nativeclass:=Static","window id:=2212").WinComboBox("attached text:=Primary Property","nativeclass:=ComboBox").Select i
Next
I wonder that it is giving correct count but on selection it fails. Please help........
image of object spy is attached
Thanks in advance