code: public QuickWidget getQuickWidget(QuickWidgetType type, int windowId,
                                      QuickWidgetSearchType property, String value,
                                      String parentName) {
      if (windowId < 0) {
        windowId = getActiveQuickWindowId();
      }
  
      List<QuickWidget> widgets = getQuickWidgetList(windowId);
  
      for (QuickWidget widget : widgets) {
        if (widget.getType() == type) {
          if (property.equals(QuickWidgetSearchType.NAME)) {
            if ((parentName.length() == 0 || widget.getParentName().equals(parentName)) &&
                widget.getName().equals(value)) {
              return widget;
            }
          } else if (property.equals(QuickWidgetSearchType.TEXT)) {
            if ((parentName.length() == 0 || widget.getParentName().equals(parentName))
                && WatirUtils.textMatchesWithANY(widget.getText(), value)) {
              return widget;
            }
          }
        }
      }
  
      return null;
    }
docs: parentName is set to name, pos or text depending on widget.getParentType