How to click on a JavaButton inside a JavaTable
I have a JavaButton inside a Javatable in my application. Manually when I click on the JavaButton a dialog box pops-up where I need to click ok button present inside the javadialog.
Now When I am trying to click the JavaButton inside the javatable using the ClickCell method I am unable to to the same.
I also tried to click the button using the Java Method i.e
Set oTable = JavaWindow("jwinElixir").JavaTable("cols:= 8")
oTable.Object.editCellAt 0, 7
The problem with this code is, It clicks the javabutton present in the javatable and the dialog box does appear but immediately QTP gives an error saying "General Run Error" and QTP hangs.
Please suggest a way to click on the java button present inside the java table
Re: How to click on a JavaButton inside a JavaTable
Do you have ChildItem(row, col,"JavaButton", index) available for JavaTable? If you have then you can get the reference of the JavaButton and perform the click operation as you will do for any of the JavaButton not in the JavaTable.
It is a suggestion, I am not sure about the availability of the ChildItem for JavaTable but it is available for HTML Tables and it is very useful in doing what you intend to do.
I hope this helps.