Forum Discussion

OAn's avatar
OAn
Contributor
3 years ago
Solved

ListView - GetCell() method

Hi,   I'm using TestComplete Version: 14.90.432.7 x64 with DelphIScript. The tested application is developed with C#. Does anyone used GetCell method for a ListView control? The function format ge...
  • AlexKaras's avatar
    AlexKaras
    3 years ago

    Hi,

     

    > they simply instantiate the class ItemTextEventArgs tea = new ItemTextEventArgs(); 

    Generally speaking, the same is possible in TestComplete:

    -- You need to add the assembly that implements the ItemTextEventArgs class to the CLR Bridge as well as all required dependent assemblies;

    -- After that in the code completion window under dotNET node you should see the assembly, class name, its constructor (named as .zctor() ) and all other public methods provided by the class.

    Depending on your scripting language you should be able to write the code like this:

    var iteaClass = dotNET.<assembly>.ItemTextEventArgs.zctor();

    and use created class instance in your code.

     

    See https://support.smartbear.com/testcomplete/docs/app-testing/desktop/net/creating-class-instances.html and related help topics for more details.

    Hope this will help.