API Reference / @gtkx/testing / getWidgetText
Function: getWidgetText()
getWidgetText(
widget):string|null
Defined in: packages/testing/src/widget-accessible-properties.ts:94
Returns a widget's own text by trying its label, text, and title getters in order, or null when none produce a value.
Parameters
widget
Accessible
The widget to read text from.
Returns
string | null