code: function checkSearchField(controller, searchField,
                                                       searchTerm, submitButton,
                                                       timeout) {
    controller.waitThenClick(searchField, timeout);
    controller.type(searchField, searchTerm);
  
    if (submitButton != undefined) {
      controller.waitThenClick(submitButton, timeout);
    }
  }
docs: Run tests against a given search form
  
  @param {MozMillController} controller
  MozMillController of the window to operate on
  @param {ElemBase} searchField
  The HTML input form element to test
  @param {string} searchTerm
  The search term for the test
  @param {ElemBase} submitButton
  (Optional) The forms submit button
  @param {number} timeout
  The timeout value for the single tests