Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java objects not refreshed
#1
Not Solved
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
Reply
#2
Not Solved
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
Reply
#3
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Sad How do you clear default values of java edit box contained within a java table? shiraz 2 5,959 12-18-2008, 10:10 AM
Last Post: shiraz

Forum Jump:


Users browsing this thread: 1 Guest(s)