B2G/gecko/testing/marionette/marionette-listener.js
/**
 * Clear the text of an element
 */
Clear the text of an element
Clear the text of an element
function clearElement(msg) {
  let command_id = msg.json.command_id;
  try {
    let el = elementManager.getKnownElement(msg.json.element, curWindow);
    utils.clearElement(el);
    sendOk(command_id);
  }
  catch (e) {
    sendError(e.message, e.code, e.stack, command_id);
  }
}
function clearElement ( msg ) { let command_id = msg . json . command_id ; try { let el = elementManager . getKnownElement ( msg . json . element , curWindow ) ; utils . clearElement ( el ) ; sendOk ( command_id ) ; } catch ( e ) { sendError ( e . message , e . code , e . stack , command_id ) ; } }
Clear the text of an element
Clear the text of an element