Recording Actions on the DataGrid

This functionality is supported only if you are using the Classic Agent.

For standard DataGrids, Silk Test Classic records the following 4Test methods using the Classic Agent, depending on the location or component in the grid:
  • ClickCell()
  • ClickCellButton()
  • ClickCol()
  • ClickRow()
  • Collapse()
  • Expand()
  • SetCellValue()
  • SetFocusCell()

Notes

For DataGrids with natively supported, embedded controls, Silk Test Classic records the appropriate method call for the control with which you are interacting.

For DataGrids with embedded custom controls, Silk Test Classic records low-level events, such as TypeKeys and Click.

Silk Test Classic records a ClickCell before a SetCellValue.

If you use the Open Agent, the DataGrid class uses a different set of methods.

Example

If you record changing the value "Pine" to "Maple" in the Cell "Last_Name", Silk Test Classic generates:
SwfDialogBox("SamplesExplorer").SwfDialogBox("Sort").DataGrid("Prototype Grid")
  .ClickCell ({{1,1,2}, "Last_Name"})
SwfDialogBox("SamplesExplorer").SwfDialogBox("Sort").DataGrid("Prototype Grid")
  .SetCellValue({{1,1,2}, "Last_Name"}, "Maple")

Record Class, Window Declarations, and Window Identifiers

Record Window Declarations displays an instance of the DataGrid class when you cursor over the grid.

Record Class is not supported for components in the DataGrid, but it does record class on Controls, such as SwfTextField and CustomWin, in a DataGrid cell.

When you hover the cursor over a grid, Record Window Identifiers displays an instance of the DataGrid class. Record Window Identifiers does not display any components in the grid; it displays controls, such as SwfTextField and CustomWin, in a DataGrid cell.