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.
Do you want to save changes to this document before closing?
If you don't save, your changes will be lost.