function waitForUI5Object(oFrameWindow, sId) {
			var iChecksCount = 0;
			return new Promise(function(resolve, reject) {

				function _checkObjectCreated() {
					if (oFrameWindow && oFrameWindow.sap && oFrameWindow.sap.ui && oFrameWindow.sap.ui.require) {
						oFrameWindow.sap.ui.require(["sap/ui/core/Element" ], function(Element) {
							var oObject = Element.getElementById(sId);
							if (oObject) {
								resolve(oObject);
								return;
							}
							if (iChecksCount++ > 300) {
								reject();
							}
							setTimeout(_checkObjectCreated, 10);
						});
					} else {
						if (iChecksCount++ > 300) {
							reject();
						}
						setTimeout(_checkObjectCreated, 10);
					}
				}
				_checkObjectCreated();
			});
		}
Waits for a UI5 object with the given id to be created in the frame window
@param {Window} oFrameWindow
@param {string} sId
@returns {Promise<any>}