Skip to main content
Version: 1.x

Interface: UI5HandlerSlice

Minimal UI5 interaction API required by core-wrappers.

Remarks

Declared as a structural interface so the wrappers can be unit-tested with simple mock objects without importing the full UI5Handler class.

Example

const ui5: UI5HandlerSlice = {
control: vi.fn(),
click: vi.fn(),
fill: vi.fn(),
select: vi.fn(),
getText: vi.fn(),
waitForUI5: vi.fn(),
};

Methods

click()

click(selector): Promise<void>

Clicks the UI5 control matching the selector.

Parameters

selector

UI5Selector

Returns

Promise<void>


control()

control(selector, options?): Promise<unknown>

Discovers a single UI5 control matching the selector.

Parameters

selector

UI5Selector

options?
timeout?

number

Returns

Promise<unknown>


fill()

fill(selector, value): Promise<void>

Fills the UI5 control matching the selector with the given text.

Parameters

selector

UI5Selector

value

string

Returns

Promise<void>


getText()

getText(selector): Promise<string>

Gets the visible text of the UI5 control matching the selector.

Parameters

selector

UI5Selector

Returns

Promise<string>


select()

select(selector, key): Promise<void>

Selects an item in a selection control.

Parameters

selector

UI5Selector

key

string

Returns

Promise<void>


waitForUI5()

waitForUI5(timeout?): Promise<void>

Waits for UI5 to reach a stable (idle) state.

Parameters

timeout?

number

Returns

Promise<void>