| || |
Not able to click on javabutton in a javalist object
There are a number of javalist and javaedit objects in a dialog box, a particular javaedit object (Name: Debit Ledger) autopopulates based upon the value selected in a particular javalist (Name: Credit Ledger), but in order to get it autopopulated, first I need to click on the javabutton in the javalist to see all the values in it and then selecting a particular value from it, the problem is I am not able to click on that javabutton in javalist, I have tried with childobjects method for it but it clicks on the other javabutton in other javalists present in the same dialog box, please help me out.
Can u attach screenshot...
As you trying to implying, it is identifying wrong element
kindly provide your code and some description of property of both object
Thanks for your reply.
Not able to attach screen shot at the moment.
I have tried following codes to identify that button but nothing is working at all.
JavaWindow("title:=Java","Index:=0").JavaDialog("t itle:=Entry").JavaButton("attached text:=<html><b>Ledger</b></html>","Index:=1").click
Set buttonDesc = Description.Create()
buttonDesc("Class Name").Value = "JavaButton"
buttonDesc("attached text").Value = "<html><b>Ledger</b></html>"
Set reqButton = JavaWindow("Java").JavaDialog("Entry").ChildObject s(buttonDesc)
For i=0 to i-1
However I am able to click on that button while using OR but same is not working via static or dynamic DP methods.
In your code, count the no of java button and Click the respective button.
why did you used buttonDesc("index").Value =1
Pl check this line.... index...