B2G/gecko/testing/marionette/marionette-server.js
/**
   * Check if element is enabled
   *
   * @param object aRequest
   *        'element' member holds the reference id to
   *        the element that will be checked
   */
Check if element is enabled
@param object aRequest
'element' member holds the reference id to
the element that will be checked
Check if element is enabled @param object aRequest ' element ' member holds the reference id to the element that will be checked
function MDA_isElementEnabled(aRequest) {
    let command_id = this.command_id = this.getCommandId();
    if (this.context == "chrome") {
      try {
        let el = this.curBrowser.elementManager.getKnownElement(
            aRequest.element, this.getCurrentWindow());
        if (el.disabled != undefined) {
          this.sendResponse(!!!el.disabled, command_id);
        }
        else {
        this.sendResponse(true, command_id);
        }
      }
      catch (e) {
        this.sendError(e.message, e.code, e.stack, command_id);
      }
    }
    else {
      this.sendAsync("isElementEnabled",
                     { element:aRequest.element },
                     command_id);
    }
  }
function MDA_isElementEnabled ( aRequest ) { let command_id = this . command_id = this . getCommandId ( ) ; if ( this . context == "chrome" ) { try { let el = this . curBrowser . elementManager . getKnownElement ( aRequest . element , this . getCurrentWindow ( ) ) ; if ( el . disabled != undefined ) { this . sendResponse ( ! ! ! el . disabled , command_id ) ; } else { this . sendResponse ( true , command_id ) ; } } catch ( e ) { this . sendError ( e . message , e . code , e . stack , command_id ) ; } } else { this . sendAsync ( "isElementEnabled" , { element : aRequest . element } , command_id ) ; } }
Check if element is enabled
 @param object aRequest
        'element' member holds the reference id to
        the element that will be checked
Check if element is enabled @param object aRequest ' element ' member holds the reference id to the element that will be checked
//Selenium atom doesn't quite work here