@unotest/web 0.5.0 → 0.6.2
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/hooks/log-agent.sh +24 -0
- package/.claude/skills/{write-e2e-test.md → write-e2e-test/SKILL.md} +25 -18
- package/CHANGELOG.md +69 -0
- package/README.md +59 -84
- package/bin/unotest-web.js +10 -32
- package/dist/config/schema.d.ts +9 -9
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +25 -20
- package/dist/dsl/index.js +1 -1
- package/dist/linter-DzAzJpab.d.ts +21 -0
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.d.ts +10 -1
- package/dist/runner/cli.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/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +297 -0
- package/guides/dsl-reference.md +670 -0
- package/package.json +30 -39
- package/src/mcp/prompts/agent-test-author.md +71 -1
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4a869d=_0x1849;(function(_0x2ec872,_0x7c990){const _0x44fa64={_0x5b50c1:0x18a,_0x128e3d:0x14d,_0x2b03c4:0x174,_0x5d538f:0x17e},_0x59b464=_0x1849,_0x24c9a5=_0x2ec872();while(!![]){try{const _0x39e305=parseInt(_0x59b464(_0x44fa64._0x5b50c1))/0x1*(-parseInt(_0x59b464(0x1a0))/0x2)+parseInt(_0x59b464(_0x44fa64._0x128e3d))/0x3+parseInt(_0x59b464(0x161))/0x4*(-parseInt(_0x59b464(_0x44fa64._0x2b03c4))/0x5)+parseInt(_0x59b464(0x16f))/0x6*(parseInt(_0x59b464(0x175))/0x7)+-parseInt(_0x59b464(0x1a6))/0x8*(-parseInt(_0x59b464(0x176))/0x9)+parseInt(_0x59b464(0x1b5))/0xa*(-parseInt(_0x59b464(0x1bb))/0xb)+-parseInt(_0x59b464(0x199))/0xc*(-parseInt(_0x59b464(_0x44fa64._0x5d538f))/0xd);if(_0x39e305===_0x7c990)break;else _0x24c9a5['push'](_0x24c9a5['shift']());}catch(_0x3a02fd){_0x24c9a5['push'](_0x24c9a5['shift']());}}}(_0x2396,0x422bf));var __defProp=Object[_0x4a869d(0x169)],__name=(_0x5aabeb,_0x498db2)=>__defProp(_0x5aabeb,_0x4a869d(0x196),{'value':_0x498db2,'configurable':!![]}),UnotestError=class extends Error{static{__name(this,_0x4a869d(0x16e));}[_0x4a869d(0x193)];constructor(_0x401f95,_0x566d17={}){const _0x32d4f6={_0xb5bb28:0x196},_0xa6d0b8=_0x4a869d;super(_0x401f95),this[_0xa6d0b8(_0x32d4f6._0xb5bb28)]=new.target.name,this['context']=Object['freeze']({..._0x566d17}),typeof Error[_0xa6d0b8(0x153)]===_0xa6d0b8(0x165)&&Error['captureStackTrace'](this,new.target);}},DriverError=class extends UnotestError{static{__name(this,_0x4a869d(0x172));}},LocatorError=class extends UnotestError{static{__name(this,_0x4a869d(0x16d));}};function createRecorder(){const _0x14b1aa={_0x97ebfe:0x15a},_0x34a5ea=_0x4a869d,_0x3acd30=[];let _0x6a761a=0x0;return{'push':__name(_0x27a0a5=>_0x3acd30['push']({..._0x27a0a5,'seq':_0x6a761a++}),_0x34a5ea(0x1b1)),'calls':__name(()=>_0x3acd30,_0x34a5ea(_0x14b1aa._0x97ebfe))};}__name(createRecorder,_0x4a869d(0x1a7));function _0x2396(){const _0x131871=['y2HLy2S','B25bzNrLCKnSAwnR','mZGXq1LozejJ','z29cywnR','y291BNq','C2f2zvn0B3jHz2vtDgf0zq','z29gB3j3yxjK','CMvJB3jKzxi','ywn0AxzLugfNzq','Bg9JywXtDg9YywDLu3rHDgu','z2v0q29VA2LL','y29UDgv4Da','zhjPDMvY','yMvOyxzPB3i','BMfTzq','zg91yMXLq2XPy2S','C2v0qwn0AxzLugfNzq','mZyWue9YwhDg','zxHPDezYyw1L','y3vYCMvUDfvYBa','BgvUz3rO','rMfRzvbHz2u','yxr0CMLIDxrLC0j5rgvMyxvSDa','CgfNzuXPC3q','mJiXogPWAerWqq','rMfRzvDLyKrYAxzLCG','Aw5PDgLHBfvYBa','DxbSB2fKrMLSzq','Aw5WDxrwywX1zuj5rgvMyxvSDa','CgfNzxm','mta3ndm3nK9Yy3PvEa','y3jLyxrLuMvJB3jKzxi','zxjYB3jpBK5LEhrby3rPB24','Ag92zxi','Bwv0Ag9K','ywjVDxq6yMXHBMS','Dw5JAgvJAW','rMfRzunVBNrLEhq','Aw5WDxrwywX1zq','zNjHBwvtDgfJAW','ywrK','ChvZAa','AxnwAxnPyMXLqNLezwzHDwX0','zgvSzxrL','z2v0qxr0CMLIDxrL','ndmWnJKWBMrhEhzr','D2fPDezVCLvYBa','zNjHBwvezxb0Aa','CMvM','Cg9WDxbpBKnSAwnR','D2fPDezVCLrLEhq','ndrXrKLJqLi','C2nYB2XSsw50B1zPzxC','y2XVC2u','nZi4mdC5sgHcuwT4','Bg9JywXtDg9YywDL','zxzHBhvHDgu','zw1PDezHA2vqB3b1Ca','ywn0AxzLswr4','CMvJB3jK','y2fWDhvYzvn0ywnRvhjHy2u','z2v0tg9JywXtDg9YywDL','DgL0Bgu','zMLSBa','B3v0zxjiDg1SqNLszwy','y29VA2LLu3rHDgu','AxnwAxnPyMXL','y2fSBhm','zMfRzs1WBMC','y29UC29SzuvUDhjPzxm','BMv3ugfNzuXPC3rLBMvYCW','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','lNbHz2uW','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','ota1mZa4svrZA0zh','Bgf1BMnOzwq','D2fPDezVCG','C3rLChm','zNvUy3rPB24','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','CMvSB2fK','Bgf1BMnO','zgvMAw5LuhjVCgvYDhK','z290BW','C2v0q29VA2LL','B3v0zxjive1m','tg9JyxrVCKvYCM9Y','vw5VDgvZDevYCM9Y','mtK4ode0mM1uyuvtuW','y29VA2LLCW','y2XPy2S','rhjPDMvYrxjYB3i','Bwf5yMvuAhjVDW','nvPfvujLCW','n05Tt3HHuq','mJDHAfDuBwS','Dgv4DenVBNrLBNq','D2fPDezVCK5HDMLNyxrPB24','Aw5ZCgvJDevSzw1LBNq','zhjHz0fUzerYB3a','C2nVCgu','BMv3q29UDgv4Da','C2v0tg9JywXtDg9YywDL','ndK5mZnvq0nbreG','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','y291BNrcEurLzMf1Bhq','ChjLC3m','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','C2nYzwvUC2HVDa','y29UDgv4Dhm','Dgv4DenVBNrLBNrcEurLzMf1Bhq','A2LUza'];_0x2396=function(){return _0x131871;};return _0x2396();}function _0x1849(_0x7aeb19,_0xf1fe3f){_0x7aeb19=_0x7aeb19-0x14b;const _0x239656=_0x2396();let _0x1849f6=_0x239656[_0x7aeb19];if(_0x1849['swzEsR']===undefined){var _0x109bf8=function(_0x3a1cac){const _0x41d51a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5aabeb='',_0x498db2='';for(let _0x401f95=0x0,_0x566d17,_0x3acd30,_0x6a761a=0x0;_0x3acd30=_0x3a1cac['charAt'](_0x6a761a++);~_0x3acd30&&(_0x566d17=_0x401f95%0x4?_0x566d17*0x40+_0x3acd30:_0x3acd30,_0x401f95++%0x4)?_0x5aabeb+=String['fromCharCode'](0xff&_0x566d17>>(-0x2*_0x401f95&0x6)):0x0){_0x3acd30=_0x41d51a['indexOf'](_0x3acd30);}for(let _0x27a0a5=0x0,_0x8fc89=_0x5aabeb['length'];_0x27a0a5<_0x8fc89;_0x27a0a5++){_0x498db2+='%'+('00'+_0x5aabeb['charCodeAt'](_0x27a0a5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x498db2);};_0x1849['usbhXU']=_0x109bf8,_0x1849['HyYyyB']={},_0x1849['swzEsR']=!![];}const _0x57126a=_0x239656[0x0],_0x4b26ba=_0x7aeb19+_0x57126a,_0x4463b8=_0x1849['HyYyyB'][_0x4b26ba];return!_0x4463b8?(_0x1849f6=_0x1849['usbhXU'](_0x1849f6),_0x1849['HyYyyB'][_0x4b26ba]=_0x1849f6):_0x1849f6=_0x4463b8,_0x1849f6;}var FakePage=class{constructor(_0x8fc89,_0xe0f5ff,_0x1fe8c2,_0x178297){const _0x53bc9d=_0x4a869d;this[_0x53bc9d(0x18f)]=_0x8fc89,this['behavior']=_0xe0f5ff,this[_0x53bc9d(0x17b)]=_0x1fe8c2,this['currentUrl']=_0x178297;}['recorder'];[_0x4a869d(0x195)];['scope'];static{__name(this,_0x4a869d(0x19d));}['currentUrl'];[_0x4a869d(0x189)];[_0x4a869d(0x152)](_0x34201b,_0x57624d){const _0x366003=_0x4a869d;this['recorder']['push']({'scope':this[_0x366003(0x17b)],'method':_0x34201b,'args':_0x57624d});}[_0x4a869d(0x173)](){const _0x158a51={_0x4c5c25:0x195},_0x381121=_0x4a869d;if(this[_0x381121(_0x158a51._0x4c5c25)]['errorOnNextAction']){const _0xef1419=this[_0x381121(0x195)]['errorOnNextAction'];this[_0x381121(0x195)][_0x381121(0x1a8)]=void 0x0;throw _0xef1419;}}['url'](){const _0x20ae33=_0x4a869d;return this[_0x20ae33(0x19b)];}async[_0x4a869d(0x155)](){const _0x55d067=_0x4a869d;return this[_0x55d067(0x152)](_0x55d067(0x155),[]),'fake\x20title';}async[_0x4a869d(0x171)](_0x3e616e,_0x1eead9){const _0x30d5f0={_0x593a12:0x152,_0x1f3e93:0x173},_0x378d41=_0x4a869d;this[_0x378d41(_0x30d5f0._0x593a12)](_0x378d41(0x171),[_0x3e616e,_0x1eead9]),this[_0x378d41(_0x30d5f0._0x1f3e93)](),this[_0x378d41(0x189)]?.();}async[_0x4a869d(0x197)](_0x4262f6,_0x199ec3){const _0x5d9328=_0x4a869d;this[_0x5d9328(0x152)](_0x5d9328(0x197),[_0x4262f6,_0x199ec3]),this['maybeThrow']();}async[_0x4a869d(0x156)](_0x45aa88,_0x5c2ce2,_0x4ce986){const _0x156ac6={_0x562473:0x156,_0x3047ee:0x173},_0x380c8a=_0x4a869d;this[_0x380c8a(0x152)](_0x380c8a(_0x156ac6._0x562473),[_0x45aa88,_0x5c2ce2,_0x4ce986]),this[_0x380c8a(_0x156ac6._0x3047ee)]();}async[_0x4a869d(0x182)](_0x4dc11c,_0x21ca02,_0xc5b8e3){const _0x217ef1={_0x1b5116:0x152,_0x47c756:0x182,_0x3a3eeb:0x173},_0x1d5f0c=_0x4a869d;this[_0x1d5f0c(_0x217ef1._0x1b5116)](_0x1d5f0c(_0x217ef1._0x47c756),[_0x4dc11c,_0x21ca02,_0xc5b8e3]),this[_0x1d5f0c(_0x217ef1._0x3a3eeb)]();}async[_0x4a869d(0x188)](_0x4530a8,_0x149c0d){const _0x499898={_0x1bdc63:0x188,_0x30e934:0x173},_0x1bae68=_0x4a869d;this[_0x1bae68(0x152)](_0x1bae68(_0x499898._0x1bdc63),[_0x4530a8,_0x149c0d]),this[_0x1bae68(_0x499898._0x30e934)]();}async[_0x4a869d(0x1ac)](_0x2aa561,_0x51ef47){const _0x25f770=_0x4a869d;this[_0x25f770(0x152)]('uncheck',[_0x2aa561,_0x51ef47]),this[_0x25f770(0x173)]();}async['selectOption'](_0x39e353,_0x10713f,_0x4b1039){const _0x4e9b40={_0x8efbd6:0x173},_0x39e794=_0x4a869d;this[_0x39e794(0x152)]('selectOption',[_0x39e353,_0x10713f,_0x4b1039]),this[_0x39e794(_0x4e9b40._0x8efbd6)]();}async[_0x4a869d(0x1a9)](_0x5ed490,_0x4a73e4){const _0x45814e={_0x42e454:0x1a9,_0x3294e4:0x173},_0x334d4f=_0x4a869d;this[_0x334d4f(0x152)](_0x334d4f(_0x45814e._0x42e454),[_0x5ed490,_0x4a73e4]),this[_0x334d4f(_0x45814e._0x3294e4)]();}async[_0x4a869d(0x14b)](_0x5cf9c1){const _0x4155a9={_0x368e33:0x152,_0x1362db:0x173},_0x27440c=_0x4a869d;this[_0x27440c(_0x4155a9._0x368e33)](_0x27440c(0x14b),[_0x5cf9c1]),this[_0x27440c(_0x4155a9._0x1362db)]();}async[_0x4a869d(0x17a)](_0x1d08ca,_0x28c85e,_0x1cbc68){const _0x34d46e=_0x4a869d;this['record'](_0x34d46e(0x17a),[_0x1d08ca,_0x28c85e,_0x1cbc68]),this['maybeThrow']();}async[_0x4a869d(0x1a3)](_0x2af61c,_0x580dfb){const _0x2a8f33={_0x5aa9c6:0x152},_0x52a543=_0x4a869d;this[_0x52a543(_0x2a8f33._0x5aa9c6)](_0x52a543(0x1a3),[_0x2af61c,_0x580dfb]),this['maybeThrow']();}async['clipboardPaste'](_0x481c82,_0x4ec792){const _0x5b7127={_0x1e9ec7:0x173},_0x526b6a=_0x4a869d;this[_0x526b6a(0x152)]('clipboardPaste',[_0x481c82,_0x4ec792]),this[_0x526b6a(_0x5b7127._0x1e9ec7)]();}async[_0x4a869d(0x18c)](_0x132d76){const _0xaf85a1={_0x1ff5ec:0x18c,_0x57bde1:0x181},_0x433960=_0x4a869d;return this[_0x433960(0x152)](_0x433960(_0xaf85a1._0x1ff5ec),[_0x132d76]),this[_0x433960(0x195)][_0x433960(_0xaf85a1._0x57bde1)]??0x1;}async[_0x4a869d(0x177)](_0xf78a67){const _0x277ec3=_0x4a869d;return this['record'](_0x277ec3(0x177),[_0xf78a67]),this['behavior'][_0x277ec3(0x186)]??'';}async[_0x4a869d(0x1ae)](_0x192c1c){const _0xe72aad=_0x4a869d;return this[_0xe72aad(0x152)](_0xe72aad(0x1ae),[_0x192c1c]),this[_0xe72aad(0x195)][_0xe72aad(0x1a4)]??'';}async['isVisible'](_0x38a764){const _0x5ca15f={_0x1acc53:0x152},_0x4cd16a=_0x4a869d;return this[_0x4cd16a(_0x5ca15f._0x1acc53)](_0x4cd16a(0x159),[_0x38a764]),this[_0x4cd16a(0x195)][_0x4cd16a(0x1b2)]??!![];}async[_0x4a869d(0x1b4)](_0x4fa1c4,_0x5ee643){const _0x456ed4={_0x3715a0:0x195},_0x5d3cf7=_0x4a869d;return this['record']('getAttribute',[_0x4fa1c4,_0x5ee643]),this[_0x5d3cf7(_0x456ed4._0x3715a0)][_0x5d3cf7(0x19e)]?.[_0x5ee643]??null;}async[_0x4a869d(0x163)](_0x18b069,_0x24bf1b){const _0x374e03=_0x4a869d;this['record'](_0x374e03(0x163),[_0x18b069,_0x24bf1b]);}async[_0x4a869d(0x1b6)](_0x59a135,_0x5f2597){this['record']('waitForUrl',[_0x59a135,_0x5f2597]);}async[_0x4a869d(0x1ba)](_0x2620ed,_0x467e31){const _0xeb96ae={_0x266a7a:0x152},_0x23d055=_0x4a869d;this[_0x23d055(_0xeb96ae._0x266a7a)]('waitForText',[_0x2620ed,_0x467e31]);}async[_0x4a869d(0x178)](_0x4d156f){const _0x389016={_0x50657a:0x178},_0x2290ed=_0x4a869d;this['record'](_0x2290ed(_0x389016._0x50657a),[_0x4d156f]);}async[_0x4a869d(0x16a)](_0x1d5838,_0x989e3c){const _0x312b3d={_0x531045:0x152,_0x1d9918:0x19b},_0x322995=_0x4a869d;this[_0x322995(_0x312b3d._0x531045)](_0x322995(0x16a),[_0x1d5838,_0x989e3c]),this[_0x322995(_0x312b3d._0x1d9918)]=_0x1d5838;}async[_0x4a869d(0x167)](_0x1eb4d8){const _0x408f5d={_0x2b2476:0x152,_0x3416d6:0x167},_0x52abe8=_0x4a869d;this[_0x52abe8(_0x408f5d._0x2b2476)](_0x52abe8(_0x408f5d._0x3416d6),[_0x1eb4d8]);}async[_0x4a869d(0x18b)](_0x2fd3a6){const _0x321369=_0x4a869d;this['record'](_0x321369(0x18b),[_0x2fd3a6]);}async['goForward'](_0x4b1eef){const _0x2ee767={_0xb1425c:0x152},_0x168776=_0x4a869d;this[_0x168776(_0x2ee767._0xb1425c)](_0x168776(0x18e),[_0x4b1eef]);}async[_0x4a869d(0x14f)](_0x1eb53d){const _0x42632f={_0x390b3e:0x152,_0x226da5:0x14f},_0x517b19=_0x4a869d;return this[_0x517b19(_0x42632f._0x390b3e)](_0x517b19(_0x42632f._0x226da5),[_0x1eb53d]),void 0x0;}async['evaluateOnLocator'](_0x30cd0b,_0x4c4879){const _0x2fe89c=_0x4a869d;return this[_0x2fe89c(0x152)]('evaluateOnLocator',[_0x30cd0b,_0x4c4879]),void 0x0;}async[_0x4a869d(0x179)](_0x7571b4){const _0xa5a469={_0x56c691:0x152,_0x259af6:0x1b8,_0x524820:0x195},_0x477eb4=_0x4a869d;this[_0x477eb4(_0xa5a469._0x56c691)]('inspectElement',[_0x7571b4]);if(_0x7571b4[_0x477eb4(0x164)]['length']!==0x1||_0x7571b4[_0x477eb4(0x164)][0x0][_0x477eb4(0x187)]!==_0x477eb4(_0xa5a469._0x259af6))return null;const _0x6ed100=_0x7571b4[_0x477eb4(0x164)][0x0][_0x477eb4(_0xa5a469._0x259af6)],_0x1fe540=this[_0x477eb4(_0xa5a469._0x524820)]['elementHintByRef']?.[_0x6ed100];return _0x1fe540??null;}async[_0x4a869d(0x184)](_0x41b579){const _0x125df5={_0x40d5e2:0x15b},_0x2cfeed=_0x4a869d;return this[_0x2cfeed(0x152)](_0x2cfeed(0x184),[_0x41b579]),Buffer['from'](_0x2cfeed(_0x125df5._0x40d5e2));}async[_0x4a869d(0x16c)](_0x25cf89){const _0x1a8fc9={_0x46da18:0x152,_0x173398:0x157},_0x359f51=_0x4a869d;this[_0x359f51(_0x1a8fc9._0x46da18)](_0x359f51(0x16c),[_0x25cf89]);if(_0x25cf89[_0x359f51(0x164)]['length']===0x1&&_0x25cf89[_0x359f51(0x164)][0x0][_0x359f51(0x187)]===_0x359f51(0x1b8)){const _0x4e7e93=_0x25cf89[_0x359f51(0x164)][0x0][_0x359f51(0x1b8)];return this['behavior'][_0x359f51(_0x1a8fc9._0x173398)]?.[_0x4e7e93]??_0x359f51(0x160)+_0x4e7e93+'\x22></div>';}return'<div></div>';}},FakeContext=class{constructor(_0x4cb42a,_0x5616af,_0x43e542){const _0x206720={_0x123ae2:0x17b,_0x301482:0x1a2,_0x4b7d18:0x19f,_0x3e4677:0x191},_0x650591={_0x378692:0x1b9},_0x1b4ffd=_0x4a869d;this[_0x1b4ffd(0x18f)]=_0x4cb42a,this['behavior']=_0x5616af,this[_0x1b4ffd(_0x206720._0x123ae2)]=_0x43e542;const _0x5653e3=new FakePage(_0x4cb42a,_0x5616af,_0x43e542+_0x1b4ffd(0x15f),_0x5616af[_0x1b4ffd(_0x206720._0x301482)]??_0x1b4ffd(0x1ab));_0x5616af[_0x1b4ffd(0x1b9)]&&(_0x5653e3[_0x1b4ffd(0x189)]=()=>{const _0x19561d=_0x1b4ffd;this[_0x19561d(0x150)](_0x5616af[_0x19561d(_0x650591._0x378692)]);}),this[_0x1b4ffd(_0x206720._0x4b7d18)]=[_0x5653e3],this[_0x1b4ffd(_0x206720._0x3e4677)]={..._0x5616af[_0x1b4ffd(0x14e)]??{}},this['cookieState']={..._0x5616af[_0x1b4ffd(0x170)]??{}};}[_0x4a869d(0x18f)];['behavior'];[_0x4a869d(0x17b)];static{__name(this,_0x4a869d(0x1ad));}['pageList'];['activeIdx']=0x0;['frameStack']=[];[_0x4a869d(0x191)];[_0x4a869d(0x158)];['newPageListeners']=new Set();[_0x4a869d(0x152)](_0x3089e0,_0x365cc4){const _0x145bb7={_0x35b46f:0x18f,_0x4cfc08:0x1b1},_0x22bcd4=_0x4a869d;this[_0x22bcd4(_0x145bb7._0x35b46f)][_0x22bcd4(_0x145bb7._0x4cfc08)]({'scope':this[_0x22bcd4(0x17b)],'method':_0x3089e0,'args':_0x365cc4});}[_0x4a869d(0x1a5)](){const _0x18cd1b=_0x4a869d;return this[_0x18cd1b(0x19f)];}[_0x4a869d(0x190)](){const _0x3f1fe2={_0x325362:0x180},_0x1401de=_0x4a869d,_0x1144ec=this[_0x1401de(0x19f)][this['activeIdx']];if(!_0x1144ec)throw new DriverError(_0x1401de(_0x3f1fe2._0x325362),{'activeIdx':this[_0x1401de(0x151)]});return _0x1144ec;}['consoleEntries'](){const _0x363867={_0xb68e54:0x195,_0x4e631d:0x15c},_0x347dd6=_0x4a869d;return this[_0x347dd6(_0x363867._0xb68e54)][_0x347dd6(_0x363867._0x4e631d)]??[];}async[_0x4a869d(0x198)](_0x3885e2){const _0x15908f={_0x42f0e3:0x152,_0x3febca:0x198,_0x1a8d7b:0x19f,_0x1f7229:0x19c},_0x4cacd8=_0x4a869d;this[_0x4cacd8(_0x15908f._0x42f0e3)](_0x4cacd8(_0x15908f._0x3febca),[_0x3885e2]);if(_0x3885e2<0x0||_0x3885e2>=this[_0x4cacd8(_0x15908f._0x1a8d7b)][_0x4cacd8(0x19c)])throw new DriverError(_0x4cacd8(0x183),{'index':_0x3885e2,'available':this['pageList'][_0x4cacd8(0x19c)]});this[_0x4cacd8(0x151)]=_0x3885e2,this['frameStack'][_0x4cacd8(_0x15908f._0x1f7229)]=0x0;}['onNewPage'](_0x4ed811){const _0x194f23={_0x4f5411:0x1b0},_0x2ad4e7={_0x5aa6ab:0x15d},_0xba1db7=_0x4a869d;return this[_0xba1db7(0x15d)][_0xba1db7(_0x194f23._0x4f5411)](_0x4ed811),()=>{const _0x17147c=_0xba1db7;this[_0x17147c(_0x2ad4e7._0x5aa6ab)][_0x17147c(0x1b3)](_0x4ed811);};}['emitFakePopup'](_0x3378b3){const _0x2ea93f={_0x2dd852:0x195,_0xa900fe:0x19f},_0x31aa08=_0x4a869d,_0x190b51=this[_0x31aa08(0x17b)]+'.page'+this['pageList'][_0x31aa08(0x19c)],_0x2aaa8d=new FakePage(this[_0x31aa08(0x18f)],this[_0x31aa08(_0x2ea93f._0x2dd852)],_0x190b51,_0x3378b3);this['pageList']['push'](_0x2aaa8d);const _0x1be337=this[_0x31aa08(_0x2ea93f._0xa900fe)]['length']-0x1;for(const _0x548127 of this[_0x31aa08(0x15d)]){try{_0x548127({'index':_0x1be337,'url':_0x3378b3});}catch{}}return _0x1be337;}async['enterFrame'](_0xdad943){const _0x1a52bf={_0x48c368:0x152,_0x3c4b79:0x166,_0x1a09d9:0x1b1},_0x3d5f26=_0x4a869d;this[_0x3d5f26(_0x1a52bf._0x48c368)]('enterFrame',[_0xdad943]);if(!_0xdad943[_0x3d5f26(0x164)]['length'])throw new LocatorError(_0x3d5f26(_0x1a52bf._0x3c4b79),{'locator':_0xdad943});this[_0x3d5f26(0x1af)][_0x3d5f26(_0x1a52bf._0x1a09d9)](_0xdad943);}async[_0x4a869d(0x19a)](){const _0x4d8ff3={_0x323c5c:0x19c},_0xf6146b=_0x4a869d;this['record']('exitFrame',[]);if(this['frameStack'][_0xf6146b(_0x4d8ff3._0x323c5c)]===0x0)throw new DriverError(_0xf6146b(0x17f),{});this[_0xf6146b(0x1af)]['pop']();}async[_0x4a869d(0x17d)](_0x427c68,_0x4035cf){const _0x4e8a1f=_0x4a869d;this[_0x4e8a1f(0x152)](_0x4e8a1f(0x17d),[_0x427c68,_0x4035cf]),this[_0x4e8a1f(0x191)][_0x427c68]=_0x4035cf;}async[_0x4a869d(0x154)](_0x2ab06d){const _0x4b75c6={_0x478a3d:0x154,_0x7c1ad3:0x191},_0x28948b=_0x4a869d;return this[_0x28948b(0x152)](_0x28948b(_0x4b75c6._0x478a3d),[_0x2ab06d]),this[_0x28948b(_0x4b75c6._0x7c1ad3)][_0x2ab06d]??null;}async[_0x4a869d(0x16b)](_0x1061af,_0x3a22d7,_0x13ed29){const _0x2a2734={_0x192c9e:0x16b,_0x428feb:0x158},_0x20c2cf=_0x4a869d;this['record'](_0x20c2cf(_0x2a2734._0x192c9e),[_0x1061af,_0x3a22d7,_0x13ed29]),this[_0x20c2cf(_0x2a2734._0x428feb)][_0x1061af]=_0x3a22d7;}async[_0x4a869d(0x192)](_0x57443c){const _0x115cf9={_0x4132ca:0x152,_0x40e839:0x158},_0x18f794=_0x4a869d;return this[_0x18f794(_0x115cf9._0x4132ca)](_0x18f794(0x192),[_0x57443c]),this[_0x18f794(_0x115cf9._0x40e839)][_0x57443c]??null;}async['saveStorageState'](_0x4f87ad){const _0x3031f7={_0x4f3fa9:0x152,_0x363e23:0x18d},_0x8fc42b=_0x4a869d;this[_0x8fc42b(_0x3031f7._0x4f3fa9)](_0x8fc42b(_0x3031f7._0x363e23),[_0x4f87ad]);}async[_0x4a869d(0x14f)](_0x1c8192){const _0x48f45e={_0x29c44c:0x152,_0x82bde8:0x14f},_0x176dd8=_0x4a869d;return this[_0x176dd8(_0x48f45e._0x29c44c)](_0x176dd8(_0x48f45e._0x82bde8),[_0x1c8192]),void 0x0;}async[_0x4a869d(0x14c)](){const _0x2cc963={_0x229544:0x152,_0x122612:0x14c},_0x1a5586=_0x4a869d;this[_0x1a5586(_0x2cc963._0x229544)](_0x1a5586(_0x2cc963._0x122612),[]);}[_0x4a869d(0x1b7)](){const _0x3b161f={_0x28ff8b:0x19c},_0x50404f=_0x4a869d;return this['frameStack'][_0x50404f(_0x3b161f._0x28ff8b)];}},FakeWebDriver=class{constructor(_0x212e17={}){const _0x2dc1cd={_0x152538:0x18f},_0x1879a4=_0x4a869d;this[_0x1879a4(0x195)]=_0x212e17,this[_0x1879a4(_0x2dc1cd._0x152538)]=createRecorder();}[_0x4a869d(0x195)];static{__name(this,_0x4a869d(0x1a1));}['launched']=![];[_0x4a869d(0x18f)];['contexts']=[];async[_0x4a869d(0x168)](_0x1bc443){const _0x1985ba={_0x5cfec3:0x18f,_0x3f1cef:0x1b1,_0x151601:0x194},_0x325ef4=_0x4a869d;this[_0x325ef4(_0x1985ba._0x5cfec3)][_0x325ef4(_0x1985ba._0x3f1cef)]({'scope':_0x325ef4(_0x1985ba._0x151601),'method':_0x325ef4(0x168),'args':[_0x1bc443]}),this[_0x325ef4(0x162)]=!![];}async[_0x4a869d(0x17c)](_0x394dea){const _0x4dd9d3={_0x142c85:0x18f,_0x1cb40d:0x162},_0x1cb90e=_0x4a869d;this[_0x1cb90e(_0x4dd9d3._0x142c85)][_0x1cb90e(0x1b1)]({'scope':'driver','method':'newContext','args':[_0x394dea]});if(!this[_0x1cb90e(_0x4dd9d3._0x1cb40d)])throw new DriverError(_0x1cb90e(0x15e),{});const _0x5bae8c=new FakeContext(this[_0x1cb90e(0x18f)],this[_0x1cb90e(0x195)],'ctx'+this[_0x1cb90e(0x185)][_0x1cb90e(0x19c)]);return this['contexts'][_0x1cb90e(0x1b1)](_0x5bae8c),_0x5bae8c;}async[_0x4a869d(0x14c)](){const _0xdb03c7=_0x4a869d;this['recorder']['push']({'scope':_0xdb03c7(0x194),'method':_0xdb03c7(0x14c),'args':[]}),this[_0xdb03c7(0x162)]=![];}['calls'](){return this['recorder']['calls']();}['callsFor'](_0x3159bf){const _0x5b1ff3={_0x432ab5:0x18f},_0x2e4324=_0x4a869d;return this[_0x2e4324(_0x5b1ff3._0x432ab5)][_0x2e4324(0x15a)]()['filter'](_0xb62e31=>_0xb62e31[_0x2e4324(0x1aa)]===_0x3159bf);}};export{FakeWebDriver};
|
|
1
|
+
const _0x5b8479=_0x54fe;(function(_0x292e08,_0xa5514){const _0x1e27ec={_0x3ed49b:0x1c2,_0x7b556d:0x1a4,_0x3b62b7:0x1cb,_0x298ac9:0x18e,_0x27e380:0x1b3,_0x528459:0x1d3,_0x1da82f:0x1be},_0x3c4ff9=_0x54fe,_0x51621f=_0x292e08();while(!![]){try{const _0x56929d=parseInt(_0x3c4ff9(_0x1e27ec._0x3ed49b))/0x1*(-parseInt(_0x3c4ff9(_0x1e27ec._0x7b556d))/0x2)+-parseInt(_0x3c4ff9(_0x1e27ec._0x3b62b7))/0x3+parseInt(_0x3c4ff9(_0x1e27ec._0x298ac9))/0x4+-parseInt(_0x3c4ff9(_0x1e27ec._0x27e380))/0x5+parseInt(_0x3c4ff9(_0x1e27ec._0x528459))/0x6*(parseInt(_0x3c4ff9(_0x1e27ec._0x1da82f))/0x7)+parseInt(_0x3c4ff9(0x1e4))/0x8*(-parseInt(_0x3c4ff9(0x191))/0x9)+parseInt(_0x3c4ff9(0x1a6))/0xa;if(_0x56929d===_0xa5514)break;else _0x51621f['push'](_0x51621f['shift']());}catch(_0x30c7ca){_0x51621f['push'](_0x51621f['shift']());}}}(_0x234e,0x198bd));function _0x54fe(_0x2ab4ce,_0x21d8b6){_0x2ab4ce=_0x2ab4ce-0x18c;const _0x234e72=_0x234e();let _0x54fe34=_0x234e72[_0x2ab4ce];if(_0x54fe['YlPNhB']===undefined){var _0x5b003e=function(_0x214fad){const _0x2298c4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1fb501='',_0x514a09='';for(let _0x4ce8e6=0x0,_0x4c4e32,_0x58d03d,_0x54e1ec=0x0;_0x58d03d=_0x214fad['charAt'](_0x54e1ec++);~_0x58d03d&&(_0x4c4e32=_0x4ce8e6%0x4?_0x4c4e32*0x40+_0x58d03d:_0x58d03d,_0x4ce8e6++%0x4)?_0x1fb501+=String['fromCharCode'](0xff&_0x4c4e32>>(-0x2*_0x4ce8e6&0x6)):0x0){_0x58d03d=_0x2298c4['indexOf'](_0x58d03d);}for(let _0x1cba72=0x0,_0x57cc63=_0x1fb501['length'];_0x1cba72<_0x57cc63;_0x1cba72++){_0x514a09+='%'+('00'+_0x1fb501['charCodeAt'](_0x1cba72)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x514a09);};_0x54fe['Vhwoxx']=_0x5b003e,_0x54fe['ZObbiZ']={},_0x54fe['YlPNhB']=!![];}const _0x59ff79=_0x234e72[0x0],_0x23879a=_0x2ab4ce+_0x59ff79,_0x5bd7cd=_0x54fe['ZObbiZ'][_0x23879a];return!_0x5bd7cd?(_0x54fe34=_0x54fe['Vhwoxx'](_0x54fe34),_0x54fe['ZObbiZ'][_0x23879a]=_0x54fe34):_0x54fe34=_0x5bd7cd,_0x54fe34;}var __defProp=Object[_0x5b8479(0x1b7)],__name=(_0x1fb501,_0x514a09)=>__defProp(_0x1fb501,_0x5b8479(0x1a8),{'value':_0x514a09,'configurable':!![]}),UnotestError=class extends Error{static{__name(this,_0x5b8479(0x19b));}['context'];constructor(_0x4ce8e6,_0x4c4e32={}){const _0x201f87={_0x3cd6e9:0x1cc},_0x529fff=_0x5b8479;super(_0x4ce8e6),this['name']=new.target.name,this[_0x529fff(0x198)]=Object[_0x529fff(0x1de)]({..._0x4c4e32}),typeof Error[_0x529fff(0x1cc)]===_0x529fff(0x18c)&&Error[_0x529fff(_0x201f87._0x3cd6e9)](this,new.target);}},DriverError=class extends UnotestError{static{__name(this,_0x5b8479(0x1e2));}},LocatorError=class extends UnotestError{static{__name(this,_0x5b8479(0x193));}};function createRecorder(){const _0x263dd5=_0x5b8479,_0x58d03d=[];let _0x54e1ec=0x0;return{'push':__name(_0x1cba72=>_0x58d03d['push']({..._0x1cba72,'seq':_0x54e1ec++}),_0x263dd5(0x1d2)),'calls':__name(()=>_0x58d03d,_0x263dd5(0x1bf))};}function _0x234e(){const _0x5f0bc8=['zMfRzs1WBMC','y3vYCMvUDfvYBa','zhjPDMvY','yxr0CMLIDxrLC0j5rgvMyxvSDa','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','zNvUy3rPB24','Aw5PDgLHBfvYBa','nZu3nZKYEe1WCg9M','Aw5WDxrwywX1zq','C2v0tg9JywXtDg9YywDL','ndvnu2v0ruK','BMv3ugfNzuXPC3rLBMvYCW','tg9JyxrVCKvYCM9Y','y29VA2LLu3rHDgu','C2f2zvn0B3jHz2vtDgf0zq','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','DgL0Bgu','y29UDgv4Da','y291BNq','y2XVC2u','vw5VDgvZDevYCM9Y','D2fPDezVCK5HDMLNyxrPB24','zMfRzsb0AxrSzq','C2nVCgu','y291BNrcEurLzMf1Bhq','Bg9JywXtDg9YywDLu3rHDgu','C2nYB2XSsw50B1zPzxC','y2XPy2S','z2v0tg9JywXtDg9YywDL','ntu1mfDowhDSvq','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','mtm4ndyZmgPUq21Jva','Ag92zxi','BMfTzq','DxjS','Cg9WDxbpBKnSAwnR','D2fPDezVCG','Dgv4DenVBNrLBNq','y29UDgv4Dhm','y2HLy2S','zxzHBhvHDgu','zxzHBhvHDgvpBKXVy2f0B3i','AxnwAxnPyMXL','y2XPCgjVyxjKugfZDgu','ntqXnda1ExjoDhv5','B25bzNrLCKnSAwnR','zNjVBq','zxjYB3jpBK5LEhrby3rPB24','zgvMAw5LuhjVCgvYDhK','DxbSB2fKrMLSzq','Bgf1BMnO','Bgf1BMnOzwq','ywn0AxzLswr4','y29VA2LLCW','AxnwAxnPyMXLqNLezwzHDwX0','odKWnhHmsw5eEa','y2fSBhm','z29gB3j3yxjK','ywrK','mtnbtu1HExO','CMvJB3jK','y3r4','zg91yMXLq2XPy2S','D2fPDezVCLvYBa','CMvSB2fK','BMv3q29UDgv4Da','zxHPDezYyw1L','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','mZm1oda4r2XsEMTA','y2fWDhvYzvn0ywnRvhjHy2u','Dw5JAgvJAW','D2fPDezVCLrLEhq','z2v0q29VA2LL','yMvOyxzPB3i','Cg9W','ChvZAa','nZq0twfbu3rY','z29cywnR','CgfNzuXPC3q','y29UC29SzuvUDhjPzxm','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','Aw5WDxrwywX1zuj5rgvMyxvSDa','zw1PDezHA2vqB3b1Ca','zgvSzxrL','C2v0qwn0AxzLugfNzq','lNbHz2u','B25ozxDqywDL','zNjLzxPL','rMfRzunVBNrLEhq','zwXLBwvUDeHPBNrcEvjLzG','zhjHz0fUzerYB3a','rhjPDMvYrxjYB3i','z2v0qxr0CMLIDxrL','mtK5ntm2DuzruLjk','B3v0zxjive1m','zNjHBwvtDgfJAW','Aw5ZCgvJDevSzw1LBNq','Bg9JywXtDg9YywDL','C2vSzwn0t3b0Aw9U','zNjHBwvezxb0Aa','rMfRzvDLyKrYAxzLCG','C2nYzwvUC2HVDa','zMLSDgvY','C2v0q29VA2LL','z290BW','ChjLC3m','BgvUz3rO','CMvM','C3rLChm','CMvJB3jKzxi','Bwf5yMvuAhjVDW'];_0x234e=function(){return _0x5f0bc8;};return _0x234e();}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x57cc63,_0xbc4422,_0x2dd4cd,_0x567ad4){const _0xcc0fc6={_0x38ba36:0x1f4,_0x2c4b77:0x1d0},_0x52cfc1=_0x5b8479;this[_0x52cfc1(_0xcc0fc6._0x38ba36)]=_0x57cc63,this[_0x52cfc1(_0xcc0fc6._0x2c4b77)]=_0xbc4422,this[_0x52cfc1(0x19e)]=_0x2dd4cd,this[_0x52cfc1(0x1f7)]=_0x567ad4;}[_0x5b8479(0x1f4)];[_0x5b8479(0x1d0)];['scope'];static{__name(this,'FakePage');}[_0x5b8479(0x1f7)];[_0x5b8479(0x1b4)];[_0x5b8479(0x1c3)](_0xc6e58f,_0xf3478a){const _0x2c9e59=_0x5b8479;this[_0x2c9e59(0x1f4)]['push']({'scope':this[_0x2c9e59(0x19e)],'method':_0xc6e58f,'args':_0xf3478a});}['maybeThrow'](){const _0x4dedb0={_0x62345e:0x1b6},_0x3ef9cf=_0x5b8479;if(this[_0x3ef9cf(0x1d0)][_0x3ef9cf(_0x4dedb0._0x62345e)]){const _0x427b56=this[_0x3ef9cf(0x1d0)][_0x3ef9cf(0x1b6)];this[_0x3ef9cf(0x1d0)]['errorOnNextAction']=void 0x0;throw _0x427b56;}}[_0x5b8479(0x1a9)](){const _0xd70b15=_0x5b8479;return this[_0xd70b15(0x1f7)];}async[_0x5b8479(0x197)](){const _0x3e3d3a={_0x201098:0x1c3},_0x1c35c7=_0x5b8479;return this[_0x1c35c7(_0x3e3d3a._0x201098)](_0x1c35c7(0x197),[]),_0x1c35c7(0x19d);}async[_0x5b8479(0x1a2)](_0x493495,_0x24c661){const _0x25eb67={_0x4c1551:0x1b4},_0x59260d=_0x5b8479;this[_0x59260d(0x1c3)](_0x59260d(0x1a2),[_0x493495,_0x24c661]),this[_0x59260d(0x1f5)](),this[_0x59260d(_0x25eb67._0x4c1551)]?.();}async[_0x5b8479(0x1c5)](_0xcda7c2,_0x13fd06){const _0x527a05={_0x40bede:0x1c3,_0x43420b:0x1c5,_0x34d4f1:0x1f5},_0x302276=_0x5b8479;this[_0x302276(_0x527a05._0x40bede)](_0x302276(_0x527a05._0x43420b),[_0xcda7c2,_0x13fd06]),this[_0x302276(_0x527a05._0x34d4f1)]();}async['fill'](_0xc82613,_0x1c4ee2,_0x83697){const _0x15a883={_0x36f0cd:0x1c3},_0x2569a3=_0x5b8479;this[_0x2569a3(_0x15a883._0x36f0cd)]('fill',[_0xc82613,_0x1c4ee2,_0x83697]),this['maybeThrow']();}async[_0x5b8479(0x1f0)](_0x23a88c,_0x58413e,_0x26b8c7){const _0x2a0bf5={_0x24d048:0x1c3},_0x2c206c=_0x5b8479;this[_0x2c206c(_0x2a0bf5._0x24d048)](_0x2c206c(0x1f0),[_0x23a88c,_0x58413e,_0x26b8c7]),this['maybeThrow']();}async[_0x5b8479(0x1ae)](_0x14e08c,_0x406495){const _0x180b77={_0x9c906e:0x1c3},_0x28dce1=_0x5b8479;this[_0x28dce1(_0x180b77._0x9c906e)](_0x28dce1(0x1ae),[_0x14e08c,_0x406495]),this['maybeThrow']();}async[_0x5b8479(0x1cd)](_0x525e03,_0x2a089b){const _0x2f6cc6=_0x5b8479;this[_0x2f6cc6(0x1c3)](_0x2f6cc6(0x1cd),[_0x525e03,_0x2a089b]),this[_0x2f6cc6(0x1f5)]();}async[_0x5b8479(0x1e9)](_0x24f909,_0x43c40c,_0x504645){const _0x217bfc={_0x338427:0x1e9,_0x88bc49:0x1f5},_0x204ddf=_0x5b8479;this[_0x204ddf(0x1c3)](_0x204ddf(_0x217bfc._0x338427),[_0x24f909,_0x43c40c,_0x504645]),this[_0x204ddf(_0x217bfc._0x88bc49)]();}async['hover'](_0x177c6c,_0x542de9){const _0x4d6946={_0x32cc8b:0x1f5},_0x2c89f7=_0x5b8479;this[_0x2c89f7(0x1c3)](_0x2c89f7(0x1a7),[_0x177c6c,_0x542de9]),this[_0x2c89f7(_0x4d6946._0x32cc8b)]();}async[_0x5b8479(0x1a1)](_0x31a9d0){const _0x425a8d={_0x39eb19:0x1a1},_0x4fdfea=_0x5b8479;this[_0x4fdfea(0x1c3)](_0x4fdfea(_0x425a8d._0x39eb19),[_0x31a9d0]),this[_0x4fdfea(0x1f5)]();}async[_0x5b8479(0x1e1)](_0x471a57,_0x3e6152,_0x3163cd){const _0xa45c8d=_0x5b8479;this[_0xa45c8d(0x1c3)]('dragAndDrop',[_0x471a57,_0x3e6152,_0x3163cd]),this[_0xa45c8d(0x1f5)]();}async[_0x5b8479(0x1b8)](_0x430969,_0x2746a9){const _0x53a5b2={_0x3a3532:0x1c3},_0x5a5cca=_0x5b8479;this[_0x5a5cca(_0x53a5b2._0x3a3532)](_0x5a5cca(0x1b8),[_0x430969,_0x2746a9]),this[_0x5a5cca(0x1f5)]();}async[_0x5b8479(0x1b2)](_0xd73331,_0x250b19){const _0x2b4730={_0xceec6e:0x1b2},_0x2e7d15=_0x5b8479;this[_0x2e7d15(0x1c3)](_0x2e7d15(_0x2b4730._0xceec6e),[_0xd73331,_0x250b19]),this[_0x2e7d15(0x1f5)]();}async[_0x5b8479(0x199)](_0x8aaba3){const _0x48e173={_0x1f8dd8:0x1c3},_0x33ac8a=_0x5b8479;return this[_0x33ac8a(_0x48e173._0x1f8dd8)]('count',[_0x8aaba3]),this[_0x33ac8a(0x1d0)][_0x33ac8a(0x19f)]??0x1;}async[_0x5b8479(0x1ac)](_0x5c17b3){const _0x4573a2={_0x12ba9e:0x1ac},_0x20003e=_0x5b8479;return this[_0x20003e(0x1c3)](_0x20003e(_0x4573a2._0x12ba9e),[_0x5c17b3]),this['behavior']['textContentByDefault']??'';}async[_0x5b8479(0x18f)](_0xb7b9bc){const _0x325bc6={_0x4bf2a5:0x18f,_0x3aedb1:0x1d0,_0x48a0dd:0x1d8},_0x220c44=_0x5b8479;return this[_0x220c44(0x1c3)](_0x220c44(_0x325bc6._0x4bf2a5),[_0xb7b9bc]),this[_0x220c44(_0x325bc6._0x3aedb1)][_0x220c44(_0x325bc6._0x48a0dd)]??'';}async[_0x5b8479(0x1b1)](_0x156976){const _0x33cc47={_0x4ac7a0:0x1b1},_0x5e5046=_0x5b8479;return this[_0x5e5046(0x1c3)](_0x5e5046(_0x33cc47._0x4ac7a0),[_0x156976]),this[_0x5e5046(0x1d0)][_0x5e5046(0x1bd)]??!![];}async['getAttribute'](_0x67d7d2,_0x11cd88){const _0x30bd2d={_0x857fba:0x1e3,_0x3594c5:0x1f9},_0x4a17fc=_0x5b8479;return this[_0x4a17fc(0x1c3)](_0x4a17fc(_0x30bd2d._0x857fba),[_0x67d7d2,_0x11cd88]),this['behavior'][_0x4a17fc(_0x30bd2d._0x3594c5)]?.[_0x11cd88]??null;}async[_0x5b8479(0x1ab)](_0x526075,_0x450666){this['record']('waitFor',[_0x526075,_0x450666]);}async[_0x5b8479(0x1c6)](_0x4c07ec,_0x4f9ec6){const _0x5a5a2b=_0x5b8479;this[_0x5a5a2b(0x1c3)]('waitForUrl',[_0x4c07ec,_0x4f9ec6]);}async[_0x5b8479(0x1ce)](_0x187673,_0x284433){const _0x494979={_0x4415f5:0x1c3,_0x581dca:0x1ce},_0x1b7d94=_0x5b8479;this[_0x1b7d94(_0x494979._0x4415f5)](_0x1b7d94(_0x494979._0x581dca),[_0x187673,_0x284433]);}async['waitForNavigation'](_0x3f7381){const _0x1b9681={_0x5ed98b:0x1c3},_0x5c3e27=_0x5b8479;this[_0x5c3e27(_0x1b9681._0x5ed98b)](_0x5c3e27(0x19c),[_0x3f7381]);}async['goto'](_0x14b18c,_0x1dad01){const _0x587997={_0x3284c9:0x1ef},_0x121ce7=_0x5b8479;this[_0x121ce7(0x1c3)](_0x121ce7(_0x587997._0x3284c9),[_0x14b18c,_0x1dad01]),this['currentUrl']=_0x14b18c;}async[_0x5b8479(0x1c7)](_0x39fcd5){const _0x35018f={_0x36f44d:0x1c3},_0x371253=_0x5b8479;this[_0x371253(_0x35018f._0x36f44d)]('reload',[_0x39fcd5]);}async[_0x5b8479(0x1d4)](_0x5f2107){const _0xb9fbfd={_0x55c60d:0x1c3},_0x24749c=_0x5b8479;this[_0x24749c(_0xb9fbfd._0x55c60d)](_0x24749c(0x1d4),[_0x5f2107]);}async['goForward'](_0x30e122){const _0x4a46c9={_0x5d8637:0x1c0},_0x1c7231=_0x5b8479;this[_0x1c7231(0x1c3)](_0x1c7231(_0x4a46c9._0x5d8637),[_0x30e122]);}async[_0x5b8479(0x1af)](_0x1c73b4){const _0x35c815=_0x5b8479;return this[_0x35c815(0x1c3)]('evaluate',[_0x1c73b4]),void 0x0;}async['evaluateOnLocator'](_0x193949,_0x3238a9){const _0x3e248d={_0x199b16:0x1c3,_0x1a018c:0x1b0},_0x5624d6=_0x5b8479;return this[_0x5624d6(_0x3e248d._0x199b16)](_0x5624d6(_0x3e248d._0x1a018c),[_0x193949,_0x3238a9]),void 0x0;}async['inspectElement'](_0x2117d8){const _0x56bc10={_0x15eb5b:0x1c3,_0x49a84b:0x1e7,_0x455f8c:0x1f3,_0x1259dc:0x1f2,_0x316983:0x1d0,_0x2c689d:0x1e0},_0x5d70c0=_0x5b8479;this[_0x5d70c0(_0x56bc10._0x15eb5b)](_0x5d70c0(_0x56bc10._0x49a84b),[_0x2117d8]);if(_0x2117d8[_0x5d70c0(0x1f3)]['length']!==0x1||_0x2117d8[_0x5d70c0(_0x56bc10._0x455f8c)][0x0]['kind']!==_0x5d70c0(_0x56bc10._0x1259dc))return null;const _0x53c025=_0x2117d8[_0x5d70c0(_0x56bc10._0x455f8c)][0x0]['ref'],_0x3a33e5=this[_0x5d70c0(_0x56bc10._0x316983)][_0x5d70c0(_0x56bc10._0x2c689d)]?.[_0x53c025];return _0x3a33e5??null;}async[_0x5b8479(0x1ec)](_0x36a241){const _0x49b8e4={_0x53163f:0x1c3,_0x5137a9:0x1ec,_0x597969:0x1f6},_0x14abe7=_0x5b8479;return this[_0x14abe7(_0x49b8e4._0x53163f)](_0x14abe7(_0x49b8e4._0x5137a9),[_0x36a241]),Buffer[_0x14abe7(0x1b5)](_0x14abe7(_0x49b8e4._0x597969));}async[_0x5b8479(0x1e5)](_0x253f43){const _0x4369dc={_0x456fc7:0x1c3,_0x3fc15e:0x1f3,_0x5adef3:0x1d0},_0x273cb2=_0x5b8479;this[_0x273cb2(_0x4369dc._0x456fc7)]('outerHTML',[_0x253f43]);if(_0x253f43[_0x273cb2(0x1f3)][_0x273cb2(0x1f1)]===0x1&&_0x253f43[_0x273cb2(0x1f3)][0x0]['kind']===_0x273cb2(0x1f2)){const _0x14bbe4=_0x253f43[_0x273cb2(_0x4369dc._0x3fc15e)][0x0][_0x273cb2(0x1f2)];return this[_0x273cb2(_0x4369dc._0x5adef3)]['outerHtmlByRef']?.[_0x14bbe4]??_0x273cb2(0x196)+_0x14bbe4+'\x22></div>';}return'<div></div>';}},FakeContext=class{constructor(_0x4ea5e,_0x3628b2,_0x2c130a){const _0x24697f={_0x3665c5:0x1f4,_0x4d279b:0x1a0,_0x1c1615:0x194},_0xa25f49=_0x5b8479;this[_0xa25f49(_0x24697f._0x3665c5)]=_0x4ea5e,this['behavior']=_0x3628b2,this['scope']=_0x2c130a;const _0x5dfda8=new FakePage(_0x4ea5e,_0x3628b2,_0x2c130a+'.page0',_0x3628b2[_0xa25f49(0x18d)]??'about:blank');_0x3628b2[_0xa25f49(0x1aa)]&&(_0x5dfda8['onAfterClick']=()=>{const _0x3d0867=_0xa25f49;this[_0x3d0867(0x1d9)](_0x3628b2[_0x3d0867(0x1aa)]);}),this[_0xa25f49(0x1d5)]=[_0x5dfda8],this[_0xa25f49(_0x24697f._0x4d279b)]={..._0x3628b2[_0xa25f49(0x1e8)]??{}},this[_0xa25f49(_0x24697f._0x1c1615)]={..._0x3628b2[_0xa25f49(0x1bc)]??{}};}[_0x5b8479(0x1f4)];[_0x5b8479(0x1d0)];[_0x5b8479(0x19e)];static{__name(this,_0x5b8479(0x1df));}['pageList'];[_0x5b8479(0x1bb)]=0x0;[_0x5b8479(0x1e6)]=[];[_0x5b8479(0x1a0)];['cookieState'];[_0x5b8479(0x192)]=new Set();[_0x5b8479(0x1c3)](_0x5e6224,_0x5ac9f6){const _0x4f1a23=_0x5b8479;this[_0x4f1a23(0x1f4)]['push']({'scope':this['scope'],'method':_0x5e6224,'args':_0x5ac9f6});}['pages'](){const _0x2e06cd={_0x120f45:0x1d5},_0x6de2c7=_0x5b8479;return this[_0x6de2c7(_0x2e06cd._0x120f45)];}['activePage'](){const _0x1bf224={_0x32d6f0:0x1bb},_0x169fa9=_0x5b8479,_0x28cd00=this['pageList'][this[_0x169fa9(_0x1bf224._0x32d6f0)]];if(!_0x28cd00)throw new DriverError(_0x169fa9(0x1d7),{'activeIdx':this[_0x169fa9(0x1bb)]});return _0x28cd00;}['consoleEntries'](){const _0x43580b={_0x6d02f3:0x1d6},_0x56c269=_0x5b8479;return this[_0x56c269(0x1d0)][_0x56c269(_0x43580b._0x6d02f3)]??[];}async[_0x5b8479(0x1db)](_0x584bac){const _0x101cfa={_0xa6258:0x1d5,_0x2b0db8:0x1f1,_0x447332:0x1f1},_0x24ba78=_0x5b8479;this[_0x24ba78(0x1c3)](_0x24ba78(0x1db),[_0x584bac]);if(_0x584bac<0x0||_0x584bac>=this[_0x24ba78(_0x101cfa._0xa6258)][_0x24ba78(_0x101cfa._0x2b0db8)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x584bac,'available':this[_0x24ba78(0x1d5)]['length']});this[_0x24ba78(0x1bb)]=_0x584bac,this[_0x24ba78(0x1e6)][_0x24ba78(_0x101cfa._0x447332)]=0x0;}[_0x5b8479(0x1dd)](_0x20d1f3){const _0x17cf32={_0x40bfd4:0x192},_0x3c2c14={_0x406dea:0x1da},_0x292542=_0x5b8479;return this[_0x292542(_0x17cf32._0x40bfd4)][_0x292542(0x1c1)](_0x20d1f3),()=>{const _0x3568fb=_0x292542;this[_0x3568fb(0x192)][_0x3568fb(_0x3c2c14._0x406dea)](_0x20d1f3);};}['emitFakePopup'](_0x298ce7){const _0x3e6538={_0xb91edf:0x19e,_0x4da48d:0x1dc,_0x1e1c19:0x1d5,_0x3dd712:0x1f4,_0x2a6884:0x1d0,_0x4b1655:0x1f1,_0xbad163:0x192},_0x3c9fe6=_0x5b8479,_0x230016=this[_0x3c9fe6(_0x3e6538._0xb91edf)]+_0x3c9fe6(_0x3e6538._0x4da48d)+this[_0x3c9fe6(_0x3e6538._0x1e1c19)]['length'],_0x69533e=new FakePage(this[_0x3c9fe6(_0x3e6538._0x3dd712)],this[_0x3c9fe6(_0x3e6538._0x2a6884)],_0x230016,_0x298ce7);this[_0x3c9fe6(0x1d5)]['push'](_0x69533e);const _0x23105f=this[_0x3c9fe6(0x1d5)][_0x3c9fe6(_0x3e6538._0x4b1655)]-0x1;for(const _0x532563 of this[_0x3c9fe6(_0x3e6538._0xbad163)]){try{_0x532563({'index':_0x23105f,'url':_0x298ce7});}catch{}}return _0x23105f;}async['enterFrame'](_0x47c274){const _0x2cf29d={_0x2e71b1:0x1d2},_0x2d9d5e=_0x5b8479;this[_0x2d9d5e(0x1c3)]('enterFrame',[_0x47c274]);if(!_0x47c274['steps'][_0x2d9d5e(0x1f1)])throw new LocatorError(_0x2d9d5e(0x1a5),{'locator':_0x47c274});this['frameStack'][_0x2d9d5e(_0x2cf29d._0x2e71b1)](_0x47c274);}async[_0x5b8479(0x1c9)](){const _0x339d85={_0x2f7656:0x1c3,_0x31c5e8:0x1c9,_0xdaa408:0x1f1,_0xd28760:0x1ca,_0x9d5e13:0x1e6},_0x451374=_0x5b8479;this[_0x451374(_0x339d85._0x2f7656)](_0x451374(_0x339d85._0x31c5e8),[]);if(this[_0x451374(0x1e6)][_0x451374(_0x339d85._0xdaa408)]===0x0)throw new DriverError(_0x451374(_0x339d85._0xd28760),{});this[_0x451374(_0x339d85._0x9d5e13)][_0x451374(0x1d1)]();}async['setLocalStorage'](_0x7cd3c1,_0x1c2379){const _0x269328={_0x90245f:0x1c3,_0x282b33:0x190},_0x59e852=_0x5b8479;this[_0x59e852(_0x269328._0x90245f)](_0x59e852(_0x269328._0x282b33),[_0x7cd3c1,_0x1c2379]),this[_0x59e852(0x1a0)][_0x7cd3c1]=_0x1c2379;}async['getLocalStorage'](_0x1bcb8a){const _0x30cb24={_0xeedc6e:0x1a3,_0x44b952:0x1a0},_0x3fd4db=_0x5b8479;return this['record'](_0x3fd4db(_0x30cb24._0xeedc6e),[_0x1bcb8a]),this[_0x3fd4db(_0x30cb24._0x44b952)][_0x1bcb8a]??null;}async['setCookie'](_0x56fc92,_0x5284c6,_0xbe147e){const _0x5dc4bb={_0x1d5bde:0x1c3,_0x179f15:0x1ee,_0x144d09:0x194},_0x2f5704=_0x5b8479;this[_0x2f5704(_0x5dc4bb._0x1d5bde)](_0x2f5704(_0x5dc4bb._0x179f15),[_0x56fc92,_0x5284c6,_0xbe147e]),this[_0x2f5704(_0x5dc4bb._0x144d09)][_0x56fc92]=_0x5284c6;}async[_0x5b8479(0x1cf)](_0x1b6585){const _0x25dd4e=_0x5b8479;return this['record'](_0x25dd4e(0x1cf),[_0x1b6585]),this['cookieState'][_0x1b6585]??null;}async[_0x5b8479(0x195)](_0x4f4984){const _0x54658d={_0x5d5fd4:0x195},_0x13b44a=_0x5b8479;this['record'](_0x13b44a(_0x54658d._0x5d5fd4),[_0x4f4984]);}async[_0x5b8479(0x1af)](_0x2379ac){const _0xe5818a=_0x5b8479;return this[_0xe5818a(0x1c3)](_0xe5818a(0x1af),[_0x2379ac]),void 0x0;}async[_0x5b8479(0x19a)](){const _0x15c0ff={_0x3c0d0b:0x1c3},_0x2f90c8=_0x5b8479;this[_0x2f90c8(_0x15c0ff._0x3c0d0b)](_0x2f90c8(0x19a),[]);}[_0x5b8479(0x1ea)](){const _0x1b1e6e={_0xa8b526:0x1e6,_0x357e6f:0x1f1},_0x2f65cb=_0x5b8479;return this[_0x2f65cb(_0x1b1e6e._0xa8b526)][_0x2f65cb(_0x1b1e6e._0x357e6f)];}},FakeWebDriver=class{constructor(_0x427f8e={}){const _0x1ddb78=_0x5b8479;this[_0x1ddb78(0x1d0)]=_0x427f8e,this[_0x1ddb78(0x1f4)]=createRecorder();}['behavior'];static{__name(this,_0x5b8479(0x1eb));}['launched']=![];[_0x5b8479(0x1f4)];[_0x5b8479(0x1ad)]=[];async[_0x5b8479(0x1b9)](_0x2dbc94){const _0xd8e251={_0x5dbbd4:0x1f4,_0x1e03cb:0x1f8,_0x4e4f72:0x1b9},_0x212a0b=_0x5b8479;this[_0x212a0b(_0xd8e251._0x5dbbd4)]['push']({'scope':_0x212a0b(_0xd8e251._0x1e03cb),'method':_0x212a0b(_0xd8e251._0x4e4f72),'args':[_0x2dbc94]}),this['launched']=!![];}async[_0x5b8479(0x1c8)](_0x52d6fb){const _0x5976d3={_0x508828:0x1f4,_0x5becc5:0x1d2,_0x14f31a:0x1ba,_0x2b9ce9:0x1d0,_0x4e8c22:0x1f1},_0x48f903=_0x5b8479;this[_0x48f903(_0x5976d3._0x508828)][_0x48f903(_0x5976d3._0x5becc5)]({'scope':_0x48f903(0x1f8),'method':_0x48f903(0x1c8),'args':[_0x52d6fb]});if(!this[_0x48f903(_0x5976d3._0x14f31a)])throw new DriverError(_0x48f903(0x1fa),{});const _0x3503de=new FakeContext(this[_0x48f903(0x1f4)],this[_0x48f903(_0x5976d3._0x2b9ce9)],_0x48f903(0x1c4)+this[_0x48f903(0x1ad)][_0x48f903(_0x5976d3._0x4e8c22)]);return this[_0x48f903(0x1ad)]['push'](_0x3503de),_0x3503de;}async['close'](){const _0x1bdef5={_0x40416c:0x1d2,_0x41a4f1:0x1ba},_0x463c08=_0x5b8479;this[_0x463c08(0x1f4)][_0x463c08(_0x1bdef5._0x40416c)]({'scope':'driver','method':'close','args':[]}),this[_0x463c08(_0x1bdef5._0x41a4f1)]=![];}[_0x5b8479(0x1bf)](){const _0x1f4175=_0x5b8479;return this[_0x1f4175(0x1f4)][_0x1f4175(0x1bf)]();}['callsFor'](_0xd3fb70){const _0x5778c2={_0x4b367d:0x1f4,_0x538904:0x1bf,_0x2042c2:0x1ed},_0x597bd7=_0x5b8479;return this[_0x597bd7(_0x5778c2._0x4b367d)][_0x597bd7(_0x5778c2._0x538904)]()[_0x597bd7(_0x5778c2._0x2042c2)](_0x1377fd=>_0x1377fd['method']===_0xd3fb70);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { i as LocatorStep, j as appendStep, k as describeLocator, l as isLocator
|
|
|
3
3
|
import { Matcher, RegexLiteral } from '@unotest/protocol';
|
|
4
4
|
import { Statement, BlockStatement } from '@unotest/dsl';
|
|
5
5
|
import { SandboxConfig } from '../config/schema.js';
|
|
6
|
+
export { L as LintDiagnostic, a as LintOptions, b as LintSeverity, l as lintAst } from '../linter-DzAzJpab.js';
|
|
6
7
|
import 'zod';
|
|
7
8
|
|
|
8
9
|
/** Test/codegen convenience: build a RegexLiteral inline. The DSL
|
|
@@ -80,12 +81,14 @@ interface ExecutionError {
|
|
|
80
81
|
type ExecutionEvent = {
|
|
81
82
|
kind: 'step-start';
|
|
82
83
|
node: Statement;
|
|
84
|
+
file: string;
|
|
83
85
|
line: number;
|
|
84
86
|
col: number;
|
|
85
87
|
callStack?: readonly string[];
|
|
86
88
|
} | {
|
|
87
89
|
kind: 'step-end';
|
|
88
90
|
node: Statement;
|
|
91
|
+
file: string;
|
|
89
92
|
line: number;
|
|
90
93
|
col: number;
|
|
91
94
|
ok: true;
|
|
@@ -93,6 +96,7 @@ type ExecutionEvent = {
|
|
|
93
96
|
} | {
|
|
94
97
|
kind: 'step-end';
|
|
95
98
|
node: Statement;
|
|
99
|
+
file: string;
|
|
96
100
|
line: number;
|
|
97
101
|
col: number;
|
|
98
102
|
ok: false;
|
|
@@ -101,6 +105,7 @@ type ExecutionEvent = {
|
|
|
101
105
|
} | {
|
|
102
106
|
kind: 'paused';
|
|
103
107
|
reason: 'step' | 'failure' | 'breakpoint';
|
|
108
|
+
file: string;
|
|
104
109
|
line: number;
|
|
105
110
|
col: number;
|
|
106
111
|
};
|
|
@@ -137,6 +142,12 @@ interface RunResult {
|
|
|
137
142
|
error?: ExecutionError;
|
|
138
143
|
}
|
|
139
144
|
|
|
145
|
+
/** Read-only lookup over external scenario variables. */
|
|
146
|
+
interface VariableStore {
|
|
147
|
+
has(name: string): boolean;
|
|
148
|
+
get(name: string): string | undefined;
|
|
149
|
+
}
|
|
150
|
+
|
|
140
151
|
interface Logger {
|
|
141
152
|
info(msg: string, ...rest: unknown[]): void;
|
|
142
153
|
warn(msg: string, ...rest: unknown[]): void;
|
|
@@ -161,6 +172,9 @@ interface TestRuntimeDeps {
|
|
|
161
172
|
* `dbQuery`/`dbExec`, `apiCall` read these — scenarios can NOT pass a
|
|
162
173
|
* database connection or absolute URL through arguments. */
|
|
163
174
|
readonly sandbox?: SandboxConfig;
|
|
175
|
+
/** External variable store (`unotest/.env` + `.secrets`). Resolves bare
|
|
176
|
+
* UPPER_SNAKE identifiers. Defaults to an empty store when omitted. */
|
|
177
|
+
readonly variables?: VariableStore;
|
|
164
178
|
/** Injectable clock — defaults to Date.now. Tests pass a fake. */
|
|
165
179
|
readonly nowFn?: () => number;
|
|
166
180
|
}
|
|
@@ -170,6 +184,7 @@ declare class TestRuntime {
|
|
|
170
184
|
readonly context: DriverContext;
|
|
171
185
|
readonly logger: Logger;
|
|
172
186
|
readonly sandbox: SandboxConfig;
|
|
187
|
+
private readonly variables;
|
|
173
188
|
private readonly nowFn;
|
|
174
189
|
private readonly scope;
|
|
175
190
|
private _callDepth;
|
|
@@ -220,7 +235,15 @@ declare class FunctionRegistry {
|
|
|
220
235
|
declare class AstExecutor {
|
|
221
236
|
private readonly registry;
|
|
222
237
|
constructor(registry: FunctionRegistry);
|
|
223
|
-
|
|
238
|
+
private entryFile;
|
|
239
|
+
private fnFile;
|
|
240
|
+
/** Project-root-relative posix file the current step lives in: origin of
|
|
241
|
+
* the innermost user-function frame, else the entry file. `callStack`
|
|
242
|
+
* only ever holds user-function names (pushed in callUserFunction), so
|
|
243
|
+
* every frame has a `fnFile` entry; the `?? entryFile` is a defensive
|
|
244
|
+
* fallback, not a normal path. */
|
|
245
|
+
private fileForStack;
|
|
246
|
+
run(program: BlockStatement, testName: string, runtime: TestRuntime, opts: RunOptions, helpers?: BlockStatement[], entryFile?: string, fnFile?: ReadonlyMap<string, string>): AsyncGenerator<ExecutionEvent, RunResult>;
|
|
224
247
|
private runBlock;
|
|
225
248
|
private runStatement;
|
|
226
249
|
private execStatement;
|
|
@@ -317,22 +340,4 @@ declare class TestRuntimeManager {
|
|
|
317
340
|
/** Build a fully-populated FunctionRegistry. */
|
|
318
341
|
declare function buildDefaultRegistry(): FunctionRegistry;
|
|
319
342
|
|
|
320
|
-
type
|
|
321
|
-
interface LintDiagnostic {
|
|
322
|
-
rule: string;
|
|
323
|
-
severity: LintSeverity;
|
|
324
|
-
message: string;
|
|
325
|
-
line: number;
|
|
326
|
-
col: number;
|
|
327
|
-
}
|
|
328
|
-
interface LintOptions {
|
|
329
|
-
/** Per-rule severity override. Default severities live with each rule. */
|
|
330
|
-
ruleSeverity?: Partial<Record<string, LintSeverity>>;
|
|
331
|
-
/** Pass through if the agent provided documented justification — e.g. a
|
|
332
|
-
* `// reason:` comment immediately above the line. The lexer doesn't
|
|
333
|
-
* preserve comments today; for v1 we accept a flag from the caller. */
|
|
334
|
-
allowDisambigByIndex?: boolean;
|
|
335
|
-
}
|
|
336
|
-
declare function lintAst(ast: BlockStatement, opts?: LintOptions): LintDiagnostic[];
|
|
337
|
-
|
|
338
|
-
export { AstExecutor, type DslArg, type DslArray, type DslFunction, type DslObject, type DslValue, type ExecutionError, type ExecutionEvent, FunctionRegistry, type LintDiagnostic, type LintOptions, type LintSeverity, LocatorValue, type RunOptions, type RunResult, TestRuntime, TestRuntimeManager, buildDefaultRegistry, chainGetByAltText, chainGetByLabel, chainGetByPlaceholder, chainGetByRole, chainGetByTestId, chainGetByText, chainGetByTitle, contentFrame, filter, first, getByAltText, getByLabel, getByPlaceholder, getByRole, getByTestId, getByText, getByTitle, last, lintAst, locator, nth, re };
|
|
343
|
+
export { AstExecutor, type DslArg, type DslArray, type DslFunction, type DslObject, type DslValue, type ExecutionError, type ExecutionEvent, FunctionRegistry, LocatorValue, type RunOptions, type RunResult, TestRuntime, TestRuntimeManager, buildDefaultRegistry, chainGetByAltText, chainGetByLabel, chainGetByPlaceholder, chainGetByRole, chainGetByTestId, chainGetByText, chainGetByTitle, contentFrame, filter, first, getByAltText, getByLabel, getByPlaceholder, getByRole, getByTestId, getByText, getByTitle, last, locator, nth, re };
|