The following table briefly explains the recordable methods for testing the control. Detailed information about the methods is provided in the text blocks following the table.
The CloseTab method closes the current tab. It is used for recording and replaying the tab closing action performed by the user (clicking the Close button of the tab).
Details
The method accepts as a parameter a tab identifier which can be the tab header text or the tab index.
When recording is performed and there are duplicating tab headers’ texts, the tab index is used.
Parameters
The following table explains the method’s parameters along with some sample code.
Method Parameter
Description
Tab header text
(default)
Using the tab header text as a parameter.
Example
Closing the first tab with header Tab1 in xamTabControl:
The tab closing action is recorded with the tab header text passed as a parameter.
Possible exceptions
The following table lists the possible exceptions for the method and the reason that is likely causing them.
Exception name
Exception description
Possible reasons
The following item was not found.
The selected tab cannot be located when replaying the method.
The tab has been closed already.
The tab doesn’t exist.
MoveTab
Description
The MoveTab method moves a specific tab to a new location. It is used for recording and replaying the tab moving action performed by the user (by dragging and dropping a tab item).
Details
The method accepts as a parameter an index of the tab item being moved, an index of the new tab item location and the drop location relative to the new tab item location. The relative drop location can be left or right from the target location index.
Parameters
The following table explains the method’s parameters along with some sample code.
Method Parameter
Description
Tab item index
New tab item location index
Drop location
The following example will move tab item with index 3 to the right side of the location with index 6.
This topic provides reference information about the proxy class that supports the testing of the xamTabControl™ in Micro Focus Unified Functional Testing software.
This page has encountered an error. We've attempted to send the information to the server.