Table of Contents

Interface IListBox

Namespace
HP.LFT.SDK.Web
Assembly
HP.LFT.SDK.dll

A drop-down or multiple-selection Web list.

HTML example with the second value selected:

<select name="select">

<option value="value1">Value 1</option>

<option value="value2" selected>Value 2</option>

<option value="value3>Value 3</option>

</select>

public interface IListBox : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop, IEnabledProvider
Inherited Members
Extension Methods

Properties

DefaultValue

The initial text value, which is set when the object is reset.

string DefaultValue { get; }

Property Value

string

IsMultiple

Indicates whether multi-selection is available.

bool IsMultiple { get; }

Property Value

bool

Items

A collection of all IListItem objects in the list.

ReadOnlyCollection<IListItem> Items { get; }

Property Value

ReadOnlyCollection<IListItem>

Remarks

When weblist items are loaded dynamically, it is possible that only a partial list of the items will be returned.

SelectedItems

A collection of all selected items in the list.

ReadOnlyCollection<IListItem> SelectedItems { get; }

Property Value

ReadOnlyCollection<IListItem>

Type

The attribute "type" of the HTML element.

string Type { get; }

Property Value

string

Value

This object's text value.

string Value { get; }

Property Value

string

VisibleItemsCount

The number of visible items in the list.

uint VisibleItemsCount { get; }

Property Value

uint

Methods

Deselect(params IListItem[])

Deselects a list of items in the list box.

void Deselect(params IListItem[] items)

Parameters

items IListItem[]

A collection of IListItem objects to deselect

Deselect(params string[])

Deselects items from the list based on the item names.

void Deselect(params string[] items)

Parameters

items string[]

A collection of items to deselect.

Deselect(params uint[])

Deselects items from the list based on the item indices.

void Deselect(params uint[] itemIndices)

Parameters

itemIndices uint[]

A collection of indices to deselect.

ExtendSelect(params IListItem[])

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

void ExtendSelect(params IListItem[] items)

Parameters

items IListItem[]

The items to add to the selection.

ExtendSelect(params string[])

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

void ExtendSelect(params string[] items)

Parameters

items string[]

The names of the items to add to the selection.

ExtendSelect(params uint[])

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

void ExtendSelect(params uint[] itemIndices)

Parameters

itemIndices uint[]

The indices of the items to add to the selection.

GetItem(string)

Retrieves an item with the given text.

IListItem GetItem(string text)

Parameters

text string

The text of this item.

Returns

IListItem

Select(params IListItem[])

Selects a list of items in the list box.

void Select(params IListItem[] items)

Parameters

items IListItem[]

A collection of IListItem objects to select

Select(params string[])

Selects items in the list based on the item names.

void Select(params string[] items)

Parameters

items string[]

A collection of item names to select.

Select(params uint[])

Selects items in the list based on the item indices.

void Select(params uint[] itemIndices)

Parameters

itemIndices uint[]

A collection of item indices to select.