B2G/gecko/testing/marionette/marionette-listener.js
/**
 * Find an element in the document using requested search strategy 
 */
Find an element in the document using requested search strategy
Find an element in the document using requested search strategy
function findElementContent(msg) {
  let command_id = msg.json.command_id;
  try {
    let on_success = function(id, cmd_id) { sendResponse({value:id}, cmd_id); };
    let on_error = sendError;
    elementManager.find(curWindow, msg.json, msg.json.searchTimeout,
                        on_success, on_error, false, command_id);
  }
  catch (e) {
    sendError(e.message, e.code, e.stack, command_id);
  }
}
function findElementContent ( msg ) { let command_id = msg . json . command_id ; try { let on_success = function ( id , cmd_id ) { sendResponse ( { value : id } , cmd_id ) ; } ; let on_error = sendError ; elementManager . find ( curWindow , msg . json , msg . json . searchTimeout , on_success , on_error , false , command_id ) ; } catch ( e ) { sendError ( e . message , e . code , e . stack , command_id ) ; } }
Find an element in the document using requested search strategy
Find an element in the document using requested search strategy