Skip to main content
Version: 1.x

Interface: UI5HandlerSlice

Defined in: src/intents/core-wrappers.ts:67

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>

Defined in: src/intents/core-wrappers.ts:71

Clicks the UI5 control matching the selector.

Parameters

selector

UI5Selector

Returns

Promise<void>


control()

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

Defined in: src/intents/core-wrappers.ts:69

Discovers a single UI5 control matching the selector.

Parameters

selector

UI5Selector

options?
timeout?

number

Returns

Promise<unknown>


fill()

fill(selector, value): Promise<void>

Defined in: src/intents/core-wrappers.ts:73

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

Parameters

selector

UI5Selector

value

string

Returns

Promise<void>


getText()

getText(selector): Promise<string>

Defined in: src/intents/core-wrappers.ts:77

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

Parameters

selector

UI5Selector

Returns

Promise<string>


select()

select(selector, key): Promise<void>

Defined in: src/intents/core-wrappers.ts:75

Selects an item in a selection control.

Parameters

selector

UI5Selector

key

string

Returns

Promise<void>


waitForUI5()

waitForUI5(timeout?): Promise<void>

Defined in: src/intents/core-wrappers.ts:79

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

Parameters

timeout?

number

Returns

Promise<void>