Forum Discussion

Udayreddy_90's avatar
Udayreddy_90
Contributor
14 years ago

Set the property values at Runtime

In my script, I mapped the 'Table' to name mapping wizard and created alias for that also.

I want to get the cell data of each cell in the Table based on the input Row No, Column No.

4 Replies


  • Hi Uday,





    TestComplete provides a number of built-in features for grid controls testing. If your control is specially supported by TestComplete, you'll be able to use TestComplete's wrapper objects to work with it. If it's inherited from one of the supported controls, you'll be able to map your custom control as one of the controls specially supported by TestComplete and work with it just like with a specially supported control via the Object Mapping feature (see the "Object Mapping" help topic (http://support.smartbear.com/support/viewarticle/31342/) for more information). Finally, if the control is not specially supported and is not inherited from a specially supported control, you'll still be able to work with it via its native properties/methods or via other approaches. Please see the "Working With Grids" help topic (http://support.smartbear.com/support/viewarticle/32834/) for more information.


  •   Hi All,

         In my test it is recorded as table so how can I do the operations on the cells of the table ?

     My scenario is like this. . .

    1. I want to click on specified( row and column)  image ( this image is present in cell )

    2. In one cell there are three images, How can I click the 2nd image in the cell ?





    And

    can u give the clarity for following questions. . .

    1. What is the difference between Grid and HTML table ?

    2. How to find Grid Type from Test Complete and by Manual ?





  • Hi uday,







    In my test it is recorded as table so how can I do the operations on the cells of the table ?



    If you're working with an HTML table, its cells should be available as child objects in the objects tree (see the "Parsing HTML Tables" help topic (http://support.smartbear.com/support/viewarticle/26819/) for more information). A specific cell can be addressed as table.Cell(i, j). After the cell is retrieved, you can take the needed child object (e.g. an image) and work with it. If you need to find a child object located within a specific cell via some specific criteria, you can use the FindChild method to retrieve the child object (see the "FindChild Method" help topic (http://support.smartbear.com/support/viewarticle/28019/) for more information).







    1. What is the difference between Grid and HTML table ? 



    An HTML table is a specific case of a grid - it's a grid implemented as a <table> tag in HTML markup.







    2. How to find Grid Type from Test Complete and by Manual ?



    There are various properties which can help you identify the type of your grid control. For example, .NET controls can be identified via their ClrFullClassName property, Java controls can be identified via the JavaFullClassName property, the WndClass property can be used for other desktop applications, etc.