API Reference / @gtkx/testing / getWidgetText
Variable: getWidgetText
constgetWidgetText: (widget) =>string|null
Defined in: packages/testing/dist/widget-accessible-properties.d.ts:10
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
Gtk.Widget
The widget to read text from.
Returns
string | null