08-07-2013, 01:26 PM
Hi,
I am not sure if your first piece of code works either without Object Repository having all the objects with the specific labels you are collecting.
Rather you should have set the object :
And coming to your second point, you can very well get your java window, provided its open and you know what are the properties to identify it uniquely. I being unknown to Java add-in would suggest to identify properties such that your window is identified uniquely in two cases
1. When only one java window is open
2. When number of java windows are open
If you didn't get any count at msgbox WinChildren.count, it obviously means that the property is not enough to locate the java windows.
Let me know if this helps
Cheers
I am not sure if your first piece of code works either without Object Repository having all the objects with the specific labels you are collecting.
Rather you should have set the object :
Code:
Set buttonDesc = Description.Create()
buttonDesc("Class Name").Value = "JavaButton"
Set reqButton = JavaWindow("AKAM Application").ChildObjects(buttonDesc)
text = reqButton(0).GetROProperty("label") ' the index starts with 0 for the identified objects
If label = "[i]something you are searching for[/i] then
reqButton(0).click
End If
And coming to your second point, you can very well get your java window, provided its open and you know what are the properties to identify it uniquely. I being unknown to Java add-in would suggest to identify properties such that your window is identified uniquely in two cases
1. When only one java window is open
2. When number of java windows are open
If you didn't get any count at msgbox WinChildren.count, it obviously means that the property is not enough to locate the java windows.
Let me know if this helps
Cheers