The following table briefly explains the replay-only methods for testing the control. Detailed information about the methods is provided below the table.
Returns a new line-delimited list of tabs’ headers.
IsTabEnabled
Description
The IsTabEnabled method returns True if the specified tab is enabled.
Details
The method accepts as a parameter either the tab header text or the tab index. Using the tab index is necessary when the header text of the specified tab is not unique.
Parameters
The following table explains the method’s parameters together with some sample code.
Method Parameter
Description
Tab header text
Using the tab header text as a parameter.
Example
Checking if the first tab with header “Tab1” is enabled to close it:
If WpfWindow("MainWindow").XamTabControl("xamTabControl1").IsTabEnabled("Tab1")=True Then
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 specified index is out of range.
The tab indicated by the index cannot be found.
an invalid index has been specified
GetContent
Description
The GetContent method returns a new-line-delimited list of the texts of the tabs’ headers.
Details
When used without parameter, only the header texts of the visible tabs are listed. Including the header texts of the hidden tabs in the list requires using the True parameter.
Parameters
The following table explains the method’s parameters together with some sample code.
Method Parameter
Description
True
Lists both the visible and the hidden tabs.
Example
Displaying a message box listing the header texts of all (visible and hidden) tabs:
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.