@unotest/web 0.41.0 → 0.43.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.
- package/CHANGELOG.md +590 -3
- package/README.md +68 -6
- package/dist/config/schema.d.ts +111 -55
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +2 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +68 -4
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.d.ts +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +1 -1
- package/dist/{interfaces-B34N4rfI.d.ts → interfaces-7nMNCr2h.d.ts} +6 -0
- package/dist/{linter-Yf4gPe5J.d.ts → linter-BWSAYBQy.d.ts} +24 -0
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.d.ts +1 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +109 -7
- package/guides/dsl-reference.md +19 -0
- package/package.json +8 -8
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3695c4=_0x2469;(function(_0x1cd99f,_0x5101c9){const _0x52e71a={_0x1dae44:0x132,_0x1f6b16:0x144,_0x2422f8:0x164,_0x1b0c91:0x170},_0x2ad1dc=_0x2469,_0x2158f3=_0x1cd99f();while(!![]){try{const _0xa1b40=parseInt(_0x2ad1dc(0x13c))/0x1*(-parseInt(_0x2ad1dc(_0x52e71a._0x1dae44))/0x2)+parseInt(_0x2ad1dc(0x158))/0x3+-parseInt(_0x2ad1dc(0x178))/0x4+parseInt(_0x2ad1dc(_0x52e71a._0x1f6b16))/0x5+-parseInt(_0x2ad1dc(_0x52e71a._0x2422f8))/0x6*(parseInt(_0x2ad1dc(0x18c))/0x7)+-parseInt(_0x2ad1dc(0x187))/0x8+parseInt(_0x2ad1dc(_0x52e71a._0x1b0c91))/0x9*(parseInt(_0x2ad1dc(0x161))/0xa);if(_0xa1b40===_0x5101c9)break;else _0x2158f3['push'](_0x2158f3['shift']());}catch(_0x49c6e8){_0x2158f3['push'](_0x2158f3['shift']());}}}(_0x2dfa,0x48e77));var __defProp=Object[_0x3695c4(0x154)],__name=(_0x230de5,_0x25d2fc)=>__defProp(_0x230de5,_0x3695c4(0x182),{'value':_0x25d2fc,'configurable':!![]});function subscribe(_0xd9d3fe,_0x4faf37){const _0x1a35b6={_0x154d7c:0x135},_0x1e2a17=_0x3695c4;return _0xd9d3fe[_0x1e2a17(_0x1a35b6._0x154d7c)](_0x4faf37),()=>{const _0x2f11bd=_0x1e2a17;_0xd9d3fe[_0x2f11bd(0x140)](_0x4faf37);};}__name(subscribe,_0x3695c4(0x13b));import{UnotestError}from'@unotest/core';function _0x2dfa(){const _0x42c780=['z290BW','zgvMAw5LuhjVCgvYDhK','C2nYzwvUC2HVDa','CgfNzuXPC3q','z29cywnR','nZC1ntaWDKvIrKXx','B25ozxDqywDL','y2XVC2vgywTLugfNzq','zxzHBhvHDgvpBKXVy2f0B3i','y29UBMvJDfnOyxjLza','D2fPDezVCLrLEhq','BgvUz3rO','y2HLy2TLzfn0yxrL','z2v0q29VA2LL','oti2ndm4mhDpzvfPta','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','C2nVCgu','ndGZndaYCKPpz1f2','C3rLChm','C2nYzwvUC2HVDej5DgvZ','CgfNzxm','BMv0D29YA0vUDhjPzxm','y2XVC2u','y29UDgv4Dhm','BMv3q29UDgv4Da','Aw5UzxjuzxH0qNLezwzHDwX0','y2fSBhm','Dw5JAgvJAW','z2v0tg9JywXtDg9YywDL','ourMthDysa','zxHPDezYyw1L','y29UC29SzuvUDhjPzxm','AxnwAxnPyMXL','zMLSBa','y2HLy2S','ywjVDxq6yMXHBMS','AxneAxnHyMXLzej5rgvMyxvSDa','nZe0nduYDgXpD1fl','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','C2v0qwn0AxzLugfNzq','ywn0AxzLugfNzq','Aw5WDxrwywX1zq','Cg9WDxbpBKnSAwnR','zNjHBwvtDgfJAW','yxr0CMLIDxrLC0j5rgvMyxvSDa','y29VA2LLu3rHDgu','CMvJB3jKzxi','BMfTzq','iJ48l2rPDJ4','ywn0AxzLswr4','Bgf1BMnOzwq','lNbHz2uW','nde1odGWogflv3fbAa','zwXLBwvUDeHPBNrcEvjLzG','lNbHz2u','DgL0Bgu','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','mJfrvM5rzgO','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','Bwv0Ag9K','zMfRzsb0AxrSzq','DxbSB2fKrMLSzq','yxr0ywnOrxHPC3rPBMC','Bgf1BMnO','zxjYB3jpBK5LEhrby3rPB24','BMv3ugfNzuXPC3rLBMvYCW','Ag92zxi','Dgv4DenVBNrLBNq','C2v0tg9JywXtDg9YywDL','z2v0qxr0CMLIDxrL','tg9JyxrVCKvYCM9Y','Cg9W','Dgv4DenVBNrLBNrcEurLzMf1Bhq','zNjVBq','ChvZAa','zg91yMXLq2XPy2S','C2nYzwvUC2HVDevSzw1LBNq','A2LUza','zhjHz0fUzerYB3a','z29gB3j3yxjK','D2fPDezVCKXVywrtDgf0zq','B3v0zxjive1m','zw1PDezHA2vqB3b1Ca','AxnwAxnPyMXLqNLezwzHDwX0','zMLSDgvY','CMvM','y3r4','rhjPDMvYrxjYB3i','rMfRzvbHz2u','zNvUy3rPB24','CMvJB3jK','AxneAxnHyMXLza','D2fPDezVCG','Aw5UzxjuzxH0','y29VA2LLCW','D2fPDezVCK5HDMLNyxrPB24','CMvSB2fK','mtrOsKHhBM8','C2v0q29VA2LL','y3jLyxrLuMvJB3jKzxi','ywrK','C2vSzwn0t3b0Aw9U','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','y291BNq','y3vYCMvUDfvYBa','rMfRzvDLyKrYAxzLCG','C3vIC2nYAwjL','nJC5odvdshfJrw0','zhjPDMvY','rMfRzunVBNrLEhq','y2XPCgjVyxjKugfZDgu','zgvSzxrL','C2f2zvn0B3jHz2vtDgf0zq','zxzHBhvHDgu','Aw5WDxrwywX1zuj5rgvMyxvSDa','mJy0ody4nvrbqu5tzW','C3bSAwnL','ChjLC3m','y2XPy2S','yMvOyxzPB3i','Bg9JywXtDg9YywDLu3rHDgu','Bg9JywXtDg9YywDL','DxjS','D2fPDezVCLvYBa','Aw5PDgLHBfvYBa','Bwf5yMvuAhjVDW','zw50zxjgCMfTzq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','DhLWzq','C2nYB2XSsw50B1zPzxC'];_0x2dfa=function(){return _0x42c780;};return _0x2dfa();}var DriverError=class extends UnotestError{static{__name(this,_0x3695c4(0x128));}},LocatorError=class extends UnotestError{static{__name(this,_0x3695c4(0x199));}};function _0x2469(_0x264c37,_0x3f086a){_0x264c37=_0x264c37-0x121;const _0x2dfa80=_0x2dfa();let _0x2469d3=_0x2dfa80[_0x264c37];if(_0x2469['DWWRjd']===undefined){var _0x4f910f=function(_0x4777fe){const _0x562014='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x230de5='',_0x25d2fc='';for(let _0xd9d3fe=0x0,_0x4faf37,_0x17afd7,_0x10d015=0x0;_0x17afd7=_0x4777fe['charAt'](_0x10d015++);~_0x17afd7&&(_0x4faf37=_0xd9d3fe%0x4?_0x4faf37*0x40+_0x17afd7:_0x17afd7,_0xd9d3fe++%0x4)?_0x230de5+=String['fromCharCode'](0xff&_0x4faf37>>(-0x2*_0xd9d3fe&0x6)):0x0){_0x17afd7=_0x562014['indexOf'](_0x17afd7);}for(let _0x2d7206=0x0,_0x1e9c74=_0x230de5['length'];_0x2d7206<_0x1e9c74;_0x2d7206++){_0x25d2fc+='%'+('00'+_0x230de5['charCodeAt'](_0x2d7206)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25d2fc);};_0x2469['CBrzCq']=_0x4f910f,_0x2469['iwBckE']={},_0x2469['DWWRjd']=!![];}const _0x2b262e=_0x2dfa80[0x0],_0xb57c3a=_0x264c37+_0x2b262e,_0xaeddf3=_0x2469['iwBckE'][_0xb57c3a];return!_0xaeddf3?(_0x2469d3=_0x2469['CBrzCq'](_0x2469d3),_0x2469['iwBckE'][_0xb57c3a]=_0x2469d3):_0x2469d3=_0xaeddf3,_0x2469d3;}function createRecorder(){const _0x4c346f=_0x3695c4,_0x17afd7=[];let _0x10d015=0x0;return{'push':__name(_0x2d7206=>_0x17afd7['push']({..._0x2d7206,'seq':_0x10d015++}),'push'),'calls':__name(()=>_0x17afd7,_0x4c346f(0x16d))};}__name(createRecorder,_0x3695c4(0x134));var FakePage=class{constructor(_0x1e9c74,_0x42ea4b,_0x18dc98,_0x38d97b){const _0x19952e={_0x1095a1:0x139},_0x2dba1d=_0x3695c4;this[_0x2dba1d(0x181)]=_0x1e9c74,this['behavior']=_0x42ea4b,this['scope']=_0x18dc98,this[_0x2dba1d(_0x19952e._0x1095a1)]=_0x38d97b;}[_0x3695c4(0x181)];[_0x3695c4(0x148)];['scope'];static{__name(this,_0x3695c4(0x129));}[_0x3695c4(0x139)];['onAfterClick'];[_0x3695c4(0x12b)](_0x289b23,_0x28913e){const _0x1df281={_0x12939c:0x181,_0x50b771:0x163},_0x332539=_0x3695c4;this[_0x332539(_0x1df281._0x12939c)][_0x332539(0x19d)]({'scope':this[_0x332539(_0x1df281._0x50b771)],'method':_0x289b23,'args':_0x28913e});}[_0x3695c4(0x14e)](){const _0x1d5f42={_0x5544d8:0x193,_0xc2e48f:0x193},_0x3c7816=_0x3695c4;if(this['behavior'][_0x3c7816(0x193)]){const _0x592ff2=this[_0x3c7816(0x148)][_0x3c7816(_0x1d5f42._0x5544d8)];this[_0x3c7816(0x148)][_0x3c7816(_0x1d5f42._0xc2e48f)]=void 0x0;throw _0x592ff2;}}[_0x3695c4(0x14b)](){const _0x4accca={_0x29895c:0x139},_0x316248=_0x3695c4;return this[_0x316248(_0x4accca._0x29895c)];}async[_0x3695c4(0x18a)](){const _0x5eb9b1=_0x3695c4;return this[_0x5eb9b1(0x12b)]('title',[]),_0x5eb9b1(0x18f);}async['click'](_0x444697,_0x5b7259){const _0x146a3d=_0x3695c4;this[_0x146a3d(0x12b)](_0x146a3d(0x147),[_0x444697,_0x5b7259]),this['maybeThrow'](),this['onAfterClick']?.();}async['doubleClick'](_0x52b8da,_0x597e3c){const _0x256530={_0x1d290b:0x14e},_0x23f99a=_0x3695c4;this[_0x23f99a(0x12b)](_0x23f99a(0x19e),[_0x52b8da,_0x597e3c]),this[_0x23f99a(_0x256530._0x1d290b)]();}async[_0x3695c4(0x174)](_0x31f0cd,_0x125a52,_0x1de587){const _0x6dc283={_0x175a56:0x174},_0x42cf79=_0x3695c4;this[_0x42cf79(0x12b)](_0x42cf79(_0x6dc283._0x175a56),[_0x31f0cd,_0x125a52,_0x1de587]),this['maybeThrow']();}async[_0x3695c4(0x146)](_0x184c64,_0x19ce36,_0x1d3700){const _0x3f5934={_0x37ef2e:0x12b},_0x5c736b=_0x3695c4;this[_0x5c736b(_0x3f5934._0x37ef2e)]('press',[_0x184c64,_0x19ce36,_0x1d3700]),this['maybeThrow']();}async[_0x3695c4(0x175)](_0x598514,_0x1cec71){const _0xb740a4={_0x7b976c:0x175},_0x17d1f1=_0x3695c4;this[_0x17d1f1(0x12b)](_0x17d1f1(_0xb740a4._0x7b976c),[_0x598514,_0x1cec71]),this[_0x17d1f1(0x14e)]();}async[_0x3695c4(0x16e)](_0x4dda3d,_0x3d017c){const _0xb072f1={_0x507e4b:0x16e,_0x278018:0x14e},_0x2851df=_0x3695c4;this['record'](_0x2851df(_0xb072f1._0x507e4b),[_0x4dda3d,_0x3d017c]),this[_0x2851df(_0xb072f1._0x278018)]();}async['selectOption'](_0x52c094,_0x11627e,_0x1f1f90){const _0x198f83={_0xd1d014:0x12b},_0x2c1da4=_0x3695c4;this[_0x2c1da4(_0x198f83._0xd1d014)](_0x2c1da4(0x136),[_0x52c094,_0x11627e,_0x1f1f90]),this[_0x2c1da4(0x14e)]();}async[_0x3695c4(0x195)](_0x30917f,_0x26226b){const _0x28cec8=_0x3695c4;this[_0x28cec8(0x12b)]('hover',[_0x30917f,_0x26226b]),this['maybeThrow']();}async[_0x3695c4(0x152)](_0x4c553d){const _0x58a30={_0x41d77a:0x12b,_0x1b1ea1:0x152},_0x33e5ab=_0x3695c4;this[_0x33e5ab(_0x58a30._0x41d77a)](_0x33e5ab(_0x58a30._0x1b1ea1),[_0x4c553d]),this[_0x33e5ab(0x14e)]();}async[_0x3695c4(0x1a1)](_0x4a466b,_0x13ac5a,_0x465c85){const _0x47e780=_0x3695c4;this[_0x47e780(0x12b)]('dragAndDrop',[_0x4a466b,_0x13ac5a,_0x465c85]),this['maybeThrow']();}async['uploadFile'](_0x129367,_0x277839){const _0xf06c3e={_0x27938c:0x12b,_0x33d922:0x190,_0x249571:0x14e},_0x476ba4=_0x3695c4;this[_0x476ba4(_0xf06c3e._0x27938c)](_0x476ba4(_0xf06c3e._0x33d922),[_0x129367,_0x277839]),this[_0x476ba4(_0xf06c3e._0x249571)]();}async[_0x3695c4(0x13f)](_0x136d37,_0x5ce226){const _0x231831={_0xb750e6:0x12b,_0x4c33c3:0x14e},_0x4fda46=_0x3695c4;this[_0x4fda46(_0x231831._0xb750e6)](_0x4fda46(0x13f),[_0x136d37,_0x5ce226]),this[_0x4fda46(_0x231831._0x4c33c3)]();}async[_0x3695c4(0x138)](_0x21b88d){const _0x11515b={_0x3724bb:0x148},_0x1259db=_0x3695c4;return this[_0x1259db(0x12b)](_0x1259db(0x138),[_0x21b88d]),this[_0x1259db(_0x11515b._0x3724bb)]['countByDefault']??0x1;}async[_0x3695c4(0x196)](_0x415f4b){const _0x529195={_0x508c93:0x196,_0x575c34:0x19b},_0x3e8600=_0x3695c4;return this['record'](_0x3e8600(_0x529195._0x508c93),[_0x415f4b]),this[_0x3e8600(0x148)][_0x3e8600(_0x529195._0x575c34)]??'';}async[_0x3695c4(0x12e)](_0x58b54f){const _0x7da497={_0xedaef4:0x12e,_0x41af57:0x19b},_0x57481f=_0x3695c4;return this['record'](_0x57481f(_0x7da497._0xedaef4),[_0x58b54f]),this[_0x57481f(0x148)][_0x57481f(0x16c)]??this['behavior'][_0x57481f(_0x7da497._0x41af57)]??'';}async[_0x3695c4(0x17c)](_0x4693ea){const _0xadbbf6={_0x30276b:0x12b,_0x426d68:0x17c,_0x52ec2c:0x148},_0x577fc4=_0x3695c4;return this[_0x577fc4(_0xadbbf6._0x30276b)](_0x577fc4(_0xadbbf6._0x426d68),[_0x4693ea]),this[_0x577fc4(_0xadbbf6._0x52ec2c)][_0x577fc4(0x143)]??'';}async['checkedState'](_0x556e00){const _0x12738b={_0xcbfb02:0x12b,_0xda9c8a:0x15f,_0x2c044a:0x148},_0x3ee6bf=_0x3695c4;return this[_0x3ee6bf(_0x12738b._0xcbfb02)](_0x3ee6bf(_0x12738b._0xda9c8a),[_0x556e00]),this[_0x3ee6bf(_0x12738b._0x2c044a)]['checkedStateByDefault']??null;}async[_0x3695c4(0x173)](_0x100211){const _0x382a4b={_0x56b35e:0x148},_0x1baa4d=_0x3695c4;return this[_0x1baa4d(0x12b)]('isVisible',[_0x100211]),this[_0x1baa4d(_0x382a4b._0x56b35e)][_0x1baa4d(0x124)]??!![];}async['isDisabled'](_0x354c1c){const _0x13917f={_0x24e365:0x148,_0x5d8fd5:0x177},_0x57a6e6=_0x3695c4;return this['record'](_0x57a6e6(0x12c),[_0x354c1c]),this[_0x57a6e6(_0x13917f._0x24e365)][_0x57a6e6(_0x13917f._0x5d8fd5)]??![];}async[_0x3695c4(0x198)](_0x33fd45,_0x2c0025){const _0x4d6afd={_0x4b8201:0x12b,_0x2947c5:0x198,_0x27ddd7:0x148},_0x86a8b4=_0x3695c4;return this[_0x86a8b4(_0x4d6afd._0x4b8201)](_0x86a8b4(_0x4d6afd._0x2947c5),[_0x33fd45,_0x2c0025]),this[_0x86a8b4(_0x4d6afd._0x27ddd7)][_0x86a8b4(0x17f)]?.[_0x2c0025]??null;}async[_0x3695c4(0x12d)](_0x286a06,_0x56b70c){const _0x3b4c5f={_0x3868d1:0x12d},_0x56d619=_0x3695c4;this[_0x56d619(0x12b)](_0x56d619(_0x3b4c5f._0x3868d1),[_0x286a06,_0x56b70c]);}async[_0x3695c4(0x14c)](_0x325bf2,_0x3ca9a8){const _0x2d0547=_0x3695c4;this[_0x2d0547(0x12b)](_0x2d0547(0x14c),[_0x325bf2,_0x3ca9a8]);}async[_0x3695c4(0x15d)](_0x46c970,_0xee1c0d){const _0x2d55e7=_0x3695c4;this[_0x2d55e7(0x12b)](_0x2d55e7(0x15d),[_0x46c970,_0xee1c0d]);}async['waitForNavigation'](_0x60859c){const _0x22de98=_0x3695c4;this[_0x22de98(0x12b)](_0x22de98(0x130),[_0x60859c]);}async[_0x3695c4(0x121)](_0xbb0c03,_0x290cb4){const _0x50d4f9=_0x3695c4;this[_0x50d4f9(0x12b)](_0x50d4f9(0x121),[_0xbb0c03,_0x290cb4]);}async['goto'](_0x13a69e,_0x3cf9cf){const _0x5e55f5={_0x3e3920:0x12b},_0x728e0b=_0x3695c4;this[_0x728e0b(_0x5e55f5._0x3e3920)](_0x728e0b(0x153),[_0x13a69e,_0x3cf9cf]),this[_0x728e0b(0x139)]=_0x13a69e;}async[_0x3695c4(0x131)](_0x4c5f0b){const _0xcef00e={_0x393680:0x12b,_0x4efa41:0x131},_0x4cde05=_0x3695c4;this[_0x4cde05(_0xcef00e._0x393680)](_0x4cde05(_0xcef00e._0x4efa41),[_0x4c5f0b]);}async[_0x3695c4(0x157)](_0x3b6678){const _0x448bed=_0x3695c4;this[_0x448bed(0x12b)](_0x448bed(0x157),[_0x3b6678]);}async[_0x3695c4(0x1a2)](_0x539c5a){const _0x3d8893={_0x4fb60e:0x12b},_0x59fc70=_0x3695c4;this[_0x59fc70(_0x3d8893._0x4fb60e)](_0x59fc70(0x1a2),[_0x539c5a]);}async[_0x3695c4(0x142)](_0x164a04){const _0x27f59d={_0x33ab5b:0x12b},_0x540204=_0x3695c4;return this[_0x540204(_0x27f59d._0x33ab5b)]('evaluate',[_0x164a04]),this['behavior']['evaluateResult'];}async['evaluateOnLocator'](_0x2dba6b,_0x2b55e7){const _0x1c8dd3=_0x3695c4;return this[_0x1c8dd3(0x12b)](_0x1c8dd3(0x15b),[_0x2dba6b,_0x2b55e7]),void 0x0;}async['inspectElement'](_0x333384){const _0x247359={_0x76d50b:0x165,_0x1d28d2:0x148},_0x538695=_0x3695c4;this[_0x538695(0x12b)]('inspectElement',[_0x333384]);if(_0x333384['steps'][_0x538695(0x15e)]!==0x1||_0x333384[_0x538695(0x165)][0x0]['kind']!=='ref')return null;const _0xa92e9b=_0x333384[_0x538695(_0x247359._0x76d50b)][0x0][_0x538695(0x126)],_0x3dc737=this[_0x538695(_0x247359._0x1d28d2)][_0x538695(0x188)]?.[_0xa92e9b];return _0x3dc737??null;}async['screenshot'](_0x3eea5c){const _0x583fbd={_0x4095fd:0x151},_0x3f4dd2=_0x3695c4;return this[_0x3f4dd2(0x12b)](_0x3f4dd2(0x155),[_0x3eea5c]),this['screenshotBytes'](_0x3eea5c?.[_0x3f4dd2(_0x583fbd._0x4095fd)]);}async[_0x3695c4(0x19f)](_0x484b55,_0x509368){const _0x4b9326={_0x276c49:0x166},_0xfac605=_0x3695c4;return this[_0xfac605(0x12b)](_0xfac605(0x19f),[_0x484b55,_0x509368]),this[_0xfac605(_0x4b9326._0x276c49)](_0x509368?.[_0xfac605(0x151)]);}[_0x3695c4(0x166)](_0x1b2ae6){const _0x409b4e={_0x514a12:0x148,_0x3397f8:0x12a},_0x592271=_0x3695c4,_0xd42ed1=this[_0x592271(_0x409b4e._0x514a12)][_0x592271(0x166)];if(_0xd42ed1===void 0x0)return Buffer[_0x592271(0x19c)]('fake-png');return typeof _0xd42ed1===_0x592271(_0x409b4e._0x3397f8)?_0xd42ed1(_0x1b2ae6):_0xd42ed1;}async[_0x3695c4(0x122)](_0x2c84b1){const _0xd6d667={_0x11f48f:0x12b,_0xd16fb5:0x165,_0x557546:0x165,_0x3a624e:0x148,_0xb88cbe:0x183},_0x36734a=_0x3695c4;this[_0x36734a(_0xd6d667._0x11f48f)]('outerHTML',[_0x2c84b1]);if(_0x2c84b1[_0x36734a(_0xd6d667._0xd16fb5)][_0x36734a(0x15e)]===0x1&&_0x2c84b1[_0x36734a(_0xd6d667._0x557546)][0x0][_0x36734a(0x1a0)]===_0x36734a(0x126)){const _0x89605a=_0x2c84b1['steps'][0x0]['ref'];return this[_0x36734a(_0xd6d667._0x3a624e)]['outerHtmlByRef']?.[_0x89605a]??_0x36734a(0x137)+_0x89605a+_0x36734a(_0xd6d667._0xb88cbe);}return'<div></div>';}},FakeContext=class{constructor(_0x29662e,_0x30860b,_0x2b0b69){const _0xd5e141={_0x26f0e7:0x186,_0x3a8b67:0x14d,_0x4ece49:0x180},_0x50a6c6={_0x43474:0x123},_0x3db572=_0x3695c4;this[_0x3db572(0x181)]=_0x29662e,this[_0x3db572(0x148)]=_0x30860b,this[_0x3db572(0x163)]=_0x2b0b69;const _0x1f1477=new FakePage(_0x29662e,_0x30860b,_0x2b0b69+_0x3db572(_0xd5e141._0x26f0e7),_0x30860b[_0x3db572(_0xd5e141._0x3a8b67)]??_0x3db572(0x176));_0x30860b['popupOnClick']&&(_0x1f1477['onAfterClick']=()=>{const _0x18a7a0=_0x3db572;this[_0x18a7a0(_0x50a6c6._0x43474)](_0x30860b[_0x18a7a0(0x17d)]);}),this['pageList']=[_0x1f1477],this[_0x3db572(0x149)]={..._0x30860b[_0x3db572(0x14a)]??{}},this[_0x3db572(_0xd5e141._0x4ece49)]={..._0x30860b[_0x3db572(0x12f)]??{}};}[_0x3695c4(0x181)];[_0x3695c4(0x148)];[_0x3695c4(0x163)];static{__name(this,_0x3695c4(0x13e));}[_0x3695c4(0x156)];['activeIdx']=0x0;[_0x3695c4(0x17e)]=[];[_0x3695c4(0x149)];[_0x3695c4(0x180)];['newPageListeners']=new Set();[_0x3695c4(0x12b)](_0x3a7b5f,_0x41be94){const _0x580c35={_0x164bf8:0x181,_0x7273a9:0x19d},_0x289906=_0x3695c4;this[_0x289906(_0x580c35._0x164bf8)][_0x289906(_0x580c35._0x7273a9)]({'scope':this['scope'],'method':_0x3a7b5f,'args':_0x41be94});}[_0x3695c4(0x167)](){const _0x4fc920={_0x28dc12:0x156},_0x320fd4=_0x3695c4;return this[_0x320fd4(_0x4fc920._0x28dc12)];}[_0x3695c4(0x17b)](){const _0x15ca68={_0x4b1142:0x150,_0x39662b:0x184},_0x41f432=_0x3695c4,_0x4aabd7=this[_0x41f432(0x156)][this['activeIdx']];if(!_0x4aabd7)throw new DriverError(_0x41f432(_0x15ca68._0x4b1142),{'activeIdx':this[_0x41f432(_0x15ca68._0x39662b)]});return _0x4aabd7;}['consoleEntries'](){const _0x5a696c={_0x5ec506:0x172},_0x2b6f21=_0x3695c4;return this[_0x2b6f21(0x148)][_0x2b6f21(_0x5a696c._0x5ec506)]??[];}[_0x3695c4(0x168)](){const _0x26564c={_0x5af449:0x148,_0x1cd82f:0x168},_0x1f1fbb=_0x3695c4;return this[_0x1f1fbb(_0x26564c._0x5af449)][_0x1f1fbb(_0x26564c._0x1cd82f)]??[];}async['setActivePage'](_0x5ae170){const _0xd595bf={_0x422782:0x156,_0x5f4b52:0x17e},_0x3ed08f=_0x3695c4;this[_0x3ed08f(0x12b)](_0x3ed08f(0x17a),[_0x5ae170]);if(_0x5ae170<0x0||_0x5ae170>=this['pageList']['length'])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x5ae170,'available':this[_0x3ed08f(_0xd595bf._0x422782)]['length']});this['activeIdx']=_0x5ae170,this[_0x3ed08f(_0xd595bf._0x5f4b52)][_0x3ed08f(0x15e)]=0x0;}[_0x3695c4(0x159)](_0x503acb){const _0xe938a0=_0x3695c4;return subscribe(this[_0xe938a0(0x194)],_0x503acb);}['emitFakePopup'](_0x1e7529){const _0x383f1a={_0xea6d3d:0x163,_0xad787f:0x189,_0x2934b8:0x15e,_0x4a1205:0x181,_0x2fc136:0x156,_0x34ea06:0x15e,_0x523a0c:0x194},_0x114e80=_0x3695c4,_0x413af8=this[_0x114e80(_0x383f1a._0xea6d3d)]+_0x114e80(_0x383f1a._0xad787f)+this[_0x114e80(0x156)][_0x114e80(_0x383f1a._0x2934b8)],_0x135ebb=new FakePage(this[_0x114e80(_0x383f1a._0x4a1205)],this[_0x114e80(0x148)],_0x413af8,_0x1e7529);this[_0x114e80(_0x383f1a._0x2fc136)][_0x114e80(0x19d)](_0x135ebb);const _0x25fcb5=this[_0x114e80(_0x383f1a._0x2fc136)][_0x114e80(_0x383f1a._0x34ea06)]-0x1;for(const _0x4d4d6f of this[_0x114e80(_0x383f1a._0x523a0c)]){try{_0x4d4d6f({'index':_0x25fcb5,'url':_0x1e7529});}catch{}}return _0x25fcb5;}[_0x3695c4(0x15a)](_0x3acd06){const _0x3abd58={_0xc48ea0:0x15e,_0x281123:0x145},_0x5ca9eb=_0x3695c4;if(_0x3acd06<0x0||_0x3acd06>=this['pageList'][_0x5ca9eb(_0x3abd58._0xc48ea0)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x3acd06,'available':this[_0x5ca9eb(0x156)]['length']});this[_0x5ca9eb(0x156)][_0x5ca9eb(_0x3abd58._0x281123)](_0x3acd06,0x1);}async['enterFrame'](_0x102457){const _0x25cd99={_0x3dbdf1:0x12b,_0x40e20:0x14f,_0x4d358b:0x165,_0x473b7e:0x19d},_0x5c50da=_0x3695c4;this[_0x5c50da(_0x25cd99._0x3dbdf1)](_0x5c50da(_0x25cd99._0x40e20),[_0x102457]);if(!_0x102457[_0x5c50da(_0x25cd99._0x4d358b)]['length'])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x102457});this['frameStack'][_0x5c50da(_0x25cd99._0x473b7e)](_0x102457);}async[_0x3695c4(0x171)](){const _0x47539c={_0x1fdbf5:0x12b,_0x4f89e3:0x171,_0x541335:0x15e,_0xe21962:0x179,_0x426a19:0x17e,_0x3a8bf6:0x19a},_0x3b82c2=_0x3695c4;this[_0x3b82c2(_0x47539c._0x1fdbf5)](_0x3b82c2(_0x47539c._0x4f89e3),[]);if(this[_0x3b82c2(0x17e)][_0x3b82c2(_0x47539c._0x541335)]===0x0)throw new DriverError(_0x3b82c2(_0x47539c._0xe21962),{});this[_0x3b82c2(_0x47539c._0x426a19)][_0x3b82c2(_0x47539c._0x3a8bf6)]();}async[_0x3695c4(0x197)](_0x265b49,_0x24c1aa){const _0x3bcc93=_0x3695c4;this['record'](_0x3bcc93(0x197),[_0x265b49,_0x24c1aa]),this['localStorageState'][_0x265b49]=_0x24c1aa;}async['getLocalStorage'](_0x2ef9e6){const _0x4fc33b=_0x3695c4;return this[_0x4fc33b(0x12b)](_0x4fc33b(0x16f),[_0x2ef9e6]),this[_0x4fc33b(0x149)][_0x2ef9e6]??null;}async[_0x3695c4(0x133)](_0x27fc67,_0x11d1d4,_0x3fe7b1){const _0x38d6a5={_0x3972bc:0x12b,_0x5048a0:0x133,_0x14af47:0x180},_0x4acf97=_0x3695c4;this[_0x4acf97(_0x38d6a5._0x3972bc)](_0x4acf97(_0x38d6a5._0x5048a0),[_0x27fc67,_0x11d1d4,_0x3fe7b1]),this[_0x4acf97(_0x38d6a5._0x14af47)][_0x27fc67]=_0x11d1d4;}async[_0x3695c4(0x160)](_0x75bcbc){const _0x497e47=_0x3695c4;return this[_0x497e47(0x12b)](_0x497e47(0x160),[_0x75bcbc]),this[_0x497e47(0x180)][_0x75bcbc]??null;}async['saveStorageState'](_0x2042a7){const _0x4a2e52={_0x461cd3:0x141},_0x50e9e5=_0x3695c4;this['record'](_0x50e9e5(_0x4a2e52._0x461cd3),[_0x2042a7]);}async['evaluate'](_0x373f15){const _0x3bfd8b={_0x4e9ba4:0x12b},_0x1570ff=_0x3695c4;return this[_0x1570ff(_0x3bfd8b._0x4e9ba4)]('evaluate',[_0x373f15]),void 0x0;}async[_0x3695c4(0x169)](){const _0x596033={_0x5f018d:0x12b},_0x56da5b=_0x3695c4;this[_0x56da5b(_0x596033._0x5f018d)]('close',[]);}['frameDepth'](){const _0x40d1cf={_0x151981:0x17e},_0x5021e3=_0x3695c4;return this[_0x5021e3(_0x40d1cf._0x151981)][_0x5021e3(0x15e)];}},FakeWebDriver=class{constructor(_0xfe3354={}){const _0x483d2f=_0x3695c4;this['behavior']=_0xfe3354,this[_0x483d2f(0x181)]=createRecorder();}[_0x3695c4(0x148)];static{__name(this,_0x3695c4(0x13a));}[_0x3695c4(0x185)]=![];[_0x3695c4(0x181)];[_0x3695c4(0x16a)]=[];async[_0x3695c4(0x192)](_0x333fe8){const _0x24904f={_0x3c788f:0x19d,_0x499872:0x13d},_0x21ef18=_0x3695c4;this['recorder'][_0x21ef18(_0x24904f._0x3c788f)]({'scope':_0x21ef18(_0x24904f._0x499872),'method':_0x21ef18(0x192),'args':[_0x333fe8]}),this[_0x21ef18(0x185)]=!![];}async[_0x3695c4(0x16b)](_0xe9a0f){const _0x2f2f00={_0x52095b:0x13d,_0x7200be:0x18b,_0x1d7f9f:0x181,_0x21c333:0x148,_0x44d9dc:0x16a,_0x11f7b6:0x19d},_0x1b39dc=_0x3695c4;this['recorder'][_0x1b39dc(0x19d)]({'scope':_0x1b39dc(_0x2f2f00._0x52095b),'method':'newContext','args':[_0xe9a0f]});if(!this['launched'])throw new DriverError(_0x1b39dc(_0x2f2f00._0x7200be),{});const _0x55ed7a=new FakeContext(this[_0x1b39dc(_0x2f2f00._0x1d7f9f)],this[_0x1b39dc(_0x2f2f00._0x21c333)],_0x1b39dc(0x127)+this['contexts'][_0x1b39dc(0x15e)]);return this[_0x1b39dc(_0x2f2f00._0x44d9dc)][_0x1b39dc(_0x2f2f00._0x11f7b6)](_0x55ed7a),_0x55ed7a;}async[_0x3695c4(0x169)](){const _0xedb549={_0x1108b8:0x181,_0x35b889:0x185},_0x582331=_0x3695c4;this[_0x582331(_0xedb549._0x1108b8)][_0x582331(0x19d)]({'scope':_0x582331(0x13d),'method':'close','args':[]}),this[_0x582331(_0xedb549._0x35b889)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x3695c4(0x15c)](){const _0x33cbaf={_0x508db9:0x162},_0x363553=_0x3695c4;throw new DriverError(_0x363553(_0x33cbaf._0x508db9),{});}[_0x3695c4(0x191)](_0x405cfc){const _0x59a824={_0x36d4ae:0x18d},_0x26b7be=_0x3695c4;throw new DriverError(_0x26b7be(_0x59a824._0x36d4ae),{});}[_0x3695c4(0x16d)](){const _0x414f2f=_0x3695c4;return this[_0x414f2f(0x181)][_0x414f2f(0x16d)]();}['callsFor'](_0x2d2e83){const _0x1526a5=_0x3695c4;return this[_0x1526a5(0x181)]['calls']()[_0x1526a5(0x125)](_0x43e54f=>_0x43e54f[_0x1526a5(0x18e)]===_0x2d2e83);}};export{FakeWebDriver};
|
|
1
|
+
const _0x36c638=_0x259f;(function(_0x19efe8,_0x15e9a1){const _0x17611f={_0x527417:0x17d,_0x58afc6:0x167,_0x2f84d9:0x13f,_0x5670ca:0x168,_0x28140f:0x15c},_0x4d2156=_0x259f,_0x26c1bd=_0x19efe8();while(!![]){try{const _0x204a0f=parseInt(_0x4d2156(0x146))/0x1+parseInt(_0x4d2156(_0x17611f._0x527417))/0x2+parseInt(_0x4d2156(_0x17611f._0x58afc6))/0x3+-parseInt(_0x4d2156(_0x17611f._0x2f84d9))/0x4+parseInt(_0x4d2156(_0x17611f._0x5670ca))/0x5*(-parseInt(_0x4d2156(0x174))/0x6)+-parseInt(_0x4d2156(0x19b))/0x7*(parseInt(_0x4d2156(0x15f))/0x8)+parseInt(_0x4d2156(_0x17611f._0x28140f))/0x9;if(_0x204a0f===_0x15e9a1)break;else _0x26c1bd['push'](_0x26c1bd['shift']());}catch(_0x3c11b9){_0x26c1bd['push'](_0x26c1bd['shift']());}}}(_0x4c32,0x44af3));var __defProp=Object['defineProperty'],__name=(_0x5e421b,_0x2ab47c)=>__defProp(_0x5e421b,_0x36c638(0x15a),{'value':_0x2ab47c,'configurable':!![]});function _0x4c32(){const _0x3f188e=['nZmZmJy2s0n0zKvf','mtiXmJvZDNLSCu8','z290BW','C2nYzwvUC2HVDevSzw1LBNq','AxnwAxnPyMXL','C2v0q29VA2LL','Dw5JAgvJAW','Dgv4DenVBNrLBNrcEurLzMf1Bhq','CMvJB3jKzxi','z2v0q29VA2LL','zNjHBwvezxb0Aa','y2HLy2S','C3vIC2nYAwjL','ntqWqLzNr3np','y2HLy2TLzfn0yxrL','Ag92zxi','lNbHz2uW','rMfRzvbHz2u','AxneAxnHyMXLza','y2XPy2S','y2fSBhngB3i','C3rLChm','mta1nZuWnNPICfbjCW','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','zMLSBa','y2fSBhm','zxzHBhvHDgvpBKXVy2f0B3i','Bgf1BMnOzwq','CgfNzxm','D2fPDezVCLrLEhq','y2HLy2TLzfn0yxrLqNLezwzHDwX0','z29cywnR','C2f2zvn0B3jHz2vtDgf0zq','z2v0tg9JywXtDg9YywDL','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','iJ48l2rPDJ4','CgfNzuXPC3q','Aw5UzxjuzxH0','AxneAxnHyMXLzej5rgvMyxvSDa','Bgf1BMnO','y2XVC2vgywTLugfNzq','yxr0CMLIDxrLC0j5rgvMyxvSDa','zw1PDezHA2vqB3b1Ca','C2v0qwn0AxzLugfNzq','yxr0ywnOrxHPC3rPBMC','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','zxzHBhvHDgu','zxjYB3jpBK5LEhrby3rPB24','C2nVCgu','Bg9JywXtDg9YywDLu3rHDgu','DgL0Bgu','Dgv4DenVBNrLBNq','mJC0otC3nvfTAMHbrW','zhjHz0fUzerYB3a','rMfRzunVBNrLEhq','pgrPDJ48l2rPDJ4','ywn0AxzLswr4','DxjS','lNbHz2u','BMv0D29YA0vUDhjPzxm','y29UC29SzuvUDhjPzxm','C2nYzwvUC2HVDej5DgvZ','BgvUz3rO','BMv3q29UDgv4Da','D3nfBMrWB2LUDa','Cg9W','Bwf5yMvuAhjVDW','y29VA2LLu3rHDgu','D2fPDezVCLvYBa','Aw5WDxrwywX1zuj5rgvMyxvSDa','DhLWzq','CMvJB3jK','B25ozxDqywDL','zNjHBwvtDgfJAW','zxzHBhvHDgvszxn1Bhq','C2v0tg9JywXtDg9YywDL','rhjPDMvYrxjYB3i','A2LUza','mty5nJe5mNrRvvLzwa','Aw5WDxrwywX1zq','C3bSAwnL','zMfRzs1WBMC','CMvM','CMvSB2fK','y2XPCgjVyxjKugfZDgu','mZKYndqZveznEuX6','zgvSzxrL','Cg9WDxbpBKnSAwnR','y29VA2LLCW','zg91yMXLq2XPy2S','C2vSzwn0t3b0Aw9U','yMvOyxzPB3i','z29gB3j3yxjK','y29UDgv4Dhm','B3v0zxjiDg1SqNLszwy','zNvUy3rPB24','B25bzNrLCKnSAwnR','B3v0zxjive1m','C2nYB2XSsw50B1zPzxC','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','DxbSB2fKrMLSzq','y291BNq','Aw5ZCgvJDevSzw1LBNq','ChvZAa','BMv3ugfNzuXPC3rLBMvYCW','BMfTzq','zhjPDMvY','mtm1nZuYnefxAMnwrq','y2XVC2u','zw50zxjgCMfTzq','oeLkCuXbBG','D2fPDezVCG','D2fPDezVCKXVywrtDgf0zq','zxHPDezYyw1L','y3vYCMvUDfvYBa','C2nYzwvUC2HVDa','tg9JyxrVCKvYCM9Y','z2v0qxr0CMLIDxrL'];_0x4c32=function(){return _0x3f188e;};return _0x4c32();}function subscribe(_0x14dec1,_0x86dc39){const _0x18e6dc={_0x35d235:0x147};return _0x14dec1['add'](_0x86dc39),()=>{const _0x352cb7=_0x259f;_0x14dec1[_0x352cb7(_0x18e6dc._0x35d235)](_0x86dc39);};}function _0x259f(_0x378a54,_0x2823ec){_0x378a54=_0x378a54-0x13f;const _0x4c32cd=_0x4c32();let _0x259f30=_0x4c32cd[_0x378a54];if(_0x259f['fqsYRa']===undefined){var _0x3d1fcf=function(_0x5adf40){const _0x4bbdc7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e421b='',_0x2ab47c='';for(let _0x14dec1=0x0,_0x86dc39,_0x39cc01,_0x391e50=0x0;_0x39cc01=_0x5adf40['charAt'](_0x391e50++);~_0x39cc01&&(_0x86dc39=_0x14dec1%0x4?_0x86dc39*0x40+_0x39cc01:_0x39cc01,_0x14dec1++%0x4)?_0x5e421b+=String['fromCharCode'](0xff&_0x86dc39>>(-0x2*_0x14dec1&0x6)):0x0){_0x39cc01=_0x4bbdc7['indexOf'](_0x39cc01);}for(let _0xe45d0=0x0,_0x2acf36=_0x5e421b['length'];_0xe45d0<_0x2acf36;_0xe45d0++){_0x2ab47c+='%'+('00'+_0x5e421b['charCodeAt'](_0xe45d0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ab47c);};_0x259f['swvlrN']=_0x3d1fcf,_0x259f['OnhmPU']={},_0x259f['fqsYRa']=!![];}const _0x36c961=_0x4c32cd[0x0],_0x145f24=_0x378a54+_0x36c961,_0x41b508=_0x259f['OnhmPU'][_0x145f24];return!_0x41b508?(_0x259f30=_0x259f['swvlrN'](_0x259f30),_0x259f['OnhmPU'][_0x145f24]=_0x259f30):_0x259f30=_0x41b508,_0x259f30;}__name(subscribe,_0x36c638(0x173));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x36c638(0x1b3));}},LocatorError=class extends UnotestError{static{__name(this,_0x36c638(0x165));}};function createRecorder(){const _0x54a8c2={_0x3525fc:0x158,_0x699e1f:0x180},_0x320230=_0x36c638,_0x39cc01=[];let _0x391e50=0x0;return{'push':__name(_0xe45d0=>_0x39cc01[_0x320230(0x158)]({..._0xe45d0,'seq':_0x391e50++}),_0x320230(_0x54a8c2._0x3525fc)),'calls':__name(()=>_0x39cc01,_0x320230(_0x54a8c2._0x699e1f))};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x2acf36,_0x313a84,_0x42270a,_0x73cc5b){const _0x31244a={_0x3d62ca:0x14c},_0x2c4160=_0x36c638;this['recorder']=_0x2acf36,this[_0x2c4160(_0x31244a._0x3d62ca)]=_0x313a84,this[_0x2c4160(0x197)]=_0x42270a,this[_0x2c4160(0x163)]=_0x73cc5b;}['recorder'];['behavior'];[_0x36c638(0x197)];static{__name(this,_0x36c638(0x178));}[_0x36c638(0x163)];[_0x36c638(0x151)];[_0x36c638(0x1ae)](_0x2e98c8,_0xf1f5d0){const _0x3ff3b2=_0x36c638;this[_0x3ff3b2(0x16f)]['push']({'scope':this[_0x3ff3b2(0x197)],'method':_0x2e98c8,'args':_0xf1f5d0});}[_0x36c638(0x1a9)](){const _0x395895={_0xdb0db5:0x196},_0x5c8b7b=_0x36c638;if(this[_0x5c8b7b(0x14c)][_0x5c8b7b(_0x395895._0xdb0db5)]){const _0x548301=this[_0x5c8b7b(0x14c)]['errorOnNextAction'];this[_0x5c8b7b(0x14c)]['errorOnNextAction']=void 0x0;throw _0x548301;}}[_0x36c638(0x1a0)](){return this['currentUrl'];}async['title'](){const _0x4fef64={_0x5d7264:0x199},_0x521e1e=_0x36c638;return this[_0x521e1e(0x1ae)](_0x521e1e(_0x4fef64._0x5d7264),[]),'fake\x20title';}async['click'](_0x17bbb6,_0x1f37da){const _0x407dce=_0x36c638;this[_0x407dce(0x1ae)](_0x407dce(0x17a),[_0x17bbb6,_0x1f37da]),this['maybeThrow'](),this['onAfterClick']?.();}async[_0x36c638(0x14a)](_0x3e22c7,_0x5ee158){const _0x1c5cb9={_0x1da36f:0x1ae,_0xd03507:0x14a,_0xa80635:0x1a9},_0xfeae57=_0x36c638;this[_0xfeae57(_0x1c5cb9._0x1da36f)](_0xfeae57(_0x1c5cb9._0xd03507),[_0x3e22c7,_0x5ee158]),this[_0xfeae57(_0x1c5cb9._0xa80635)]();}async[_0x36c638(0x17f)](_0x11e365,_0x58354a,_0x148dfd){const _0x417f2e={_0xa5c179:0x17f},_0xa8b55a=_0x36c638;this[_0xa8b55a(0x1ae)](_0xa8b55a(_0x417f2e._0xa5c179),[_0x11e365,_0x58354a,_0x148dfd]),this[_0xa8b55a(0x1a9)]();}async['press'](_0x4cc1e1,_0x1292c9,_0xc54ad2){const _0x1fcbc7={_0x9cadf:0x1ae,_0x1ac15d:0x1a9},_0x2ad744=_0x36c638;this[_0x2ad744(_0x1fcbc7._0x9cadf)]('press',[_0x4cc1e1,_0x1292c9,_0xc54ad2]),this[_0x2ad744(_0x1fcbc7._0x1ac15d)]();}async[_0x36c638(0x172)](_0x5b5fdb,_0x232280){const _0x3e4a7d={_0xf00eae:0x1a9},_0xf3bf83=_0x36c638;this['record'](_0xf3bf83(0x172),[_0x5b5fdb,_0x232280]),this[_0xf3bf83(_0x3e4a7d._0xf00eae)]();}async[_0x36c638(0x16d)](_0x2dea48,_0x5e4c89){const _0x49d6b6=_0x36c638;this['record']('uncheck',[_0x2dea48,_0x5e4c89]),this[_0x49d6b6(0x1a9)]();}async['selectOption'](_0x4efc92,_0x195c56,_0x3ffcb6){const _0x330e70={_0x463000:0x1ae},_0x552724=_0x36c638;this[_0x552724(_0x330e70._0x463000)](_0x552724(0x14b),[_0x4efc92,_0x195c56,_0x3ffcb6]),this['maybeThrow']();}async['hover'](_0x32a414,_0x106dd4){const _0xf28ca9={_0x34b2ef:0x1a9},_0x58d18b=_0x36c638;this[_0x58d18b(0x1ae)](_0x58d18b(0x176),[_0x32a414,_0x106dd4]),this[_0x58d18b(_0xf28ca9._0x34b2ef)]();}async[_0x36c638(0x153)](_0x2f0cc1){const _0x387b91={_0x51275f:0x1ae,_0x164309:0x153},_0x10c12c=_0x36c638;this[_0x10c12c(_0x387b91._0x51275f)](_0x10c12c(_0x387b91._0x164309),[_0x2f0cc1]),this[_0x10c12c(0x1a9)]();}async[_0x36c638(0x19c)](_0x451340,_0x57e3d8,_0x1292b5){const _0x5f2cf2=_0x36c638;this[_0x5f2cf2(0x1ae)](_0x5f2cf2(0x19c),[_0x451340,_0x57e3d8,_0x1292b5]),this[_0x5f2cf2(0x1a9)]();}async['uploadFile'](_0x320407,_0x12336d){const _0x27d651={_0x7cd10c:0x155},_0x55fdda=_0x36c638;this['record'](_0x55fdda(_0x27d651._0x7cd10c),[_0x320407,_0x12336d]),this[_0x55fdda(0x1a9)]();}async[_0x36c638(0x145)](_0x474524,_0x13fef4){const _0x27a6e3={_0x1a115d:0x145},_0x3ac11d=_0x36c638;this[_0x3ac11d(0x1ae)](_0x3ac11d(_0x27a6e3._0x1a115d),[_0x474524,_0x13fef4]),this['maybeThrow']();}async['count'](_0xadd5a8){const _0x4bc562={_0x1a7308:0x14c},_0x110166=_0x36c638;return this[_0x110166(0x1ae)](_0x110166(0x156),[_0xadd5a8]),this[_0x110166(_0x4bc562._0x1a7308)]['countByDefault']??0x1;}async['textContent'](_0x5d9ac7){const _0x369d90={_0x428aa9:0x1ae,_0x575c1a:0x19a,_0x168aa9:0x16e},_0x4ab72=_0x36c638;return this[_0x4ab72(_0x369d90._0x428aa9)](_0x4ab72(_0x369d90._0x575c1a),[_0x5d9ac7]),this[_0x4ab72(0x14c)][_0x4ab72(_0x369d90._0x168aa9)]??'';}async[_0x36c638(0x18c)](_0x3483d0){const _0x209767={_0x49f49a:0x1ae,_0x2f725b:0x16e},_0x49edd0=_0x36c638;return this[_0x49edd0(_0x209767._0x49f49a)]('innerText',[_0x3483d0]),this[_0x49edd0(0x14c)]['innerTextByDefault']??this[_0x49edd0(0x14c)][_0x49edd0(_0x209767._0x2f725b)]??'';}async['inputValue'](_0xf7a228){const _0x18ed43={_0x3be16f:0x140,_0x58d206:0x14c,_0x3d26cf:0x1ac},_0x4f05d2=_0x36c638;return this['record'](_0x4f05d2(_0x18ed43._0x3be16f),[_0xf7a228]),this[_0x4f05d2(_0x18ed43._0x58d206)][_0x4f05d2(_0x18ed43._0x3d26cf)]??'';}async['checkedState'](_0x4a879d){const _0x5bfd7c={_0x4d5fda:0x1ae},_0xfdcbc5=_0x36c638;return this[_0xfdcbc5(_0x5bfd7c._0x4d5fda)](_0xfdcbc5(0x175),[_0x4a879d]),this[_0xfdcbc5(0x14c)][_0xfdcbc5(0x185)]??null;}async[_0x36c638(0x16b)](_0x2bd56c){const _0x4f1ea7=_0x36c638;return this[_0x4f1ea7(0x1ae)](_0x4f1ea7(0x16b),[_0x2bd56c]),this[_0x4f1ea7(0x14c)]['isVisibleByDefault']??!![];}async[_0x36c638(0x179)](_0x29052){const _0x2a8c2c=_0x36c638;return this['record'](_0x2a8c2c(0x179),[_0x29052]),this['behavior'][_0x2a8c2c(0x18d)]??![];}async[_0x36c638(0x166)](_0x19b5f6,_0x5810d4){const _0x213233={_0x1a61b8:0x1ae},_0x5b5f0a=_0x36c638;return this[_0x5b5f0a(_0x213233._0x1a61b8)]('getAttribute',[_0x19b5f6,_0x5810d4]),this['behavior'][_0x5b5f0a(0x190)]?.[_0x5810d4]??null;}async['waitFor'](_0x315c2a,_0x18a03f){const _0x5af48b={_0x49b27e:0x160},_0x1240a0=_0x36c638;this[_0x1240a0(0x1ae)](_0x1240a0(_0x5af48b._0x49b27e),[_0x315c2a,_0x18a03f]);}async[_0x36c638(0x1ab)](_0x50888d,_0x5cb3fb){const _0x429f55={_0x638c7f:0x1ae},_0x2b364e=_0x36c638;this[_0x2b364e(_0x429f55._0x638c7f)](_0x2b364e(0x1ab),[_0x50888d,_0x5cb3fb]);}async[_0x36c638(0x184)](_0x2845d6,_0x390e70){const _0x2aec20={_0x2dda8d:0x1ae,_0x415690:0x184},_0x157ace=_0x36c638;this[_0x157ace(_0x2aec20._0x2dda8d)](_0x157ace(_0x2aec20._0x415690),[_0x2845d6,_0x390e70]);}async['waitForNavigation'](_0x2f1cea){const _0x15715c={_0x468631:0x1ae},_0x5c9076=_0x36c638;this[_0x5c9076(_0x15715c._0x468631)]('waitForNavigation',[_0x2f1cea]);}async[_0x36c638(0x161)](_0x228b9b,_0x4c6174){const _0x1d8d16=_0x36c638;this[_0x1d8d16(0x1ae)]('waitForLoadState',[_0x228b9b,_0x4c6174]);}async[_0x36c638(0x169)](_0x588644,_0x270684){const _0x3c5d96={_0x5d46ed:0x163},_0x495004=_0x36c638;this[_0x495004(0x1ae)](_0x495004(0x169),[_0x588644,_0x270684]),this[_0x495004(_0x3c5d96._0x5d46ed)]=_0x588644;}async[_0x36c638(0x144)](_0x48d13a){const _0x46a63f={_0x27fa71:0x1ae,_0x17e0ea:0x144},_0x39c6fa=_0x36c638;this[_0x39c6fa(_0x46a63f._0x27fa71)](_0x39c6fa(_0x46a63f._0x17e0ea),[_0x48d13a]);}async[_0x36c638(0x186)](_0x3a82f1){const _0x15eaab={_0x4fbb94:0x186},_0x4e495c=_0x36c638;this['record'](_0x4e495c(_0x15eaab._0x4fbb94),[_0x3a82f1]);}async[_0x36c638(0x14d)](_0x3e7656){const _0xbc016=_0x36c638;this[_0xbc016(0x1ae)]('goForward',[_0x3e7656]);}async[_0x36c638(0x195)](_0x36cb3d){const _0x278003={_0x19b14e:0x195,_0x3a469b:0x1b1},_0x52d5a1=_0x36c638;return this['record'](_0x52d5a1(_0x278003._0x19b14e),[_0x36cb3d]),this[_0x52d5a1(0x14c)][_0x52d5a1(_0x278003._0x3a469b)];}async[_0x36c638(0x181)](_0x4341f6,_0x1d9c3c){const _0x440032={_0x3d8fc3:0x181},_0x4f4447=_0x36c638;return this[_0x4f4447(0x1ae)](_0x4f4447(_0x440032._0x3d8fc3),[_0x4341f6,_0x1d9c3c]),void 0x0;}async[_0x36c638(0x157)](_0x2e086b){const _0x284709={_0xd22fc1:0x1b4,_0x3e58f2:0x143,_0x1494b7:0x17c,_0x1911c7:0x143},_0x3af6f5=_0x36c638;this[_0x3af6f5(0x1ae)](_0x3af6f5(0x157),[_0x2e086b]);if(_0x2e086b[_0x3af6f5(0x17c)][_0x3af6f5(0x1a5)]!==0x1||_0x2e086b[_0x3af6f5(0x17c)][0x0][_0x3af6f5(_0x284709._0xd22fc1)]!==_0x3af6f5(_0x284709._0x3e58f2))return null;const _0x35b037=_0x2e086b[_0x3af6f5(_0x284709._0x1494b7)][0x0][_0x3af6f5(_0x284709._0x1911c7)],_0x29d9d8=this['behavior']['elementHintByRef']?.[_0x35b037];return _0x29d9d8??null;}async[_0x36c638(0x164)](_0x18cf38){const _0x1faba5={_0x4b21f3:0x1a4},_0x427556=_0x36c638;return this[_0x427556(0x1ae)]('screenshot',[_0x18cf38]),this[_0x427556(_0x1faba5._0x4b21f3)](_0x18cf38?.[_0x427556(0x1ad)]);}async['screenshotElement'](_0x595a0d,_0x374230){const _0xcd959f={_0x2a80d4:0x1ae,_0x4c1230:0x1a4},_0x3c1116=_0x36c638;return this[_0x3c1116(_0xcd959f._0x2a80d4)](_0x3c1116(0x16a),[_0x595a0d,_0x374230]),this[_0x3c1116(_0xcd959f._0x4c1230)](_0x374230?.[_0x3c1116(0x1ad)]);}[_0x36c638(0x1a4)](_0x2679c8){const _0x18665a={_0x2a93a7:0x14c,_0x4ed823:0x1a4,_0x2eba8d:0x142},_0xd724e=_0x36c638,_0x4de5e7=this[_0xd724e(_0x18665a._0x2a93a7)][_0xd724e(_0x18665a._0x4ed823)];if(_0x4de5e7===void 0x0)return Buffer['from'](_0xd724e(_0x18665a._0x2eba8d));return typeof _0x4de5e7===_0xd724e(0x150)?_0x4de5e7(_0x2679c8):_0x4de5e7;}async[_0x36c638(0x152)](_0x5b9db5){const _0x2d5668={_0x36f2fb:0x1ae,_0x58b02d:0x17c,_0x3d4567:0x143,_0x2efd68:0x19e},_0x3aff96=_0x36c638;this[_0x3aff96(_0x2d5668._0x36f2fb)]('outerHTML',[_0x5b9db5]);if(_0x5b9db5[_0x3aff96(0x17c)][_0x3aff96(0x1a5)]===0x1&&_0x5b9db5[_0x3aff96(0x17c)][0x0][_0x3aff96(0x1b4)]==='ref'){const _0x196609=_0x5b9db5[_0x3aff96(_0x2d5668._0x58b02d)][0x0][_0x3aff96(_0x2d5668._0x3d4567)];return this['behavior'][_0x3aff96(0x14f)]?.[_0x196609]??'<div\x20data-unotest-ref=\x22'+_0x196609+_0x3aff96(0x18a);}return _0x3aff96(_0x2d5668._0x2efd68);}},FakeContext=class{constructor(_0x1a9970,_0x57e946,_0x2d9524){const _0x1ab4eb={_0x49fab9:0x16f,_0x5f1fc8:0x197,_0x1a7b6a:0x148,_0x272475:0x149},_0x284691={_0x172287:0x191,_0xe93f6f:0x148},_0x5f26c=_0x36c638;this[_0x5f26c(_0x1ab4eb._0x49fab9)]=_0x1a9970,this[_0x5f26c(0x14c)]=_0x57e946,this[_0x5f26c(_0x1ab4eb._0x5f1fc8)]=_0x2d9524;const _0x146016=new FakePage(_0x1a9970,_0x57e946,_0x2d9524+_0x5f26c(0x177),_0x57e946['initialUrl']??'about:blank');_0x57e946[_0x5f26c(_0x1ab4eb._0x1a7b6a)]&&(_0x146016[_0x5f26c(0x151)]=()=>{const _0x42513d=_0x5f26c;this[_0x42513d(_0x284691._0x172287)](_0x57e946[_0x42513d(_0x284691._0xe93f6f)]);}),this[_0x5f26c(0x18b)]=[_0x146016],this[_0x5f26c(0x198)]={..._0x57e946['localStorage']??{}},this['cookieState']={..._0x57e946[_0x5f26c(_0x1ab4eb._0x272475)]??{}};}[_0x36c638(0x16f)];[_0x36c638(0x14c)];[_0x36c638(0x197)];static{__name(this,_0x36c638(0x19d));}[_0x36c638(0x18b)];[_0x36c638(0x19f)]=0x0;['frameStack']=[];[_0x36c638(0x198)];[_0x36c638(0x1aa)];[_0x36c638(0x159)]=new Set();[_0x36c638(0x1ae)](_0x1c5192,_0xc79ec3){const _0xdd3db4={_0x1befc4:0x158},_0xe9df8=_0x36c638;this[_0xe9df8(0x16f)][_0xe9df8(_0xdd3db4._0x1befc4)]({'scope':this['scope'],'method':_0x1c5192,'args':_0xc79ec3});}[_0x36c638(0x183)](){const _0x1da9e2=_0x36c638;return this[_0x1da9e2(0x18b)];}['activePage'](){const _0xf6d37e={_0x2fc1d9:0x19f,_0x574b47:0x19f},_0x92fdb7=_0x36c638,_0x2f9d17=this[_0x92fdb7(0x18b)][this[_0x92fdb7(_0xf6d37e._0x2fc1d9)]];if(!_0x2f9d17)throw new DriverError('no\x20active\x20page\x20in\x20context',{'activeIdx':this[_0x92fdb7(_0xf6d37e._0x574b47)]});return _0x2f9d17;}['consoleEntries'](){const _0x48b8d5={_0xebc485:0x14c},_0x32750e=_0x36c638;return this[_0x32750e(_0x48b8d5._0xebc485)][_0x32750e(0x1a3)]??[];}['networkEntries'](){const _0x840bcd={_0x9e562f:0x14c},_0x326875=_0x36c638;return this[_0x326875(_0x840bcd._0x9e562f)][_0x326875(0x1a2)]??[];}async['setActivePage'](_0x2c15e9){const _0x4b6086={_0x226e5d:0x192,_0xf1e6b8:0x18b,_0x5aa071:0x1a5,_0xf9a768:0x19f,_0x4e1485:0x1b0},_0x18f6dc=_0x36c638;this[_0x18f6dc(0x1ae)](_0x18f6dc(_0x4b6086._0x226e5d),[_0x2c15e9]);if(_0x2c15e9<0x0||_0x2c15e9>=this[_0x18f6dc(_0x4b6086._0xf1e6b8)][_0x18f6dc(_0x4b6086._0x5aa071)])throw new DriverError(_0x18f6dc(0x154),{'index':_0x2c15e9,'available':this['pageList'][_0x18f6dc(0x1a5)]});this[_0x18f6dc(_0x4b6086._0xf9a768)]=_0x2c15e9,this[_0x18f6dc(_0x4b6086._0x4e1485)][_0x18f6dc(0x1a5)]=0x0;}[_0x36c638(0x1af)](_0x2c06bf){const _0x2cd6d4={_0x217a3e:0x159},_0x1089e0=_0x36c638;return subscribe(this[_0x1089e0(_0x2cd6d4._0x217a3e)],_0x2c06bf);}[_0x36c638(0x191)](_0x19e4a2){const _0xf8695={_0x3ffb37:0x197,_0x293c25:0x1a1,_0x3ecd2d:0x18b,_0x5a2e26:0x1a5,_0x34733d:0x158},_0x125f4e=_0x36c638,_0x3e7005=this[_0x125f4e(_0xf8695._0x3ffb37)]+_0x125f4e(_0xf8695._0x293c25)+this[_0x125f4e(_0xf8695._0x3ecd2d)][_0x125f4e(_0xf8695._0x5a2e26)],_0xcd09f9=new FakePage(this[_0x125f4e(0x16f)],this[_0x125f4e(0x14c)],_0x3e7005,_0x19e4a2);this['pageList'][_0x125f4e(_0xf8695._0x34733d)](_0xcd09f9);const _0x17f92f=this[_0x125f4e(0x18b)][_0x125f4e(_0xf8695._0x5a2e26)]-0x1;for(const _0x185ef6 of this['newPageListeners']){try{_0x185ef6({'index':_0x17f92f,'url':_0x19e4a2});}catch{}}return _0x17f92f;}[_0x36c638(0x18f)](_0x4be16b){const _0x3dd4e3={_0x27f17c:0x1a5,_0x5e986a:0x154,_0x2660ef:0x18b},_0x270ea3=_0x36c638;if(_0x4be16b<0x0||_0x4be16b>=this['pageList'][_0x270ea3(_0x3dd4e3._0x27f17c)])throw new DriverError(_0x270ea3(_0x3dd4e3._0x5e986a),{'index':_0x4be16b,'available':this['pageList'][_0x270ea3(0x1a5)]});this[_0x270ea3(_0x3dd4e3._0x2660ef)][_0x270ea3(0x141)](_0x4be16b,0x1);}async[_0x36c638(0x15e)](_0x577c7d){const _0xfd4911={_0x34ce2b:0x1a5,_0x38d8a0:0x158},_0x2eb6f9=_0x36c638;this[_0x2eb6f9(0x1ae)]('enterFrame',[_0x577c7d]);if(!_0x577c7d[_0x2eb6f9(0x17c)][_0x2eb6f9(_0xfd4911._0x34ce2b)])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x577c7d});this[_0x2eb6f9(0x1b0)][_0x2eb6f9(_0xfd4911._0x38d8a0)](_0x577c7d);}async['exitFrame'](){const _0x16c43d={_0x427376:0x1ae,_0x47c119:0x162,_0x21b448:0x1a8},_0x504f32=_0x36c638;this[_0x504f32(_0x16c43d._0x427376)](_0x504f32(_0x16c43d._0x47c119),[]);if(this[_0x504f32(0x1b0)]['length']===0x0)throw new DriverError('exitFrame\x20called\x20with\x20no\x20frame\x20on\x20the\x20stack',{});this[_0x504f32(0x1b0)][_0x504f32(_0x16c43d._0x21b448)]();}async[_0x36c638(0x1b2)](_0x1efa16,_0xf23c06){const _0x1a02d8={_0x398898:0x1ae},_0x5889a9=_0x36c638;this[_0x5889a9(_0x1a02d8._0x398898)](_0x5889a9(0x1b2),[_0x1efa16,_0xf23c06]),this[_0x5889a9(0x198)][_0x1efa16]=_0xf23c06;}async[_0x36c638(0x188)](_0x42c7da){const _0x29b5f7={_0x552855:0x188,_0x528983:0x198},_0x18f389=_0x36c638;return this[_0x18f389(0x1ae)](_0x18f389(_0x29b5f7._0x552855),[_0x42c7da]),this[_0x18f389(_0x29b5f7._0x528983)][_0x42c7da]??null;}async['setCookie'](_0x117ef0,_0x44010b,_0x30f9bf){const _0x3156a8={_0x40df95:0x1aa},_0x31b2a2=_0x36c638;this[_0x31b2a2(0x1ae)](_0x31b2a2(0x16c),[_0x117ef0,_0x44010b,_0x30f9bf]),this[_0x31b2a2(_0x3156a8._0x40df95)][_0x117ef0]=_0x44010b;}async[_0x36c638(0x170)](_0x575dfb){const _0x579d48={_0xf68eba:0x1ae,_0x30d947:0x170,_0x20310f:0x1aa},_0x201cab=_0x36c638;return this[_0x201cab(_0x579d48._0xf68eba)](_0x201cab(_0x579d48._0x30d947),[_0x575dfb]),this[_0x201cab(_0x579d48._0x20310f)][_0x575dfb]??null;}async['saveStorageState'](_0x32bd17){const _0x3365cc={_0x1fbc9a:0x1ae,_0x394682:0x187},_0xfee9c9=_0x36c638;this[_0xfee9c9(_0x3365cc._0x1fbc9a)](_0xfee9c9(_0x3365cc._0x394682),[_0x32bd17]);}async[_0x36c638(0x195)](_0x4d858d){const _0x505317=_0x36c638;return this[_0x505317(0x1ae)](_0x505317(0x195),[_0x4d858d]),void 0x0;}async[_0x36c638(0x15d)](){const _0xdf473a={_0x3401d2:0x1ae},_0x58011b=_0x36c638;this[_0x58011b(_0xdf473a._0x3401d2)]('close',[]);}[_0x36c638(0x171)](){const _0xa74616={_0x165e5b:0x1b0},_0x43e345=_0x36c638;return this[_0x43e345(_0xa74616._0x165e5b)][_0x43e345(0x1a5)];}},FakeWebDriver=class{constructor(_0xbedb01={}){const _0x5ef28e={_0x28e4b6:0x14c},_0x6d3de7=_0x36c638;this[_0x6d3de7(_0x5ef28e._0x28e4b6)]=_0xbedb01,this[_0x6d3de7(0x16f)]=createRecorder();}[_0x36c638(0x14c)];static{__name(this,'FakeWebDriver');}[_0x36c638(0x182)]=![];[_0x36c638(0x16f)];[_0x36c638(0x14e)]=[];async[_0x36c638(0x18e)](_0x3c419c){const _0x3d4634={_0xc08c23:0x15b},_0x697f0a=_0x36c638;this[_0x697f0a(0x16f)][_0x697f0a(0x158)]({'scope':_0x697f0a(_0x3d4634._0xc08c23),'method':_0x697f0a(0x18e),'args':[_0x3c419c]}),this[_0x697f0a(0x182)]=!![];}async[_0x36c638(0x1a6)](_0x35d4be){const _0x50ecb2={_0x4dfedf:0x1a6,_0x904437:0x194,_0x51a7ea:0x16f,_0x1375e4:0x1a5},_0x49fbc0=_0x36c638;this['recorder'][_0x49fbc0(0x158)]({'scope':_0x49fbc0(0x15b),'method':_0x49fbc0(_0x50ecb2._0x4dfedf),'args':[_0x35d4be]});if(!this['launched'])throw new DriverError(_0x49fbc0(_0x50ecb2._0x904437),{});const _0x4057db=new FakeContext(this[_0x49fbc0(_0x50ecb2._0x51a7ea)],this[_0x49fbc0(0x14c)],'ctx'+this['contexts'][_0x49fbc0(_0x50ecb2._0x1375e4)]);return this[_0x49fbc0(0x14e)]['push'](_0x4057db),_0x4057db;}async[_0x36c638(0x15d)](){const _0x4d8198={_0x51be77:0x182},_0x211d53=_0x36c638;this[_0x211d53(0x16f)][_0x211d53(0x158)]({'scope':_0x211d53(0x15b),'method':'close','args':[]}),this[_0x211d53(_0x4d8198._0x51be77)]=![];}[_0x36c638(0x1a7)](){return void 0x0;}async['connectShared'](){const _0x47320e={_0x46d810:0x17e},_0x1513f9=_0x36c638;throw new DriverError(_0x1513f9(_0x47320e._0x46d810),{});}[_0x36c638(0x193)](_0x370cad){const _0x3b1354=_0x36c638;throw new DriverError(_0x3b1354(0x189),{});}[_0x36c638(0x180)](){const _0x56b513={_0x3d6edb:0x180},_0xd7c8d1=_0x36c638;return this['recorder'][_0xd7c8d1(_0x56b513._0x3d6edb)]();}[_0x36c638(0x17b)](_0x335696){const _0x18351f=_0x36c638;return this[_0x18351f(0x16f)][_0x18351f(0x180)]()['filter'](_0x28ae5b=>_0x28ae5b['method']===_0x335696);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as LocatorValue, W as WebDriver, D as DriverContext, e as DriverPage } from '../interfaces-
|
|
2
|
-
export { k as LocatorStep, l as appendStep, m as describeLocator, n as isLocatorValue, r as rootedAt } from '../interfaces-
|
|
1
|
+
import { j as LocatorValue, W as WebDriver, D as DriverContext, e as DriverPage } from '../interfaces-7nMNCr2h.js';
|
|
2
|
+
export { k as LocatorStep, l as appendStep, m as describeLocator, n as isLocatorValue, r as rootedAt } from '../interfaces-7nMNCr2h.js';
|
|
3
3
|
import { Matcher, RegexLiteral, JudgeRequest, JudgeVerdict, SoftFailureRecord } 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';
|
|
6
6
|
import { SandboxConfig } from '../config/schema.js';
|
|
7
|
-
import { RuntimeExecState } from '@unotest/core';
|
|
8
|
-
export { L as LintDiagnostic, b as LintOptions, a as LintSeverity, l as lintAst } from '../linter-
|
|
7
|
+
import { UnotestError, RuntimeExecState } from '@unotest/core';
|
|
8
|
+
export { L as LintDiagnostic, b as LintOptions, a as LintSeverity, l as lintAst } from '../linter-BWSAYBQy.js';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@unotest/dsl';
|
|
11
11
|
|
|
@@ -69,6 +69,50 @@ declare function chainGetByTitle(loc: LocatorValue, text: Matcher, options?: {
|
|
|
69
69
|
exact?: boolean;
|
|
70
70
|
}): LocatorValue;
|
|
71
71
|
|
|
72
|
+
/** Configuration invalid or missing. Surfaces during config load / validation. */
|
|
73
|
+
declare class ConfigError extends UnotestError {
|
|
74
|
+
}
|
|
75
|
+
/** A host the run would reach came from the BASE `.env` while a named
|
|
76
|
+
* environment is active (#199). Silence here is the whole defect: the
|
|
77
|
+
* overlay says "dev", the request goes to the production host the base
|
|
78
|
+
* file names, and nothing in the output says which host was used. The
|
|
79
|
+
* message names the variable, BOTH files, and the two ways out. */
|
|
80
|
+
declare class EnvOverlayHostError extends ConfigError {
|
|
81
|
+
constructor(context: {
|
|
82
|
+
name: string;
|
|
83
|
+
/** Where the name becomes a host, quoted as the author wrote it —
|
|
84
|
+
* `apiCall {base: "API_BASE_CHAT"}`, `goto(APP_URL)`, `baseUrl`. */
|
|
85
|
+
usage: string;
|
|
86
|
+
envName: string;
|
|
87
|
+
/** Project-relative file the value actually came from. */
|
|
88
|
+
baseFile: string;
|
|
89
|
+
/** The overlay that does NOT set it — where it belongs. */
|
|
90
|
+
overlayFile: string;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* What a host-using call site may ask. A narrow port (ISP) so the linter
|
|
96
|
+
* and the DSL runtime depend on the QUESTION, not on the config layer:
|
|
97
|
+
* `rejectAsHost` answers with the refusal message, or undefined when the
|
|
98
|
+
* name is fine to use as a host here.
|
|
99
|
+
*/
|
|
100
|
+
interface HostVariableCheck {
|
|
101
|
+
rejectAsHost(name: string, usage: string): EnvOverlayHostError | undefined;
|
|
102
|
+
}
|
|
103
|
+
/** The policy as the places that switch environments need it: the same
|
|
104
|
+
* question, plus "the same rule, for a different environment". `forEnv`
|
|
105
|
+
* carries the config-derived `shared` list ACROSS, which is why the MCP
|
|
106
|
+
* server and the child it spawns cannot end up with different lists. */
|
|
107
|
+
interface HostPolicy extends HostVariableCheck {
|
|
108
|
+
forEnv(envName?: string): HostPolicy;
|
|
109
|
+
/** The base-URL variable is a host by construction — `APP_BASE_URL`
|
|
110
|
+
* becomes `config.baseUrl`, which every relative `goto` resolves
|
|
111
|
+
* against. Asked without naming it, so no consumer keeps a second
|
|
112
|
+
* literal of the name. */
|
|
113
|
+
rejectBaseUrl(usage: string): EnvOverlayHostError | undefined;
|
|
114
|
+
}
|
|
115
|
+
|
|
72
116
|
interface Logger {
|
|
73
117
|
info(msg: string, ...rest: unknown[]): void;
|
|
74
118
|
warn(msg: string, ...rest: unknown[]): void;
|
|
@@ -82,6 +126,12 @@ interface Logger {
|
|
|
82
126
|
interface VariableStore {
|
|
83
127
|
has(name: string): boolean;
|
|
84
128
|
get(name: string): string | undefined;
|
|
129
|
+
/** Host policy for the environment this store resolves against (#199).
|
|
130
|
+
* Optional like `describeSources`: a store built without a project
|
|
131
|
+
* behind it (test fakes, ad-hoc runtimes) carries none and the rule is
|
|
132
|
+
* then off. `withHostPolicy` (config/env-host-guard.ts) is what puts
|
|
133
|
+
* one on a store. */
|
|
134
|
+
hostPolicy?: HostPolicy;
|
|
85
135
|
/** One-line, human/agent-readable summary of WHERE lookups searched
|
|
86
136
|
* (active environment + layer files, missing ones flagged). Optional so
|
|
87
137
|
* test fakes stay two-method; consumed by "variable not found" errors. */
|
|
@@ -197,6 +247,11 @@ declare class TestRuntime {
|
|
|
197
247
|
enterCall(maxCallDepth: number): void;
|
|
198
248
|
exitCall(): void;
|
|
199
249
|
get callDepth(): number;
|
|
250
|
+
/** Host policy of this run — read off the variable store, which is
|
|
251
|
+
* where the project's environment already lives (#199). Deliberately
|
|
252
|
+
* NOT a separate injected field: a field the two runtime-building
|
|
253
|
+
* sites could forget to pass is a rule that switches itself off. */
|
|
254
|
+
get hostPolicy(): HostPolicy | undefined;
|
|
200
255
|
setVar(name: string, value: DslValue): void;
|
|
201
256
|
getVar(name: string): DslValue;
|
|
202
257
|
hasVar(name: string): boolean;
|
|
@@ -289,6 +344,8 @@ interface ActiveRuntime {
|
|
|
289
344
|
createdAt: number;
|
|
290
345
|
/** Active TTL timer (only when state is paused-failure). */
|
|
291
346
|
ttlTimer: NodeJS.Timeout | null;
|
|
347
|
+
/** The runtime's own last-rites hook — see `register`. */
|
|
348
|
+
onAbort?: () => Promise<void>;
|
|
292
349
|
}
|
|
293
350
|
interface RuntimeSummary {
|
|
294
351
|
id: string;
|
|
@@ -336,6 +393,13 @@ declare class TestRuntimeManager {
|
|
|
336
393
|
testRuntime: TestRuntime;
|
|
337
394
|
generator: AsyncGenerator<ExecutionEvent, RunResult>;
|
|
338
395
|
runOptions: RunOptions;
|
|
396
|
+
/** Last thing this runtime gets to do when it is aborted, awaited
|
|
397
|
+
* inside `abort()`. It exists because an abort on a PAUSE never comes
|
|
398
|
+
* back through the orchestrator: the CLI kills the process right
|
|
399
|
+
* after `abort` resolves (a paused executor cannot unwind itself), so
|
|
400
|
+
* anything the run still owes the disk has to be settled here (#194
|
|
401
|
+
* tail). */
|
|
402
|
+
onAbort?: () => Promise<void>;
|
|
339
403
|
}): string;
|
|
340
404
|
pump(id: string): Promise<ExecutionEvent | RunResult>;
|
|
341
405
|
/** The run's verdict — the executor's own, corrected for the one thing
|