code: public void waitInitOpen(String waitForSelector) {
          if (waitForSelector == null || waitForSelector.isEmpty()) {
              initDynamic();
              open();
              return;
          }
          waitInitOpen(waitForSelector, getElement());
      }
docs: First wait till some elements are loaded, then initialize and open dynamically added popup.
  <br> See <a href="http://demos.jquerymobile.com/1.4.5/popup-dynamic/#&ui-state=dialog&ui-state=dialog&ui-state=dialog">Dynamic popup with images</a>