Self-Solve Knowledge Search

Minimize Maximize
How to retrieve and manipulate multiple controls in one Silverlight table cell.
Title :
How to retrieve and manipulate multiple controls in one Silverlight table cell.
Document ID :
KM01388673
Product - Version:
functional testing ; quicktest professional ; unified functional testing ;
OS :
Updated :
Tue Mar 31 03:28:06 GMT 2015
Summary :
How to work with controls inside Silverlight table.
This document describes how to work with multiple controls in a single cell of Silverlight table.
Solution

For the Test Object "SlvTable", it has the method of "GetCellChildObjects", which returns the collection of child objects contained within the specified cell.

We can define an array to keep the returned collection of child objects and use them correspondingly.

Example:

Browser("Controls.Samples").Page("Controls.Samples").SlvWindow("SampleBrowser").SlvTable("dataGrid").SelectCell 3,3

Set arr = Browser("Controls.Samples").Page("Controls.Samples").SlvWindow("SampleBrowser").SlvTable("dataGrid").GetCellChildObjects(3,3)

For Iterator = 0 To arr.Count-1 Step 1
                print arr(Iterator).ToString
Next