Skip to content

@gtkx/testing / BoundQueries

Type Alias: BoundQueries

BoundQueries = object

Defined in: types.ts:114

Query methods bound to a container.

See

Properties

findAllByLabelText

findAllByLabelText: (text, options?) => Promise<Gtk.Widget[]>

Defined in: types.ts:142

Find all elements by label/text content (waits and throws if none found)

Parameters

ParameterType
textTextMatch
options?TextMatchOptions

Returns

Promise<Gtk.Widget[]>


findAllByName

findAllByName: (name, options?) => Promise<Gtk.Widget[]>

Defined in: types.ts:146

Find all elements by widget name (waits and throws if none found)

Parameters

ParameterType
nameTextMatch
options?TextMatchOptions

Returns

Promise<Gtk.Widget[]>


findAllByRole

findAllByRole: (role, options?) => Promise<Gtk.Widget[]>

Defined in: types.ts:140

Find all elements by accessible role (waits and throws if none found)

Parameters

ParameterType
roleGtk.AccessibleRole
options?ByRoleOptions

Returns

Promise<Gtk.Widget[]>


findAllByText

findAllByText: (text, options?) => Promise<Gtk.Widget[]>

Defined in: types.ts:144

Find all elements by visible text (waits and throws if none found)

Parameters

ParameterType
textTextMatch
options?TextMatchOptions

Returns

Promise<Gtk.Widget[]>


findByLabelText

findByLabelText: (text, options?) => Promise<Gtk.Widget>

Defined in: types.ts:134

Find single element by label/text content (waits and throws if not found)

Parameters

ParameterType
textTextMatch
options?TextMatchOptions

Returns

Promise<Gtk.Widget>


findByName

findByName: (name, options?) => Promise<Gtk.Widget>

Defined in: types.ts:138

Find single element by widget name (waits and throws if not found)

Parameters

ParameterType
nameTextMatch
options?TextMatchOptions

Returns

Promise<Gtk.Widget>


findByRole

findByRole: (role, options?) => Promise<Gtk.Widget>

Defined in: types.ts:132

Find single element by accessible role (waits and throws if not found)

Parameters

ParameterType
roleGtk.AccessibleRole
options?ByRoleOptions

Returns

Promise<Gtk.Widget>


findByText

findByText: (text, options?) => Promise<Gtk.Widget>

Defined in: types.ts:136

Find single element by visible text (waits and throws if not found)

Parameters

ParameterType
textTextMatch
options?TextMatchOptions

Returns

Promise<Gtk.Widget>


queryAllByLabelText

queryAllByLabelText: (text, options?) => Gtk.Widget[]

Defined in: types.ts:126

Query all elements by label/text content (returns empty array if none found)

Parameters

ParameterType
textTextMatch
options?TextMatchOptions

Returns

Gtk.Widget[]


queryAllByName

queryAllByName: (name, options?) => Gtk.Widget[]

Defined in: types.ts:130

Query all elements by widget name (returns empty array if none found)

Parameters

ParameterType
nameTextMatch
options?TextMatchOptions

Returns

Gtk.Widget[]


queryAllByRole

queryAllByRole: (role, options?) => Gtk.Widget[]

Defined in: types.ts:124

Query all elements by accessible role (returns empty array if none found)

Parameters

ParameterType
roleGtk.AccessibleRole
options?ByRoleOptions

Returns

Gtk.Widget[]


queryAllByText

queryAllByText: (text, options?) => Gtk.Widget[]

Defined in: types.ts:128

Query all elements by visible text (returns empty array if none found)

Parameters

ParameterType
textTextMatch
options?TextMatchOptions

Returns

Gtk.Widget[]


queryByLabelText

queryByLabelText: (text, options?) => Gtk.Widget | null

Defined in: types.ts:118

Query single element by label/text content (returns null if not found)

Parameters

ParameterType
textTextMatch
options?TextMatchOptions

Returns

Gtk.Widget | null


queryByName

queryByName: (name, options?) => Gtk.Widget | null

Defined in: types.ts:122

Query single element by widget name (returns null if not found)

Parameters

ParameterType
nameTextMatch
options?TextMatchOptions

Returns

Gtk.Widget | null


queryByRole

queryByRole: (role, options?) => Gtk.Widget | null

Defined in: types.ts:116

Query single element by accessible role (returns null if not found)

Parameters

ParameterType
roleGtk.AccessibleRole
options?ByRoleOptions

Returns

Gtk.Widget | null


queryByText

queryByText: (text, options?) => Gtk.Widget | null

Defined in: types.ts:120

Query single element by visible text (returns null if not found)

Parameters

ParameterType
textTextMatch
options?TextMatchOptions

Returns

Gtk.Widget | null