|This method is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This method can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.|
ClickItemRXY moves the mouse pointer to the specified control item and then simulates a click of the right mouse button within this item over point (X, Y). The top left coordinate of the item rectangle is (0, 0).
TestObj.ClickItemRXY(Item, X, Y, Shift)
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
|Shift||[in]||Optional||TShiftKey||Default value: skNoShift|
The method is applied to the following objects:
Developer Express ASPxTreeList, Flex Tree, GWT Tree and 11 more objects, Infragistics UltraTree, JavaFX TreeView, Oracle Forms Tree, Silverlight Tree View, Syncfusion TreeViewAdv, Telerik RadTreeView for ASP.NET AJAX, Telerik RadTreeView for Silverlight, Telerik RadTreeView for WinForms, Win32 TreeView, WPF TreeView, YUI 2 TreeView « Collapse the list
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
The method has the following parameters:
Specifies the path to the desired item. The path should be relative to the current item or to the tree root, respectively. To indicate that the path starts from the tree root, place the pipeline character ( | ) at the beginning of the path.
Each item in the path can be specified by its caption or index; individual captions and indexes must be separated with pipeline characters ( | ). Indexes must be enclosed in brackets - [ and ].
To indicate variable parts of the item caption, you can use the asterisk (*) and question mark (?) wildcards. The asterisk corresponds to a string of any length, the question mark corresponds to any single character. The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.
|Note:||If the item caption includes a bracket or a pipeline character, address the item by its index or with the question mark wildcard.|
Specifies the horizontal coordinate of the point at which a click will be simulated. The coordinate is relative to the top left corner of the item.
Specifies the vertical coordinate of the point at which a click will be simulated. The coordinate is relative to the top left corner of the item.
Specifies whether the CTRL, ALT or SHIFT keys will be pressed during the click. The default value is skNoShift (no shift key pressed). See
If the specified item is not found in the control or the specified coordinates are out of the item’s bounds,
ClickItemRXYfails and posts an error message to the test log.
Desktop testing: If TestObj refers to an object of a non-DPI-aware application running with a DPI setting other than 100%, set the X and Y parameter values relative to the application (as if the application is running with the 100% DPI setting).
Web testing: If the Use CSS pixels for scaled pages option is enabled (by default), set the X and Y parameter values relative to the web page, regardless of the browser zoom and the system's DPI setting.
To view an example that demonstrates how to use the
ClickItemRXY action, see ClickItem Action (TreeView Controls).