B2G/gecko/testing/peptest/peptest/extension/resource/mozmill/driver/controller.js
/**
   * Opens the context menu, click the specified entry and
   * make sure that the menu has been closed.
   *
   * @param {string} itemSelector
   *        jQuery like selector string of the element
   * @param {ElemBase} contextElement
   *        Element whose context menu has to be opened
   *
   * @returns {Menu} The Menu instance
   */
Opens the context menu, click the specified entry and
make sure that the menu has been closed.

@param {string} itemSelector
jQuery like selector string of the element
@param {ElemBase} contextElement
Element whose context menu has to be opened

@returns {Menu} The Menu instance
Opens the context menu click the specified entry and make sure that the menu has been closed . @param { string } itemSelector jQuery like selector string of the element @param { ElemBase } contextElement Element whose context menu has to be opened @returns { Menu } The Menu instance
function Menu_select(itemSelector, contextElement) {
    this.open(contextElement);
    this.click(itemSelector);
    this.close();
  }
function Menu_select ( itemSelector , contextElement ) { this . open ( contextElement ) ; this . click ( itemSelector ) ; this . close ( ) ; }
Opens the context menu, click the specified entry and
 make sure that the menu has been closed.
Opens the context menu click the specified entry and make sure that the menu has been closed .