@unotest/web 0.11.0 → 0.13.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/.claude/skills/write-e2e-test/SKILL.md +9 -4
- package/.claude/skills/write-e2e-test-ground/SKILL.md +9 -4
- package/CHANGELOG.md +115 -0
- package/dist/config/schema.d.ts +49 -15
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +4 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +13 -2
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +1 -1
- package/dist/{interfaces-MxHi1Air.d.ts → interfaces-XvuefHHC.d.ts} +5 -0
- package/dist/mcp/server.js +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 +29 -0
- package/guides/dsl-reference.md +172 -10
- package/package.json +7 -7
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xdbf2(_0x9544a5,_0xb0786d){_0x9544a5=_0x9544a5-0x1d5;const _0x5b45d1=_0x5b45();let _0xdbf23d=_0x5b45d1[_0x9544a5];if(_0xdbf2['bhWgXE']===undefined){var _0x31e59f=function(_0x3137ce){const _0x4f9a21='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21f477='',_0x2d21d9='';for(let _0x1e3740=0x0,_0x11e754,_0x1d4945,_0x4aab56=0x0;_0x1d4945=_0x3137ce['charAt'](_0x4aab56++);~_0x1d4945&&(_0x11e754=_0x1e3740%0x4?_0x11e754*0x40+_0x1d4945:_0x1d4945,_0x1e3740++%0x4)?_0x21f477+=String['fromCharCode'](0xff&_0x11e754>>(-0x2*_0x1e3740&0x6)):0x0){_0x1d4945=_0x4f9a21['indexOf'](_0x1d4945);}for(let _0x153f14=0x0,_0x45f74f=_0x21f477['length'];_0x153f14<_0x45f74f;_0x153f14++){_0x2d21d9+='%'+('00'+_0x21f477['charCodeAt'](_0x153f14)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d21d9);};_0xdbf2['ZhUxWX']=_0x31e59f,_0xdbf2['xzbumb']={},_0xdbf2['bhWgXE']=!![];}const _0x703e46=_0x5b45d1[0x0],_0x1c4dea=_0x9544a5+_0x703e46,_0x54dbcf=_0xdbf2['xzbumb'][_0x1c4dea];return!_0x54dbcf?(_0xdbf23d=_0xdbf2['ZhUxWX'](_0xdbf23d),_0xdbf2['xzbumb'][_0x1c4dea]=_0xdbf23d):_0xdbf23d=_0x54dbcf,_0xdbf23d;}const _0x24eb6c=_0xdbf2;(function(_0x128207,_0x5e8c1a){const _0x1893b5={_0x51681f:0x217,_0x46b87e:0x224,_0x565ef5:0x214,_0x59a009:0x22c,_0x300e75:0x1d6,_0x5c6951:0x1e0},_0x5455ee=_0xdbf2,_0x33f39c=_0x128207();while(!![]){try{const _0x26b0e0=parseInt(_0x5455ee(_0x1893b5._0x51681f))/0x1*(-parseInt(_0x5455ee(0x1f3))/0x2)+-parseInt(_0x5455ee(0x226))/0x3*(parseInt(_0x5455ee(0x1d5))/0x4)+-parseInt(_0x5455ee(0x219))/0x5+parseInt(_0x5455ee(_0x1893b5._0x46b87e))/0x6+-parseInt(_0x5455ee(_0x1893b5._0x565ef5))/0x7*(parseInt(_0x5455ee(_0x1893b5._0x59a009))/0x8)+parseInt(_0x5455ee(_0x1893b5._0x300e75))/0x9+parseInt(_0x5455ee(_0x1893b5._0x5c6951))/0xa;if(_0x26b0e0===_0x5e8c1a)break;else _0x33f39c['push'](_0x33f39c['shift']());}catch(_0x59fce8){_0x33f39c['push'](_0x33f39c['shift']());}}}(_0x5b45,0x9e6ff));var __defProp=Object[_0x24eb6c(0x218)],__name=(_0x21f477,_0x2d21d9)=>__defProp(_0x21f477,_0x24eb6c(0x1e6),{'value':_0x2d21d9,'configurable':!![]});function _0x5b45(){const _0x9c98b8=['y29UDgv4Dhm','y3vYCMvUDfvYBa','C2f2zvn0B3jHz2vtDgf0zq','y29VA2LLCW','mZi4ntKZmtb1z0zizNq','A2LUza','iJ48l2rPDJ4','Aw5WDxrwywX1zuj5rgvMyxvSDa','C3rLChm','zg91yMXLq2XPy2S','BMfTzq','zMfRzsb0AxrSzq','zNjHBwvezxb0Aa','Dw5JAgvJAW','C2nVCgu','y29UBMvJDfnOyxjLza','C3vIC2nYAwjL','yMvOyxzPB3i','B3v0zxjive1m','D2fPDezVCG','Cg9WDxbpBKnSAwnR','Bwv0Ag9K','zMfRzs1WBMC','mtiWmdq2neDhs0LNyq','y3jLyxrLuMvJB3jKzxi','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','z2v0tg9JywXtDg9YywDL','y2HLy2TLzfn0yxrL','y2XPy2S','Aw5WDxrwywX1zq','y2HLy2S','z29gB3j3yxjK','Dgv4DenVBNrLBNq','CMvJB3jK','B25ozxDqywDL','y291BNq','C2vSzwn0t3b0Aw9U','zxzHBhvHDgu','rMfRzvbHz2u','zMLSBa','ChvZAa','zxHPDezYyw1L','rhjPDMvYrxjYB3i','B3v0zxjiDg1SqNLszwy','CMvM','zxjYB3jpBK5LEhrby3rPB24','Bg9JywXtDg9YywDLu3rHDgu','z29cywnR','BMv0D29YA0vUDhjPzxm','yxr0CMLIDxrLC0j5rgvMyxvSDa','C2v0qwn0AxzLugfNzq','y2XPCgjVyxjKugfZDgu','ywn0AxzLswr4','C2nYB2XSsw50B1zPzxC','ywrK','mta3nJaZm3Pkt05PqG','CMvJB3jKzxi','BMv3q29UDgv4Da','mMXlBNrrwG','zgvMAw5LuhjVCgvYDhK','mJe3nZq5nwjMvujJzq','AxnwAxnPyMXLqNLezwzHDwX0','Bwf5yMvuAhjVDW','Bgf1BMnOzwq','D2fPDezVCLvYBa','ywjVDxq6yMXHBMS','BgvUz3rO','y29VA2LLu3rHDgu','CgfNzuXPC3q','C3bSAwnL','y29UC29SzuvUDhjPzxm','mJi5mZi4neHqvu5swq','pgrPDJ48l2rPDJ4','m2nosgvVDG','y2XVC2u','y3r4','CMvSB2fK','y2HLy2TLzfn0yxrLqNLezwzHDwX0','C2nYzwvUC2HVDa','mtzHEhr4u1K','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','zgvSzxrL','ywn0AxzLugfNzq','zNjLzxPL','DgL0Bgu','tg9JyxrVCKvYCM9Y','AxnwAxnPyMXL','ChjLC3m','lNbHz2u','BMv3ugfNzuXPC3rLBMvYCW','zxzHBhvHDgvpBKXVy2f0B3i','rMfRzvDLyKrYAxzLCG','DxbSB2fKrMLSzq','z2v0qxr0CMLIDxrL','Aw5PDgLHBfvYBa','zw1PDezHA2vqB3b1Ca','zMLSDgvY','zhjPDMvY','B25bzNrLCKnSAwnR','D2fPDezVCK5HDMLNyxrPB24','C2v0q29VA2LL','Bgf1BMnO','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','Aw5ZCgvJDevSzw1LBNq','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','y2fWDhvYzvn0ywnRvhjHy2u','y2fSBhngB3i','D2fPDezVCLrLEhq','Bg9JywXtDg9YywDL','zhjHz0fUzerYB3a','z290BW','y2fSBhm','ndqYmZKYoeTXvLv6tq','mJCXnZCZthvRChbr','z2v0q29VA2LL','C2v0tg9JywXtDg9YywDL','zNjHBwvtDgfJAW','zw50zxjgCMfTzq','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP'];_0x5b45=function(){return _0x9c98b8;};return _0x5b45();}function subscribe(_0x1e3740,_0x11e754){const _0x4faace=_0x24eb6c;return _0x1e3740[_0x4faace(0x213)](_0x11e754),()=>{const _0x89871=_0x4faace;_0x1e3740[_0x89871(0x22e)](_0x11e754);};}__name(subscribe,_0x24eb6c(0x1ec));var UnotestError=class extends Error{static{__name(this,'UnotestError');}['context'];constructor(_0x1d4945,_0x4aab56={}){const _0x18d662={_0x101d82:0x1e6,_0x546917:0x246},_0x4af32a=_0x24eb6c;super(_0x1d4945),this[_0x4af32a(_0x18d662._0x101d82)]=new.target.name,this['context']=Object[_0x4af32a(0x230)]({..._0x4aab56}),typeof Error[_0x4af32a(0x246)]==='function'&&Error[_0x4af32a(_0x18d662._0x546917)](this,new.target);}},DriverError=class extends UnotestError{static{__name(this,_0x24eb6c(0x207));}},LocatorError=class extends UnotestError{static{__name(this,_0x24eb6c(0x232));}};function createRecorder(){const _0x4f5fa5=_0x24eb6c,_0x153f14=[];let _0x45f74f=0x0;return{'push':__name(_0x8f622f=>_0x153f14[_0x4f5fa5(0x205)]({..._0x8f622f,'seq':_0x45f74f++}),'push'),'calls':__name(()=>_0x153f14,_0x4f5fa5(0x24c))};}__name(createRecorder,_0x24eb6c(0x1f4));var FakePage=class{constructor(_0x8608e7,_0x30fac5,_0x162608,_0x3404ef){const _0x31f603={_0x30040c:0x1ea},_0x3e617b=_0x24eb6c;this[_0x3e617b(0x215)]=_0x8608e7,this[_0x3e617b(0x1ed)]=_0x30fac5,this[_0x3e617b(_0x31f603._0x30040c)]=_0x162608,this[_0x3e617b(0x1dd)]=_0x3404ef;}['recorder'];[_0x24eb6c(0x1ed)];[_0x24eb6c(0x1ea)];static{__name(this,_0x24eb6c(0x203));}[_0x24eb6c(0x1dd)];[_0x24eb6c(0x23f)];[_0x24eb6c(0x1fe)](_0x98f53a,_0x46256b){const _0x2f487e={_0x58bebb:0x215,_0x3a123e:0x1ea},_0xb6e1e0=_0x24eb6c;this[_0xb6e1e0(_0x2f487e._0x58bebb)][_0xb6e1e0(0x205)]({'scope':this[_0xb6e1e0(_0x2f487e._0x3a123e)],'method':_0x98f53a,'args':_0x46256b});}[_0x24eb6c(0x21b)](){const _0x1a8a7d={_0x3cdbb6:0x1ed,_0x482fb0:0x20a,_0x37c5de:0x20a},_0x4c8465=_0x24eb6c;if(this[_0x4c8465(_0x1a8a7d._0x3cdbb6)][_0x4c8465(_0x1a8a7d._0x482fb0)]){const _0x3169bc=this['behavior'][_0x4c8465(_0x1a8a7d._0x37c5de)];this[_0x4c8465(0x1ed)][_0x4c8465(0x20a)]=void 0x0;throw _0x3169bc;}}['url'](){const _0x3ddc87=_0x24eb6c;return this[_0x3ddc87(0x1dd)];}async['title'](){const _0x5d6ab5={_0x5bf6c3:0x1fe,_0x3c36c0:0x1e7},_0x55db02=_0x24eb6c;return this[_0x55db02(_0x5d6ab5._0x5bf6c3)](_0x55db02(0x231),[]),_0x55db02(_0x5d6ab5._0x3c36c0);}async['click'](_0x535678,_0x32fadd){const _0x127bf6={_0xf61d2c:0x1f9},_0x4411ad=_0x24eb6c;this[_0x4411ad(0x1fe)](_0x4411ad(_0x127bf6._0xf61d2c),[_0x535678,_0x32fadd]),this['maybeThrow'](),this[_0x4411ad(0x23f)]?.();}async[_0x24eb6c(0x1e5)](_0x1dcedc,_0x5d9f53){const _0xf2b6d2=_0x24eb6c;this[_0xf2b6d2(0x1fe)]('doubleClick',[_0x1dcedc,_0x5d9f53]),this['maybeThrow']();}async[_0x24eb6c(0x204)](_0x1d0cb4,_0x5dfa7b,_0x3e69af){const _0x567433=_0x24eb6c;this[_0x567433(0x1fe)]('fill',[_0x1d0cb4,_0x5dfa7b,_0x3e69af]),this[_0x567433(0x21b)]();}async[_0x24eb6c(0x234)](_0x10649d,_0x4a6421,_0x93ed4c){const _0x4545e9=_0x24eb6c;this[_0x4545e9(0x1fe)](_0x4545e9(0x234),[_0x10649d,_0x4a6421,_0x93ed4c]),this[_0x4545e9(0x21b)]();}async[_0x24eb6c(0x1fb)](_0x34b2d5,_0x512c29){const _0x175786=_0x24eb6c;this['record']('check',[_0x34b2d5,_0x512c29]),this[_0x175786(0x21b)]();}async['uncheck'](_0x39d684,_0xc626cd){const _0x48af26={_0x278f4e:0x1e9},_0x2005d2=_0x24eb6c;this['record'](_0x2005d2(_0x48af26._0x278f4e),[_0x39d684,_0xc626cd]),this['maybeThrow']();}async[_0x24eb6c(0x201)](_0x32281e,_0x3707fc,_0x41f00f){const _0x419ca2={_0x3d9205:0x201,_0x78a16:0x21b},_0x308fb1=_0x24eb6c;this[_0x308fb1(0x1fe)](_0x308fb1(_0x419ca2._0x3d9205),[_0x32281e,_0x3707fc,_0x41f00f]),this[_0x308fb1(_0x419ca2._0x78a16)]();}async['hover'](_0x580c45,_0x5acaaa){const _0x235158=_0x24eb6c;this['record']('hover',[_0x580c45,_0x5acaaa]),this[_0x235158(0x21b)]();}async[_0x24eb6c(0x212)](_0x574c4){const _0x66fcc3={_0x36c9bf:0x21b},_0x5d152e=_0x24eb6c;this['record'](_0x5d152e(0x212),[_0x574c4]),this[_0x5d152e(_0x66fcc3._0x36c9bf)]();}async[_0x24eb6c(0x24a)](_0x583352,_0x5d7724,_0x29e748){const _0x157df6=_0x24eb6c;this['record']('dragAndDrop',[_0x583352,_0x5d7724,_0x29e748]),this[_0x157df6(0x21b)]();}async[_0x24eb6c(0x239)](_0x222902,_0xd8fbef){const _0x1bcd34=_0x24eb6c;this[_0x1bcd34(0x1fe)](_0x1bcd34(0x239),[_0x222902,_0xd8fbef]),this['maybeThrow']();}async[_0x24eb6c(0x210)](_0xc9e8b5,_0x20526d){const _0x46ef9d={_0x4ba593:0x1fe},_0xa05dbc=_0x24eb6c;this[_0xa05dbc(_0x46ef9d._0x4ba593)](_0xa05dbc(0x210),[_0xc9e8b5,_0x20526d]),this[_0xa05dbc(0x21b)]();}async[_0x24eb6c(0x200)](_0x4b2f3d){const _0x9c26b2={_0x50dd65:0x1fe,_0x118a57:0x1ed},_0x16276e=_0x24eb6c;return this[_0x16276e(_0x9c26b2._0x50dd65)]('count',[_0x4b2f3d]),this[_0x16276e(_0x9c26b2._0x118a57)]['countByDefault']??0x1;}async[_0x24eb6c(0x1fd)](_0x15a918){const _0x46a582=_0x24eb6c;return this[_0x46a582(0x1fe)](_0x46a582(0x1fd),[_0x15a918]),this[_0x46a582(0x1ed)]['textContentByDefault']??'';}async['inputValue'](_0x15f989){const _0x57ff10={_0x461aef:0x1e3},_0x19fd7e=_0x24eb6c;return this['record'](_0x19fd7e(0x1fa),[_0x15f989]),this[_0x19fd7e(0x1ed)][_0x19fd7e(_0x57ff10._0x461aef)]??'';}async['checkedState'](_0x165671){const _0x814455={_0xb94005:0x1ed},_0x434763=_0x24eb6c;return this[_0x434763(0x1fe)](_0x434763(0x1f8),[_0x165671]),this[_0x434763(_0x814455._0xb94005)][_0x434763(0x22a)]??null;}async[_0x24eb6c(0x233)](_0x5b1624){const _0xabc6c4={_0x4dec31:0x1fe,_0x5cbcd9:0x1ed},_0x5d516a=_0x24eb6c;return this[_0x5d516a(_0xabc6c4._0x4dec31)]('isVisible',[_0x5b1624]),this[_0x5d516a(_0xabc6c4._0x5cbcd9)][_0x5d516a(0x21a)]??!![];}async['getAttribute'](_0x56af15,_0x3d2336){const _0x158d49={_0x229f2e:0x20e},_0x2d415b=_0x24eb6c;return this['record'](_0x2d415b(0x23a),[_0x56af15,_0x3d2336]),this['behavior'][_0x2d415b(_0x158d49._0x229f2e)]?.[_0x3d2336]??null;}async[_0x24eb6c(0x1ef)](_0x25b749,_0x2271f2){const _0xb60979={_0x51a2be:0x1fe},_0x18f219=_0x24eb6c;this[_0x18f219(_0xb60979._0x51a2be)]('waitFor',[_0x25b749,_0x2271f2]);}async[_0x24eb6c(0x21d)](_0x5b0954,_0x2bd7e4){const _0x4aaa9d={_0x2550b6:0x1fe},_0x415c99=_0x24eb6c;this[_0x415c99(_0x4aaa9d._0x2550b6)]('waitForUrl',[_0x5b0954,_0x2bd7e4]);}async['waitForText'](_0x3cd73a,_0x29598f){const _0x45d064={_0x396315:0x1fe},_0x53e344=_0x24eb6c;this[_0x53e344(_0x45d064._0x396315)](_0x53e344(0x248),[_0x3cd73a,_0x29598f]);}async[_0x24eb6c(0x240)](_0x1b00ed){const _0x2fc2c0={_0x43f8a1:0x1fe},_0x88972d=_0x24eb6c;this[_0x88972d(_0x2fc2c0._0x43f8a1)](_0x88972d(0x240),[_0x1b00ed]);}async['waitForLoadState'](_0x5124ae,_0x5bef2a){const _0x2c36a8=_0x24eb6c;this[_0x2c36a8(0x1fe)]('waitForLoadState',[_0x5124ae,_0x5bef2a]);}async[_0x24eb6c(0x24b)](_0x271e1e,_0x4c2c58){this['record']('goto',[_0x271e1e,_0x4c2c58]),this['currentUrl']=_0x271e1e;}async['reload'](_0x50927f){const _0x4bdb49=_0x24eb6c;this[_0x4bdb49(0x1fe)](_0x4bdb49(0x229),[_0x50927f]);}async[_0x24eb6c(0x20c)](_0x47bd99){const _0x134dc6=_0x24eb6c;this[_0x134dc6(0x1fe)](_0x134dc6(0x20c),[_0x47bd99]);}async[_0x24eb6c(0x1fc)](_0x2d0f82){const _0x1d996f=_0x24eb6c;this[_0x1d996f(0x1fe)](_0x1d996f(0x1fc),[_0x2d0f82]);}async[_0x24eb6c(0x202)](_0x2c4184){const _0x2c6875={_0x992085:0x202},_0x35d9a0=_0x24eb6c;return this[_0x35d9a0(0x1fe)](_0x35d9a0(_0x2c6875._0x992085),[_0x2c4184]),void 0x0;}async[_0x24eb6c(0x237)](_0x5c6015,_0x31e840){const _0x22d37d={_0x1fa7f2:0x1fe},_0x293a0a=_0x24eb6c;return this[_0x293a0a(_0x22d37d._0x1fa7f2)](_0x293a0a(0x237),[_0x5c6015,_0x31e840]),void 0x0;}async[_0x24eb6c(0x244)](_0x5a01d9){const _0x2f8896={_0x4b4abb:0x1e1,_0x27838c:0x209},_0x118bf8=_0x24eb6c;this['record']('inspectElement',[_0x5a01d9]);if(_0x5a01d9[_0x118bf8(0x1e4)][_0x118bf8(0x21f)]!==0x1||_0x5a01d9[_0x118bf8(0x1e4)][0x0][_0x118bf8(_0x2f8896._0x4b4abb)]!==_0x118bf8(0x209))return null;const _0xfc18d0=_0x5a01d9[_0x118bf8(0x1e4)][0x0][_0x118bf8(_0x2f8896._0x27838c)],_0x5af36d=this[_0x118bf8(0x1ed)]['elementHintByRef']?.[_0xfc18d0];return _0x5af36d??null;}async['screenshot'](_0x427995){const _0x157150={_0xcb03d2:0x1fe,_0xcb396c:0x1f2},_0x57f108=_0x24eb6c;return this[_0x57f108(_0x157150._0xcb03d2)](_0x57f108(0x22b),[_0x427995]),Buffer['from'](_0x57f108(_0x157150._0xcb396c));}async['outerHTML'](_0x2c00aa){const _0x40b6e0={_0x39ff2f:0x21f,_0x53c6a2:0x1e1,_0x5ed824:0x208,_0xc9a98b:0x22d,_0xcce565:0x225},_0x3c09e2=_0x24eb6c;this['record'](_0x3c09e2(0x1ee),[_0x2c00aa]);if(_0x2c00aa['steps'][_0x3c09e2(_0x40b6e0._0x39ff2f)]===0x1&&_0x2c00aa['steps'][0x0][_0x3c09e2(_0x40b6e0._0x53c6a2)]==='ref'){const _0x3fff3d=_0x2c00aa[_0x3c09e2(0x1e4)][0x0][_0x3c09e2(0x209)];return this[_0x3c09e2(0x1ed)][_0x3c09e2(_0x40b6e0._0x5ed824)]?.[_0x3fff3d]??_0x3c09e2(_0x40b6e0._0xc9a98b)+_0x3fff3d+_0x3c09e2(0x1e2);}return _0x3c09e2(_0x40b6e0._0xcce565);}},FakeContext=class{constructor(_0x3b8f76,_0x4b2e65,_0x51d789){const _0x4e8b0a={_0x5d6e10:0x1ea,_0x1735c3:0x23b,_0x4b8786:0x1f0,_0x105394:0x20b,_0x4607b8:0x249},_0x1a40c6={_0x1b4dc2:0x23c},_0x130a89=_0x24eb6c;this['recorder']=_0x3b8f76,this['behavior']=_0x4b2e65,this[_0x130a89(_0x4e8b0a._0x5d6e10)]=_0x51d789;const _0x12128d=new FakePage(_0x3b8f76,_0x4b2e65,_0x51d789+'.page0',_0x4b2e65[_0x130a89(_0x4e8b0a._0x1735c3)]??_0x130a89(0x21e));_0x4b2e65[_0x130a89(_0x4e8b0a._0x4b8786)]&&(_0x12128d[_0x130a89(0x23f)]=()=>{const _0x43e691=_0x130a89;this[_0x43e691(_0x1a40c6._0x1b4dc2)](_0x4b2e65['popupOnClick']);}),this['pageList']=[_0x12128d],this[_0x130a89(_0x4e8b0a._0x105394)]={..._0x4b2e65[_0x130a89(_0x4e8b0a._0x4607b8)]??{}},this[_0x130a89(0x220)]={..._0x4b2e65[_0x130a89(0x1df)]??{}};}[_0x24eb6c(0x215)];[_0x24eb6c(0x1ed)];[_0x24eb6c(0x1ea)];static{__name(this,'FakeContext');}[_0x24eb6c(0x221)];[_0x24eb6c(0x211)]=0x0;['frameStack']=[];[_0x24eb6c(0x20b)];[_0x24eb6c(0x220)];['newPageListeners']=new Set();[_0x24eb6c(0x1fe)](_0x139aac,_0x130703){const _0x108d40=_0x24eb6c;this[_0x108d40(0x215)][_0x108d40(0x205)]({'scope':this['scope'],'method':_0x139aac,'args':_0x130703});}['pages'](){const _0x6dd6ca={_0x52adf1:0x221},_0x1b3a4d=_0x24eb6c;return this[_0x1b3a4d(_0x6dd6ca._0x52adf1)];}[_0x24eb6c(0x22f)](){const _0x1476f9={_0x515d85:0x211},_0x4d60ac=_0x24eb6c,_0x1a651d=this[_0x4d60ac(0x221)][this[_0x4d60ac(_0x1476f9._0x515d85)]];if(!_0x1a651d)throw new DriverError('no\x20active\x20page\x20in\x20context',{'activeIdx':this[_0x4d60ac(0x211)]});return _0x1a651d;}[_0x24eb6c(0x223)](){const _0x1e8dbf={_0x34e11a:0x1ed},_0x5f2fb7=_0x24eb6c;return this[_0x5f2fb7(_0x1e8dbf._0x34e11a)][_0x5f2fb7(0x223)]??[];}[_0x24eb6c(0x20d)](){const _0x402aac={_0x2c01fa:0x1ed},_0xb74bf3=_0x24eb6c;return this[_0xb74bf3(_0x402aac._0x2c01fa)][_0xb74bf3(0x20d)]??[];}async['setActivePage'](_0x27d940){const _0xb4aca8={_0xf2f070:0x221,_0x1f39e6:0x211,_0x27fbe1:0x21f},_0x1da57d=_0x24eb6c;this[_0x1da57d(0x1fe)](_0x1da57d(0x20f),[_0x27d940]);if(_0x27d940<0x0||_0x27d940>=this[_0x1da57d(_0xb4aca8._0xf2f070)][_0x1da57d(0x21f)])throw new DriverError(_0x1da57d(0x245),{'index':_0x27d940,'available':this[_0x1da57d(0x221)][_0x1da57d(0x21f)]});this[_0x1da57d(_0xb4aca8._0x1f39e6)]=_0x27d940,this['frameStack'][_0x1da57d(_0xb4aca8._0x27fbe1)]=0x0;}[_0x24eb6c(0x1ff)](_0x584606){const _0x528863={_0x37e146:0x236},_0x5ddc6e=_0x24eb6c;return subscribe(this[_0x5ddc6e(_0x528863._0x37e146)],_0x584606);}['emitFakePopup'](_0x9b6332){const _0x71a880={_0x4e05f1:0x235,_0x4b2dc2:0x221,_0x57b16d:0x236},_0x383042=_0x24eb6c,_0x4ece96=this[_0x383042(0x1ea)]+_0x383042(_0x71a880._0x4e05f1)+this['pageList'][_0x383042(0x21f)],_0xe2c612=new FakePage(this[_0x383042(0x215)],this[_0x383042(0x1ed)],_0x4ece96,_0x9b6332);this[_0x383042(0x221)][_0x383042(0x205)](_0xe2c612);const _0x5cc53e=this[_0x383042(_0x71a880._0x4b2dc2)][_0x383042(0x21f)]-0x1;for(const _0x2a8a47 of this[_0x383042(_0x71a880._0x57b16d)]){try{_0x2a8a47({'index':_0x5cc53e,'url':_0x9b6332});}catch{}}return _0x5cc53e;}['closeFakePage'](_0x2b561e){const _0x200b30={_0x3cc602:0x21f,_0x6bd3ca:0x245,_0x40b8e8:0x221},_0x50f740=_0x24eb6c;if(_0x2b561e<0x0||_0x2b561e>=this['pageList'][_0x50f740(_0x200b30._0x3cc602)])throw new DriverError(_0x50f740(_0x200b30._0x6bd3ca),{'index':_0x2b561e,'available':this[_0x50f740(_0x200b30._0x40b8e8)]['length']});this['pageList'][_0x50f740(0x222)](_0x2b561e,0x1);}async[_0x24eb6c(0x1da)](_0x5bb1d2){const _0x9f45ca={_0x479de6:0x1fe,_0x34486d:0x1e4},_0x20a0ff=_0x24eb6c;this[_0x20a0ff(_0x9f45ca._0x479de6)](_0x20a0ff(0x1da),[_0x5bb1d2]);if(!_0x5bb1d2[_0x20a0ff(_0x9f45ca._0x34486d)]['length'])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x5bb1d2});this[_0x20a0ff(0x1d9)][_0x20a0ff(0x205)](_0x5bb1d2);}async['exitFrame'](){const _0x433f29={_0x3f95de:0x1d9,_0x592f0f:0x243},_0x3d424a=_0x24eb6c;this['record'](_0x3d424a(0x206),[]);if(this[_0x3d424a(_0x433f29._0x3f95de)]['length']===0x0)throw new DriverError(_0x3d424a(_0x433f29._0x592f0f),{});this['frameStack']['pop']();}async['setLocalStorage'](_0x45c7fb,_0x48d44f){const _0x40a59d={_0x3d4d4a:0x1fe},_0x407222=_0x24eb6c;this[_0x407222(_0x40a59d._0x3d4d4a)](_0x407222(0x1d8),[_0x45c7fb,_0x48d44f]),this['localStorageState'][_0x45c7fb]=_0x48d44f;}async[_0x24eb6c(0x1f7)](_0x14c8fa){const _0x210ab8=_0x24eb6c;return this['record'](_0x210ab8(0x1f7),[_0x14c8fa]),this[_0x210ab8(0x20b)][_0x14c8fa]??null;}async[_0x24eb6c(0x241)](_0x5e2f68,_0x1718f2,_0x35f6d2){const _0x42f6de=_0x24eb6c;this['record']('setCookie',[_0x5e2f68,_0x1718f2,_0x35f6d2]),this[_0x42f6de(0x220)][_0x5e2f68]=_0x1718f2;}async[_0x24eb6c(0x1d7)](_0x226e82){const _0x14b7c1={_0x4618f7:0x1d7,_0x52ef62:0x220},_0x4987cd=_0x24eb6c;return this['record'](_0x4987cd(_0x14b7c1._0x4618f7),[_0x226e82]),this[_0x4987cd(_0x14b7c1._0x52ef62)][_0x226e82]??null;}async[_0x24eb6c(0x1de)](_0x4b111c){const _0x49dd04={_0x110355:0x1fe,_0x543fcf:0x1de},_0x308abd=_0x24eb6c;this[_0x308abd(_0x49dd04._0x110355)](_0x308abd(_0x49dd04._0x543fcf),[_0x4b111c]);}async[_0x24eb6c(0x202)](_0x5a9ac1){const _0x3bb395=_0x24eb6c;return this[_0x3bb395(0x1fe)]('evaluate',[_0x5a9ac1]),void 0x0;}async[_0x24eb6c(0x227)](){this['record']('close',[]);}[_0x24eb6c(0x1e8)](){const _0x36e471={_0x1b1e67:0x1d9,_0x4db52a:0x21f},_0x27648f=_0x24eb6c;return this[_0x27648f(_0x36e471._0x1b1e67)][_0x27648f(_0x36e471._0x4db52a)];}},FakeWebDriver=class{constructor(_0x1c3cab={}){const _0x3ae429={_0x1884e8:0x215},_0x3338fe=_0x24eb6c;this['behavior']=_0x1c3cab,this[_0x3338fe(_0x3ae429._0x1884e8)]=createRecorder();}[_0x24eb6c(0x1ed)];static{__name(this,_0x24eb6c(0x238));}[_0x24eb6c(0x21c)]=![];[_0x24eb6c(0x215)];['contexts']=[];async[_0x24eb6c(0x242)](_0x1d60eb){const _0x3b0aee={_0x2c1a8e:0x23e,_0x7c2383:0x242},_0x219ce1=_0x24eb6c;this[_0x219ce1(0x215)]['push']({'scope':_0x219ce1(_0x3b0aee._0x2c1a8e),'method':_0x219ce1(_0x3b0aee._0x7c2383),'args':[_0x1d60eb]}),this[_0x219ce1(0x21c)]=!![];}async[_0x24eb6c(0x216)](_0x1d5c28){const _0x337879={_0x447921:0x215,_0x248a16:0x205,_0x1acfc7:0x21c,_0x2c79d1:0x1dc,_0x119b4d:0x21f},_0x31e5d8=_0x24eb6c;this[_0x31e5d8(_0x337879._0x447921)][_0x31e5d8(_0x337879._0x248a16)]({'scope':_0x31e5d8(0x23e),'method':_0x31e5d8(0x216),'args':[_0x1d5c28]});if(!this[_0x31e5d8(_0x337879._0x1acfc7)])throw new DriverError(_0x31e5d8(0x1db),{});const _0x31ce42=new FakeContext(this[_0x31e5d8(0x215)],this[_0x31e5d8(0x1ed)],_0x31e5d8(0x228)+this[_0x31e5d8(_0x337879._0x2c79d1)][_0x31e5d8(_0x337879._0x119b4d)]);return this[_0x31e5d8(0x1dc)]['push'](_0x31ce42),_0x31ce42;}async[_0x24eb6c(0x227)](){const _0x3ae219={_0x4bf993:0x23e,_0x3feac1:0x227},_0x3c5a66=_0x24eb6c;this[_0x3c5a66(0x215)][_0x3c5a66(0x205)]({'scope':_0x3c5a66(_0x3ae219._0x4bf993),'method':_0x3c5a66(_0x3ae219._0x3feac1),'args':[]}),this[_0x3c5a66(0x21c)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x24eb6c(0x1eb)](){const _0x447a21={_0x2d4cc5:0x1f5},_0x7312a9=_0x24eb6c;throw new DriverError(_0x7312a9(_0x447a21._0x2d4cc5),{});}['attachExisting'](){const _0xbeb883={_0x1dadf3:0x1f6},_0x84439d=_0x24eb6c;throw new DriverError(_0x84439d(_0xbeb883._0x1dadf3),{});}[_0x24eb6c(0x24c)](){const _0x2f499f=_0x24eb6c;return this['recorder'][_0x2f499f(0x24c)]();}[_0x24eb6c(0x247)](_0x20f672){const _0x11fa73={_0x490cbf:0x23d},_0x55feeb=_0x24eb6c;return this[_0x55feeb(0x215)][_0x55feeb(0x24c)]()[_0x55feeb(_0x11fa73._0x490cbf)](_0x5c9348=>_0x5c9348[_0x55feeb(0x1f1)]===_0x20f672);}};export{FakeWebDriver};
|
|
1
|
+
const _0x1ee15b=_0x1f21;(function(_0x259ced,_0x569cbc){const _0xd649e5={_0x5ec69c:0x25a,_0x36c7cb:0x264,_0x1304dc:0x225,_0x534f57:0x26a,_0x143dfc:0x265},_0xdd25d8=_0x1f21,_0x312b99=_0x259ced();while(!![]){try{const _0x1a065e=parseInt(_0xdd25d8(_0xd649e5._0x5ec69c))/0x1+parseInt(_0xdd25d8(0x245))/0x2*(-parseInt(_0xdd25d8(0x21a))/0x3)+-parseInt(_0xdd25d8(_0xd649e5._0x36c7cb))/0x4+parseInt(_0xdd25d8(_0xd649e5._0x1304dc))/0x5+parseInt(_0xdd25d8(0x216))/0x6*(parseInt(_0xdd25d8(_0xd649e5._0x534f57))/0x7)+parseInt(_0xdd25d8(0x22e))/0x8+parseInt(_0xdd25d8(_0xd649e5._0x143dfc))/0x9*(-parseInt(_0xdd25d8(0x202))/0xa);if(_0x1a065e===_0x569cbc)break;else _0x312b99['push'](_0x312b99['shift']());}catch(_0x5571b7){_0x312b99['push'](_0x312b99['shift']());}}}(_0x174a,0x45e20));function _0x174a(){const _0x4ad89f=['CMvM','Cg9W','Bg9JywXtDg9YywDLu3rHDgu','nZaYweH0v21Y','y2fSBhm','y29UDgv4Da','Bwv0Ag9K','m2f0t1nbEq','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','zNjHBwvtDgfJAW','zw1PDezHA2vqB3b1Ca','ywn0AxzLswr4','zxHPDezYyw1L','yxr0CMLIDxrLC0j5rgvMyxvSDa','y2HLy2TLzfn0yxrLqNLezwzHDwX0','y291BNq','Aw5WDxrwywX1zuj5rgvMyxvSDa','z290BW','nZK3ntqWtLb6v0L4','D2fPDezVCG','ywn0AxzLugfNzq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','AxneAxnHyMXLzej5rgvMyxvSDa','y3r4','pgrPDJ48l2rPDJ4','y2HLy2S','CgfNzxm','mJGYmZyWv25AC1H4','zxjYB3jpBK5LEhrby3rPB24','y2XPy2S','Ag92zxi','y2XVC2vgywTLugfNzq','y29VA2LLu3rHDgu','C2v0q29VA2LL','iJ48l2rPDJ4','zxzHBhvHDgu','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','zMfRzsb0AxrSzq','y29UDgv4Dhm','CMvSB2fK','z29gB3j3yxjK','BgvUz3rO','ywjVDxq6yMXHBMS','D3nfBMrWB2LUDa','yxr0ywnOrxHPC3rPBMC','C2nYB2XSsw50B1zPzxC','zNjHBwvezxb0Aa','BMv0D29YA0vUDhjPzxm','Aw5PDgLHBfvYBa','zxzHBhvHDgvpBKXVy2f0B3i','nte4mZyWvvj4tKzX','vw5VDgvZDevYCM9Y','BMfTzq','zMLSBa','y29UBMvJDfnOyxjLza','Bwf5yMvuAhjVDW','zNvUy3rPB24','Dgv4DenVBNrLBNq','D2fPDezVCLrLEhq','BMv3q29UDgv4Da','tg9JyxrVCKvYCM9Y','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','CMvJB3jKzxi','Cg9WDxbpBKnSAwnR','zg91yMXLq2XPy2S','B25ozxDqywDL','zgvMAw5LuhjVCgvYDhK','y2XVC2u','C2v0qwn0AxzLugfNzq','rMfRzvbHz2u','C2vSzwn0t3b0Aw9U','nde4otuZzKXmyu9l','lNbHz2u','rMfRzvDLyKrYAxzLCG','AxnwAxnPyMXLqNLezwzHDwX0','CgfNzuXPC3q','DgL0Bgu','ywrK','z29cywnR','zNjLzxPL','C3rLChm','mJiXodC4ngX5AMDZtq','odm0m01qy2jXDq','Aw5WDxrwywX1zq','C3vIC2nYAwjL','BMv3ugfNzuXPC3rLBMvYCW','zgvSzxrL','mZi2ndHkA0T2BfC','Dw5JAgvJAW','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','zw50zxjgCMfTzq','zMLSDgvY','AxnwAxnPyMXL','rhjPDMvYrxjYB3i','zhjHz0fUzerYB3a','D2fPDezVCLvYBa','Aw5ZCgvJDevSzw1LBNq','y3vYCMvUDfvYBa','z2v0qxr0CMLIDxrL','y2HLy2TLzfn0yxrL','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','y29UC29SzuvUDhjPzxm','y2XPCgjVyxjKugfZDgu','C2v0tg9JywXtDg9YywDL','B25bzNrLCKnSAwnR','y2fSBhngB3i','Dgv4DenVBNrLBNrcEurLzMf1Bhq','CMvJB3jK','B3v0zxjive1m','nJqWBxzivLfQ','C2nVCgu','z2v0q29VA2LL','yMvOyxzPB3i','DxbSB2fKrMLSzq','C2f2zvn0B3jHz2vtDgf0zq','D2fPDezVCK5HDMLNyxrPB24','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','Bgf1BMnOzwq','zwXLBwvUDeHPBNrcEvjLzG','ChvZAa','AxneAxnHyMXLza','C2nYzwvUC2HVDa','A2LUza','z2v0tg9JywXtDg9YywDL','zhjPDMvY','y2fWDhvYzvn0ywnRvhjHy2u'];_0x174a=function(){return _0x4ad89f;};return _0x174a();}function _0x1f21(_0x44c626,_0x25f414){_0x44c626=_0x44c626-0x1f2;const _0x174a2c=_0x174a();let _0x1f21ae=_0x174a2c[_0x44c626];if(_0x1f21['VGoVVm']===undefined){var _0x16f8be=function(_0x5dc197){const _0x30dc40='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d46e9='',_0xc527f7='';for(let _0x4adc4c=0x0,_0x56e1c5,_0x4e2243,_0x109811=0x0;_0x4e2243=_0x5dc197['charAt'](_0x109811++);~_0x4e2243&&(_0x56e1c5=_0x4adc4c%0x4?_0x56e1c5*0x40+_0x4e2243:_0x4e2243,_0x4adc4c++%0x4)?_0x1d46e9+=String['fromCharCode'](0xff&_0x56e1c5>>(-0x2*_0x4adc4c&0x6)):0x0){_0x4e2243=_0x30dc40['indexOf'](_0x4e2243);}for(let _0x3e4219=0x0,_0xffed98=_0x1d46e9['length'];_0x3e4219<_0xffed98;_0x3e4219++){_0xc527f7+='%'+('00'+_0x1d46e9['charCodeAt'](_0x3e4219)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc527f7);};_0x1f21['ypaSWs']=_0x16f8be,_0x1f21['LjxSRz']={},_0x1f21['VGoVVm']=!![];}const _0x2883d0=_0x174a2c[0x0],_0x18fea8=_0x44c626+_0x2883d0,_0x1497aa=_0x1f21['LjxSRz'][_0x18fea8];return!_0x1497aa?(_0x1f21ae=_0x1f21['ypaSWs'](_0x1f21ae),_0x1f21['LjxSRz'][_0x18fea8]=_0x1f21ae):_0x1f21ae=_0x1497aa,_0x1f21ae;}var __defProp=Object[_0x1ee15b(0x255)],__name=(_0x1d46e9,_0xc527f7)=>__defProp(_0x1d46e9,_0x1ee15b(0x247),{'value':_0xc527f7,'configurable':!![]});function subscribe(_0x4adc4c,_0x56e1c5){const _0x153acb={_0x2afdcd:0x260},_0x2decac={_0xdfb7ba:0x269},_0xb48776=_0x1ee15b;return _0x4adc4c[_0xb48776(_0x153acb._0x2afdcd)](_0x56e1c5),()=>{const _0x2cf3de=_0xb48776;_0x4adc4c[_0x2cf3de(_0x2decac._0xdfb7ba)](_0x56e1c5);};}__name(subscribe,_0x1ee15b(0x267));var UnotestError=class extends Error{static{__name(this,_0x1ee15b(0x246));}[_0x1ee15b(0x218)];constructor(_0x4e2243,_0x109811={}){const _0x373b42={_0x233c28:0x262},_0x49eb99=_0x1ee15b;super(_0x4e2243),this[_0x49eb99(0x247)]=new.target.name,this['context']=Object[_0x49eb99(_0x373b42._0x233c28)]({..._0x109811}),typeof Error[_0x49eb99(0x212)]===_0x49eb99(0x24b)&&Error['captureStackTrace'](this,new.target);}},DriverError=class extends UnotestError{static{__name(this,_0x1ee15b(0x1f2));}},LocatorError=class extends UnotestError{static{__name(this,_0x1ee15b(0x24f));}};function createRecorder(){const _0x9d75d7={_0xa9ccf3:0x20c},_0x2975d9=_0x1ee15b,_0x3e4219=[];let _0xffed98=0x0;return{'push':__name(_0x4fdd8c=>_0x3e4219[_0x2975d9(0x20c)]({..._0x4fdd8c,'seq':_0xffed98++}),_0x2975d9(_0x9d75d7._0xa9ccf3)),'calls':__name(()=>_0x3e4219,_0x2975d9(0x217))};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x174510,_0x3417eb,_0x35384c,_0x2511c9){const _0x5e897e=_0x1ee15b;this[_0x5e897e(0x251)]=_0x174510,this[_0x5e897e(0x205)]=_0x3417eb,this[_0x5e897e(0x203)]=_0x35384c,this['currentUrl']=_0x2511c9;}[_0x1ee15b(0x251)];[_0x1ee15b(0x205)];[_0x1ee15b(0x203)];static{__name(this,_0x1ee15b(0x258));}[_0x1ee15b(0x1f6)];[_0x1ee15b(0x1fd)];['record'](_0x2d3fee,_0x10702a){const _0x3d367a=_0x1ee15b;this[_0x3d367a(0x251)][_0x3d367a(0x20c)]({'scope':this[_0x3d367a(0x203)],'method':_0x2d3fee,'args':_0x10702a});}[_0x1ee15b(0x24a)](){const _0x270fe0={_0x40b1f7:0x205,_0x1b68ac:0x205},_0x4bc8bb=_0x1ee15b;if(this[_0x4bc8bb(_0x270fe0._0x40b1f7)]['errorOnNextAction']){const _0x47f818=this['behavior'][_0x4bc8bb(0x22f)];this[_0x4bc8bb(_0x270fe0._0x1b68ac)][_0x4bc8bb(0x22f)]=void 0x0;throw _0x47f818;}}['url'](){const _0x113f6f=_0x1ee15b;return this[_0x113f6f(0x1f6)];}async['title'](){const _0x6b5ba5={_0xed27a0:0x25f},_0x1058ff=_0x1ee15b;return this[_0x1058ff(0x200)](_0x1058ff(_0x6b5ba5._0xed27a0),[]),_0x1058ff(0x238);}async[_0x1ee15b(0x230)](_0x194771,_0x35d85c){const _0x1e2be7={_0x5e02e0:0x200,_0x3d6a8f:0x1fd},_0x433285=_0x1ee15b;this[_0x433285(_0x1e2be7._0x5e02e0)](_0x433285(0x230),[_0x194771,_0x35d85c]),this[_0x433285(0x24a)](),this[_0x433285(_0x1e2be7._0x3d6a8f)]?.();}async[_0x1ee15b(0x253)](_0x2bc406,_0x11d9b1){const _0x13e440={_0x3c43ab:0x24a},_0x28478a=_0x1ee15b;this[_0x28478a(0x200)]('doubleClick',[_0x2bc406,_0x11d9b1]),this[_0x28478a(_0x13e440._0x3c43ab)]();}async[_0x1ee15b(0x248)](_0x3f1767,_0x3e4c4c,_0x17d916){const _0x5d5ae1={_0xb394e7:0x248,_0x259149:0x24a},_0x54d62c=_0x1ee15b;this['record'](_0x54d62c(_0x5d5ae1._0xb394e7),[_0x3f1767,_0x3e4c4c,_0x17d916]),this[_0x54d62c(_0x5d5ae1._0x259149)]();}async['press'](_0x20eafc,_0x3491f9,_0x21f79f){const _0x17944b=_0x1ee15b;this[_0x17944b(0x200)]('press',[_0x20eafc,_0x3491f9,_0x21f79f]),this[_0x17944b(0x24a)]();}async[_0x1ee15b(0x22c)](_0x286b91,_0x2f6bf4){const _0x357f62=_0x1ee15b;this[_0x357f62(0x200)](_0x357f62(0x22c),[_0x286b91,_0x2f6bf4]),this['maybeThrow']();}async[_0x1ee15b(0x26b)](_0x35860f,_0x25fb0e){const _0x2ef335=_0x1ee15b;this['record']('uncheck',[_0x35860f,_0x25fb0e]),this[_0x2ef335(0x24a)]();}async[_0x1ee15b(0x259)](_0x4ae0e6,_0x235bda,_0x40bd28){const _0x17cf48={_0x407f9e:0x24a},_0x689e26=_0x1ee15b;this[_0x689e26(0x200)](_0x689e26(0x259),[_0x4ae0e6,_0x235bda,_0x40bd28]),this[_0x689e26(_0x17cf48._0x407f9e)]();}async['hover'](_0x2a7f91,_0x1348fd){const _0x103b30={_0x390de5:0x231},_0x54c7d4=_0x1ee15b;this[_0x54c7d4(0x200)](_0x54c7d4(_0x103b30._0x390de5),[_0x2a7f91,_0x1348fd]),this['maybeThrow']();}async[_0x1ee15b(0x240)](_0xa420e3){const _0x3c754f={_0x62e922:0x240},_0x28505d=_0x1ee15b;this[_0x28505d(0x200)](_0x28505d(_0x3c754f._0x62e922),[_0xa420e3]),this[_0x28505d(0x24a)]();}async[_0x1ee15b(0x1f3)](_0x25b3d5,_0x22c694,_0x31b0bc){const _0x23cc9a={_0x450606:0x1f3,_0x2d9b29:0x24a},_0x4fa983=_0x1ee15b;this['record'](_0x4fa983(_0x23cc9a._0x450606),[_0x25b3d5,_0x22c694,_0x31b0bc]),this[_0x4fa983(_0x23cc9a._0x2d9b29)]();}async[_0x1ee15b(0x206)](_0xe8e3a8,_0x98c03a){const _0x1070ad=_0x1ee15b;this['record'](_0x1070ad(0x206),[_0xe8e3a8,_0x98c03a]),this[_0x1070ad(0x24a)]();}async[_0x1ee15b(0x1fb)](_0x429cb1,_0xc96083){const _0x3fea67={_0x51ed1a:0x200,_0x5959fe:0x1fb},_0x5c5bbd=_0x1ee15b;this[_0x5c5bbd(_0x3fea67._0x51ed1a)](_0x5c5bbd(_0x3fea67._0x5959fe),[_0x429cb1,_0xc96083]),this[_0x5c5bbd(0x24a)]();}async[_0x1ee15b(0x222)](_0x270592){const _0x4c8043={_0x341e26:0x205},_0x31082e=_0x1ee15b;return this['record']('count',[_0x270592]),this[_0x31082e(_0x4c8043._0x341e26)]['countByDefault']??0x1;}async['textContent'](_0x249bfd){const _0x1efc81={_0x48aba7:0x24c,_0x4bf185:0x1ff},_0x2ea231=_0x1ee15b;return this[_0x2ea231(0x200)](_0x2ea231(_0x1efc81._0x48aba7),[_0x249bfd]),this[_0x2ea231(0x205)][_0x2ea231(_0x1efc81._0x4bf185)]??'';}async[_0x1ee15b(0x266)](_0x541f05){const _0x243ff1={_0xd5c29a:0x266},_0x5bc008=_0x1ee15b;return this[_0x5bc008(0x200)](_0x5bc008(_0x243ff1._0xd5c29a),[_0x541f05]),this['behavior'][_0x5bc008(0x223)]??'';}async['checkedState'](_0x1187b6){const _0x4edb0c=_0x1ee15b;return this[_0x4edb0c(0x200)](_0x4edb0c(0x1f8),[_0x1187b6]),this['behavior'][_0x4edb0c(0x221)]??null;}async['isVisible'](_0x3672a4){const _0x28d08e={_0x421c52:0x200,_0x23fb10:0x205,_0xe8bf59:0x25d},_0x289bce=_0x1ee15b;return this[_0x289bce(_0x28d08e._0x421c52)](_0x289bce(0x26f),[_0x3672a4]),this[_0x289bce(_0x28d08e._0x23fb10)][_0x289bce(_0x28d08e._0xe8bf59)]??!![];}async['isDisabled'](_0x331cdd){const _0x183eb3={_0x27fe17:0x200,_0x4825ca:0x20d},_0x507118=_0x1ee15b;return this[_0x507118(_0x183eb3._0x27fe17)](_0x507118(_0x183eb3._0x4825ca),[_0x331cdd]),this['behavior'][_0x507118(0x229)]??![];}async['getAttribute'](_0x3e1e17,_0x3db2fe){const _0x18096a={_0x18a127:0x1f7,_0x3a846d:0x205},_0x220069=_0x1ee15b;return this[_0x220069(0x200)](_0x220069(_0x18096a._0x18a127),[_0x3e1e17,_0x3db2fe]),this[_0x220069(_0x18096a._0x3a846d)][_0x220069(0x220)]?.[_0x3db2fe]??null;}async[_0x1ee15b(0x226)](_0x58ac43,_0x3b2981){const _0x3125b5={_0x4e6303:0x200},_0x58d9d2=_0x1ee15b;this[_0x58d9d2(_0x3125b5._0x4e6303)]('waitFor',[_0x58ac43,_0x3b2981]);}async['waitForUrl'](_0x55da84,_0x4e4e63){const _0x5222dd=_0x1ee15b;this[_0x5222dd(0x200)](_0x5222dd(0x1f4),[_0x55da84,_0x4e4e63]);}async[_0x1ee15b(0x24d)](_0xffc1c3,_0x97064){const _0x32891a=_0x1ee15b;this['record'](_0x32891a(0x24d),[_0xffc1c3,_0x97064]);}async[_0x1ee15b(0x208)](_0x4e6b16){const _0xab8f95={_0x209388:0x200,_0x3ad4e8:0x208},_0x283be3=_0x1ee15b;this[_0x283be3(_0xab8f95._0x209388)](_0x283be3(_0xab8f95._0x3ad4e8),[_0x4e6b16]);}async['waitForLoadState'](_0x5d5543,_0x2cc70c){const _0x59011c={_0x5e9e8b:0x200},_0x3f522b=_0x1ee15b;this[_0x3f522b(_0x59011c._0x5e9e8b)]('waitForLoadState',[_0x5d5543,_0x2cc70c]);}async[_0x1ee15b(0x224)](_0x3dfed3,_0xdbb23c){const _0x5c365e={_0x1ca17b:0x224},_0x290ea9=_0x1ee15b;this['record'](_0x290ea9(_0x5c365e._0x1ca17b),[_0x3dfed3,_0xdbb23c]),this[_0x290ea9(0x1f6)]=_0x3dfed3;}async[_0x1ee15b(0x23a)](_0x5a8262){const _0x56dd2e=_0x1ee15b;this[_0x56dd2e(0x200)](_0x56dd2e(0x23a),[_0x5a8262]);}async['goBack'](_0x361d5b){const _0x28b069={_0x2257c7:0x200},_0x30ab37=_0x1ee15b;this[_0x30ab37(_0x28b069._0x2257c7)](_0x30ab37(0x261),[_0x361d5b]);}async[_0x1ee15b(0x23b)](_0x2dda82){this['record']('goForward',[_0x2dda82]);}async[_0x1ee15b(0x236)](_0x244304){const _0x63cee4=_0x1ee15b;return this['record'](_0x63cee4(0x236),[_0x244304]),void 0x0;}async[_0x1ee15b(0x244)](_0x1a5db3,_0x1664d4){const _0x196ad5={_0xc9a7d4:0x244},_0x155558=_0x1ee15b;return this['record'](_0x155558(_0x196ad5._0xc9a7d4),[_0x1a5db3,_0x1664d4]),void 0x0;}async[_0x1ee15b(0x1f5)](_0x109e7a){const _0x38e56d={_0x3aec27:0x1f5,_0x39d85b:0x263,_0x429a67:0x213,_0x3fe21b:0x20b},_0x200ec4=_0x1ee15b;this[_0x200ec4(0x200)](_0x200ec4(_0x38e56d._0x3aec27),[_0x109e7a]);if(_0x109e7a[_0x200ec4(_0x38e56d._0x39d85b)][_0x200ec4(0x23c)]!==0x1||_0x109e7a[_0x200ec4(0x263)][0x0][_0x200ec4(0x20f)]!==_0x200ec4(_0x38e56d._0x429a67))return null;const _0x4671b2=_0x109e7a[_0x200ec4(_0x38e56d._0x39d85b)][0x0][_0x200ec4(_0x38e56d._0x429a67)],_0x3c8f81=this[_0x200ec4(0x205)][_0x200ec4(_0x38e56d._0x3fe21b)]?.[_0x4671b2];return _0x3c8f81??null;}async[_0x1ee15b(0x20e)](_0x485b46){const _0x9c1d51=_0x1ee15b;return this[_0x9c1d51(0x200)](_0x9c1d51(0x20e),[_0x485b46]),Buffer['from']('fake-png');}async[_0x1ee15b(0x201)](_0x3dca57){const _0x1c50c0={_0x50b4fa:0x263,_0x3c4d58:0x20f,_0x238574:0x213,_0x396f24:0x235},_0x5acdbb=_0x1ee15b;this[_0x5acdbb(0x200)](_0x5acdbb(0x201),[_0x3dca57]);if(_0x3dca57['steps'][_0x5acdbb(0x23c)]===0x1&&_0x3dca57[_0x5acdbb(_0x1c50c0._0x50b4fa)][0x0][_0x5acdbb(_0x1c50c0._0x3c4d58)]===_0x5acdbb(_0x1c50c0._0x238574)){const _0x4821f2=_0x3dca57['steps'][0x0][_0x5acdbb(_0x1c50c0._0x238574)];return this[_0x5acdbb(0x205)]['outerHtmlByRef']?.[_0x4821f2]??_0x5acdbb(0x26c)+_0x4821f2+_0x5acdbb(_0x1c50c0._0x396f24);}return _0x5acdbb(0x22b);}},FakeContext=class{constructor(_0x4e23cf,_0x4d6000,_0x39905b){const _0x18bbb8={_0x2aae6b:0x205,_0x549e03:0x203,_0x6d1d7b:0x23d,_0x9932af:0x1fd},_0x305358={_0x5742a5:0x21d},_0x386724=_0x1ee15b;this['recorder']=_0x4e23cf,this[_0x386724(_0x18bbb8._0x2aae6b)]=_0x4d6000,this[_0x386724(_0x18bbb8._0x549e03)]=_0x39905b;const _0x22463c=new FakePage(_0x4e23cf,_0x4d6000,_0x39905b+'.page0',_0x4d6000[_0x386724(0x243)]??_0x386724(_0x18bbb8._0x6d1d7b));_0x4d6000[_0x386724(0x252)]&&(_0x22463c[_0x386724(_0x18bbb8._0x9932af)]=()=>{const _0x5c7889=_0x386724;this[_0x5c7889(_0x305358._0x5742a5)](_0x4d6000['popupOnClick']);}),this[_0x386724(0x25e)]=[_0x22463c],this[_0x386724(0x215)]={..._0x4d6000['localStorage']??{}},this[_0x386724(0x233)]={..._0x4d6000['cookies']??{}};}[_0x1ee15b(0x251)];['behavior'];[_0x1ee15b(0x203)];static{__name(this,'FakeContext');}['pageList'];[_0x1ee15b(0x21e)]=0x0;[_0x1ee15b(0x21c)]=[];[_0x1ee15b(0x215)];[_0x1ee15b(0x233)];[_0x1ee15b(0x268)]=new Set();[_0x1ee15b(0x200)](_0x355c5b,_0x50a192){const _0x47b3b5=_0x1ee15b;this[_0x47b3b5(0x251)][_0x47b3b5(0x20c)]({'scope':this[_0x47b3b5(0x203)],'method':_0x355c5b,'args':_0x50a192});}[_0x1ee15b(0x22d)](){const _0x39f027=_0x1ee15b;return this[_0x39f027(0x25e)];}[_0x1ee15b(0x227)](){const _0x321aca={_0xb070:0x25e,_0x302f17:0x21e},_0x2e52f5=_0x1ee15b,_0x5e07b7=this[_0x2e52f5(_0x321aca._0xb070)][this[_0x2e52f5(_0x321aca._0x302f17)]];if(!_0x5e07b7)throw new DriverError(_0x2e52f5(0x228),{'activeIdx':this[_0x2e52f5(0x21e)]});return _0x5e07b7;}[_0x1ee15b(0x1fa)](){const _0x3de295={_0x190b53:0x205,_0x596f31:0x1fa},_0x3a5f59=_0x1ee15b;return this[_0x3a5f59(_0x3de295._0x190b53)][_0x3a5f59(_0x3de295._0x596f31)]??[];}[_0x1ee15b(0x242)](){const _0x471c8b={_0x42b972:0x205},_0x4548f9=_0x1ee15b;return this[_0x4548f9(_0x471c8b._0x42b972)][_0x4548f9(0x242)]??[];}async[_0x1ee15b(0x257)](_0x234ab1){const _0x4445bd={_0x4ae1cd:0x200,_0x3ec6ba:0x257,_0x5a72f8:0x23c},_0x3dbc45=_0x1ee15b;this[_0x3dbc45(_0x4445bd._0x4ae1cd)](_0x3dbc45(_0x4445bd._0x3ec6ba),[_0x234ab1]);if(_0x234ab1<0x0||_0x234ab1>=this['pageList'][_0x3dbc45(0x23c)])throw new DriverError(_0x3dbc45(0x21b),{'index':_0x234ab1,'available':this[_0x3dbc45(0x25e)][_0x3dbc45(_0x4445bd._0x5a72f8)]});this[_0x3dbc45(0x21e)]=_0x234ab1,this[_0x3dbc45(0x21c)][_0x3dbc45(_0x4445bd._0x5a72f8)]=0x0;}[_0x1ee15b(0x254)](_0x349224){const _0x3fb948=_0x1ee15b;return subscribe(this[_0x3fb948(0x268)],_0x349224);}['emitFakePopup'](_0x50cb3c){const _0x37f358={_0xda9203:0x23c,_0x2b7ba3:0x268},_0x212103=_0x1ee15b,_0x22af1d=this[_0x212103(0x203)]+_0x212103(0x25b)+this['pageList'][_0x212103(_0x37f358._0xda9203)],_0x5aa89d=new FakePage(this[_0x212103(0x251)],this[_0x212103(0x205)],_0x22af1d,_0x50cb3c);this['pageList'][_0x212103(0x20c)](_0x5aa89d);const _0x1eab66=this[_0x212103(0x25e)][_0x212103(0x23c)]-0x1;for(const _0x20081e of this[_0x212103(_0x37f358._0x2b7ba3)]){try{_0x20081e({'index':_0x1eab66,'url':_0x50cb3c});}catch{}}return _0x1eab66;}[_0x1ee15b(0x232)](_0x202c11){const _0x4245bb=_0x1ee15b;if(_0x202c11<0x0||_0x202c11>=this[_0x4245bb(0x25e)][_0x4245bb(0x23c)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x202c11,'available':this[_0x4245bb(0x25e)][_0x4245bb(0x23c)]});this[_0x4245bb(0x25e)]['splice'](_0x202c11,0x1);}async[_0x1ee15b(0x26d)](_0x2d1724){const _0x4af045={_0x48b422:0x200,_0x180f57:0x263,_0x39f12c:0x23c,_0x4a9546:0x21c},_0x3a2ecd=_0x1ee15b;this[_0x3a2ecd(_0x4af045._0x48b422)]('enterFrame',[_0x2d1724]);if(!_0x2d1724[_0x3a2ecd(_0x4af045._0x180f57)][_0x3a2ecd(_0x4af045._0x39f12c)])throw new LocatorError(_0x3a2ecd(0x1f9),{'locator':_0x2d1724});this[_0x3a2ecd(_0x4af045._0x4a9546)]['push'](_0x2d1724);}async[_0x1ee15b(0x21f)](){const _0x24fc31={_0x3eca3b:0x200,_0x1a8044:0x214},_0x126a53=_0x1ee15b;this[_0x126a53(_0x24fc31._0x3eca3b)](_0x126a53(0x21f),[]);if(this[_0x126a53(0x21c)][_0x126a53(0x23c)]===0x0)throw new DriverError(_0x126a53(0x209),{});this['frameStack'][_0x126a53(_0x24fc31._0x1a8044)]();}async['setLocalStorage'](_0x3ea57b,_0x42ecda){const _0x1aff29={_0x3bafa7:0x1fc},_0x2b9032=_0x1ee15b;this[_0x2b9032(0x200)](_0x2b9032(_0x1aff29._0x3bafa7),[_0x3ea57b,_0x42ecda]),this['localStorageState'][_0x3ea57b]=_0x42ecda;}async[_0x1ee15b(0x210)](_0x1dab67){const _0x3d9a0e={_0x41dc5d:0x215},_0x3311cf=_0x1ee15b;return this['record'](_0x3311cf(0x210),[_0x1dab67]),this[_0x3311cf(_0x3d9a0e._0x41dc5d)][_0x1dab67]??null;}async[_0x1ee15b(0x234)](_0xd40c63,_0x2c5252,_0x3b5e32){const _0x40b224={_0x2a272a:0x233},_0x56502d=_0x1ee15b;this['record']('setCookie',[_0xd40c63,_0x2c5252,_0x3b5e32]),this[_0x56502d(_0x40b224._0x2a272a)][_0xd40c63]=_0x2c5252;}async[_0x1ee15b(0x204)](_0x5600b5){const _0xb623bb=_0x1ee15b;return this[_0xb623bb(0x200)](_0xb623bb(0x204),[_0x5600b5]),this[_0xb623bb(0x233)][_0x5600b5]??null;}async[_0x1ee15b(0x207)](_0x19669e){const _0x2c8ccf={_0x558baf:0x207},_0x29904a=_0x1ee15b;this[_0x29904a(0x200)](_0x29904a(_0x2c8ccf._0x558baf),[_0x19669e]);}async[_0x1ee15b(0x236)](_0x437bee){return this['record']('evaluate',[_0x437bee]),void 0x0;}async['close'](){const _0x8a017a={_0x21b216:0x256},_0x3b143d=_0x1ee15b;this['record'](_0x3b143d(_0x8a017a._0x21b216),[]);}[_0x1ee15b(0x241)](){const _0x100ec3={_0x30b811:0x23c},_0x53098e=_0x1ee15b;return this[_0x53098e(0x21c)][_0x53098e(_0x100ec3._0x30b811)];}},FakeWebDriver=class{constructor(_0xd954bd={}){const _0x503b85={_0x217b2f:0x205,_0x50a556:0x251},_0x575c45=_0x1ee15b;this[_0x575c45(_0x503b85._0x217b2f)]=_0xd954bd,this[_0x575c45(_0x503b85._0x50a556)]=createRecorder();}[_0x1ee15b(0x205)];static{__name(this,_0x1ee15b(0x25c));}[_0x1ee15b(0x20a)]=![];[_0x1ee15b(0x251)];[_0x1ee15b(0x239)]=[];async['launch'](_0x183c60){const _0x55fe69={_0x584e6a:0x211},_0x1df63c=_0x1ee15b;this[_0x1df63c(0x251)][_0x1df63c(0x20c)]({'scope':_0x1df63c(_0x55fe69._0x584e6a),'method':'launch','args':[_0x183c60]}),this[_0x1df63c(0x20a)]=!![];}async[_0x1ee15b(0x24e)](_0x23c83d){const _0x3019b0={_0x50ea94:0x239},_0x2c5c9d=_0x1ee15b;this[_0x2c5c9d(0x251)][_0x2c5c9d(0x20c)]({'scope':'driver','method':_0x2c5c9d(0x24e),'args':[_0x23c83d]});if(!this[_0x2c5c9d(0x20a)])throw new DriverError('newContext\x20called\x20before\x20launch()',{});const _0x12a1fb=new FakeContext(this[_0x2c5c9d(0x251)],this[_0x2c5c9d(0x205)],_0x2c5c9d(0x22a)+this[_0x2c5c9d(0x239)][_0x2c5c9d(0x23c)]);return this[_0x2c5c9d(_0x3019b0._0x50ea94)]['push'](_0x12a1fb),_0x12a1fb;}async[_0x1ee15b(0x256)](){const _0x2df16a={_0x1522e6:0x211,_0xb0238e:0x20a},_0x24e008=_0x1ee15b;this[_0x24e008(0x251)]['push']({'scope':_0x24e008(_0x2df16a._0x1522e6),'method':_0x24e008(0x256),'args':[]}),this[_0x24e008(_0x2df16a._0xb0238e)]=![];}[_0x1ee15b(0x23e)](){return void 0x0;}async[_0x1ee15b(0x249)](){const _0x3f0ab8={_0x336b0a:0x237},_0x3cde0b=_0x1ee15b;throw new DriverError(_0x3cde0b(_0x3f0ab8._0x336b0a),{});}[_0x1ee15b(0x23f)](){const _0x3718a7=_0x1ee15b;throw new DriverError(_0x3718a7(0x250),{});}[_0x1ee15b(0x217)](){const _0x28113a=_0x1ee15b;return this['recorder'][_0x28113a(0x217)]();}[_0x1ee15b(0x1fe)](_0x153afd){const _0x1b77ca={_0x4c2ca7:0x251,_0x31f918:0x217},_0x28368f=_0x1ee15b;return this[_0x28368f(_0x1b77ca._0x4c2ca7)][_0x28368f(_0x1b77ca._0x31f918)]()[_0x28368f(0x26e)](_0x249074=>_0x249074[_0x28368f(0x219)]===_0x153afd);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as LocatorValue, W as WebDriver, D as DriverContext, d as DriverPage } from '../interfaces-
|
|
2
|
-
export { j as LocatorStep, k as appendStep, l as describeLocator, m as isLocatorValue, r as rootedAt } from '../interfaces-
|
|
1
|
+
import { i as LocatorValue, W as WebDriver, D as DriverContext, d as DriverPage } from '../interfaces-XvuefHHC.js';
|
|
2
|
+
export { j as LocatorStep, k as appendStep, l as describeLocator, m as isLocatorValue, r as rootedAt } from '../interfaces-XvuefHHC.js';
|
|
3
3
|
import { Matcher, RegexLiteral } 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';
|
|
@@ -73,6 +73,10 @@ declare function chainGetByTitle(loc: LocatorValue, text: Matcher, options?: {
|
|
|
73
73
|
interface VariableStore {
|
|
74
74
|
has(name: string): boolean;
|
|
75
75
|
get(name: string): string | undefined;
|
|
76
|
+
/** One-line, human/agent-readable summary of WHERE lookups searched
|
|
77
|
+
* (active environment + layer files, missing ones flagged). Optional so
|
|
78
|
+
* test fakes stay two-method; consumed by "variable not found" errors. */
|
|
79
|
+
describeSources?(): string;
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
interface Logger {
|
|
@@ -147,6 +151,10 @@ declare class TestRuntime {
|
|
|
147
151
|
setVar(name: string, value: DslValue): void;
|
|
148
152
|
getVar(name: string): DslValue;
|
|
149
153
|
hasVar(name: string): boolean;
|
|
154
|
+
/** Direct external-variable lookup (`unotest/.env` / `.secrets`), no
|
|
155
|
+
* scope fallback, no throw. Used by shell() to resolve the
|
|
156
|
+
* `sandbox.exportSecrets` allowlist into subprocess env. */
|
|
157
|
+
externalVar(name: string): string | undefined;
|
|
150
158
|
/** Snapshot for `inspect_runtime` MCP tool. */
|
|
151
159
|
snapshotVars(): Record<string, DslValue>;
|
|
152
160
|
}
|
|
@@ -197,6 +205,9 @@ interface ActiveRuntime {
|
|
|
197
205
|
node: unknown;
|
|
198
206
|
line: number;
|
|
199
207
|
col: number;
|
|
208
|
+
/** Label of the enclosing `step("…")` block, when the failing
|
|
209
|
+
* statement ran inside one — the human-readable intent for reports. */
|
|
210
|
+
stepLabel?: string;
|
|
200
211
|
error: {
|
|
201
212
|
message: string;
|
|
202
213
|
stack?: string;
|