Forum Discussion

andr_simonov's avatar
andr_simonov
New Contributor
14 years ago

Methods to Work with a VB Grid

Hello,



I'm new to TestComplete and am trying to automate an application called Fidessa.

Its GUI is a massive COM object and was "developed utilising .NET, ActiveX technologies and C++”.



The grid I need access to is: VBObject("combinedGrid"), Window class = GridCore2



Mapping this object to Microsoft Grid and GridView did not work - "not a Microsoft Object".



I cannot find/make work methods for:

- Clicking on a cell

- Getting cell info

- Getting cell text color



Grid.RecordCount does work well however which returns true record count.



Attached are properties and the full list of Test Object and .Grid object methods.



Help will be much appreciated.



Thank you.

1 Reply

  • Andrey,


    Most likely, you mapped it to a wrong object. This grid control is not inherited from the Microsoft DataGrid control class.

    You can find the original control name and then decide which object mapping group matches it best.


    However, now, I tend to think that TestComplete does not provide special methods and properties for automating this grid control. Nevertheless, it has access to internal methods and properties (you said that Grid.RecordCount works - this is because it is a native property of the grid control). So, you can use the grid's native methods and properties to accomplish the tasks you need. I cannot say the exact names of methods and properties to be used, sorry. I have never worked with Fidessa apps. Try searching the grid's documentation or ask your developers, they should be able to help.