XamPivotGrid("xamPivotGrid1").ClickSubItem pvtgCell, ARRAY(1, 0), igPercent, 0.5, 0.5
This topic provides reference information about the methods that get recorded for various sub items of the supported Infragistics controls.
This topic contains the following sections:
The following table lists the different types of sub items in xamDataGrid control.
The following table lists the different types of sub items in xamDataTree control.
The following table lists the different types of sub items in xamDockManager control.
The following table lists the different types of sub items in xamDiagramToolbox control.
The following table lists the different types of sub items in xamGrid control.
The following table lists the different types of sub items in X amMenu and XamContextMenu controls.
The following table lists the different types of sub items in xamNetworkNode control.
The following table lists the different types of sub items in xamOutlookBar control.
The following table lists the different types of sub items in xamPivotDataSelector control.
The following table lists the different types of sub items in xamPivotGrid control.
The following table lists the different types of sub items in xamPropertyGrid control.
The following table lists the different types of sub items in xamRibbon control with an example from a recorded script.
The following table lists the different types of sub items in xamSpreadsheet control with an example from a recorded script.
The following table lists the different types of sub items in xamTabControl control.
The following table lists the different types of sub items in X amTreemap control.
Below is a list of methods that support recording of subitems with a click action:
Enable the RecordBaseClick option of the control proxy
Enable the control proxy RecordBaseClick option using the Test Automation Settings Utility and navigating by means of Windows start menu.
Locate and drill down into the …\infragistics21.1\WPF Test Automation for Micro Focus… folder as illustrated in the following images.
The following screenshot illustrates the Infragistics folder hierarchy and the relative location of the toolset.
image::images/Subitems_Recording_1.png[]
The next screenshot shows the location of settings Reset and RootOverride to enable the RecordBaseClick option. This particular screenshot depicts enabling the RecordBaseClick option on the XamPivotGridProxy’s settings, as indicated by the presence of the checkmark in its corresponding value column.
image::images/Subitems_Recording_2.png[]
RecordBaseClick is a member of IGProxySetting
enumeration which handles every click action on the control. Default value is set to false.
Turning on the RecordBaseClick
feature allows you to record only the supported methods. None of the control’s other methods are recorded
The RightClickSubItem or RightClickControl methods allow recording even if the RecordBaseClick
feature is turned off
When clicking subitems with the left mouse button:
igAt
–used to record the X and Y coordinates of the region
igPercent
–used to record the coordinates as percentages.
The following recorded script displays the array coordinates (1, 0) as (Row, Column) respectively, and the corresponding click coordinates, for example, when clicked at the center with percentage used with igPercent
.
XamPivotGrid("xamPivotGrid1").ClickSubItem pvtgCell, ARRAY(1, 0), igPercent, 0.5, 0.5
When clicking the mouse’s left button on:
a control’s SubItem, records the SubItem methods such as ClickSubItem, DblClickSubItem or RightClickSubItem
The control itself, records the control methods such as: ClickControl , DblClickControl or RightClickControl if sub item is not found for the control at the point of click.
Limitations of the Settings Utility also apply to all the Record control settings including the RecordBaseClick , RecordItemsByIndex , RecordClickPercent and RecordForceFireEvents options.
Using the Settings Utility to modify any of the control settings, during the recording session, requires the user to stop and restart the recording for the modified control setting to apply.
Recording of ClickSubItem and DblClickSubItem is disabled in the following areas:
Content areas of the XamTabControl, XamDockManager and XamOutlookBar.
Filter dialogs of the XamPivotGrid and XamPivotDataSelector.
The following table lists the code examples included in this topic.
The following table lists the different types of subitems in xamGrid control when recording ClickSubItem , DblClickSubItem and RightClickSubItem actions, and annotated in the image following the table.
Clicking any of the subitems (Outlined in the preview) with left mouse button, records the ClickSubItem action as follows:
XamGrid("myGrid").ClickSubItem xGrdColumn, "[Company]", igAt, 62, 7
XamGrid("myGrid").ClickSubItem xGrdRow, 1, igAt, 37, 12
XamGrid("myGrid").ClickSubItem xGrdCell, "{1}{1}[OrderDate]", igAt, 42, 10
In the above recorded script:
The first parameter (xGrdColumn
) is the subItemType
The second parameter ([Company]
) identifies the clicked sub-item
The third parameter (igAt
) represents the X and Y coordinates of the mouse click action relative to SubItem.
Performing a double-click action instead of a single-click on the SubItem (Outlined in the preview), records the following action:
XamGrid("myGrid").DblClickSubItem xGrdColumn, "[Company]", igAt, 62, 7
XamGrid("myGrid").DblClickSubItem xGrdRow, 1, igAt, 37, 12
XamGrid("myGrid").DblClickSubItem xGrdCell, "{1}{1}[OrderDate]", igAt, 42, 10
Performing a right-click action on the SubItem (Outlined in the preview), records the following action:
XamGrid("myGrid").RightClickSubItem xGrdColumn, "[Company]", igAt, 62, 7
XamGrid("myGrid").RightClickSubItem xGrdRow, 1, igAt, 37, 12
XamGrid("myGrid").RightClickSubItem xGrdCell, "{1}{1}[OrderDate]", igAt, 42, 10
The following table lists the different types of subitems in xamPivotGrid control when recording ClickSubItem , DblClickSubItem and RightClickSubItem actions, and annotated in the image following the table.
Performing single-click action by clicking on any of the subitems (Outlined in the preview) with the left mouse button, which records the ClickSubItem as follows:
XamPivotGrid("myPivotGrid").ClickSubItem pvtgPivotArea, "Measures", igAt, 2,2
XamPivotGrid("myPivotGrid").ClickSubItem pvtgPivotAreaItem, ARRAY("Columns", "Measures"), igAt, 2,2
XamPivotGrid("myPivotGrid").ClickSubItem pvtgColumn, 0, igAt, 2,2
XamPivotGrid("myPivotGrid").ClickSubItem pvtgCell, ARRAY(1, 1), igAt, 2,2
XamPivotGrid("myPivotGrid").ClickSubItem pvtgRow, 6, igAt, 2,
Performing a double-click action on the SubItem (Outlined in the preview), which records the following action:
XamPivotGrid("myPivotGrid").DblClickSubItem pvtgPivotArea, "Measures", igAt, 2,2
XamPivotGrid("myPivotGrid").DblClickSubItem pvtgPivotAreaItem, ARRAY("Columns", "Measures"), igAt, 2,2
XamPivotGrid("myPivotGrid").DblClickSubItem pvtgColumn,
0, igAt, 2,2
XamPivotGrid("myPivotGrid").DblClickSubItem pvtgCell,
ARRAY(1, 1), igAt, 2,2
XamPivotGrid("myPivotGrid").DblClickSubItem pvtgRow,
6, igAt, 2,2
Performing a right-click action on the SubItem (Outlined in the preview), which records the following action:
XamPivotGrid("myPivotGrid").RightClickSubItem pvtgPivotArea, "Measures", igAt, 2,2
XamPivotGrid("myPivotGrid").RightClickSubItem pvtgPivotAreaItem, ARRAY("Columns", "Measures"), igAt, 2,2
XamPivotGrid("myPivotGrid").RightClickSubItem pvtgColumn, 0, igAt, 2,2
XamPivotGrid("myPivotGrid").RightClickSubItem pvtgCell, ARRAY(1, 1), igAt, 2,2
XamPivotGrid("myPivotGrid").RightClickSubItem pvtgRow, 6, igAt, 2,2
The following image illustrates the click area in xamRibbon control when recording ClickControl , DblClickControl and RightClickControl actions.
Clicking the region(Outlined in the preview) with the left mouse button, records the ClickControl as follows:
XamRibbon("myRibbon").ClickControl igAt, 50,4
Performing a double-click action instead of a single-click on the SubItem (Outlined in the preview), which records the following action:
XamRibbon("myRibbon").DblClickControl igAt, 50,4
Performing a right-click action on the SubItem (Outlined in the preview), which records the following action:
XamRibbon("myRibbon").RightClickControl igAt, 50,4
The following image illustrates the RibbonTool SubItem type in xamRibbon control when recording ClickSubItem , DblClickSubItem and RightClickSubItem actions.
Clicking the SubItem (Outlined in the preview) with the left mouse button, records the ClickSubItem as follows:
XamRibbon("myRibbon").ClickSubItem RibbonTool, ARRAY("RibbonGroup", "Format", "Text Style", 0, 1, 2), igAt, 1,2
The RibbonTool
is a SubItem type
The ARRAY
parameter is the identifier of the tool that is clicked
The igAt 1,2
are the X and Y coordinates of the mouse click relative to the tool.
XamRibbon("myRibbon").ClickSubItem RibbonTool, ARRAY("RibbonGroup", "Format", "Text Style", 0, 1, 2), igPercent, 0.5, 0.5
Performing a double-click action instead of a single-click on the SubItem (Outlined in the preview), which records the following action :
XamRibbon("myRibbon").DblClickSubItem RibbonTool, ARRAY("RibbonGroup", "Format", "Text Style", 0, 1, 2), igAt, 1,2
Performing a right-click action on the SubItem (Outlined in the preview), which records the following action:
XamRibbon("myRibbon").RightClickSubItem RibbonTool, ARRAY("RibbonGroup", "Format", "Text Style", 0, 1, 2), igAt, 1,2
The following image illustrates the RibbonTabItem SubItem type in xamRibbon control when recording ClickSubItem , DblClickSubItem and RightClickSubItem actions.
Clicking the RibbonTabItem SubItem (Outlined in the preview) with the left mouse button, records the ClickSubItem as follows:
XamRibbon("myRibbon").ClickSubItem RibbonTabItem, "Format", igAt, 5,6
The following topics provide additional information related to this topic.