Skip to content

UnitTestInteractorWrapper

Canonical path: TestHelper.UnitTestInteractor.UnitTestInteractorWrapper

implementation of the unit test interactor wrapper

modify_element_property classmethod

modify_element_property(page: str, name: str, value: Any)

Modify property of element

Parameters:

  • page (str) –

    the page of the property

  • name (str) –

    the name of the property.

  • value (Any) –

    new value for property.

on_cancel_function classmethod

on_cancel_function() -> bool

Handles the cancel function event (e.g. by ESC, ...)

Returns:

  • bool

    True/False for success.

on_control_event classmethod

on_control_event(event_id: int)

Handles the on control event

Parameters:

  • event_id (int) –

    event id of button control.

on_mouse_leave classmethod

on_mouse_leave()

Handles the mouse leave event

on_preview_draw classmethod

on_preview_draw()

Handles the preview draw event

on_value_input_control_enter classmethod

on_value_input_control_enter() -> bool

Handles the enter inside the value input control event

Returns:

  • bool

    True/False for success.

process_mouse_msg classmethod

process_mouse_msg(mouse_msg: int, pnt: Point2D, msg_info: Any) -> bool

Handles the process mouse message event

Parameters:

  • mouse_msg (int) –

    the mouse message.

  • pnt ( ) –

    the input point.

  • msg_info

    additional message info.

Returns:

  • bool

    True/False for success.

Placeholder