Innovenergy_trunk/frontend/node_modules/testcafe-legacy-api/lib/client/index.js

5 lines
154 KiB
JavaScript
Raw Normal View History

!function(){function initTestCafeLegacyRunner(window){var document=window.document;!function(hammerhead,testCafeCore,testCafeUI,testcafeAutomation){function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{"default":e}}function forEachSeries(e,t,n){if(n=n||function(){},!e.length)return n();var r=0,i=function(){t(e[r],function(t){t?(n(t),n=function(){}):(r+=1,r===e.length?n():i())})};i()}function wrapTrackableMethods(e,t){testCafeCore.arrayUtils.forEach(t,function(t){var n=e[t];e[t]=function(){var e=Array.prototype.slice.call(arguments);if(Settings.get().ENABLE_SOURCE_INDEX){var t=e[e.length-1],r="string"==typeof t&&t.match(SOURCE_INDEX_ARG_REGEXP);r&&(currentIndex=parseInt(r[1],10),e.pop())}return n.apply(this,e)}})}function createDiffObject(e,t){return{actual:getDescription(e),expected:getDescription(t)}}function isElementsCollection(e){return e instanceof NodeList||e instanceof HTMLCollection}function getObjectsDiff(e,t,n,r){if(r||(r={actual:{},expected:{}}),e===t)return null;if(e instanceof Date&&t instanceof Date){var i=e.getTime(),o=t.getTime();return i===o?null:{actual:i,expected:o,isDates:!0}}if("string"==typeof e&&"string"==typeof t)return getStringDiff(e,t);if(arrayUtils$1.isArray(e)||arrayUtils$1.isArray(t))return arrayUtils$1.isArray(e)&&arrayUtils$1.isArray(t)?getArraysDiff(e,t):createDiffObject(e,t);if(isElementsCollection(e)||isElementsCollection(t)){if(!isElementsCollection(e)||!isElementsCollection(t))return createDiffObject(e,t);var a=arrayUtils$1.from(e),s=arrayUtils$1.from(t);return getArraysDiff(a,s)?createDiffObject(a,s):null}if(domUtils$2.isDomElement(e)||domUtils$2.isDomElement(t))return domUtils$2.isDomElement(e)&&domUtils$2.isDomElement(t)&&e===t?null:createDiffObject(e,t);if(isJqueryObj(e)||isJqueryObj(t))return isJqueryObj(e)&&isJqueryObj(t)&&!getArraysDiff(arrayUtils$1.from(e),arrayUtils$1.from(t))?null:createDiffObject(e,t);if(null===e||"undefined"==typeof e||null===t||"undefined"==typeof t)return createDiffObject(e,t);if("function"==typeof e||"function"==typeof t)return"function"!=typeof e||"function"!=typeof t||e!==t?createDiffObject(e,t):null;if("object"!=typeof e||"object"!=typeof t)return e==t?null:createDiffObject(e,t);if(e.prototype!==t.prototype)return createDiffObject(e,t);var u=getKeys(e),l=getKeys(t);u.sort(),l.sort();var c=getKeysDiff(u,l);if(c){var f=c.actual||c.expected;return{key:n?[n,f].join("."):f,actual:getDescription(e[f],!0),expected:getDescription(t[f],!0),isObjects:!0}}for(var d=null,p=null,h=0;h<u.length;h++){d=u[h];var g=n?[n,d].join("."):d;if(isCircularDependency(r.actual,e[d])&&isCircularDependency(r.expected,t[d]))return null;if(r.actual[g]=e[d],r.expected[g]=t[d],p=getObjectsDiff(e[d],t[d],g,r))return{key:p.key?p.key:g,actual:p.isArrays?getDescription(e[d]):p.actual,expected:p.isArrays?getDescription(t[d]):p.expected,isObjects:!0,diffType:{isObjects:p.isObjects,isArrays:p.isArrays,isStrings:p.isStrings,isDates:p.isDates}}}return null}function isCircularDependency(e,t){if("object"!=typeof t||null===t)return!1;for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return!0;return!1}function getArrayDiffIndex(e,t){for(var n=0;n<Math.min(e.length,t.length);n++)if(getObjectsDiff(e[n],t[n]))return n;return e.length!==t.length?Math.min(e.length,t.length):-1}function getKeysDiff(e,t){for(var n=-1,r=0;r<Math.min(e.length,t.length);r++)e[r]!==t[r]&&(n=r);return e.length!==t.length&&(n=Math.min(Math.max(e.length-1,0),Math.max(t.length-1,0))),n>-1?{key:n,actual:getDescription(e[n],!0),expected:getDescription(t[n],!0),isArrays:!0}:null}function getStringDiff(e,t){for(var n=-1,r=Math.min(e.length,t.length),i=0;i<r;i++)if(e[i]!==t[i]){n=i;break}return n<0&&e.length!==t.length&&(n=r?r-1:0),n>-1?{key:n,actual:getDescription(e),expected:getDescription(t),isStrings:!0}:null}function getArraysDiff(e,t){var n=getArrayDiffIndex(e,t),r={};return"string"==typeof e[n]&&"string"==typeof t[n]?(r.isStrings=!0,r.diffIndex=getStringDiff(e[n],t[n]).key):e[n]instanceof Date&&t[n]instanceof Date&&(r.isDates=!0),n>-1?{key:n,actual:r.isDates?e[n].getTime():getDescription(e[n]),expec
e.querySelectorAll(":checked").length||k.push(":checked"),e.querySelectorAll("a#"+W+"+*").length||k.push(".#.+[+~]"),e.querySelectorAll("\\\f"),k.push("[\\r\\n\\f]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=M.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&k.push("name"+re+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&k.push(":enabled",":disabled"),$.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&k.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),k.push(",.*:")})),(T.matchesSelector=ye.test(U=$.matches||$.webkitMatchesSelector||$.mozMatchesSelector||$.oMatchesSelector||$.msMatchesSelector))&&i(function(e){T.disconnectedMatch=U.call(e,"*"),U.call(e,"[s!='']:x"),P.push("!=",ae)}),k=k.length&&new RegExp(k.join("|")),P=P.length&&new RegExp(P.join("|")),t=ye.test($.compareDocumentPosition),L=t||ye.test($.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return w=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!T.sortDetached&&t.compareDocumentPosition(e)===n?e==M||e.ownerDocument==j&&L(j,e)?-1:t==M||t.ownerDocument==j&&L(j,t)?1:N?te(N,e)-te(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return w=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e==M?-1:t==M?1:i?-1:o?1:N?te(N,e)-te(N,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]==j?-1:u[r]==j?1:0},M):M},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if(O(e),T.matchesSelector&&F&&!Y[n+" "]&&(!P||!P.test(n))&&(!k||!k.test(n)))try{var r=U.call(e,n);if(r||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){Y(n,!0)}return t(n,M,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!=M&&O(e),L(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!=M&&O(e);var n=A.attrHandle[t.toLowerCase()],r=n&&Q.call(A.attrHandle,t.toLowerCase())?n(e,t,!F):undefined$1;return r!==undefined$1?r:T.attributes||!F?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(Ae,Ie)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(w=!T.detectDuplicates,N=!T.sortStable&&e.slice(0),e.sort(X),w){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return N=null,e},I=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=I(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=I(t);return n},A=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ve,Te),e[3]=(e[3]||e[4]||e[5]||"").replace(ve,Te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ve,Te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeNa
try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(Ie.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return F(this,arguments,function(t){var n=this.parentNode;Ie.inArray(this,e)<0&&(Ie.cleanData(v(this)),n&&n.replaceChild(t,this))},e)}}),Ie.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Ie.fn[e]=function(e){for(var n,r=[],i=Ie(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),Ie(i[a])[t](n),fe.apply(r,n.get());return this.pushStack(r)}});var ft=new RegExp("^("+Ge+")(?!px)[a-z%]+$","i"),dt=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},pt=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=o[i];return r},ht=new RegExp(Xe.join("|"),"i");!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Qe.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),i=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),Qe.contains(l)&&Qe.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u,l=ve.createElement("div"),c=ve.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ye.clearCloneStyle="content-box"===c.style.backgroundClip,Ie.extend(ye,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==s&&(t=ve.createElement("table"),n=ve.createElement("tr"),r=ve.createElement("div"),t.style.cssText="position:absolute;left:-11111px",n.style.height="1px",r.style.height="9px",Qe.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height)>3,Qe.contains(t)&&Qe.removeChild(t)),s}}))}();var gt=["Webkit","Moz","ms"],mt=ve.createElement("div").style,Et={},yt=/^(none|table(?!-c[ea]).+)/,St=/^--/,_t={position:"absolute",visibility:"hidden",display:"block"},vt={letterSpacing:"0",fontWeight:"400"};Ie.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=P(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=h(t),u=St.test(t),l=e.style;return u||(t=W(s)),a=Ie.cssHooks[t]||Ie.cssHooks[s],n===undefined$1?a&&"get"in a&&(i=a.get(e,!1,r))!==undefined$1?i:l[t]:(o=typeof n,"string"===o&&(i=Ye.exec(n))&&i[1]&&(n=y(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(Ie.cssNumber[s]?"":"px")),ye.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&(n=a.set(e,n,r))===undefined$1||(u?l.setProperty(t,n):l[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,a,s=h(t),u=St.test(t);return u||(t=W(s)),a=Ie.cssHooks[t]||Ie.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),i===undefined$1&&(i=P(e,t,r)),"normal"===i&&t in vt&&(i=vt[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),Ie.each(["height","width"],function(e,t){Ie.cssHooks[t]={get:function(e,n,r){if(n)return!yt.test(Ie.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?q(e,t,r):pt(e,_t,function(){return q(e,t,r)})},set:function(e,n,r){var i,o=dt(e),a=!ye.scrollboxSize()&&"absolute"===o.position,s=a||r,u=s&&"border-box"===Ie.css(e,"boxSizing",!1,o),l=r?B(e,t,r,u,o):0;return u&&a&&(l-=Math.ceil(e["of
return Ie});var nn=e.jQuery,rn=e.$;return Ie.noConflict=function(t){return e.$===Ie&&(e.$=rn),e.$||delete e.$,t&&e.jQuery===Ie&&(e.jQuery=nn),e.jQuery||delete e.jQuery,Ie},"undefined"==typeof t&&(e.jQuery=e.$=Ie),Ie};eval("".concat(processScript("(".concat(jQueryFunction.toString(),")"),!1),"(window)")),exportJQuery()}function ensureArray(e){return arrayUtils.isArray(e)?e:[e]}function isStringOrStringArray(e,t){if("string"==typeof e)return!0;if(arrayUtils.isArray(e)&&(!t||e.length)){for(var n=0;n<e.length;n++)if("string"!=typeof e[n])return!1;return!0}return!1}function failWithError(e,t){var n={type:e,stepName:Settings.get().CURRENT_TEST_STEP_NAME,__sourceIndex:currentIndex};if(t)for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);stepIterator.onError(n)}function failIfActionElementIsInvisible(e,t,n){e.code!==TEST_RUN_ERRORS.actionElementIsInvisibleError&&e.code!==TEST_RUN_ERRORS.actionAdditionalElementIsInvisibleError||failWithError(ERROR_TYPE.invisibleActionElement,{element:domUtils$1.getElementDescription(n),action:t})}function ensureElementsExist(e,t,n){var r=!1,i=function(){var r=null;if("function"==typeof e){var i=e();if(r=ensureArray(i),i&&(!isJqueryObj(i)||i.length)&&r.length)return n(r),!0}else if("string"==typeof e&&(r=parseActionArgument(e,t),r&&r.length))return n(r),!0;return!1};if(!i()){var o=nativeMethods$4.setInterval.call(window,function(){i()&&(r=!0,window.clearInterval(o))},ELEMENT_AVAILABILITY_WAITING_DELAY);nativeMethods$4.setTimeout.call(window,function(){r||(window.clearInterval(o),failWithError(ERROR_TYPE.emptyFirstArgument,{action:t}))},Settings.get().SELECTOR_TIMEOUT)}}function ensureElementVisibility(e,t,n){var r=!1;if(domUtils$1.isOptionElement(e)||"optgroup"===domUtils$1.getTagName(e))return void(selectElement.isOptionElementVisible(e)?n():failWithError(ERROR_TYPE.invisibleActionElement,{element:domUtils$1.getElementDescription(e),action:t}));if(positionUtils.isElementVisible(e))return void n();var i=nativeMethods$4.setInterval.call(window,function(){positionUtils.isElementVisible(e)&&(r=!0,window.clearInterval(i),n())},ELEMENT_AVAILABILITY_WAITING_DELAY);nativeMethods$4.setTimeout.call(window,function(){r||(window.clearInterval(i),failWithError(ERROR_TYPE.invisibleActionElement,{element:domUtils$1.getElementDescription(e),action:t}))},Settings.get().SELECTOR_TIMEOUT)}function actionArgumentsIterator(e){var t=null,n=function(n,i){if(arrayUtils.isArray(n))r(n,i);else if("function"==typeof n)ensureElementsExist(n,e,function(e){r(e,i)});else if("string"==typeof n)ensureElementsExist(n,e,function(e){t(e,function(){i()})});else{var o=parseActionArgument(n,e);!o||o.length<1?failWithError(ERROR_TYPE.emptyFirstArgument,{action:e}):t(o,function(){i()})}},r=function(t,r){t.length?forEachSeries(t,function(e,t){n(e,t)},function(){r()}):failWithError(ERROR_TYPE.emptyFirstArgument,{action:e})};return{run:function(e,n,i){onTargetWaitingStarted(),t=n,r(e,i)}}}function pressActionArgumentsIterator(){return{run:function(e,t,n){t(e,n)}}}function onTargetWaitingStarted(e){stepIterator.onActionTargetWaitingStarted({isWaitAction:e})}function onTargetWaitingFinished(){stepIterator.onActionRun()}function getSelectAutomationArgumentsObject(e,t){var n=t.length;return 1===n?{offset:t[0]}:2===n||n>2&&!domUtils$1.isTextAreaElement(e)?isNaN(parseInt(t[0],10))?{startNode:t[0],endNode:t[1]}:{startPos:t[0],endPos:t[1]}:t.length>2?{startLine:t[0],startPos:t[1],endLine:t[2],endPos:t[3]}:void 0}function parseActionArgument(e,t){var n=[];return domUtils$1.isDomElement(e)?[e]:t&&"select"===t&&domUtils$1.isTextNode(e)?[e]:"string"==typeof e?arrayUtils.from(jQuery(e)):isJqueryObj(e)?(e.each(function(){n.push(this)}),n):null}function init$3(e){stepIterator=e}function click(e,t){var n=!1,r="click",i=ensureArray(e);stepIterator.asyncActionSeries(i,actionArgumentsIterator(r).run,function(e,i,o){ensureElementVisibility(e,r,function(){n||(n=!0,onTargetWaitingFinished()),t=t||{};var a=testcafeAutomation.getOffsetOptions(e,t.offsetX,t.offsetY),s=a.offsetX,u=a.offsetY,l=new testcafeAutomation.ClickOptions({offsetX:s,offsetY:u,caretPos:t.caretPo
this.onAssertionFailed=e};AssertionsAPI.prototype._fail=function(e){e.stepName=Settings.get().CURRENT_TEST_STEP_NAME,e.__sourceIndex=currentIndex,this.onAssertionFailed(e)},AssertionsAPI.prototype.ok=function(e,t){e||this._fail({type:ERROR_TYPE.okAssertion,message:t,actual:getDescription(e)})},AssertionsAPI.prototype.notOk=function(e,t){e&&this._fail({type:ERROR_TYPE.notOkAssertion,message:t,actual:getDescription(e)})},AssertionsAPI.prototype.eq=function(e,t,n){var r=getObjectsDiff(e,t);r&&this._fail({type:ERROR_TYPE.eqAssertion,message:n,actual:r.actual,expected:r.expected,key:r.key,isStrings:r.isStrings,isArrays:r.isArrays,isObjects:r.isObjects,isDates:r.isDates,diffType:r.diffType||{}})},AssertionsAPI.prototype.notEq=function(e,t,n,r){var i=getObjectsDiff(e,t);i?r&&r():this._fail({type:ERROR_TYPE.notEqAssertion,message:n,actual:getDescription(e),callback:r})},AssertionsAPI.assert=function(e,t,n,r){function i(e){e.message.cmd===CROSS_DOMAIN_MESSAGES.ASSERT_RESPONSE_CMD&&(messageSandbox$3.off(messageSandbox$3.SERVICE_MSG_RECEIVED_EVENT,i),n(e.message.err))}if(r){messageSandbox$3.on(messageSandbox$3.SERVICE_MSG_RECEIVED_EVENT,i);var o={cmd:CROSS_DOMAIN_MESSAGES.ASSERT_REQUEST_CMD,operator:e,args:t};return void messageSandbox$3.sendServiceMsg(o,r)}var a=null,s=new AssertionsAPI(function(e){a=e});s[e].apply(s,t),n(a)},wrapTrackableMethods(AssertionsAPI.prototype,["ok","notOk","eq","notEq"]);var AUTOMATIONS_STORAGE_FLAG="runner|automations-storage-flag",nativeMethods$5=hammerhead__default["default"].nativeMethods,processScript=hammerhead__default["default"].processScript,jQuery=null,sandboxedJQuery={__proto__:null,get jQuery(){return jQuery},init:init$4},nativeMethods$4=hammerhead__default["default"].nativeMethods,contentEditable=testCafeCore__default["default"].contentEditable,domUtils$1=testCafeCore__default["default"].domUtils,positionUtils=testCafeCore__default["default"].positionUtils,styleUtils=testCafeCore__default["default"].styleUtils,arrayUtils=testCafeCore__default["default"].arrayUtils,parseKeySequence=testCafeCore__default["default"].parseKeySequence,selectElement=testCafeUI__default["default"].selectElement,TEST_RUN_ERRORS=testCafeCore__default["default"].TEST_RUN_ERRORS,ELEMENT_AVAILABILITY_WAITING_DELAY=200,WAIT_FOR_DEFAULT_TIMEOUT=1e4,CHECK_CONDITION_INTERVAL=50,stepIterator=null,conditionIntervalId=null,actions={__proto__:null,parseActionArgument:parseActionArgument,init:init$3,click:click,rclick:rclick,dblclick:dblclick,drag:drag,select:select,type:type,hover:hover,press:press,wait:wait,waitFor:waitFor,navigateTo:navigateTo,upload:upload,screenshot:screenshot,setElementAvailabilityWaitingTimeout:setElementAvailabilityWaitingTimeout};wrapTrackableMethods(actions,["click","rclick","dblclick","drag","type","wait","waitFor","hover","press","select","navigateTo","upload","screenshot"]);var EventEmitter=testCafeCore__default["default"].serviceUtils.EventEmitter,UNEXPECTED_DIALOG_ERROR_EVENT="unexpectedDialogError",WAS_NOT_EXPECTED_DIALOG_ERROR_EVENT="wasNotExpectedDialogError",DIALOGS_INFO_CHANGED_EVENT="dialogsInfoChangedEvent",dialogsInfo=null,beforeUnloadEventWasRaised=!1,eventEmitter=new EventEmitter,initialized$1=!1,COMMAND={assertionFailed:"assertion-failed",fatalError:"fatal-error",done:"done",setStepsSharedData:"set-steps-shared-data",getStepsSharedData:"get-steps-shared-data",getAndUncheckFileDownloadingFlag:"get-and-uncheck-file-downloading-flag",nativeDialogsInfoSet:"native-dialogs-info-set",takeScreenshot:"take-screenshot",waitForFileDownload:"wait-for-file-download"},transport=hammerhead__default["default"].transport,transport$1={__proto__:null,fatalError:fatalError,assertionFailed:assertionFailed,asyncServiceMsg:asyncServiceMsg,waitForServiceMessagesCompleted:waitForServiceMessagesCompleted,batchUpdate:batchUpdate},messageSandbox$2=hammerhead__default["default"].eventSandbox.message,nativeMethods$3=hammerhead__default["default"].nativeMethods,RequestEmitter$1=testCafeCore__default["default"].ClientRequestEmitter,RequestBarrier$1=testCafeCore__default["default"].RequestBarrier,serviceUtils$2=testC