Forum Discussion

tmahender12's avatar
tmahender12
Frequent Contributor
9 years ago

Error while identifying a Infragistics Label using object spy

System.NullReferenceException: Object reference not set to an instance of an object at Infragistics.Shared.DisposableObjectCollectionBase.get_IsSynchronized()

 

attached

3 Replies

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    Hi 2mahender,

     

    That's an error in the object you are inspecting. This object returns an error when TestComplete tries to read the IsSynchronized property value. Maybe this property is not designed for external access.

     

    Anyway, you can ignore errors like this. They should not affect your tested app. Just don't use this IsSynchronized property in your tests.

    • tmahender12's avatar
      tmahender12
      Frequent Contributor

      I need ole value value for "Asset Journals 1" string, with out that iam unable to verify the string displayed or not. is there any other method to identify the elements inside the Grid?

      • HKosova's avatar
        HKosova
        SmartBear Alumni (Retired)

        It depends on how that row is implemented in your application. If it's a regular row, its data should be in grid.wValue(row, column). If it's a summary row, try looking in grid.Rows.SummaryValues.Item(index), or see if this helps. Or ask your application developers how to access those values from code.