traitsui.testing.tester.locator module

This module defines objects for locating nested UI targets, to be used with UIWrapper.locate.

Implementations for these actions are expected to return a value which is a UI target where further location resolution or user interaction can be applied.

class traitsui.testing.tester.locator.Cell(row, column)[source]

Bases: object

A locator for locating a target uniquely specified by a row index and a column index.

row

0-based index

Type:

int

column

0-based index

Type:

int

class traitsui.testing.tester.locator.Index(index)[source]

Bases: object

A locator for locating a target that is uniquely specified by a single 0-based index.

index

0-based index

Type:

int

class traitsui.testing.tester.locator.Slider[source]

Bases: object

A locator for locating a nested slider widget within a UI.

class traitsui.testing.tester.locator.TargetById(id)[source]

Bases: object

A locator for locating the next UI target using an id.

id
Type:

str

class traitsui.testing.tester.locator.TargetByName(name)[source]

Bases: object

A locator for locating the next UI target using a name.

name
Type:

str

class traitsui.testing.tester.locator.Textbox[source]

Bases: object

A locator for locating a nested textbox widget within a UI.