@unotest/web 0.28.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const _0x559004=_0x10f0;(function(_0xeb1dab,_0x512977){const _0x48d42f={_0x2ee5ab:0xdb,_0x5b01ec:0x12e,_0x3c9507:0x100,_0x1557ab:0x10f},_0x570eac=_0x10f0,_0x5dd061=_0xeb1dab();while(!![]){try{const _0x36a370=parseInt(_0x570eac(_0x48d42f._0x2ee5ab))/0x1+parseInt(_0x570eac(0xdc))/0x2*(parseInt(_0x570eac(0x134))/0x3)+parseInt(_0x570eac(_0x48d42f._0x5b01ec))/0x4+-parseInt(_0x570eac(0xd2))/0x5*(-parseInt(_0x570eac(0x131))/0x6)+-parseInt(_0x570eac(0x11f))/0x7+parseInt(_0x570eac(0x135))/0x8*(-parseInt(_0x570eac(_0x48d42f._0x3c9507))/0x9)+-parseInt(_0x570eac(_0x48d42f._0x1557ab))/0xa*(parseInt(_0x570eac(0xda))/0xb);if(_0x36a370===_0x512977)break;else _0x5dd061['push'](_0x5dd061['shift']());}catch(_0x48b054){_0x5dd061['push'](_0x5dd061['shift']());}}}(_0x13c4,0xcd760));var __defProp=Object['defineProperty'],__name=(_0x13ceb9,_0x86752c)=>__defProp(_0x13ceb9,_0x559004(0x106),{'value':_0x86752c,'configurable':!![]});function _0x10f0(_0x1aed2d,_0x173598){_0x1aed2d=_0x1aed2d-0xcd;const _0x13c43c=_0x13c4();let _0x10f07a=_0x13c43c[_0x1aed2d];if(_0x10f0['Lbhrww']===undefined){var _0x1df32e=function(_0x30deb1){const _0x3a0621='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x13ceb9='',_0x86752c='';for(let _0x422282=0x0,_0x187f6d,_0x11dfe5,_0x22f118=0x0;_0x11dfe5=_0x30deb1['charAt'](_0x22f118++);~_0x11dfe5&&(_0x187f6d=_0x422282%0x4?_0x187f6d*0x40+_0x11dfe5:_0x11dfe5,_0x422282++%0x4)?_0x13ceb9+=String['fromCharCode'](0xff&_0x187f6d>>(-0x2*_0x422282&0x6)):0x0){_0x11dfe5=_0x3a0621['indexOf'](_0x11dfe5);}for(let _0x2d40ff=0x0,_0x1d04d6=_0x13ceb9['length'];_0x2d40ff<_0x1d04d6;_0x2d40ff++){_0x86752c+='%'+('00'+_0x13ceb9['charCodeAt'](_0x2d40ff)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x86752c);};_0x10f0['cjJBpo']=_0x1df32e,_0x10f0['dfAgtM']={},_0x10f0['Lbhrww']=!![];}const _0x49a606=_0x13c43c[0x0],_0x32ec82=_0x1aed2d+_0x49a606,_0xa31309=_0x10f0['dfAgtM'][_0x32ec82];return!_0xa31309?(_0x10f07a=_0x10f0['cjJBpo'](_0x10f07a),_0x10f0['dfAgtM'][_0x32ec82]=_0x10f07a):_0x10f07a=_0xa31309,_0x10f07a;}function subscribe(_0x422282,_0x187f6d){return _0x422282['add'](_0x187f6d),()=>{const _0x5ac964=_0x10f0;_0x422282[_0x5ac964(0xe6)](_0x187f6d);};}function _0x13c4(){const _0x1ff6a0=['y2XVC2u','Bgf1BMnOzwq','Bgf1BMnO','zw1PDezHA2vqB3b1Ca','Ag92zxi','AxnwAxnPyMXL','D2fPDezVCG','tg9JyxrVCKvYCM9Y','nunXAxjysG','z290BW','y3jLyxrLuMvJB3jKzxi','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','ywn0AxzLugfNzq','C3rLChm','BgvUz3rO','zMLSBa','otq4mZi4n2LssKjKzW','nZe1mdi2ve1bvwD4','ndq0nKfKwvLlva','iJ48l2rPDJ4','C2nVCgu','Cg9W','C2f2zvn0B3jHz2vtDgf0zq','Dgv4DenVBNrLBNrcEurLzMf1Bhq','Bg9JywXtDg9YywDL','rMfRzvbHz2u','A2LUza','B25bzNrLCKnSAwnR','zgvSzxrL','y29UDgv4Dhm','zxzHBhvHDgvpBKXVy2f0B3i','BMv0D29YA0vUDhjPzxm','zNjHBwvtDgfJAW','y2XPy2S','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','BMv3ugfNzuXPC3rLBMvYCW','pgrPDJ48l2rPDJ4','zhjHz0fUzerYB3a','ChvZAa','CMvJB3jK','BMv3q29UDgv4Da','Aw5ZCgvJDevSzw1LBNq','lNbHz2u','y29UC29SzuvUDhjPzxm','y2HLy2S','zMLSDgvY','D2fPDezVCK5HDMLNyxrPB24','y291BNq','z2v0tg9JywXtDg9YywDL','zxHPDezYyw1L','D3nfBMrWB2LUDa','C2v0q29VA2LL','D2fPDezVCLvYBa','DgL0Bgu','mZy5rxDTDgXX','DxbSB2fKrMLSzq','CMvJB3jKzxi','ywn0AxzLswr4','y2fSBhm','z2v0q29VA2LL','BMfTzq','C3bSAwnL','AxneAxnHyMXLzej5rgvMyxvSDa','zg91yMXLq2XPy2S','y2fSBhngB3i','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','yMvOyxzPB3i','rMfRzvDLyKrYAxzLCG','C3vIC2nYAwjL','mJbPueLfC2m','yxr0ywnOrxHPC3rPBMC','y291BNrcEurLzMf1Bhq','zNjHBwvezxb0Aa','D2fPDezVCKXVywrtDgf0zq','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','Bg9JywXtDg9YywDLu3rHDgu','Cg9WDxbpBKnSAwnR','y29UBMvJDfnOyxjLza','rhjPDMvYrxjYB3i','y29VA2LLu3rHDgu','CMvM','B3v0zxjive1m','zhjPDMvY','CgfNzuXPC3q','z29gB3j3yxjK','mZe0mZm2ngLlEu91wa','CMvSB2fK','B3v0zxjiDg1SqNLszwy','y2XPCgjVyxjKugfZDgu','lNbHz2uW','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','y2HLy2TLzfn0yxrL','Aw5UzxjuzxH0qNLezwzHDwX0','zw50zxjgCMfTzq','C2nYB2XSsw50B1zPzxC','Aw5WDxrwywX1zq','Dw5JAgvJAW','y3vYCMvUDfvYBa','y3r4','Bwf5yMvuAhjVDW','mtyWmtyWC2zMuxjX','D2fPDezVCLrLEhq','zxjYB3jpBK5LEhrby3rPB24','nZmYmJqXogfcvgfQra','C2v0qwn0AxzLugfNzq','C2v0tg9JywXtDg9YywDL','mtyZoeDjC0zArq','mZqWmJryAwPKu2y','Aw5UzxjuzxH0','zxzHBhvHDgu','y2XVC2vgywTLugfNzq','Dgv4DenVBNrLBNq','AxneAxnHyMXLza','C2nYzwvUC2HVDa','zMfRzsb0AxrSzq','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','C2vSzwn0t3b0Aw9U'];_0x13c4=function(){return _0x1ff6a0;};return _0x13c4();}__name(subscribe,_0x559004(0x10e));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x559004(0x118));}},LocatorError=class extends UnotestError{static{__name(this,_0x559004(0xd1));}};function createRecorder(){const _0x489f7f=_0x559004,_0x11dfe5=[];let _0x22f118=0x0;return{'push':__name(_0x2d40ff=>_0x11dfe5[_0x489f7f(0xf0)]({..._0x2d40ff,'seq':_0x22f118++}),_0x489f7f(0xf0)),'calls':__name(()=>_0x11dfe5,'calls')};}__name(createRecorder,_0x559004(0xd4));var FakePage=class{constructor(_0x1d04d6,_0x560eeb,_0x36f39b,_0x11e62d){const _0x3585ec={_0x3977c5:0x10c,_0x2253ed:0x12b},_0x5a0a71=_0x559004;this[_0x5a0a71(0x102)]=_0x1d04d6,this[_0x5a0a71(_0x3585ec._0x3977c5)]=_0x560eeb,this['scope']=_0x36f39b,this[_0x5a0a71(_0x3585ec._0x2253ed)]=_0x11e62d;}['recorder'];[_0x559004(0x10c)];[_0x559004(0xde)];static{__name(this,_0x559004(0xe3));}[_0x559004(0x12b)];[_0x559004(0xe5)];[_0x559004(0xf1)](_0x13d4f8,_0x1b49b7){const _0x386d11={_0x527d9b:0xf0},_0x926a22=_0x559004;this['recorder'][_0x926a22(_0x386d11._0x527d9b)]({'scope':this['scope'],'method':_0x13d4f8,'args':_0x1b49b7});}['maybeThrow'](){const _0x5f4e3f={_0x16bda6:0x130},_0x10dd10=_0x559004;if(this[_0x10dd10(0x10c)][_0x10dd10(0x130)]){const _0x52d33c=this['behavior'][_0x10dd10(_0x5f4e3f._0x16bda6)];this['behavior']['errorOnNextAction']=void 0x0;throw _0x52d33c;}}['url'](){return this['currentUrl'];}async[_0x559004(0xff)](){const _0x5316ab={_0x5455d2:0xf1,_0x500594:0xff},_0x45ce55=_0x559004;return this[_0x45ce55(_0x5316ab._0x5455d2)](_0x45ce55(_0x5316ab._0x500594),[]),_0x45ce55(0x13c);}async['click'](_0x4fd2d8,_0x531a6d){const _0x4cef8c={_0x1cf7d2:0xeb,_0x5bd00d:0x12d,_0x2b0c05:0xe5},_0x40a766=_0x559004;this['record'](_0x40a766(_0x4cef8c._0x1cf7d2),[_0x4fd2d8,_0x531a6d]),this[_0x40a766(_0x4cef8c._0x5bd00d)](),this[_0x40a766(_0x4cef8c._0x2b0c05)]?.();}async[_0x559004(0x109)](_0x4c3b8b,_0x442426){const _0x407fc8={_0x43b20d:0x109},_0x16fc1f=_0x559004;this['record'](_0x16fc1f(_0x407fc8._0x43b20d),[_0x4c3b8b,_0x442426]),this[_0x16fc1f(0x12d)]();}async[_0x559004(0xd9)](_0x10804b,_0xb5c453,_0x288582){const _0x149edb={_0x351181:0xf1,_0x470342:0xd9},_0x335f3c=_0x559004;this[_0x335f3c(_0x149edb._0x351181)](_0x335f3c(_0x149edb._0x470342),[_0x10804b,_0xb5c453,_0x288582]),this['maybeThrow']();}async['press'](_0x1a367a,_0x34a38b,_0x26a4a9){this['record']('press',[_0x1a367a,_0x34a38b,_0x26a4a9]),this['maybeThrow']();}async[_0x559004(0xf6)](_0x102a91,_0x548c4c){const _0x272505={_0x108053:0xf6},_0x31dcb0=_0x559004;this['record'](_0x31dcb0(_0x272505._0x108053),[_0x102a91,_0x548c4c]),this[_0x31dcb0(0x12d)]();}async[_0x559004(0x12a)](_0x1026f4,_0x297497){const _0x2cf1de={_0x102a43:0xf1},_0x4064fb=_0x559004;this[_0x4064fb(_0x2cf1de._0x102a43)](_0x4064fb(0x12a),[_0x1026f4,_0x297497]),this[_0x4064fb(0x12d)]();}async[_0x559004(0x13e)](_0x3a12fd,_0x92d1bc,_0x13f1e6){const _0x8f1b74={_0x246840:0xf1},_0x387a02=_0x559004;this[_0x387a02(_0x8f1b74._0x246840)](_0x387a02(0x13e),[_0x3a12fd,_0x92d1bc,_0x13f1e6]),this[_0x387a02(0x12d)]();}async[_0x559004(0xce)](_0x2e8baf,_0x52a6d3){const _0x546267={_0x347cff:0x12d},_0x4d6cb1=_0x559004;this[_0x4d6cb1(0xf1)]('hover',[_0x2e8baf,_0x52a6d3]),this[_0x4d6cb1(_0x546267._0x347cff)]();}async[_0x559004(0x128)](_0x1a62d2){const _0x26c68f={_0x220d7f:0xf1,_0x5c8d2d:0x128},_0x3a8912=_0x559004;this[_0x3a8912(_0x26c68f._0x220d7f)](_0x3a8912(_0x26c68f._0x5c8d2d),[_0x1a62d2]),this[_0x3a8912(0x12d)]();}async[_0x559004(0xef)](_0x31f121,_0x4bfac1,_0x15c95e){const _0x185330={_0x1333f2:0xf1,_0x184a5d:0x12d},_0x3b7bd2=_0x559004;this[_0x3b7bd2(_0x185330._0x1333f2)]('dragAndDrop',[_0x31f121,_0x4bfac1,_0x15c95e]),this[_0x3b7bd2(_0x185330._0x184a5d)]();}async[_0x559004(0x101)](_0x4d47bd,_0x348d1d){const _0x4360be={_0x43982e:0x101},_0x405044=_0x559004;this[_0x405044(0xf1)](_0x405044(_0x4360be._0x43982e),[_0x4d47bd,_0x348d1d]),this[_0x405044(0x12d)]();}async['clipboardPaste'](_0x2eb8d5,_0x16c68b){const _0x3ad16e={_0x47e6df:0x12d},_0x1d9778=_0x559004;this[_0x1d9778(0xf1)](_0x1d9778(0x122),[_0x2eb8d5,_0x16c68b]),this[_0x1d9778(_0x3ad16e._0x47e6df)]();}async['count'](_0x3c7ece){const _0x50c5af={_0x31e8c2:0xf9,_0x5b09ee:0x111},_0x593996=_0x559004;return this[_0x593996(0xf1)](_0x593996(_0x50c5af._0x31e8c2),[_0x3c7ece]),this[_0x593996(0x10c)][_0x593996(_0x50c5af._0x5b09ee)]??0x1;}async[_0x559004(0x139)](_0x3308c2){const _0x1cf875={_0x2d79dd:0xe1},_0x2177ea=_0x559004;return this['record'](_0x2177ea(0x139),[_0x3308c2]),this['behavior'][_0x2177ea(_0x1cf875._0x2d79dd)]??'';}async[_0x559004(0x136)](_0x490cdb){const _0x943641={_0xa3a256:0x126,_0xd01b9c:0xe1},_0x285e2e=_0x559004;return this[_0x285e2e(0xf1)]('innerText',[_0x490cdb]),this[_0x285e2e(0x10c)][_0x285e2e(_0x943641._0xa3a256)]??this[_0x285e2e(0x10c)][_0x285e2e(_0x943641._0xd01b9c)]??'';}async['inputValue'](_0x1e7a1a){const _0xc4050d={_0x25b521:0xf1,_0x2df9d0:0x129,_0x520bc8:0x10c},_0x4c8980=_0x559004;return this[_0x4c8980(_0xc4050d._0x25b521)](_0x4c8980(_0xc4050d._0x2df9d0),[_0x1e7a1a]),this[_0x4c8980(_0xc4050d._0x520bc8)]['inputValueByDefault']??'';}async[_0x559004(0x125)](_0x499237){const _0x43f94f={_0x38c98e:0xf1,_0x4afce9:0x125},_0x37343d=_0x559004;return this[_0x37343d(_0x43f94f._0x38c98e)](_0x37343d(_0x43f94f._0x4afce9),[_0x499237]),this['behavior']['checkedStateByDefault']??null;}async[_0x559004(0xcf)](_0x4c1fb5){const _0x2ecbcc={_0x27e710:0x10c},_0x477034=_0x559004;return this['record'](_0x477034(0xcf),[_0x4c1fb5]),this[_0x477034(_0x2ecbcc._0x27e710)]['isVisibleByDefault']??!![];}async['isDisabled'](_0x3c4226){const _0x132fd2={_0x19bd1a:0x13a},_0x1c6383=_0x559004;return this[_0x1c6383(0xf1)](_0x1c6383(_0x132fd2._0x19bd1a),[_0x3c4226]),this[_0x1c6383(0x10c)][_0x1c6383(0x108)]??![];}async['getAttribute'](_0x552ca1,_0x5b22dc){const _0x2f8590={_0x4735f6:0x10c},_0x4c1137=_0x559004;return this['record']('getAttribute',[_0x552ca1,_0x5b22dc]),this[_0x4c1137(_0x2f8590._0x4735f6)]['attributesByDefault']?.[_0x5b22dc]??null;}async[_0x559004(0xd0)](_0x2d88c3,_0x1f6b51){const _0x44453c={_0xd0cb0c:0xf1,_0x2f5305:0xd0},_0x1422b9=_0x559004;this[_0x1422b9(_0x44453c._0xd0cb0c)](_0x1422b9(_0x44453c._0x2f5305),[_0x2d88c3,_0x1f6b51]);}async[_0x559004(0xfe)](_0x9eb910,_0x10bbe4){const _0x98c0fa=_0x559004;this[_0x98c0fa(0xf1)](_0x98c0fa(0xfe),[_0x9eb910,_0x10bbe4]);}async[_0x559004(0x12f)](_0x3ca1a1,_0x3a3c32){const _0x462deb={_0x5b81e3:0x12f},_0x4b2c8a=_0x559004;this[_0x4b2c8a(0xf1)](_0x4b2c8a(_0x462deb._0x5b81e3),[_0x3ca1a1,_0x3a3c32]);}async[_0x559004(0xf8)](_0x1a7482){const _0x5873f6={_0x1419d3:0xf1},_0xde941a=_0x559004;this[_0xde941a(_0x5873f6._0x1419d3)](_0xde941a(0xf8),[_0x1a7482]);}async[_0x559004(0x113)](_0x5bd0d7,_0x2f131b){const _0x1d4ce4={_0x15ea92:0x113},_0x243da7=_0x559004;this[_0x243da7(0xf1)](_0x243da7(_0x1d4ce4._0x15ea92),[_0x5bd0d7,_0x2f131b]);}async[_0x559004(0xd3)](_0xc37dbb,_0x3529c4){const _0x4ce740={_0x5925d8:0xd3},_0x152d69=_0x559004;this[_0x152d69(0xf1)](_0x152d69(_0x4ce740._0x5925d8),[_0xc37dbb,_0x3529c4]),this[_0x152d69(0x12b)]=_0xc37dbb;}async['reload'](_0x33aa8d){const _0x2d9fb7={_0x95c95b:0xf1},_0x291b5e=_0x559004;this[_0x291b5e(_0x2d9fb7._0x95c95b)](_0x291b5e(0x120),[_0x33aa8d]);}async['goBack'](_0x2975f9){this['record']('goBack',[_0x2975f9]);}async[_0x559004(0x11e)](_0x43cabc){const _0x3e1d07=_0x559004;this[_0x3e1d07(0xf1)]('goForward',[_0x43cabc]);}async[_0x559004(0x137)](_0x2ee9ce){const _0x39d12a={_0x4ee3ca:0xf1,_0x44c43a:0x137},_0x5b4fab=_0x559004;return this[_0x5b4fab(_0x39d12a._0x4ee3ca)](_0x5b4fab(_0x39d12a._0x44c43a),[_0x2ee9ce]),void 0x0;}async['evaluateOnLocator'](_0x2040f5,_0x5e0a65){const _0x54970c=_0x559004;return this[_0x54970c(0xf1)](_0x54970c(0xe8),[_0x2040f5,_0x5e0a65]),void 0x0;}async[_0x559004(0xf3)](_0xea46ad){const _0x1ed8df={_0x55f1e6:0xf3,_0x236633:0xd7,_0x514d11:0x11a},_0x558d09=_0x559004;this[_0x558d09(0xf1)](_0x558d09(_0x1ed8df._0x55f1e6),[_0xea46ad]);if(_0xea46ad[_0x558d09(_0x1ed8df._0x236633)]['length']!==0x1||_0xea46ad['steps'][0x0]['kind']!==_0x558d09(_0x1ed8df._0x514d11))return null;const _0x399ec4=_0xea46ad['steps'][0x0][_0x558d09(_0x1ed8df._0x514d11)],_0xbdbb04=this['behavior']['elementHintByRef']?.[_0x399ec4];return _0xbdbb04??null;}async['screenshot'](_0x326330){const _0x3c609f=_0x559004;return this['record'](_0x3c609f(0x13b),[_0x326330]),Buffer['from']('fake-png');}async[_0x559004(0x11b)](_0x156a5d){const _0x2634cf={_0x4fa28e:0x11b,_0x714b2:0xd7,_0x5c103e:0xe4,_0x3e4e48:0x10c,_0xb01d22:0xec,_0x1c12b3:0xee},_0x413f1d=_0x559004;this[_0x413f1d(0xf1)](_0x413f1d(_0x2634cf._0x4fa28e),[_0x156a5d]);if(_0x156a5d[_0x413f1d(0xd7)][_0x413f1d(0xd8)]===0x1&&_0x156a5d[_0x413f1d(_0x2634cf._0x714b2)][0x0][_0x413f1d(_0x2634cf._0x5c103e)]==='ref'){const _0x2c6c04=_0x156a5d[_0x413f1d(_0x2634cf._0x714b2)][0x0]['ref'];return this[_0x413f1d(_0x2634cf._0x3e4e48)][_0x413f1d(0x121)]?.[_0x2c6c04]??_0x413f1d(_0x2634cf._0xb01d22)+_0x2c6c04+_0x413f1d(0xdd);}return _0x413f1d(_0x2634cf._0x1c12b3);}},FakeContext=class{constructor(_0x38dfd0,_0x5a5272,_0x3ea3fa){const _0x28dd26={_0x5098b9:0x115},_0x212a61=_0x559004;this[_0x212a61(0x102)]=_0x38dfd0,this['behavior']=_0x5a5272,this[_0x212a61(0xde)]=_0x3ea3fa;const _0x42903f=new FakePage(_0x38dfd0,_0x5a5272,_0x3ea3fa+_0x212a61(0x123),_0x5a5272['initialUrl']??'about:blank');_0x5a5272[_0x212a61(0x116)]&&(_0x42903f['onAfterClick']=()=>{const _0x5b9032=_0x212a61;this['emitFakePopup'](_0x5a5272[_0x5b9032(0x116)]);}),this[_0x212a61(0x11d)]=[_0x42903f],this[_0x212a61(_0x28dd26._0x5098b9)]={..._0x5a5272[_0x212a61(0xe2)]??{}},this[_0x212a61(0x119)]={..._0x5a5272['cookies']??{}};}[_0x559004(0x102)];['behavior'];['scope'];static{__name(this,'FakeContext');}['pageList'];['activeIdx']=0x0;[_0x559004(0xea)]=[];[_0x559004(0x115)];['cookieState'];['newPageListeners']=new Set();['record'](_0x1e67cd,_0x240c63){const _0x351f98={_0x3a7b50:0xde},_0xe25913=_0x559004;this[_0xe25913(0x102)][_0xe25913(0xf0)]({'scope':this[_0xe25913(_0x351f98._0x3a7b50)],'method':_0x1e67cd,'args':_0x240c63});}['pages'](){const _0x4916f5=_0x559004;return this[_0x4916f5(0x11d)];}[_0x559004(0xd6)](){const _0x59cb36={_0x18e69e:0x103},_0x3c9e44=_0x559004,_0x129f51=this[_0x3c9e44(0x11d)][this[_0x3c9e44(_0x59cb36._0x18e69e)]];if(!_0x129f51)throw new DriverError('no\x20active\x20page\x20in\x20context',{'activeIdx':this[_0x3c9e44(0x103)]});return _0x129f51;}[_0x559004(0xf5)](){const _0x1d4def=_0x559004;return this[_0x1d4def(0x10c)][_0x1d4def(0xf5)]??[];}[_0x559004(0xe9)](){const _0x5e9a85={_0x2928ee:0xe9},_0x2dae62=_0x559004;return this['behavior'][_0x2dae62(_0x5e9a85._0x2928ee)]??[];}async['setActivePage'](_0x3607ae){const _0x20ccb9={_0x4c75fc:0xf1,_0x1fdb96:0x132,_0x295843:0xd8,_0x230aaa:0x103,_0x3501a1:0xd8},_0x350bb1=_0x559004;this[_0x350bb1(_0x20ccb9._0x4c75fc)](_0x350bb1(_0x20ccb9._0x1fdb96),[_0x3607ae]);if(_0x3607ae<0x0||_0x3607ae>=this['pageList'][_0x350bb1(_0x20ccb9._0x295843)])throw new DriverError(_0x350bb1(0xd5),{'index':_0x3607ae,'available':this['pageList'][_0x350bb1(0xd8)]});this[_0x350bb1(_0x20ccb9._0x230aaa)]=_0x3607ae,this[_0x350bb1(0xea)][_0x350bb1(_0x20ccb9._0x3501a1)]=0x0;}['onNewPage'](_0x3f1c1d){const _0x16a767=_0x559004;return subscribe(this[_0x16a767(0xed)],_0x3f1c1d);}[_0x559004(0xcd)](_0x5e3da9){const _0x1b2af1={_0x583935:0xde,_0x4fd683:0x11d,_0x222996:0xd8},_0x133e17=_0x559004,_0x166797=this[_0x133e17(_0x1b2af1._0x583935)]+_0x133e17(0xf4)+this[_0x133e17(_0x1b2af1._0x4fd683)][_0x133e17(_0x1b2af1._0x222996)],_0x428770=new FakePage(this['recorder'],this[_0x133e17(0x10c)],_0x166797,_0x5e3da9);this[_0x133e17(_0x1b2af1._0x4fd683)]['push'](_0x428770);const _0x235828=this[_0x133e17(_0x1b2af1._0x4fd683)][_0x133e17(_0x1b2af1._0x222996)]-0x1;for(const _0x710d99 of this['newPageListeners']){try{_0x710d99({'index':_0x235828,'url':_0x5e3da9});}catch{}}return _0x235828;}[_0x559004(0x138)](_0x418a15){const _0x435219={_0x105027:0xd8,_0x582130:0x11d,_0x5b27fc:0x107},_0x33eed1=_0x559004;if(_0x418a15<0x0||_0x418a15>=this[_0x33eed1(0x11d)][_0x33eed1(_0x435219._0x105027)])throw new DriverError(_0x33eed1(0xd5),{'index':_0x418a15,'available':this[_0x33eed1(0x11d)][_0x33eed1(_0x435219._0x105027)]});this[_0x33eed1(_0x435219._0x582130)][_0x33eed1(_0x435219._0x5b27fc)](_0x418a15,0x1);}async[_0x559004(0x127)](_0x3aefaf){const _0x44dcfb={_0x500d75:0x127,_0x28ecae:0xea},_0x39cf81=_0x559004;this['record'](_0x39cf81(_0x44dcfb._0x500d75),[_0x3aefaf]);if(!_0x3aefaf[_0x39cf81(0xd7)][_0x39cf81(0xd8)])throw new LocatorError(_0x39cf81(0x13d),{'locator':_0x3aefaf});this[_0x39cf81(_0x44dcfb._0x28ecae)][_0x39cf81(0xf0)](_0x3aefaf);}async[_0x559004(0xfb)](){const _0x1d5032={_0x150289:0xea,_0x47b206:0x10b,_0x2d28d1:0xdf},_0x1eebe7=_0x559004;this[_0x1eebe7(0xf1)](_0x1eebe7(0xfb),[]);if(this[_0x1eebe7(_0x1d5032._0x150289)][_0x1eebe7(0xd8)]===0x0)throw new DriverError(_0x1eebe7(_0x1d5032._0x47b206),{});this[_0x1eebe7(0xea)][_0x1eebe7(_0x1d5032._0x2d28d1)]();}async[_0x559004(0x133)](_0x43322c,_0x3de97d){const _0x5e28b1={_0x349c1d:0x133,_0x274094:0x115},_0x257584=_0x559004;this[_0x257584(0xf1)](_0x257584(_0x5e28b1._0x349c1d),[_0x43322c,_0x3de97d]),this[_0x257584(_0x5e28b1._0x274094)][_0x43322c]=_0x3de97d;}async['getLocalStorage'](_0x308c1e){const _0x25eb47={_0x52b6ce:0xfa},_0x473e48=_0x559004;return this['record'](_0x473e48(_0x25eb47._0x52b6ce),[_0x308c1e]),this['localStorageState'][_0x308c1e]??null;}async[_0x559004(0xfd)](_0x48b3db,_0x2a1a11,_0x1ec29a){const _0x362ece={_0x424d69:0xf1,_0x24d1b4:0xfd},_0x239757=_0x559004;this[_0x239757(_0x362ece._0x424d69)](_0x239757(_0x362ece._0x24d1b4),[_0x48b3db,_0x2a1a11,_0x1ec29a]),this[_0x239757(0x119)][_0x48b3db]=_0x2a1a11;}async[_0x559004(0x105)](_0x871ec5){const _0x5233ae=_0x559004;return this[_0x5233ae(0xf1)]('getCookie',[_0x871ec5]),this['cookieState'][_0x871ec5]??null;}async[_0x559004(0xe0)](_0x48f1ce){const _0x3cc6a1={_0x22b3b9:0xf1},_0x12e197=_0x559004;this[_0x12e197(_0x3cc6a1._0x22b3b9)]('saveStorageState',[_0x48f1ce]);}async[_0x559004(0x137)](_0x51c300){const _0x202acc={_0x872c8c:0xf1},_0xc5a6c0=_0x559004;return this[_0xc5a6c0(_0x202acc._0x872c8c)]('evaluate',[_0x51c300]),void 0x0;}async['close'](){const _0xf4fb1={_0x5a059b:0x13f},_0x47b8cb=_0x559004;this[_0x47b8cb(0xf1)](_0x47b8cb(_0xf4fb1._0x5a059b),[]);}[_0x559004(0x112)](){const _0x560641={_0x377289:0xea},_0x1f5157=_0x559004;return this[_0x1f5157(_0x560641._0x377289)][_0x1f5157(0xd8)];}},FakeWebDriver=class{constructor(_0x40d9cf={}){this['behavior']=_0x40d9cf,this['recorder']=createRecorder();}[_0x559004(0x10c)];static{__name(this,_0x559004(0x10d));}['launched']=![];['recorder'];[_0x559004(0xe7)]=[];async[_0x559004(0x141)](_0x181b3b){const _0x343a1a={_0x575cd9:0x11c,_0x4817f3:0x141,_0x37dd8a:0x140},_0x518279=_0x559004;this['recorder'][_0x518279(0xf0)]({'scope':_0x518279(_0x343a1a._0x575cd9),'method':_0x518279(_0x343a1a._0x4817f3),'args':[_0x181b3b]}),this[_0x518279(_0x343a1a._0x37dd8a)]=!![];}async['newContext'](_0x482f50){const _0x576237={_0x414235:0x102,_0x49bb55:0xf0,_0x396f1d:0x140,_0x2f3756:0x102,_0x36278f:0x10c,_0x401f15:0x12c},_0x39c733=_0x559004;this[_0x39c733(_0x576237._0x414235)][_0x39c733(_0x576237._0x49bb55)]({'scope':_0x39c733(0x11c),'method':_0x39c733(0xf2),'args':[_0x482f50]});if(!this[_0x39c733(_0x576237._0x396f1d)])throw new DriverError('newContext\x20called\x20before\x20launch()',{});const _0x15e22f=new FakeContext(this[_0x39c733(_0x576237._0x2f3756)],this[_0x39c733(_0x576237._0x36278f)],_0x39c733(_0x576237._0x401f15)+this['contexts']['length']);return this[_0x39c733(0xe7)][_0x39c733(0xf0)](_0x15e22f),_0x15e22f;}async[_0x559004(0x13f)](){const _0x2f9eac={_0x279c7c:0x11c,_0x263f27:0x13f},_0x11115f=_0x559004;this['recorder']['push']({'scope':_0x11115f(_0x2f9eac._0x279c7c),'method':_0x11115f(_0x2f9eac._0x263f27),'args':[]}),this['launched']=![];}[_0x559004(0xfc)](){return void 0x0;}async[_0x559004(0x117)](){const _0x130200=_0x559004;throw new DriverError(_0x130200(0x124),{});}[_0x559004(0x110)](){const _0x484f13={_0x519db8:0x114},_0x3d1fb0=_0x559004;throw new DriverError(_0x3d1fb0(_0x484f13._0x519db8),{});}[_0x559004(0x104)](){const _0x51f2b5={_0x250f0d:0x102},_0x524be1=_0x559004;return this[_0x524be1(_0x51f2b5._0x250f0d)][_0x524be1(0x104)]();}[_0x559004(0x10a)](_0x5472b1){const _0x546eb0={_0x35f31e:0x102,_0x91a9ce:0xf7},_0x5cd86d=_0x559004;return this[_0x5cd86d(_0x546eb0._0x35f31e)][_0x5cd86d(0x104)]()[_0x5cd86d(_0x546eb0._0x91a9ce)](_0x32925c=>_0x32925c['method']===_0x5472b1);}};export{FakeWebDriver};
1
+ const _0x1594e8=_0x2299;(function(_0x261b99,_0x4775e7){const _0x5ebcf2={_0x35492c:0x81,_0x2a0251:0xc9,_0x501fe6:0xa8},_0x28e84b=_0x2299,_0xdd0d1a=_0x261b99();while(!![]){try{const _0x5d4289=-parseInt(_0x28e84b(0xc5))/0x1+parseInt(_0x28e84b(_0x5ebcf2._0x35492c))/0x2+parseInt(_0x28e84b(0x95))/0x3*(-parseInt(_0x28e84b(0x6f))/0x4)+-parseInt(_0x28e84b(_0x5ebcf2._0x2a0251))/0x5+-parseInt(_0x28e84b(_0x5ebcf2._0x501fe6))/0x6+-parseInt(_0x28e84b(0xc1))/0x7+-parseInt(_0x28e84b(0xc8))/0x8*(-parseInt(_0x28e84b(0x8c))/0x9);if(_0x5d4289===_0x4775e7)break;else _0xdd0d1a['push'](_0xdd0d1a['shift']());}catch(_0xbf8dd0){_0xdd0d1a['push'](_0xdd0d1a['shift']());}}}(_0x22c7,0x83ac1));var __defProp=Object['defineProperty'],__name=(_0xa3f720,_0x29dda9)=>__defProp(_0xa3f720,_0x1594e8(0xca),{'value':_0x29dda9,'configurable':!![]});function subscribe(_0x3557f9,_0x42808e){const _0x335497={_0x25d005:0x89},_0x419ee8={_0x12a5e6:0x7b},_0x3b73bc=_0x1594e8;return _0x3557f9[_0x3b73bc(_0x335497._0x25d005)](_0x42808e),()=>{const _0x300771=_0x3b73bc;_0x3557f9[_0x300771(_0x419ee8._0x12a5e6)](_0x42808e);};}__name(subscribe,_0x1594e8(0x71));function _0x22c7(){const _0x26e458=['otqYmtmXBfPbB3vt','AxneAxnHyMXLzej5rgvMyxvSDa','yxr0ywnOrxHPC3rPBMC','mJq4qKL6twrQ','ndi3mJC0mefitg1qyG','BMfTzq','C2v0q29VA2LL','AxneAxnHyMXLza','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','BMv3q29UDgv4Da','y2fSBhm','BgvUz3rO','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','y29VA2LLCW','Dgv4DenVBNrLBNrcEurLzMf1Bhq','Bwf5yMvuAhjVDW','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','C2nVCgu','C2v0tg9JywXtDg9YywDL','zg91yMXLq2XPy2S','C3bSAwnL','y2HLy2TLzfn0yxrL','zMfRzs1WBMC','ChvZAa','y2HLy2TLzfn0yxrLqNLezwzHDwX0','CMvJB3jKzxi','iJ48l2rPDJ4','AxnwAxnPyMXL','zw50zxjgCMfTzq','zxzHBhvHDgu','A2LUza','D3nfBMrWB2LUDa','lNbHz2u','CMvM','Dw5JAgvJAW','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','y2HLy2S','nZeXmtz5AeXXExO','y29VA2LLu3rHDgu','C3vIC2nYAwjL','C3rLChm','D2fPDezVCLvYBa','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','zNjVBq','y291BNq','Cg9W','zxjYB3jpBK5LEhrby3rPB24','CgfNzxm','Bg9JywXtDg9YywDL','zgvSzxrL','zhjHz0fUzerYB3a','y2XVC2u','D2fPDezVCKXVywrtDgf0zq','zMfRzsb0AxrSzq','BMv0D29YA0vUDhjPzxm','mta5ndG0mNLYve9uvq','z2v0q29VA2LL','C2nYzwvUC2HVDa','rMfRzunVBNrLEhq','D2fPDezVCG','C2v0qwn0AxzLugfNzq','B25ozxDqywDL','zxHPDezYyw1L','ywrK','zxzHBhvHDgvpBKXVy2f0B3i','BMv3ugfNzuXPC3rLBMvYCW','ody1ndeZzxnyrfjl','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','lNbHz2uW','Dgv4DenVBNrLBNq','zwXLBwvUDeHPBNrcEvjLzG','yxr0CMLIDxrLC0j5rgvMyxvSDa','y2fSBhngB3i','AxnwAxnPyMXLqNLezwzHDwX0','zMLSDgvY','mte3Be9nAKvn','ywn0AxzLswr4','y29UDgv4Dhm','DgL0Bgu','D2fPDezVCLrLEhq','Aw5WDxrwywX1zq','Bwv0Ag9K','y2XPy2S','rhjPDMvYrxjYB3i','z29cywnR','CMvJB3jK','pgrPDJ48l2rPDJ4','B25bzNrLCKnSAwnR','Bg9JywXtDg9YywDLu3rHDgu','ChjLC3m','y2XPCgjVyxjKugfZDgu','CgfNzuXPC3q','DxbSB2fKrMLSzq','zw1PDezHA2vqB3b1Ca','mJi4otu0mhvjr0fKwa','y29UBMvJDfnOyxjLza','Aw5PDgLHBfvYBa','zNjHBwvezxb0Aa','CMvSB2fK','tg9JyxrVCKvYCM9Y','B3v0zxjive1m','yMvOyxzPB3i','y29UC29SzuvUDhjPzxm','C2f2zvn0B3jHz2vtDgf0zq','C2nYB2XSsw50B1zPzxC','y3r4','Aw5UzxjuzxH0qNLezwzHDwX0','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','D2fPDezVCK5HDMLNyxrPB24','zMLSBa','y3vYCMvUDfvYBa','Bgf1BMnO','C2vSzwn0t3b0Aw9U','Cg9WDxbpBKnSAwnR','z2v0qxr0CMLIDxrL','zhjPDMvY','Aw5UzxjuzxH0','zNjHBwvtDgfJAW','z2v0tg9JywXtDg9YywDL','odiXmtyZBKXWEg9K','Aw5ZCgvJDevSzw1LBNq','rMfRzvDLyKrYAxzLCG','Bgf1BMnOzwq'];_0x22c7=function(){return _0x26e458;};return _0x22c7();}import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x1594e8(0x9d));}},LocatorError=class extends UnotestError{static{__name(this,_0x1594e8(0xad));}};function createRecorder(){const _0x3f0000={_0x40e2cd:0xdc,_0x3fb5c8:0xcf},_0x3131f9=_0x1594e8,_0x927fd5=[];let _0x247acc=0x0;return{'push':__name(_0xae7156=>_0x927fd5['push']({..._0xae7156,'seq':_0x247acc++}),_0x3131f9(_0x3f0000._0x40e2cd)),'calls':__name(()=>_0x927fd5,_0x3131f9(_0x3f0000._0x3fb5c8))};}function _0x2299(_0x308467,_0x227cf4){_0x308467=_0x308467-0x6c;const _0x22c7ee=_0x22c7();let _0x229981=_0x22c7ee[_0x308467];if(_0x2299['dzlKDD']===undefined){var _0x44673e=function(_0x5883e0){const _0x3ebe64='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa3f720='',_0x29dda9='';for(let _0x3557f9=0x0,_0x42808e,_0x927fd5,_0x247acc=0x0;_0x927fd5=_0x5883e0['charAt'](_0x247acc++);~_0x927fd5&&(_0x42808e=_0x3557f9%0x4?_0x42808e*0x40+_0x927fd5:_0x927fd5,_0x3557f9++%0x4)?_0xa3f720+=String['fromCharCode'](0xff&_0x42808e>>(-0x2*_0x3557f9&0x6)):0x0){_0x927fd5=_0x3ebe64['indexOf'](_0x927fd5);}for(let _0xae7156=0x0,_0xe701b6=_0xa3f720['length'];_0xae7156<_0xe701b6;_0xae7156++){_0x29dda9+='%'+('00'+_0xa3f720['charCodeAt'](_0xae7156)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x29dda9);};_0x2299['JGpHZV']=_0x44673e,_0x2299['anbVxy']={},_0x2299['dzlKDD']=!![];}const _0x3aa1f3=_0x22c7ee[0x0],_0x411f54=_0x308467+_0x3aa1f3,_0x46f432=_0x2299['anbVxy'][_0x411f54];return!_0x46f432?(_0x229981=_0x2299['JGpHZV'](_0x229981),_0x2299['anbVxy'][_0x411f54]=_0x229981):_0x229981=_0x46f432,_0x229981;}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0xe701b6,_0x2f74bd,_0x41f3c4,_0x632dd){const _0xa794c7={_0x276abe:0xb8},_0x4b77ac=_0x1594e8;this[_0x4b77ac(0xde)]=_0xe701b6,this[_0x4b77ac(0xaf)]=_0x2f74bd,this[_0x4b77ac(0xd6)]=_0x41f3c4,this[_0x4b77ac(_0xa794c7._0x276abe)]=_0x632dd;}[_0x1594e8(0xde)];[_0x1594e8(0xaf)];[_0x1594e8(0xd6)];static{__name(this,'FakePage');}['currentUrl'];['onAfterClick'];['record'](_0x33ba35,_0x4a53d1){this['recorder']['push']({'scope':this['scope'],'method':_0x33ba35,'args':_0x4a53d1});}[_0x1594e8(0xd4)](){const _0x4e3ab2={_0x13f079:0xaf,_0x344c6c:0x78},_0x5c11c5=_0x1594e8;if(this['behavior']['errorOnNextAction']){const _0x3b710b=this[_0x5c11c5(0xaf)]['errorOnNextAction'];this[_0x5c11c5(_0x4e3ab2._0x13f079)][_0x5c11c5(_0x4e3ab2._0x344c6c)]=void 0x0;throw _0x3b710b;}}['url'](){return this['currentUrl'];}async[_0x1594e8(0x98)](){const _0x4afe76={_0x3623ca:0x9f,_0x312141:0x98},_0x52bd2a=_0x1594e8;return this[_0x52bd2a(_0x4afe76._0x3623ca)](_0x52bd2a(_0x4afe76._0x312141),[]),_0x52bd2a(0x7f);}async[_0x1594e8(0x9c)](_0x182a93,_0x15f164){const _0xbbd6e0={_0x46eafe:0x9f,_0x5c5837:0xd4},_0x129a89=_0x1594e8;this[_0x129a89(_0xbbd6e0._0x46eafe)](_0x129a89(0x9c),[_0x182a93,_0x15f164]),this[_0x129a89(_0xbbd6e0._0x5c5837)](),this['onAfterClick']?.();}async[_0x1594e8(0xd8)](_0x29a43e,_0x19bb2e){const _0x382b70={_0x3a03bf:0x9f,_0x158873:0xd8,_0x2d4a88:0xd4},_0x536ac3=_0x1594e8;this[_0x536ac3(_0x382b70._0x3a03bf)](_0x536ac3(_0x382b70._0x158873),[_0x29a43e,_0x19bb2e]),this[_0x536ac3(_0x382b70._0x2d4a88)]();}async[_0x1594e8(0xb7)](_0x10d03a,_0x49f6bc,_0x28e20b){const _0x34607f={_0x4f27f3:0x9f},_0x13c509=_0x1594e8;this[_0x13c509(_0x34607f._0x4f27f3)](_0x13c509(0xb7),[_0x10d03a,_0x49f6bc,_0x28e20b]),this[_0x13c509(0xd4)]();}async[_0x1594e8(0xa3)](_0x2fd525,_0x5300e1,_0x3ae113){const _0x4d4461={_0x7cbd77:0x9f},_0x45af72=_0x1594e8;this[_0x45af72(_0x4d4461._0x7cbd77)]('press',[_0x2fd525,_0x5300e1,_0x3ae113]),this[_0x45af72(0xd4)]();}async[_0x1594e8(0x6e)](_0x3e59de,_0x2c53d2){const _0x58c1fc={_0x35251b:0x9f,_0x4334a4:0x6e},_0x336907=_0x1594e8;this[_0x336907(_0x58c1fc._0x35251b)](_0x336907(_0x58c1fc._0x4334a4),[_0x3e59de,_0x2c53d2]),this['maybeThrow']();}async[_0x1594e8(0x6c)](_0xfb3350,_0x264ff9){const _0xe087f3={_0x27e53d:0x9f,_0xa29a81:0xd4},_0x418f4d=_0x1594e8;this[_0x418f4d(_0xe087f3._0x27e53d)](_0x418f4d(0x6c),[_0xfb3350,_0x264ff9]),this[_0x418f4d(_0xe087f3._0xa29a81)]();}async[_0x1594e8(0xba)](_0x25964e,_0x54271b,_0xd49806){const _0x2b0e0d={_0x313487:0x9f,_0x3442bb:0xd4},_0x4cf973=_0x1594e8;this[_0x4cf973(_0x2b0e0d._0x313487)](_0x4cf973(0xba),[_0x25964e,_0x54271b,_0xd49806]),this[_0x4cf973(_0x2b0e0d._0x3442bb)]();}async['hover'](_0x1d4c53,_0x54bed7){const _0x140c69={_0x185926:0x9f},_0x46b81e=_0x1594e8;this[_0x46b81e(_0x140c69._0x185926)]('hover',[_0x1d4c53,_0x54bed7]),this['maybeThrow']();}async['scrollIntoView'](_0x2cca66){const _0x14caa3={_0x26e84b:0x9f,_0x3e476f:0xb2},_0x52d523=_0x1594e8;this[_0x52d523(_0x14caa3._0x26e84b)](_0x52d523(_0x14caa3._0x3e476f),[_0x2cca66]),this['maybeThrow']();}async[_0x1594e8(0x7c)](_0x4215cb,_0x548019,_0x30b369){this['record']('dragAndDrop',[_0x4215cb,_0x548019,_0x30b369]),this['maybeThrow']();}async[_0x1594e8(0xa6)](_0x1d7e52,_0x36a55b){const _0x29ee4a={_0x178a93:0x9f,_0xfd57c:0xa6},_0x59b9d8=_0x1594e8;this[_0x59b9d8(_0x29ee4a._0x178a93)](_0x59b9d8(_0x29ee4a._0xfd57c),[_0x1d7e52,_0x36a55b]),this[_0x59b9d8(0xd4)]();}async['clipboardPaste'](_0x44af92,_0x493164){const _0xa3551e={_0x416137:0xa4},_0xe038ba=_0x1594e8;this[_0xe038ba(0x9f)](_0xe038ba(_0xa3551e._0x416137),[_0x44af92,_0x493164]),this[_0xe038ba(0xd4)]();}async[_0x1594e8(0x76)](_0x17f4d6){const _0x59c773={_0x5f50bc:0xaf},_0x1605c3=_0x1594e8;return this[_0x1605c3(0x9f)](_0x1605c3(0x76),[_0x17f4d6]),this[_0x1605c3(_0x59c773._0x5f50bc)]['countByDefault']??0x1;}async['textContent'](_0x252cdc){const _0xc7f494={_0x298350:0xaf},_0x10fb0d=_0x1594e8;return this['record'](_0x10fb0d(0x8f),[_0x252cdc]),this[_0x10fb0d(_0xc7f494._0x298350)]['textContentByDefault']??'';}async[_0x1594e8(0xbe)](_0x2470d4){const _0x861804={_0x5e9e3a:0x9f,_0x2df937:0xbe},_0x224656=_0x1594e8;return this[_0x224656(_0x861804._0x5e9e3a)](_0x224656(_0x861804._0x2df937),[_0x2470d4]),this[_0x224656(0xaf)][_0x224656(0xb4)]??this[_0x224656(0xaf)][_0x224656(0xd3)]??'';}async[_0x1594e8(0x9a)](_0x592e5a){const _0x303d61=_0x1594e8;return this['record'](_0x303d61(0x9a),[_0x592e5a]),this['behavior']['inputValueByDefault']??'';}async[_0x1594e8(0xda)](_0x5050d3){const _0x10b0d1={_0x573d5d:0xda,_0xc6471c:0xdd},_0x2be095=_0x1594e8;return this[_0x2be095(0x9f)](_0x2be095(_0x10b0d1._0x573d5d),[_0x5050d3]),this[_0x2be095(0xaf)][_0x2be095(_0x10b0d1._0xc6471c)]??null;}async[_0x1594e8(0xe0)](_0x2212e0){const _0x1f6dd7={_0x481ad4:0x9f},_0x3facf1=_0x1594e8;return this[_0x3facf1(_0x1f6dd7._0x481ad4)]('isVisible',[_0x2212e0]),this['behavior'][_0x3facf1(0x93)]??!![];}async[_0x1594e8(0xcc)](_0xc0d4c3){const _0x328102={_0x5b43df:0x9f,_0x230358:0xaf,_0x4d16d2:0xc6},_0xe2cdd1=_0x1594e8;return this[_0xe2cdd1(_0x328102._0x5b43df)]('isDisabled',[_0xc0d4c3]),this[_0xe2cdd1(_0x328102._0x230358)][_0xe2cdd1(_0x328102._0x4d16d2)]??![];}async[_0x1594e8(0xbc)](_0x3d6a4d,_0xecfb5d){const _0x59f3ce={_0xfd2c1:0x9f,_0x1377e9:0x91},_0x2cbe95=_0x1594e8;return this[_0x2cbe95(_0x59f3ce._0xfd2c1)](_0x2cbe95(0xbc),[_0x3d6a4d,_0xecfb5d]),this[_0x2cbe95(0xaf)][_0x2cbe95(_0x59f3ce._0x1377e9)]?.[_0xecfb5d]??null;}async[_0x1594e8(0x85)](_0x3986a9,_0x2643d5){const _0x20cadd=_0x1594e8;this['record'](_0x20cadd(0x85),[_0x3986a9,_0x2643d5]);}async[_0x1594e8(0x73)](_0x395c24,_0x20c4e9){const _0x41a37c={_0x31b739:0x73},_0x4c4acc=_0x1594e8;this[_0x4c4acc(0x9f)](_0x4c4acc(_0x41a37c._0x31b739),[_0x395c24,_0x20c4e9]);}async['waitForText'](_0x712661,_0x21d911){const _0x290995={_0x2d7f00:0x99},_0x1d078c=_0x1594e8;this['record'](_0x1d078c(_0x290995._0x2d7f00),[_0x712661,_0x21d911]);}async['waitForNavigation'](_0x32df92){const _0x2636b3=_0x1594e8;this['record'](_0x2636b3(0xb6),[_0x32df92]);}async['waitForLoadState'](_0x2da8c5,_0x2df635){const _0x462e84={_0x26d615:0x9f},_0x2b9412=_0x1594e8;this[_0x2b9412(_0x462e84._0x26d615)](_0x2b9412(0x7e),[_0x2da8c5,_0x2df635]);}async['goto'](_0x5f1933,_0x4c6be3){const _0x353156={_0x5b321d:0xb8},_0x2dce4d=_0x1594e8;this['record']('goto',[_0x5f1933,_0x4c6be3]),this[_0x2dce4d(_0x353156._0x5b321d)]=_0x5f1933;}async[_0x1594e8(0xac)](_0x981a36){const _0x4fdf1b={_0x319605:0x9f},_0x3132e8=_0x1594e8;this[_0x3132e8(_0x4fdf1b._0x319605)](_0x3132e8(0xac),[_0x981a36]);}async[_0x1594e8(0x9e)](_0x4be559){const _0x39d5af={_0x2fc3a8:0x9f},_0x129c90=_0x1594e8;this[_0x129c90(_0x39d5af._0x2fc3a8)](_0x129c90(0x9e),[_0x4be559]);}async['goForward'](_0x16f81c){this['record']('goForward',[_0x16f81c]);}async[_0x1594e8(0xe2)](_0x11e82d){const _0x423a6b={_0x159b2a:0x9f,_0x4ec5b4:0xe2},_0x3b02e4=_0x1594e8;return this[_0x3b02e4(_0x423a6b._0x159b2a)](_0x3b02e4(_0x423a6b._0x4ec5b4),[_0x11e82d]),void 0x0;}async[_0x1594e8(0x8a)](_0x4ceff0,_0x18380f){const _0xb9bad0=_0x1594e8;return this[_0xb9bad0(0x9f)](_0xb9bad0(0x8a),[_0x4ceff0,_0x18380f]),void 0x0;}async[_0x1594e8(0xc2)](_0x1e1369){const _0x4adb31={_0x4ca97c:0xd0,_0x7f3b23:0xe3,_0x3d83f3:0xe6,_0x5db160:0x72},_0x421946=_0x1594e8;this['record']('inspectElement',[_0x1e1369]);if(_0x1e1369['steps'][_0x421946(_0x4adb31._0x4ca97c)]!==0x1||_0x1e1369[_0x421946(0x72)][0x0][_0x421946(_0x4adb31._0x7f3b23)]!==_0x421946(_0x4adb31._0x3d83f3))return null;const _0x5635de=_0x1e1369[_0x421946(_0x4adb31._0x5db160)][0x0][_0x421946(_0x4adb31._0x3d83f3)],_0x5cf3a3=this[_0x421946(0xaf)][_0x421946(0x90)]?.[_0x5635de];return _0x5cf3a3??null;}async[_0x1594e8(0x83)](_0x47c742){const _0x403101={_0x4bcfef:0x9f,_0x2629dd:0x83,_0x54141e:0x75,_0x13a96d:0xdb},_0x1520c8=_0x1594e8;return this[_0x1520c8(_0x403101._0x4bcfef)](_0x1520c8(_0x403101._0x2629dd),[_0x47c742]),Buffer[_0x1520c8(_0x403101._0x54141e)](_0x1520c8(_0x403101._0x13a96d));}async[_0x1594e8(0xae)](_0x223516){const _0x161474={_0x1ef539:0xae,_0xe9f8ad:0xe3,_0x47a01e:0xe6,_0x547959:0xaf,_0x4bf8ec:0x74,_0x3875c9:0xdf},_0x17d6a1=_0x1594e8;this[_0x17d6a1(0x9f)](_0x17d6a1(_0x161474._0x1ef539),[_0x223516]);if(_0x223516[_0x17d6a1(0x72)][_0x17d6a1(0xd0)]===0x1&&_0x223516['steps'][0x0][_0x17d6a1(_0x161474._0xe9f8ad)]===_0x17d6a1(_0x161474._0x47a01e)){const _0x495af9=_0x223516['steps'][0x0][_0x17d6a1(0xe6)];return this[_0x17d6a1(_0x161474._0x547959)]['outerHtmlByRef']?.[_0x495af9]??_0x17d6a1(_0x161474._0x4bf8ec)+_0x495af9+_0x17d6a1(_0x161474._0x3875c9);}return _0x17d6a1(0xa0);}},FakeContext=class{constructor(_0xf09001,_0x36e82d,_0x58d9a2){const _0x39055f={_0x34cee9:0xd6,_0x1dc039:0x8e,_0xf9bf0b:0xbb,_0x11b189:0xd2},_0x4cd90b={_0x4cbbe5:0xbb},_0x45febb=_0x1594e8;this[_0x45febb(0xde)]=_0xf09001,this[_0x45febb(0xaf)]=_0x36e82d,this[_0x45febb(_0x39055f._0x34cee9)]=_0x58d9a2;const _0xd4020d=new FakePage(_0xf09001,_0x36e82d,_0x58d9a2+_0x45febb(_0x39055f._0x1dc039),_0x36e82d[_0x45febb(0xaa)]??'about:blank');_0x36e82d[_0x45febb(_0x39055f._0xf9bf0b)]&&(_0xd4020d[_0x45febb(0xa1)]=()=>{const _0x3fd1c3=_0x45febb;this[_0x3fd1c3(0xa7)](_0x36e82d[_0x3fd1c3(_0x4cd90b._0x4cbbe5)]);}),this['pageList']=[_0xd4020d],this['localStorageState']={..._0x36e82d[_0x45febb(0x7a)]??{}},this[_0x45febb(0x70)]={..._0x36e82d[_0x45febb(_0x39055f._0x11b189)]??{}};}['recorder'];[_0x1594e8(0xaf)];[_0x1594e8(0xd6)];static{__name(this,_0x1594e8(0x84));}['pageList'];['activeIdx']=0x0;[_0x1594e8(0xbf)]=[];[_0x1594e8(0xa2)];[_0x1594e8(0x70)];[_0x1594e8(0x8b)]=new Set();[_0x1594e8(0x9f)](_0x5b0a78,_0x48ec85){const _0x2d0819={_0x3ad1ba:0xde,_0x4c9679:0xdc,_0x91e4fd:0xd6},_0x1ce8d2=_0x1594e8;this[_0x1ce8d2(_0x2d0819._0x3ad1ba)][_0x1ce8d2(_0x2d0819._0x4c9679)]({'scope':this[_0x1ce8d2(_0x2d0819._0x91e4fd)],'method':_0x5b0a78,'args':_0x48ec85});}[_0x1594e8(0x79)](){return this['pageList'];}['activePage'](){const _0x3284d2={_0x359627:0xd5},_0x466f96=_0x1594e8,_0x4f6031=this['pageList'][this[_0x466f96(0x96)]];if(!_0x4f6031)throw new DriverError(_0x466f96(_0x3284d2._0x359627),{'activeIdx':this[_0x466f96(0x96)]});return _0x4f6031;}[_0x1594e8(0xb0)](){const _0x324a7f=_0x1594e8;return this[_0x324a7f(0xaf)][_0x324a7f(0xb0)]??[];}[_0x1594e8(0x80)](){const _0x26725a=_0x1594e8;return this[_0x26725a(0xaf)]['networkEntries']??[];}async[_0x1594e8(0x86)](_0x4a6e9f){const _0x1497ab={_0x339d61:0x96},_0x970824=_0x1594e8;this['record'](_0x970824(0x86),[_0x4a6e9f]);if(_0x4a6e9f<0x0||_0x4a6e9f>=this[_0x970824(0xa5)][_0x970824(0xd0)])throw new DriverError(_0x970824(0xcd),{'index':_0x4a6e9f,'available':this[_0x970824(0xa5)]['length']});this[_0x970824(_0x1497ab._0x339d61)]=_0x4a6e9f,this['frameStack'][_0x970824(0xd0)]=0x0;}[_0x1594e8(0x87)](_0x38c820){return subscribe(this['newPageListeners'],_0x38c820);}[_0x1594e8(0xa7)](_0x11905a){const _0x579ff0={_0x2fe257:0xe5,_0x3ccbf4:0xd0,_0x52b565:0xde,_0x13c99c:0xdc,_0x11871a:0xd0},_0x4ee599=_0x1594e8,_0x2bfbe2=this[_0x4ee599(0xd6)]+_0x4ee599(_0x579ff0._0x2fe257)+this[_0x4ee599(0xa5)][_0x4ee599(_0x579ff0._0x3ccbf4)],_0x5439f7=new FakePage(this[_0x4ee599(_0x579ff0._0x52b565)],this[_0x4ee599(0xaf)],_0x2bfbe2,_0x11905a);this[_0x4ee599(0xa5)][_0x4ee599(_0x579ff0._0x13c99c)](_0x5439f7);const _0x4675c5=this['pageList'][_0x4ee599(_0x579ff0._0x11871a)]-0x1;for(const _0x42e5bf of this[_0x4ee599(0x8b)]){try{_0x42e5bf({'index':_0x4675c5,'url':_0x11905a});}catch{}}return _0x4675c5;}['closeFakePage'](_0x197389){const _0x75daee={_0x3936b1:0xa5,_0x2fc1c2:0xd0,_0x47e5a3:0xa5,_0x1618a8:0xd9},_0x3a41a7=_0x1594e8;if(_0x197389<0x0||_0x197389>=this[_0x3a41a7(0xa5)][_0x3a41a7(0xd0)])throw new DriverError(_0x3a41a7(0xcd),{'index':_0x197389,'available':this[_0x3a41a7(_0x75daee._0x3936b1)][_0x3a41a7(_0x75daee._0x2fc1c2)]});this[_0x3a41a7(_0x75daee._0x47e5a3)][_0x3a41a7(_0x75daee._0x1618a8)](_0x197389,0x1);}async[_0x1594e8(0xe1)](_0x19bf7d){const _0x515368={_0x4c929c:0x9f,_0x3e1bcc:0xe1,_0x2dd4b6:0xd0},_0x451ed4=_0x1594e8;this[_0x451ed4(_0x515368._0x4c929c)](_0x451ed4(_0x515368._0x3e1bcc),[_0x19bf7d]);if(!_0x19bf7d['steps'][_0x451ed4(_0x515368._0x2dd4b6)])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x19bf7d});this['frameStack']['push'](_0x19bf7d);}async[_0x1594e8(0x88)](){const _0x19e789={_0x4e3d09:0x9f,_0x304712:0xbf,_0x25f265:0xd1},_0x29145a=_0x1594e8;this[_0x29145a(_0x19e789._0x4e3d09)](_0x29145a(0x88),[]);if(this[_0x29145a(_0x19e789._0x304712)]['length']===0x0)throw new DriverError(_0x29145a(_0x19e789._0x25f265),{});this[_0x29145a(0xbf)][_0x29145a(0x77)]();}async['setLocalStorage'](_0x376d88,_0x39e1f8){const _0x17d20b={_0x5507ee:0x9f,_0x281177:0xa2},_0x874f1a=_0x1594e8;this[_0x874f1a(_0x17d20b._0x5507ee)](_0x874f1a(0xd7),[_0x376d88,_0x39e1f8]),this[_0x874f1a(_0x17d20b._0x281177)][_0x376d88]=_0x39e1f8;}async[_0x1594e8(0xc0)](_0x50bae0){const _0x1e66bd={_0x1a360e:0xa2},_0x12e470=_0x1594e8;return this[_0x12e470(0x9f)]('getLocalStorage',[_0x50bae0]),this[_0x12e470(_0x1e66bd._0x1a360e)][_0x50bae0]??null;}async[_0x1594e8(0xcb)](_0x4d10d7,_0x1bcf38,_0x42437e){const _0x1906cb={_0x36a054:0x9f,_0x32e7ef:0xcb},_0x22e714=_0x1594e8;this[_0x22e714(_0x1906cb._0x36a054)](_0x22e714(_0x1906cb._0x32e7ef),[_0x4d10d7,_0x1bcf38,_0x42437e]),this[_0x22e714(0x70)][_0x4d10d7]=_0x1bcf38;}async[_0x1594e8(0x82)](_0x13a556){const _0x5bcd2d={_0x63c25e:0x82},_0x2e4c31=_0x1594e8;return this[_0x2e4c31(0x9f)](_0x2e4c31(_0x5bcd2d._0x63c25e),[_0x13a556]),this[_0x2e4c31(0x70)][_0x13a556]??null;}async[_0x1594e8(0xb1)](_0x76a791){const _0xc3bfbf=_0x1594e8;this[_0xc3bfbf(0x9f)](_0xc3bfbf(0xb1),[_0x76a791]);}async[_0x1594e8(0xe2)](_0x58a0dc){const _0x1af225=_0x1594e8;return this[_0x1af225(0x9f)](_0x1af225(0xe2),[_0x58a0dc]),void 0x0;}async['close'](){const _0x3483f9=_0x1594e8;this[_0x3483f9(0x9f)](_0x3483f9(0x7d),[]);}[_0x1594e8(0xab)](){const _0x592821=_0x1594e8;return this[_0x592821(0xbf)][_0x592821(0xd0)];}},FakeWebDriver=class{constructor(_0x3142ab={}){this['behavior']=_0x3142ab,this['recorder']=createRecorder();}['behavior'];static{__name(this,_0x1594e8(0xc3));}[_0x1594e8(0xc4)]=![];[_0x1594e8(0xde)];[_0x1594e8(0x97)]=[];async[_0x1594e8(0xb9)](_0x370837){const _0x3529ef={_0x564512:0xdc,_0x38c31a:0xbd,_0x56aac7:0xc4},_0x3f7204=_0x1594e8;this[_0x3f7204(0xde)][_0x3f7204(_0x3529ef._0x564512)]({'scope':_0x3f7204(_0x3529ef._0x38c31a),'method':_0x3f7204(0xb9),'args':[_0x370837]}),this[_0x3f7204(_0x3529ef._0x56aac7)]=!![];}async['newContext'](_0x542dd8){const _0x425c50={_0x41fd73:0xdc,_0x19784b:0xc4,_0x22265a:0x97},_0x52634a=_0x1594e8;this[_0x52634a(0xde)][_0x52634a(_0x425c50._0x41fd73)]({'scope':_0x52634a(0xbd),'method':_0x52634a(0xce),'args':[_0x542dd8]});if(!this[_0x52634a(_0x425c50._0x19784b)])throw new DriverError(_0x52634a(0x6d),{});const _0x414643=new FakeContext(this[_0x52634a(0xde)],this['behavior'],_0x52634a(0xb3)+this[_0x52634a(_0x425c50._0x22265a)]['length']);return this[_0x52634a(_0x425c50._0x22265a)][_0x52634a(_0x425c50._0x41fd73)](_0x414643),_0x414643;}async[_0x1594e8(0x7d)](){const _0x37df3f={_0x4606f6:0xde,_0x1bca71:0xdc,_0x300271:0x7d},_0x160540=_0x1594e8;this[_0x160540(_0x37df3f._0x4606f6)][_0x160540(_0x37df3f._0x1bca71)]({'scope':'driver','method':_0x160540(_0x37df3f._0x300271),'args':[]}),this['launched']=![];}[_0x1594e8(0xe4)](){return void 0x0;}async[_0x1594e8(0xa9)](){const _0x3a950f=_0x1594e8;throw new DriverError(_0x3a950f(0xb5),{});}[_0x1594e8(0xc7)](_0x3d0556){const _0x537ddb={_0x963da0:0x8d},_0x558d30=_0x1594e8;throw new DriverError(_0x558d30(_0x537ddb._0x963da0),{});}[_0x1594e8(0xcf)](){const _0x46dffe={_0x4be73c:0xde,_0x47e8e9:0xcf},_0x16f540=_0x1594e8;return this[_0x16f540(_0x46dffe._0x4be73c)][_0x16f540(_0x46dffe._0x47e8e9)]();}[_0x1594e8(0x92)](_0x3ce757){const _0xff05b0=_0x1594e8;return this['recorder']['calls']()[_0xff05b0(0x94)](_0x18507b=>_0x18507b[_0xff05b0(0x9b)]===_0x3ce757);}};export{FakeWebDriver};
@@ -1,5 +1,5 @@
1
- import { i as LocatorValue, W as WebDriver, D as DriverContext, d as DriverPage } from '../interfaces-SzdtOj1F.js';
2
- export { j as LocatorStep, k as appendStep, l as describeLocator, m as isLocatorValue, r as rootedAt } from '../interfaces-SzdtOj1F.js';
1
+ import { j as LocatorValue, W as WebDriver, D as DriverContext, e as DriverPage } from '../interfaces-BluheUKs.js';
2
+ export { k as LocatorStep, l as appendStep, m as describeLocator, n as isLocatorValue, r as rootedAt } from '../interfaces-BluheUKs.js';
3
3
  import { Matcher, RegexLiteral, JudgeRequest, JudgeVerdict } from '@unotest/protocol';
4
4
  import { ExecutionWalker, ExecutionEvent, RunResult, RunOptions } from '@unotest/dsl/executor';
5
5
  export { ExecutionError, ExecutionEvent, RunOptions, RunResult } from '@unotest/dsl/executor';
@@ -322,7 +322,6 @@ declare class TestRuntimeManager {
322
322
  private requireActive;
323
323
  }
324
324
 
325
- /** Build a fully-populated FunctionRegistry. */
326
325
  declare function buildDefaultRegistry(): FunctionRegistry;
327
326
 
328
327
  export { AstExecutor, type DslArg, type DslArray, type DslFunction, type DslObject, type DslValue, FunctionRegistry, LocatorValue, TestRuntime, TestRuntimeManager, buildDefaultRegistry, chainGetByAltText, chainGetByLabel, chainGetByPlaceholder, chainGetByRole, chainGetByTestId, chainGetByText, chainGetByTitle, contentFrame, filter, first, getByAltText, getByLabel, getByPlaceholder, getByRole, getByTestId, getByText, getByTitle, last, locator, nth, randomNth, re };