Micro Focus QTP (UFT) Forums

Full Version: Java objects not refreshed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all

The JavaTree and JavaTable (and other java objects) are not recognized when stored in the repository : first execution is fine but if the object content changes (inside JavaTable for example) the object is not refreshed and throws an error when used later in the script (object not recognized).
The only workaround I've found is to use only dynamic objects.

This problems happens since we moved to UFT 12.52.

Thanks for your help
Expected_Value="test"
RC=JavaWindow(..).JavaTable("Inter-cell spacing:").GetROProperty("Rows")
For i=1 to RC
Value=JavaWindow(..).JavaTable("Inter-cell spacing:").GetCellData(i, 1)
If (Expected_Value=Actual_Value) Then
JavaWindow(..).JavaTable("Inter-cell spacing:").SelectCell i, 1
Exit for
End if
Next


This is an example need exat requirements
required_Value="test"
row=window(..).table("Inter-cell spacing:").GetROProperty("Rows")
For i=1 to row
Value=window(..).table("Inter-cell spacing:").GetCellData(i, 1)
If (required_Value=Actual_Value) Then
window(..).table("Inter-cell spacing:").SelectCell i, 1
Exit for
End if
Next