third_party/js/mozmill/shared-modules/addons.js
function addonsManager_search(aSpec) {
    var spec = aSpec || { };
    var value = spec.value;
    var timeout = (spec.timeout == undefined) ? TIMEOUT_SEARCH : spec.timeout;
    var waitFor = (spec.waitFor == undefined) ? true : spec.waitFor;

    if (!value)
      throw new Error(arguments.callee.name + ": Search term not specified.");

    var textbox = this.getElement({type: "search_textbox"});

    this.clearSearchField();
    this._controller.type(textbox, value);
    this._controller.keypress(textbox, "VK_RETURN", {});

    if (waitFor)
      this.waitForSearchFinished();
  }
function addonsManager_search(aSpec) {
    var spec = aSpec || { };
    var value = spec.value;
    var timeout = (spec.timeout == undefined) ? TIMEOUT_SEARCH : spec.timeout;
    var waitFor = (spec.waitFor == undefined) ? true : spec.waitFor;

    if (!value)
      throw new Error(arguments.callee.name + ": Search term not specified.");

    var textbox = this.getElement({type: "search_textbox"});

    this.clearSearchField();
    this._controller.type(textbox, value);
    this._controller.keypress(textbox, "VK_RETURN", {});

    if (waitFor)
      this.waitForSearchFinished();
  }
function addonsManager_search ( aSpec ) { var spec = aSpec || { } ; var value = spec . value ; var timeout = ( spec . timeout == undefined ) ? TIMEOUT_SEARCH : spec . timeout ; var waitFor = ( spec . waitFor == undefined ) ? true : spec . waitFor ; if ( ! value ) throw new Error ( arguments . callee . name + ": Search term not specified." ) ; var textbox = this . getElement ( { type : "search_textbox" } ) ; this . clearSearchField ( ) ; this . _controller . type ( textbox , value ) ; this . _controller . keypress ( textbox , "VK_RETURN" , { } ) ; if ( waitFor ) this . waitForSearchFinished ( ) ; }
Search for a specified add-on

@param {object} aSpec
Information to execute the search
Elements: value   - Search term
timeout - Duration to wait for search results
[optional - default: 30s]
waitFor - Wait until the search has been finished
[optional - default: true]
Search for a specified add - on