Forum Discussion

anuradha_palaku's avatar
12 years ago

How to operate on individual cells inside a Stackpanel ?

Hi,

I need to enter and retrieve values from the cells inside a Stackpanel.

Each Row inside the canvas object is recognized as a seperate StackPanel. We are able to get the count of individual cells inside the Stackpanel using childcount method. However, when i tried to set value using Child method on Stackpanel , it is not identifying the cell (child object).

TestComplete identifies StackPanel in the following way-

Aliases.OASIS_Client.HwndSource_WhatIfWindow.WhatIfWindow.grid1.WhatifView.Root.ScrollViewer.view1.Grid.TabView.Grid.internalView1.Grid.Border.scrollViewer1.canvas1.stackPanel1.Row.Grid.canvas1.stackPanel1

Please refer to the screenshot attached for pictorial view of the Stackpanel

Also, could you please let me know if we can create run time objects with specific properties inside the script similar to descriptive programming in QTP.

Quick Response is much appreciated.

Thank you in Advance !

  • Hi Anuradha,


     


    Most probably, the panel provides the Cells property or a similar one that you can use to get access to the target cell. Explore the panel in TestComplete's Object Browser. To make TestComplete show all properties of an object, enable the Tools | Options | Engines | General | Show hidden members option.