First launch modal, then press the "Get Modal Instance" button to get the modal instance associated with a DOM element.

Press Ctrl+Shift+J (Windows / Linux) or Cmd+Opt+J (Mac) to open the browser console panel.