Table of Contents

Interface IList

A Java list box with single or multiple selection.

Inherited Members
IUiObjectBase.FireEvent(IEventInfo)
IUiObjectBase.SendKeys(string, KeyModifier)
IUiObjectBase.SendKeys(string)
IUiObjectBase.CreateObject(string, params object[])
IUiObjectBase.CreateObject(string)
IUiObjectBase.GetStatics(string)
IUiObjectBase.GetObjectProperty<TValue>(string)
IUiObjectBase.IsFocused
IUiObjectBase.AttachedText
IUiObjectBase.BackgroundColor
IUiObjectBase.ForegroundColor
IUiObjectBase.ObjectName
IUiObjectBase.Label
IUiObjectBase.Path
IUiObjectBase.TagName
IUiObjectBase.NativeClass
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IDoubleClickable.DoubleClick(MouseButton)
IDoubleClickable.DoubleClick(ClickArgs)
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportsNativeObject.NativeObject
IEnabledProvider.IsEnabled
IVisibleProvider.IsVisible
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
ITestObjectDescriber.Describe<TChild>(IDescription)
Namespace: HP.LFT.SDK.Java
Assembly: HP.LFT.SDK.dll
Syntax
public interface IList : IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber

Properties

Items

The collection of items in the list.

Declaration
ReadOnlyCollection<IListItem> Items { get; }
Property Value
Type Description
ReadOnlyCollection<IListItem>

SelectedItems

The collection of items that are selected in the list.

Declaration
ReadOnlyCollection<IListItem> SelectedItems { get; }
Property Value
Type Description
ReadOnlyCollection<IListItem>

Methods

ActivateItem(IListItem)

Activates an item in the list.

Declaration
void ActivateItem(IListItem item)
Parameters
Type Name Description
IListItem item

The item to activate.

ActivateItem(int)

Activates an item in the list.

Declaration
void ActivateItem(int itemIndex)
Parameters
Type Name Description
int itemIndex

The index of the item to activate.

ActivateItem(string)

Activates an item in the list.

Declaration
void ActivateItem(string item)
Parameters
Type Name Description
string item

The name of the item to activate .

Deselect(params IListItem[])

Deselects items in the list.

Declaration
void Deselect(params IListItem[] items)
Parameters
Type Name Description
IListItem[] items

The items to deselect.

Deselect(params string[])

Deselects items from the list.

Declaration
void Deselect(params string[] items)
Parameters
Type Name Description
string[] items

The texts of the items to deselect.

Deselect(params uint[])

Deselects items in the list.

Declaration
void Deselect(params uint[] itemIndices)
Parameters
Type Name Description
uint[] itemIndices

0-based indices of the items to deselect.

DeselectRange(int, int)

Deselects list items between (and including) the two specified items.

Declaration
void DeselectRange(int indexFrom, int indexTo)
Parameters
Type Name Description
int indexFrom

0-based index of the first item.

int indexTo

0-based index of the last item .

ExtendSelect(params IListItem[])

Selects additional items from the multi-selection list, by ListItems collection.

Declaration
void ExtendSelect(params IListItem[] items)
Parameters
Type Name Description
IListItem[] items

The items to add to the selection.

ExtendSelect(params string[])

Selects additional items from the multi-selection list, by name.

Declaration
void ExtendSelect(params string[] itemNames)
Parameters
Type Name Description
string[] itemNames

The item names to add to the selection.

ExtendSelect(params uint[])

Selects additional items from the multi-selection list, by indices.

Declaration
void ExtendSelect(params uint[] itemIndices)
Parameters
Type Name Description
uint[] itemIndices

The 0-based item indices to add to the selection.

GetItem(string)

Returns the item with the specified text.

Declaration
IListItem GetItem(string text)
Parameters
Type Name Description
string text

The text of the item.

Returns
Type Description
IListItem

Select(params IListItem[])

Selects multiple items by ListItems collection.

Declaration
void Select(params IListItem[] items)
Parameters
Type Name Description
IListItem[] items

The items to select.

Select(params string[])

Selects multiple items by string values.

Declaration
void Select(params string[] items)
Parameters
Type Name Description
string[] items

The texts of the items to select.

Select(params uint[])

Selects multiple items by indices.

Declaration
void Select(params uint[] itemIndices)
Parameters
Type Name Description
uint[] itemIndices

0-based indices of the items to select.

SelectRange(IListItem, IListItem)

Selects list items between (and including) the two specified ListItem items.

Declaration
void SelectRange(IListItem itemFrom, IListItem itemTo)
Parameters
Type Name Description
IListItem itemFrom

The first ListItem to select.

IListItem itemTo

The last ListItem to select.

SelectRange(int, int)

Selects list items between (and including) the two specified items.

Declaration
void SelectRange(int indexFrom, int indexTo)
Parameters
Type Name Description
int indexFrom

0-based index of the first item.

int indexTo

0-based index of the last item.

SelectRange(string, string)

Selects list items between (and including) the two specified items.

Declaration
void SelectRange(string itemNameFirst, string itemNameLast)
Parameters
Type Name Description
string itemNameFirst

The name of the first item to select.

string itemNameLast

The name of the last item to select.

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)