public QuickWidget findWidgetByText(QuickWidgetType type, int windowId, String text) {
    return desktopWindowManager.getQuickWidget(type, windowId, QuickWidgetSearchType.TEXT, text);
  }
public QuickWidget findWidgetByText ( QuickWidgetType type , int windowId , String text ) { return desktopWindowManager . getQuickWidget ( type , windowId , QuickWidgetSearchType . TEXT , text ) ; }
Finds widget with the text specified in the window with the given window id.

Note, if there are several widgets in this window with the same text, the widget returned can
be any one of those

@param windowId - id of parent window
@param text     - text of widget
@return QuickWidget with the given text in the specified window, or null if no such widget
exists.