Select child UIATabItem by its index

Namespace:  QAliber.Engine.Controls.UIA
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void Select(
	int index
)
Visual Basic (Declaration)
Public Sub Select ( _
	index As Integer _
)
Visual C++
public:
virtual void Select(
	int index
) sealed

Parameters

index
Type: System..::.Int32
int as it reflect in tab Index property

Examples

CopyC#
 //Open explorer (by defualt goes to my documents, and open folder options dialog.
System.Diagnostics.Process recoderProc = System.Diagnostics.Process.Start("explorer");
UIAWindow explorerWin = Desktop.UIA [@"My Documents", @"ExploreWClass", @"UIAWindow"] as UIAWindow;
UIAMenuItem @tools = explorerWin[@"", @"ReBarWindow32", @"UIAPane"][@"Application", @"ToolbarWindow32", @"MenuBar"][@"Tools", @"", @"Item 32960"] as UIAMenuItem;
@tools.Click(MouseButtons.Left, new Point(23, 6));
UIAMenuItem @folderOptions = Desktop.UIA[@"Menu", @"#32768", @"UIAMenu"][@"Folder Options...", @"", @"Item 41251"] as UIAMenuItem;
@folderOptions.Click(MouseButtons.Left, new Point(37, 5));
 //Selecting tabs
UIATab tabs = Desktop.UIA[@"My Documents", @"ExploreWClass", @"UIAWindow"][@"Folder Options", @"#32770", @"UIAWindow"][@"", @"SysTabControl32", @"UIATab"] as UIATab;
MessageBox.Show("Current tab: " + tabs.SelectedItems[0].Name);
tabs.Select("View");
MessageBox.Show("Current tab: " + tabs.SelectedItems[0].Name);
tabs.Select(3);
MessageBox.Show("Current tab: " + tabs.SelectedItems[0].Name);

See Also