Skip to content

Scripting API / inspection/tests/AllTestEventsApi

inspection/tests/AllTestEventsApi

Classes

AllTestEventsApi

Allows event binding to all tests in a subinspection.

Extends

Implements

Methods

onClick()

onClick(fn): ScriptEventSubscription

Bind a function to fire after a button test was clicked.

Parameters
Parameter Type Description
fn (event) => void The function to fire.
Returns

ScriptEventSubscription

ScriptEventSubscription

Implementation of

IClickableTest.onClick

onFocusIn()

onFocusIn(fn): ScriptEventSubscription

Bind a function to fire after a test gained focus.

Parameters
Parameter Type Description
fn (event) => void The function to fire.
Returns

ScriptEventSubscription

ScriptEventSubscription

Implementation of

IHasTestFocusEvents.onFocusIn

onFocusOut()

onFocusOut(fn): ScriptEventSubscription

Bind a function to fire after a test lost focus.

Parameters
Parameter Type Description
fn (event) => void The function to fire.
Returns

ScriptEventSubscription

ScriptEventSubscription

Implementation of

IHasTestFocusEvents.onFocusOut

onOptionSelected()

onOptionSelected(fn): ScriptEventSubscription

Bind a function to fire when an option was selected on a selectable test.

Parameters
Parameter Type Description
fn (event) => void The function to fire.
Returns

ScriptEventSubscription

ScriptEventSubscription

Implementation of

ISelectableTest.onOptionSelected

onRTFChanged()

onRTFChanged(fn): ScriptEventSubscription

Bind a function to fire after a real-time failure has changed.

Parameters
Parameter Type Description
fn (event) => void The function to fire.
Returns

ScriptEventSubscription

ScriptEventSubscription

Implementation of

IDataTest.onRTFChanged