Verify if the current UIATabItem is selected

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

Syntax

C#
public bool IsSelected { get; }
Visual Basic (Declaration)
Public ReadOnly Property IsSelected As Boolean
Visual C++
public:
virtual property bool IsSelected {
	bool get () sealed;
}

Return Value

true if the current tab is focused, false if not.

Examples

CopyC#
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));

UIATab tabs = Desktop.UIA[@"My Documents", @"ExploreWClass", @"UIAWindow"][@"Folder Options", @"#32770", @"UIAWindow"][@"", @"SysTabControl32", @"UIATab"] as UIATab;
UIATabItem viewTab = tabs["View"] as UIATabItem;
if (!viewTab.IsSelected)
    viewTab.Select();

See Also