browserstack-node-sdk 1.34.51 → 1.34.52
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/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x57aff1=a29_0x53b3;(function(_0x117d70,_0x22f33e){const _0x418dea=a29_0x53b3,_0x1e0724=_0x117d70();while(!![]){try{const _0x4729f9=-parseInt(_0x418dea(0x131))/0x1*(parseInt(_0x418dea(0x161))/0x2)+-parseInt(_0x418dea(0x17b))/0x3*(-parseInt(_0x418dea(0x19d))/0x4)+-parseInt(_0x418dea(0x171))/0x5+parseInt(_0x418dea(0x168))/0x6+-parseInt(_0x418dea(0x19f))/0x7*(parseInt(_0x418dea(0x13b))/0x8)+parseInt(_0x418dea(0x1aa))/0x9+parseInt(_0x418dea(0x163))/0xa*(parseInt(_0x418dea(0x194))/0xb);if(_0x4729f9===_0x22f33e)break;else _0x1e0724['push'](_0x1e0724['shift']());}catch(_0x42ae7b){_0x1e0724['push'](_0x1e0724['shift']());}}}(a29_0x534d,0xf158e));function a29_0x53b3(_0x3e866d,_0x2a3172){const _0x534dec=a29_0x534d();return a29_0x53b3=function(_0x53b372,_0x2c7838){_0x53b372=_0x53b372-0x130;let _0x90b212=_0x534dec[_0x53b372];return _0x90b212;},a29_0x53b3(_0x3e866d,_0x2a3172);}function a29_0x534d(){const _0x2fc7a6=['edgeOptions_','setCapabilities','mergeDeep','setGlobal','../../../helpers/patchHelpers','AZHGc','1174604BUFwpX','chromeOptions_','21BnUMra','Modifying\x20webdriver\x20builder','getHttpAgent','LqwaO','xOKns','chromeOptions','GSLcc','hEFKu','proxyUrl','__driversArray','RQHin','2412126wcEGLR','jRHaH','aDHys','storeOptimalHubUrl','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','error','../../../helpers/helper','13561RQLWAf','__setBrowserOptions','bLyNw','abyWk','FLmgr','isUndefined','Ceqvg','setLogLevel','RlnNy','push','4045704zZrheg','getRequestOptions','CKEFD','forEach','originalBuilder','FdNgN','isAccessibilityPlatform','opKNn','get','HttpClient','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','/session','edgeOptions','BvVzV','proxy_','../../../helpers/globals','Proxy\x20set\x20to\x20','getHubUrl','firefoxOptions_','newHubUrl','session_','global','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','0|1|4|3|2|5','getAccessibilityResults','then','capabilities_','exports','faOoE','../accessibility-automation/helper','info','firefoxOptions','mWjoF','https://','../../../hubAllocationMethods','isPacProxy','Setting\x20Browserstack\x20capabilities','OBGUI','178rawnNV','ieOptions_','10UnXpDH','yteJJ','url_','build','capability','2949570syZRDj','ms:edgeOptions','debug','setServer','options_','./helpers/patchHelper','send','isBrowserstackInfra','mDUWI','9501845PAgprH','quitCount_','CAPABILITY_KEY','itUar','__driver','goog:chromeOptions','New\x20hub\x20url\x20set\x20to\x20','Builder','ETSvR','otooi','3lcdodD','requireSeleniumWebdriver','safariOptions_','Tkbzr','se:ieOptions','getGlobal','QzFRy','safari.options','moz:firefoxOptions','agent_','ieOptions','Hub\x20url\x20set\x20to\x20','winstonLogger','ZiRrF','uxYCa','getAccessibilityResultsSummary','keys','fGYaY','caps_','set','../../../helpers/logger','uNsoH','../../../helpers/accessibility-automation/helper','updateHubUrl','__drivers','50157085NrOSpc','lTbKB','DoNvB'];a29_0x534d=function(){return _0x2fc7a6;};return a29_0x534d();}const logger=require(a29_0x57aff1(0x18f))[a29_0x57aff1(0x187)],helper=require(a29_0x57aff1(0x130)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a29_0x57aff1(0x15d)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a29_0x57aff1(0x19b)),{setAccessibilityCapabilities,setExtension}=require(a29_0x57aff1(0x158)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x57aff1(0x191)),globals=require(a29_0x57aff1(0x14a)),{overrideExecute}=require(a29_0x57aff1(0x16d)),modify=(_0x11535f,_0xaf6eb9=null,_0x5dc658=![])=>{const _0x1b93c8=a29_0x57aff1,_0x23a30d={'QzFRy':function(_0xce48a9,_0x295fb0){return _0xce48a9!==_0x295fb0;},'DoNvB':_0x1b93c8(0x146),'hEFKu':function(_0x35b813,_0x269df7){return _0x35b813+_0x269df7;},'mWjoF':function(_0x372079,_0x1c4339){return _0x372079+_0x1c4339;},'Tkbzr':_0x1b93c8(0x15c),'fGYaY':'/wd/hub','itUar':_0x1b93c8(0x176),'lTbKB':_0x1b93c8(0x1a4),'GNHGq':_0x1b93c8(0x169),'VRodq':_0x1b93c8(0x147),'xOKns':_0x1b93c8(0x183),'yteJJ':_0x1b93c8(0x15a),'uNsoH':_0x1b93c8(0x182),'EWYSL':_0x1b93c8(0x17f),'otooi':_0x1b93c8(0x185),'UnWbr':function(_0x259084,_0xbd0b4){return _0x259084===_0xbd0b4;},'Ceqvg':'object','GSLcc':_0x1b93c8(0x15f),'abyWk':'optimalHubUrl','opKNn':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','qVQSJ':function(_0x34e955,_0x460fee,_0x41ff11){return _0x34e955(_0x460fee,_0x41ff11);},'RlnNy':function(_0x3ae798,_0x1567a1,_0x273deb){return _0x3ae798(_0x1567a1,_0x273deb);},'jRHaH':function(_0x54f2eb,_0x269b2b){return _0x54f2eb(_0x269b2b);},'mDUWI':function(_0x41779b,_0x35524b,_0x2a6074){return _0x41779b(_0x35524b,_0x2a6074);},'uxYCa':function(_0x4abcf1,_0x3f2748,_0x4f3548){return _0x4abcf1(_0x3f2748,_0x4f3548);},'RQHin':function(_0x5b635f,_0x271873,_0x332c15){return _0x5b635f(_0x271873,_0x332c15);},'FdNgN':_0x1b93c8(0x152),'aDHys':function(_0x9a06af){return _0x9a06af();},'CKEFD':_0x1b93c8(0x141),'ETSvR':function(_0x15b7d0,_0x13137e,_0x4c775f){return _0x15b7d0(_0x13137e,_0x4c775f);},'faOoE':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','OBGUI':function(_0x105b19,_0x45446f){return _0x105b19(_0x45446f);},'AZHGc':function(_0x4f4ab7,_0x558d03){return _0x4f4ab7(_0x558d03);},'bLyNw':function(_0x1b1978,_0x5b770b){return _0x1b1978!==_0x5b770b;},'ZKhWM':_0x1b93c8(0x1ae),'lffBw':_0x1b93c8(0x1a0)},_0x23882e=helper['requireHttpClient']();let _0x3e809e;try{_0x3e809e=helper[_0x1b93c8(0x17c)](),_0x3e809e[_0x1b93c8(0x13f)]&&(_0x3e809e[_0x1b93c8(0x178)]=_0x3e809e[_0x1b93c8(0x13f)]);}catch(_0x2f9aa6){return;}if(helper['isBrowserstackInfra']()){const _0x88df3f={};_0x88df3f['logLevel']=_0x11535f['browserStackLogLevel'],helper[_0x1b93c8(0x138)](_0x88df3f,new Map(),new Map()),logger[_0x1b93c8(0x159)](_0x23a30d['ZKhWM']),logger[_0x1b93c8(0x16a)](_0x23a30d['lffBw']);}class _0x402c4c extends _0x23882e[_0x1b93c8(0x144)]{[_0x1b93c8(0x16e)](_0xc282a2){const _0x1a100a=_0x1b93c8;if(_0x23a30d[_0x1a100a(0x181)](_0xc282a2['path'],_0x23a30d[_0x1a100a(0x196)])&&_0x23a30d[_0x1a100a(0x181)](global[_0x1a100a(0x14e)],''))try{global[_0x1a100a(0x14e)]=_0x23a30d[_0x1a100a(0x1a6)](_0x23a30d[_0x1a100a(0x15b)](_0x23a30d[_0x1a100a(0x17e)],global[_0x1a100a(0x14e)]),_0x23a30d[_0x1a100a(0x18c)]),this[_0x1a100a(0x16c)]=hubAllocator[_0x1a100a(0x13c)](global['newHubUrl']),logger[_0x1a100a(0x16a)](_0x1a100a(0x177)+global[_0x1a100a(0x14e)]),global[_0x1a100a(0x14e)]='';}catch(_0x1998af){logger[_0x1a100a(0x1af)](_0x1998af);}return super[_0x1a100a(0x16e)](_0xc282a2);}}class _0x190ba4 extends _0x3e809e['Builder']{[_0x1b93c8(0x16b)](){const _0x8f1992=_0x1b93c8;return this[_0x8f1992(0x165)]=helper[_0x8f1992(0x14c)](_0x11535f),logger[_0x8f1992(0x16a)](_0x8f1992(0x186)+this[_0x8f1992(0x165)]),this;}[_0x1b93c8(0x132)](_0x3d4ec9){const _0x4a0ebe=_0x1b93c8;let _0x1b8d67={};for(const _0x1984c8 in _0x3d4ec9){switch(_0x1984c8){case _0x23a30d[_0x4a0ebe(0x174)]:case _0x23a30d[_0x4a0ebe(0x195)]:this[_0x4a0ebe(0x19e)]&&(_0x1b8d67=this[_0x4a0ebe(0x19e)][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x19e)]['CAPABILITY_KEY'])||{},this['chromeOptions_']['set'](this[_0x4a0ebe(0x19e)][_0x4a0ebe(0x173)],helper[_0x4a0ebe(0x199)](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;case _0x23a30d['GNHGq']:case _0x23a30d['VRodq']:this['edgeOptions_']&&(_0x1b8d67=this[_0x4a0ebe(0x197)][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x197)][_0x4a0ebe(0x173)])||{},this[_0x4a0ebe(0x197)][_0x4a0ebe(0x18e)](this['edgeOptions_'][_0x4a0ebe(0x173)],helper['mergeDeep'](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;case _0x23a30d[_0x4a0ebe(0x1a3)]:case _0x23a30d[_0x4a0ebe(0x164)]:this[_0x4a0ebe(0x14d)]&&(_0x1b8d67=this[_0x4a0ebe(0x14d)][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x14d)][_0x4a0ebe(0x173)])||{},this[_0x4a0ebe(0x14d)]['set'](this[_0x4a0ebe(0x14d)]['CAPABILITY_KEY'],helper[_0x4a0ebe(0x199)](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;case _0x23a30d[_0x4a0ebe(0x190)]:this[_0x4a0ebe(0x17d)]&&(_0x1b8d67=this[_0x4a0ebe(0x17d)][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x17d)][_0x4a0ebe(0x173)])||{},this['safariOptions_'][_0x4a0ebe(0x18e)](this['safariOptions_'][_0x4a0ebe(0x173)],helper[_0x4a0ebe(0x199)](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;case _0x23a30d['EWYSL']:case _0x23a30d[_0x4a0ebe(0x17a)]:this[_0x4a0ebe(0x162)]&&(_0x1b8d67=this['ieOptions_'][_0x4a0ebe(0x143)](this[_0x4a0ebe(0x162)]['CAPABILITY_KEY'])||{},this[_0x4a0ebe(0x162)][_0x4a0ebe(0x18e)](this['ieOptions_'][_0x4a0ebe(0x173)],helper['mergeDeep'](_0x1b8d67,_0x3d4ec9[_0x1984c8])));break;}}}[_0x1b93c8(0x198)](){const _0x50ead8=_0x1b93c8,_0xc7d380={'ZiRrF':function(_0x2aedd7,_0x4898a6){return _0x23a30d['UnWbr'](_0x2aedd7,_0x4898a6);},'LqwaO':_0x23a30d[_0x50ead8(0x137)]};return logger[_0x50ead8(0x16a)](_0x23a30d[_0x50ead8(0x1a5)]),this['__setBrowserOptions'](_0x11535f[_0x50ead8(0x167)]),Object[_0x50ead8(0x18b)](_0x11535f[_0x50ead8(0x167)])[_0x50ead8(0x13e)](_0xfb1c2d=>{const _0x3d6845=_0x50ead8,_0x2a3c38=this['capabilities_']['get'](_0xfb1c2d);_0xc7d380[_0x3d6845(0x188)](typeof _0x2a3c38,_0xc7d380[_0x3d6845(0x1a2)])?this[_0x3d6845(0x155)][_0x3d6845(0x18e)](_0xfb1c2d,helper[_0x3d6845(0x199)](_0x2a3c38,_0x11535f['capability'][_0xfb1c2d])):this[_0x3d6845(0x155)][_0x3d6845(0x18e)](_0xfb1c2d,_0x11535f[_0x3d6845(0x167)][_0xfb1c2d]);}),this;}[_0x1b93c8(0x166)](){const _0x5a68ff=_0x1b93c8,_0x237cae={'FLmgr':function(_0x47111b,_0x1d7021,_0x861edc){const _0x24e654=a29_0x53b3;return _0x23a30d[_0x24e654(0x189)](_0x47111b,_0x1d7021,_0x861edc);},'gksAS':function(_0x51b92c,_0xdea278,_0x535b57){const _0x463e4e=a29_0x53b3;return _0x23a30d[_0x463e4e(0x1a9)](_0x51b92c,_0xdea278,_0x535b57);}};if(helper[_0x5a68ff(0x16f)]()){const _0x9653be=_0x23a30d[_0x5a68ff(0x140)]['split']('|');let _0x1fcd88=0x0;while(!![]){switch(_0x9653be[_0x1fcd88++]){case'0':_0x23a30d[_0x5a68ff(0x1ac)](isAccessibilityAutomationSession)&&_0x23a30d['jRHaH'](setAccessibilityCapabilities,_0x11535f);continue;case'1':this['setServer']();continue;case'2':globals[_0x5a68ff(0x180)](_0x23a30d['CKEFD'])&&(!_0x23a30d[_0x5a68ff(0x179)](setExtension,this,_0x11535f)&&globals[_0x5a68ff(0x19a)](_0x23a30d[_0x5a68ff(0x13d)],![]));continue;case'3':if(helper[_0x5a68ff(0x15e)](_0x11535f['proxySettings'][_0x5a68ff(0x1a7)]))this[_0x5a68ff(0x184)]=helper[_0x5a68ff(0x1a1)](_0x11535f['proxySettings']['proxyUrl']);else _0x11535f['proxySettings']['proxyUrl']&&(this[_0x5a68ff(0x149)]=_0x11535f['proxySettings'][_0x5a68ff(0x1a7)],logger[_0x5a68ff(0x16a)](_0x5a68ff(0x14b)+this[_0x5a68ff(0x149)]));continue;case'4':this['setCapabilities']();continue;case'5':logger[_0x5a68ff(0x16a)](_0x23a30d[_0x5a68ff(0x157)]);continue;}break;}}const _0xb5d978=super[_0x5a68ff(0x166)]();return _0xb5d978[_0x5a68ff(0x14f)][_0x5a68ff(0x154)](_0x1a7c52=>{const _0x5ce855=_0x5a68ff;try{const _0x2554d3=_0x1a7c52[_0x5ce855(0x18d)]['get'](_0x23a30d[_0x5ce855(0x134)]);_0x2554d3?(logger[_0x5ce855(0x16a)](_0x5ce855(0x151)+_0x2554d3),hubAllocator[_0x5ce855(0x192)](_0x2554d3),helper[_0x5ce855(0x1ad)](_0x2554d3)):logger[_0x5ce855(0x16a)](_0x23a30d[_0x5ce855(0x142)]);}catch(_0x3f862a){logger[_0x5ce855(0x16a)](_0x5ce855(0x145)+_0x3f862a);}}),_0xb5d978[_0x5a68ff(0x172)]=0x0,_0xb5d978[_0x5a68ff(0x154)]&&_0xb5d978[_0x5a68ff(0x154)](_0x22d285=>{const _0x55f483=_0x5a68ff,_0x275d7c={'BvVzV':function(_0x3a4e49,_0x3d4dd5,_0x1063d3){return _0x23a30d['qVQSJ'](_0x3a4e49,_0x3d4dd5,_0x1063d3);}};_0x23a30d[_0x55f483(0x139)](overrideQuit,_0x22d285,_0xb5d978),_0x23a30d[_0x55f483(0x1ab)](overrideTakeScreenshot,_0x22d285),helper['overrideGet'](_0x22d285,_0x11535f),_0x23a30d[_0x55f483(0x170)](overrideExecute,_0x22d285,_0x11535f),_0x22d285[_0x55f483(0x18a)]=async()=>{const _0x8b0f9c=_0x55f483;return await _0x275d7c[_0x8b0f9c(0x148)](getAccessibilityResultsSummary,_0x22d285,global);},_0x22d285['getAccessibilityResults']=async()=>{const _0x156c99=_0x55f483;return await _0x237cae[_0x156c99(0x135)](getAccessibilityResults,_0x22d285,global);};}),_0xb5d978[_0x5a68ff(0x18a)]=async()=>{const _0x4db1e2=_0x5a68ff;return await _0x237cae[_0x4db1e2(0x135)](getAccessibilityResultsSummary,_0xb5d978,global);},_0xb5d978[_0x5a68ff(0x153)]=async()=>{return await _0x237cae['gksAS'](getAccessibilityResults,_0xb5d978,global);},_0x23a30d[_0x5a68ff(0x160)](overrideTakeScreenshot,_0xb5d978),_0x23a30d[_0x5a68ff(0x19c)](overrideQuit,_0xb5d978),helper['overrideGet'](_0xb5d978,_0x11535f),_0x23a30d[_0x5a68ff(0x170)](overrideExecute,_0xb5d978,_0x11535f),helper[_0x5a68ff(0x136)](global[_0x5a68ff(0x1a8)])&&(global[_0x5a68ff(0x1a8)]=[]),helper[_0x5a68ff(0x136)](global['__drivers'])&&(global[_0x5a68ff(0x193)]=[]),global[_0x5a68ff(0x1a8)][_0x5a68ff(0x13a)](_0xb5d978),global[_0x5a68ff(0x175)]=_0xb5d978,_0x23a30d[_0x5a68ff(0x133)](global['__drivers'],undefined)&&global[_0x5a68ff(0x193)][_0x5a68ff(0x13a)](_0xb5d978),_0xaf6eb9&&helper[_0x5a68ff(0x136)](_0xaf6eb9[_0x5a68ff(0x150)]['__driversArray'])&&(_0xaf6eb9[_0x5a68ff(0x150)][_0x5a68ff(0x1a8)]=[]),_0xaf6eb9&&_0x23a30d[_0x5a68ff(0x133)](_0xaf6eb9[_0x5a68ff(0x150)]['__drivers'],undefined)&&(_0xaf6eb9[_0x5a68ff(0x150)]['__drivers']['push'](_0xb5d978),_0xaf6eb9['global'][_0x5a68ff(0x1a8)]['push'](_0xb5d978)),_0xb5d978;}}return _0x3e809e[_0x1b93c8(0x13f)]=_0x3e809e[_0x1b93c8(0x178)],_0x3e809e[_0x1b93c8(0x178)]=_0x190ba4,_0x23882e['HttpClient']=_0x402c4c,_0x3e809e;};module[a29_0x57aff1(0x156)]['browserstackAgentObservability']=modify;
|
|
1
|
+
const a29_0x197876=a29_0x3482;(function(_0x339741,_0x5ea74e){const _0x5d9442=a29_0x3482,_0x418437=_0x339741();while(!![]){try{const _0x2a50f0=-parseInt(_0x5d9442(0xc4))/0x1+parseInt(_0x5d9442(0xef))/0x2*(-parseInt(_0x5d9442(0x110))/0x3)+-parseInt(_0x5d9442(0x104))/0x4*(parseInt(_0x5d9442(0x11a))/0x5)+-parseInt(_0x5d9442(0xce))/0x6*(-parseInt(_0x5d9442(0xb9))/0x7)+-parseInt(_0x5d9442(0xc6))/0x8*(-parseInt(_0x5d9442(0xe0))/0x9)+-parseInt(_0x5d9442(0x103))/0xa+parseInt(_0x5d9442(0xd0))/0xb*(parseInt(_0x5d9442(0xac))/0xc);if(_0x2a50f0===_0x5ea74e)break;else _0x418437['push'](_0x418437['shift']());}catch(_0x409487){_0x418437['push'](_0x418437['shift']());}}}(a29_0x37c5,0x52ed6));const logger=require('../../../helpers/logger')[a29_0x197876(0xc9)],helper=require(a29_0x197876(0xe6)),constants=require(a29_0x197876(0xc3)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a29_0x197876(0x102)),globals=require(a29_0x197876(0x128)),{overrideExecute}=require(a29_0x197876(0xe2)),modify=(_0x233c96,_0x27a598=null,_0x108060=![])=>{const _0x2a3ead=a29_0x197876,_0x15673b={'UDnKK':function(_0x3f8e14,_0x23deed){return _0x3f8e14!==_0x23deed;},'ZRGcB':_0x2a3ead(0x120),'UJikR':function(_0x41d7be,_0x3c6321){return _0x41d7be+_0x3c6321;},'QEZYA':_0x2a3ead(0xb8),'nuCPw':_0x2a3ead(0x109),'SdpPC':_0x2a3ead(0xf1),'hYLMz':_0x2a3ead(0xd6),'bJbUD':_0x2a3ead(0xe7),'yzIRi':_0x2a3ead(0xd5),'DWhpE':_0x2a3ead(0xfd),'whdHO':_0x2a3ead(0x114),'JOABA':_0x2a3ead(0xff),'SqKHv':_0x2a3ead(0xaf),'Kceoa':_0x2a3ead(0xc2),'gCeqS':function(_0x33b83c,_0x566e75){return _0x33b83c===_0x566e75;},'LuDdr':'object','bFNqa':_0x2a3ead(0x126),'bDgHk':_0x2a3ead(0xcf),'nkFMx':_0x2a3ead(0x112),'jaCGd':function(_0x706545,_0x141c00,_0x5cb384){return _0x706545(_0x141c00,_0x5cb384);},'SAgmo':function(_0x44fa49,_0xd38bee,_0x397088){return _0x44fa49(_0xd38bee,_0x397088);},'QaeqX':function(_0x159403,_0x3c343b){return _0x159403(_0x3c343b);},'hzmHD':_0x2a3ead(0xfa),'BXnAC':function(_0x55da50){return _0x55da50();},'nezAg':function(_0x6395da,_0x593158){return _0x6395da(_0x593158);},'QgFWO':_0x2a3ead(0xb7),'RqGob':function(_0x2fe498,_0x206099,_0x45628f){return _0x2fe498(_0x206099,_0x45628f);},'YhYYg':_0x2a3ead(0x105),'EVgug':function(_0x2cf4ce,_0x3887a7){return _0x2cf4ce(_0x3887a7);},'YUpGx':function(_0x25ef74,_0x5f3ecb){return _0x25ef74!==_0x5f3ecb;},'HAYpB':function(_0x4df877,_0x44ca50){return _0x4df877!==_0x44ca50;},'RBtHf':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','MqaVI':'Modifying\x20webdriver\x20builder'},_0x5bfe42=helper[_0x2a3ead(0xf0)]();let _0x1373ab;try{_0x1373ab=helper[_0x2a3ead(0xc8)](),_0x1373ab[_0x2a3ead(0xd3)]&&(_0x1373ab[_0x2a3ead(0xeb)]=_0x1373ab[_0x2a3ead(0xd3)]);}catch(_0x5a3869){return;}if(helper[_0x2a3ead(0xf8)]()){const _0x53289d={};_0x53289d[_0x2a3ead(0xbc)]=_0x233c96[_0x2a3ead(0xe4)],helper[_0x2a3ead(0x119)](_0x53289d,new Map(),new Map()),logger['info'](_0x15673b[_0x2a3ead(0x11d)]),logger[_0x2a3ead(0x106)](_0x15673b[_0x2a3ead(0x122)]);}class _0x1bf2ae extends _0x5bfe42['HttpClient']{['send'](_0x5a3dc5){const _0x10a6be=_0x2a3ead;if(_0x15673b['UDnKK'](_0x5a3dc5[_0x10a6be(0xe8)],_0x15673b[_0x10a6be(0xdc)])&&_0x15673b['UDnKK'](global[_0x10a6be(0x108)],''))try{global['newHubUrl']=_0x15673b[_0x10a6be(0xb6)](_0x15673b[_0x10a6be(0xb6)](_0x15673b['QEZYA'],global[_0x10a6be(0x108)]),_0x15673b[_0x10a6be(0x127)]),this[_0x10a6be(0xf9)]=hubAllocator[_0x10a6be(0xec)](global[_0x10a6be(0x108)]),logger[_0x10a6be(0x106)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0x10a6be(0x108)]),global['newHubUrl']='';}catch(_0x13e00a){logger[_0x10a6be(0xd9)](_0x13e00a);}return super[_0x10a6be(0x10b)](_0x5a3dc5);}}class _0x3132d7 extends _0x1373ab[_0x2a3ead(0xeb)]{[_0x2a3ead(0xee)](){const _0x448948=_0x2a3ead;return this[_0x448948(0xda)]=helper[_0x448948(0xf2)](_0x233c96),logger[_0x448948(0x106)]('Hub\x20url\x20set\x20to\x20'+this[_0x448948(0xda)]),this;}['__setBrowserOptions'](_0x2683c2){const _0xce62ab=_0x2a3ead;let _0xbd4d91={};for(const _0x18fb13 in _0x2683c2){switch(_0x18fb13){case _0x15673b['SdpPC']:case _0x15673b[_0xce62ab(0xb4)]:this['chromeOptions_']&&(_0xbd4d91=this['chromeOptions_']['get'](this['chromeOptions_']['CAPABILITY_KEY'])||{},this[_0xce62ab(0xe1)][_0xce62ab(0xd4)](this[_0xce62ab(0xe1)][_0xce62ab(0xcd)],helper[_0xce62ab(0xb5)](_0xbd4d91,_0x2683c2[_0x18fb13])));break;case _0x15673b[_0xce62ab(0xae)]:case _0x15673b[_0xce62ab(0x101)]:this['edgeOptions_']&&(_0xbd4d91=this['edgeOptions_'][_0xce62ab(0xe3)](this[_0xce62ab(0xbd)][_0xce62ab(0xcd)])||{},this[_0xce62ab(0xbd)][_0xce62ab(0xd4)](this[_0xce62ab(0xbd)][_0xce62ab(0xcd)],helper['mergeDeep'](_0xbd4d91,_0x2683c2[_0x18fb13])));break;case _0x15673b[_0xce62ab(0xb0)]:case _0x15673b[_0xce62ab(0xf7)]:this[_0xce62ab(0x111)]&&(_0xbd4d91=this[_0xce62ab(0x111)]['get'](this['firefoxOptions_'][_0xce62ab(0xcd)])||{},this[_0xce62ab(0x111)][_0xce62ab(0xd4)](this['firefoxOptions_'][_0xce62ab(0xcd)],helper[_0xce62ab(0xb5)](_0xbd4d91,_0x2683c2[_0x18fb13])));break;case _0x15673b['JOABA']:this[_0xce62ab(0xc0)]&&(_0xbd4d91=this[_0xce62ab(0xc0)][_0xce62ab(0xe3)](this[_0xce62ab(0xc0)][_0xce62ab(0xcd)])||{},this[_0xce62ab(0xc0)][_0xce62ab(0xd4)](this['safariOptions_'][_0xce62ab(0xcd)],helper['mergeDeep'](_0xbd4d91,_0x2683c2[_0x18fb13])));break;case _0x15673b[_0xce62ab(0xf4)]:case _0x15673b[_0xce62ab(0xdd)]:this[_0xce62ab(0xfe)]&&(_0xbd4d91=this[_0xce62ab(0xfe)][_0xce62ab(0xe3)](this[_0xce62ab(0xfe)][_0xce62ab(0xcd)])||{},this[_0xce62ab(0xfe)][_0xce62ab(0xd4)](this[_0xce62ab(0xfe)][_0xce62ab(0xcd)],helper[_0xce62ab(0xb5)](_0xbd4d91,_0x2683c2[_0x18fb13])));break;}}}[_0x2a3ead(0x116)](){const _0x375218=_0x2a3ead,_0x1b8ba6={'zhGZA':function(_0xdf2414,_0x35b7ce){const _0x12bdb=a29_0x3482;return _0x15673b[_0x12bdb(0xc1)](_0xdf2414,_0x35b7ce);},'hOYPs':_0x15673b[_0x375218(0xe5)]};return logger['debug'](_0x15673b['bFNqa']),this[_0x375218(0xf5)](_0x233c96[_0x375218(0xea)]),Object[_0x375218(0xed)](_0x233c96[_0x375218(0xea)])[_0x375218(0xad)](_0x28cc80=>{const _0x189acd=_0x375218,_0xf2d59e=this['capabilities_'][_0x189acd(0xe3)](_0x28cc80);_0x1b8ba6[_0x189acd(0xb3)](typeof _0xf2d59e,_0x1b8ba6['hOYPs'])?this[_0x189acd(0x11f)]['set'](_0x28cc80,helper[_0x189acd(0xb5)](_0xf2d59e,_0x233c96[_0x189acd(0xea)][_0x28cc80])):this[_0x189acd(0x11f)][_0x189acd(0xd4)](_0x28cc80,_0x233c96[_0x189acd(0xea)][_0x28cc80]);}),this;}[_0x2a3ead(0xc7)](){const _0x272c09=_0x2a3ead,_0xedd4af={'eWwYi':function(_0x5ca5bc,_0x2aa4d9,_0x387acd){const _0x3971c0=a29_0x3482;return _0x15673b[_0x3971c0(0xf6)](_0x5ca5bc,_0x2aa4d9,_0x387acd);},'VYTHE':function(_0x3fa57d,_0x391cd7,_0x4bc8c7){const _0x31fe09=a29_0x3482;return _0x15673b[_0x31fe09(0xf6)](_0x3fa57d,_0x391cd7,_0x4bc8c7);},'YORuK':function(_0x18ec1c,_0x31e394){return _0x15673b['QaeqX'](_0x18ec1c,_0x31e394);}};if(helper[_0x272c09(0xf8)]()){const _0x51ddd1=_0x15673b[_0x272c09(0x125)][_0x272c09(0x117)]('|');let _0x31e42a=0x0;while(!![]){switch(_0x51ddd1[_0x31e42a++]){case'0':_0x15673b[_0x272c09(0xfc)](isAccessibilityAutomationSession)&&_0x15673b['nezAg'](setAccessibilityCapabilities,_0x233c96);continue;case'1':globals[_0x272c09(0xb1)](_0x15673b['QgFWO'])&&(!_0x15673b['RqGob'](setExtension,this,_0x233c96)&&globals[_0x272c09(0xba)](_0x15673b['QgFWO'],![]));continue;case'2':this[_0x272c09(0x116)]();continue;case'3':logger[_0x272c09(0x106)](_0x15673b[_0x272c09(0xfb)]);continue;case'4':this['setServer']();continue;case'5':if(helper[_0x272c09(0x10d)](_0x233c96[_0x272c09(0xe9)][_0x272c09(0xbb)]))this['agent_']=helper[_0x272c09(0x121)](_0x233c96['proxySettings'][_0x272c09(0xbb)]);else _0x233c96[_0x272c09(0xe9)][_0x272c09(0xbb)]&&(this[_0x272c09(0x123)]=_0x233c96[_0x272c09(0xe9)]['proxyUrl'],logger['debug'](_0x272c09(0x118)+this[_0x272c09(0x123)]));continue;}break;}}const _0x39b637=super[_0x272c09(0xc7)]();return _0x39b637[_0x272c09(0xca)][_0x272c09(0xcc)](_0x136938=>{const _0x563c22=_0x272c09;try{const _0x142536=_0x136938[_0x563c22(0xbe)]['get'](_0x15673b['bDgHk']);_0x142536?(logger[_0x563c22(0x106)](_0x563c22(0xc5)+_0x142536),hubAllocator[_0x563c22(0xbf)](_0x142536),helper[_0x563c22(0x10e)](_0x142536)):logger['debug'](_0x15673b[_0x563c22(0x107)]);}catch(_0x1de73f){logger['debug'](_0x563c22(0xd7)+_0x1de73f);}}),_0x39b637['quitCount_']=0x0,_0x39b637[_0x272c09(0xcc)]&&_0x39b637[_0x272c09(0xcc)](_0x451cdd=>{const _0x1f7bc0=_0x272c09,_0x2e7034={'RWNjc':function(_0x4b3cf8,_0x47cedf,_0x1b0331){return _0xedd4af['VYTHE'](_0x4b3cf8,_0x47cedf,_0x1b0331);}};_0xedd4af[_0x1f7bc0(0xcb)](overrideQuit,_0x451cdd,_0x39b637),_0xedd4af[_0x1f7bc0(0x113)](overrideTakeScreenshot,_0x451cdd),helper[_0x1f7bc0(0xd1)](_0x451cdd,_0x233c96),_0xedd4af[_0x1f7bc0(0xdf)](overrideExecute,_0x451cdd,_0x233c96),_0x451cdd['getAccessibilityResultsSummary']=async()=>{const _0x493876=_0x1f7bc0;return await _0x2e7034[_0x493876(0xf3)](getAccessibilityResultsSummary,_0x451cdd,global);},_0x451cdd[_0x1f7bc0(0xde)]=async()=>{return await _0xedd4af['eWwYi'](getAccessibilityResults,_0x451cdd,global);};}),_0x39b637[_0x272c09(0x11b)]=async()=>{const _0x56ecee=_0x272c09;return await _0x15673b[_0x56ecee(0x115)](getAccessibilityResultsSummary,_0x39b637,global);},_0x39b637[_0x272c09(0xde)]=async()=>{const _0x4442df=_0x272c09;return await _0x15673b[_0x4442df(0xf6)](getAccessibilityResults,_0x39b637,global);},_0x15673b[_0x272c09(0xdb)](overrideTakeScreenshot,_0x39b637),_0x15673b['QaeqX'](overrideQuit,_0x39b637),helper['overrideGet'](_0x39b637,_0x233c96),_0x15673b[_0x272c09(0x115)](overrideExecute,_0x39b637,_0x233c96),helper['isUndefined'](global['__driversArray'])&&(global[_0x272c09(0xb2)]=[]),helper[_0x272c09(0x11e)](global['__drivers'])&&(global[_0x272c09(0x10f)]=[]),global[_0x272c09(0xb2)][_0x272c09(0x100)](_0x39b637),global[_0x272c09(0x11c)]=_0x39b637,_0x15673b[_0x272c09(0x10a)](global[_0x272c09(0x10f)],undefined)&&global[_0x272c09(0x10f)][_0x272c09(0x100)](_0x39b637),_0x27a598&&helper['isUndefined'](_0x27a598[_0x272c09(0x124)][_0x272c09(0xb2)])&&(_0x27a598[_0x272c09(0x124)]['__driversArray']=[]),_0x27a598&&_0x15673b[_0x272c09(0x10c)](_0x27a598['global'][_0x272c09(0x10f)],undefined)&&(_0x27a598[_0x272c09(0x124)][_0x272c09(0x10f)]['push'](_0x39b637),_0x27a598[_0x272c09(0x124)]['__driversArray'][_0x272c09(0x100)](_0x39b637)),_0x39b637;}}return _0x1373ab['originalBuilder']=_0x1373ab[_0x2a3ead(0xeb)],_0x1373ab[_0x2a3ead(0xeb)]=_0x3132d7,_0x5bfe42['HttpClient']=_0x1bf2ae,_0x1373ab;};module[a29_0x197876(0xd8)][a29_0x197876(0xd2)]=modify;function a29_0x3482(_0x1f29f3,_0x28d5bf){const _0x37c5f1=a29_0x37c5();return a29_0x3482=function(_0x3482e7,_0xc1fd47){_0x3482e7=_0x3482e7-0xac;let _0x10557d=_0x37c5f1[_0x3482e7];return _0x10557d;},a29_0x3482(_0x1f29f3,_0x28d5bf);}function a29_0x37c5(){const _0x47281c=['SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','72xPvkxF','build','requireSeleniumWebdriver','winstonLogger','session_','VYTHE','then','CAPABILITY_KEY','3390738lCXLAR','optimalHubUrl','91575sWGLSc','overrideGet','browserstackAgentObservability','originalBuilder','set','edgeOptions','chromeOptions','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','exports','error','url_','EVgug','ZRGcB','Kceoa','getAccessibilityResults','eWwYi','346932muYGle','chromeOptions_','./helpers/patchHelper','get','browserStackLogLevel','LuDdr','../../../helpers/helper','ms:edgeOptions','path','proxySettings','capability','Builder','getRequestOptions','keys','setServer','118168utijgj','requireHttpClient','goog:chromeOptions','getHubUrl','RWNjc','SqKHv','__setBrowserOptions','SAgmo','whdHO','isBrowserstackInfra','options_','0|4|2|5|1|3','YhYYg','BXnAC','moz:firefoxOptions','ieOptions_','safari.options','push','yzIRi','../../../helpers/accessibility-automation/helper','1004790zzbKSl','2282108TYGzRz','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','debug','nkFMx','newHubUrl','/wd/hub','YUpGx','send','HAYpB','isPacProxy','storeOptimalHubUrl','__drivers','33tBhilo','firefoxOptions_','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','YORuK','firefoxOptions','jaCGd','setCapabilities','split','Proxy\x20set\x20to\x20','setLogLevel','5ZMENvE','getAccessibilityResultsSummary','__driver','RBtHf','isUndefined','capabilities_','/session','getHttpAgent','MqaVI','proxy_','global','hzmHD','Setting\x20Browserstack\x20capabilities','nuCPw','../../../helpers/globals','1608KRqKYF','forEach','bJbUD','se:ieOptions','DWhpE','getGlobal','__driversArray','zhGZA','hYLMz','mergeDeep','UJikR','isAccessibilityPlatform','https://','7yBQlys','setGlobal','proxyUrl','logLevel','edgeOptions_','caps_','updateHubUrl','safariOptions_','gCeqS','ieOptions','../../../bin/utils/constants','367005FYyOEv'];a29_0x37c5=function(){return _0x47281c;};return a29_0x37c5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a30_0x19dc(_0x4ec59f,_0xd497fa){const _0x201a47=a30_0x201a();return a30_0x19dc=function(_0x19dc7e,_0x5987bb){_0x19dc7e=_0x19dc7e-0xda;let _0x353539=_0x201a47[_0x19dc7e];return _0x353539;},a30_0x19dc(_0x4ec59f,_0xd497fa);}function a30_0x201a(){const _0x4702ca=['7uQHPea','10lnzqoE','11696wOSekd','3276066QqtDoo','27760986ZInIju','timeout','8PanudR','../../../helpers/request-spy','12SQUcuz','340824snbnCU','restore','1484364Zvkzfx','mochaHooks','2152638lgKFOs','7135640Mfjkwy'];a30_0x201a=function(){return _0x4702ca;};return a30_0x201a();}const a30_0x3b4d64=a30_0x19dc;(function(_0x4f4d2f,_0x4bcd82){const _0x585f57=a30_0x19dc,_0x4743e5=_0x4f4d2f();while(!![]){try{const _0x726ea5=parseInt(_0x585f57(0xdd))/0x1+-parseInt(_0x585f57(0xe3))/0x2*(-parseInt(_0x585f57(0xe4))/0x3)+parseInt(_0x585f57(0xe6))/0x4*(parseInt(_0x585f57(0xdc))/0x5)+-parseInt(_0x585f57(0xde))/0x6*(-parseInt(_0x585f57(0xdb))/0x7)+-parseInt(_0x585f57(0xe1))/0x8*(-parseInt(_0x585f57(0xe8))/0x9)+parseInt(_0x585f57(0xda))/0xa+-parseInt(_0x585f57(0xdf))/0xb;if(_0x726ea5===_0x4bcd82)break;else _0x4743e5['push'](_0x4743e5['shift']());}catch(_0x16cc1d){_0x4743e5['push'](_0x4743e5['shift']());}}}(a30_0x201a,0x643bd));const requestSpy=require(a30_0x3b4d64(0xe2)),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a30_0x3b4d64(0xe7)]={'beforeAll'(){const _0x18eac9={'mBhCy':function(_0xce4a2e){return _0xce4a2e();}},_0x599a69='browserstack internal helper hook';_0x18eac9['mBhCy'](addRequestSpy);},'afterAll'(){const _0x10f743=a30_0x3b4d64,_0x149344='browserstack internal helper hook';this[_0x10f743(0xe0)](0xea60),requestSpy[_0x10f743(0xe5)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a31_0x516b6e=a31_0x2589;(function(_0x5177fb,_0x406d53){const _0x172999=a31_0x2589,_0x2f1601=_0x5177fb();while(!![]){try{const _0x1c6446=parseInt(_0x172999(0xb1))/0x1*(-parseInt(_0x172999(0xa6))/0x2)+-parseInt(_0x172999(0xa9))/0x3+parseInt(_0x172999(0xef))/0x4+parseInt(_0x172999(0xb7))/0x5*(-parseInt(_0x172999(0xe7))/0x6)+parseInt(_0x172999(0xa4))/0x7+parseInt(_0x172999(0xdc))/0x8*(parseInt(_0x172999(0xe5))/0x9)+-parseInt(_0x172999(0xb2))/0xa*(parseInt(_0x172999(0xeb))/0xb);if(_0x1c6446===_0x406d53)break;else _0x2f1601['push'](_0x2f1601['shift']());}catch(_0x5f3acd){_0x2f1601['push'](_0x2f1601['shift']());}}}(a31_0x7ba0,0xe61bb));function a31_0x2589(_0xbf628f,_0x5f0f97){const _0x7ba088=a31_0x7ba0();return a31_0x2589=function(_0x258930,_0x528ba1){_0x258930=_0x258930-0x96;let _0x4fe941=_0x7ba088[_0x258930];return _0x4fe941;},a31_0x2589(_0xbf628f,_0x5f0f97);}const {v4:uuidv4}=require(a31_0x516b6e(0xcf)),{name,version}=require(a31_0x516b6e(0xa5)),logPatcher=require(a31_0x516b6e(0xb4)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a31_0x516b6e(0xb9)),{getPlatformVersion}=require(a31_0x516b6e(0xe4)),{shouldProcessEventForTesthub}=require(a31_0x516b6e(0x9f)),{isFunction}=require(a31_0x516b6e(0xe0)),{patchConsoleLogger}=require(a31_0x516b6e(0xae));patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x3c7898=a31_0x516b6e,_0x3d373c={'BTDQt':_0x3c7898(0xed),'PpOjk':function(_0x4a3ab7){return _0x4a3ab7();}};return{'ci':_0x3d373c[_0x3c7898(0x9e)],'key':_0x3d373c[_0x3c7898(0xd8)](uuidv4),'version':version,'collector':'js-'+name};},exports[a31_0x516b6e(0xd5)]=_0x4a8e4a=>{const _0x5aa830=a31_0x516b6e,_0x1e936a={};_0x1e936a['iokxx']=function(_0x19cdde,_0x2298b7){return _0x19cdde!==_0x2298b7;},_0x1e936a[_0x5aa830(0xb8)]=_0x5aa830(0xb3),_0x1e936a[_0x5aa830(0xc5)]=_0x5aa830(0xbd),_0x1e936a[_0x5aa830(0x99)]='hook';const _0x1bda67=_0x1e936a;if(!_0x4a8e4a||_0x1bda67['iokxx'](typeof _0x4a8e4a,_0x1bda67[_0x5aa830(0xb8)]))return[null,null];if(_0x1bda67['iokxx'](_0x4a8e4a[_0x5aa830(0xa7)](_0x1bda67[_0x5aa830(0xc5)]),-0x1)){const _0x5bf5f0=_0x4a8e4a['split'](_0x1bda67[_0x5aa830(0xc5)]);return[_0x5bf5f0[0x0][_0x5aa830(0xd1)](0x0,-0x1)[_0x5aa830(0xe2)]('\x22')[0x1],_0x5bf5f0[0x1][_0x5aa830(0xda)](0x1)];}else{if(_0x1bda67[_0x5aa830(0xa3)](_0x4a8e4a[_0x5aa830(0xa7)](_0x1bda67[_0x5aa830(0x99)]),-0x1)){const _0x404bf9=_0x4a8e4a['split'](_0x1bda67[_0x5aa830(0x99)]);return[_0x404bf9[0x0][_0x5aa830(0xd1)](0x0,-0x1)['split']('\x22')[0x1],_0x4a8e4a];}}return[null,null];},exports['getHooksForTest']=_0x18d165=>{const _0x3a1376=a31_0x516b6e,_0x331086={'FIwoL':function(_0x5611f9,_0x5bfbc6){return _0x5611f9(_0x5bfbc6);},'DOOhR':_0x3a1376(0xaf),'AhjRN':_0x3a1376(0xac),'ZVoUn':'_beforeEach','KIXZb':_0x3a1376(0xc0)};if(!_0x18d165||!_0x18d165['parent'])return[];const _0x4f2114=[];return[_0x331086[_0x3a1376(0xa2)],_0x331086[_0x3a1376(0x97)],_0x331086['ZVoUn'],_0x331086[_0x3a1376(0xbe)]]['forEach'](_0x2a7a76=>{const _0x357f4a=_0x3a1376,_0x5ea052={'bHOSM':function(_0x5bc1fd,_0x522bdd){const _0xacbaf4=a31_0x2589;return _0x331086[_0xacbaf4(0x9b)](_0x5bc1fd,_0x522bdd);}},_0x4241b0=_0x18d165['parent'][_0x2a7a76]||[];_0x4241b0[_0x357f4a(0xd2)](_0x3a4b4d=>{const _0x3cb597=_0x357f4a;_0x3a4b4d['hookAnalyticsId']&&!_0x5ea052[_0x3cb597(0xc2)](isInternalHook,_0x3a4b4d['fn'])&&_0x4f2114[_0x3cb597(0xe8)](_0x3a4b4d[_0x3cb597(0xc9)]);});}),[..._0x4f2114,...exports['getHooksForTest'](_0x18d165[_0x3a1376(0xd6)])];},exports[a31_0x516b6e(0xd0)]=_0x25075f=>{const _0x2ea1c5=a31_0x516b6e,_0x2c73b4={'OCDes':function(_0x21ab57){return _0x21ab57();},'kvJOB':function(_0xce20e3,_0xb4dd35){return _0xce20e3===_0xb4dd35;},'IsZie':'_afterEach','pxSOQ':_0x2ea1c5(0xaf),'DOOxc':_0x2ea1c5(0xac),'TNCjZ':_0x2ea1c5(0xbc)};if(!_0x25075f||!_0x25075f[_0x2ea1c5(0xd6)])return;[_0x2c73b4[_0x2ea1c5(0xcc)],_0x2c73b4[_0x2ea1c5(0xaa)],_0x2c73b4['TNCjZ'],_0x2c73b4[_0x2ea1c5(0xd9)]][_0x2ea1c5(0xd2)](_0x5c2bbc=>{const _0x56d0f4=_0x25075f['parent'][_0x5c2bbc]||[];_0x56d0f4['forEach'](_0x15adde=>{const _0x185fd5=a31_0x2589;if(!_0x15adde[_0x185fd5(0xc9)])_0x15adde[_0x185fd5(0xc9)]=_0x2c73b4[_0x185fd5(0xab)](uuidv4);else _0x15adde[_0x185fd5(0xec)]&&_0x2c73b4[_0x185fd5(0xce)](_0x5c2bbc,_0x2c73b4[_0x185fd5(0xd9)])&&(_0x15adde[_0x185fd5(0xc9)]=_0x2c73b4[_0x185fd5(0xab)](uuidv4),delete _0x15adde[_0x185fd5(0xec)]);});}),exports[_0x2ea1c5(0xd0)](_0x25075f[_0x2ea1c5(0xd6)]);},exports[a31_0x516b6e(0x98)]=async(_0x3b48f2,_0x29b8bd)=>{const _0x1ab73c=a31_0x516b6e,_0x4eef72={'INAhS':function(_0x4d9c15){return _0x4d9c15();},'MKJpR':function(_0x5ed51f,_0x322550){return _0x5ed51f(_0x322550);},'ZfxSh':_0x1ab73c(0xc8),'equZE':function(_0x3f14f4,_0xdd8934){return _0x3f14f4(_0xdd8934);},'GrCdy':function(_0x238378,_0x388bf9){return _0x238378===_0x388bf9;},'JKbus':_0x1ab73c(0xdd),'yeSvK':'unknown_grid','LHxkT':_0x1ab73c(0xa1)};try{if(!_0x4eef72['INAhS'](shouldProcessEventForTesthub))return;const _0xa0c4d0=await _0x3b48f2[_0x1ab73c(0xd4)](),_0x264a1e=await _0x3b48f2[_0x1ab73c(0xea)](),_0xb12097={},_0x2241f7=Object[_0x1ab73c(0xee)](_0x264a1e[_0x1ab73c(0xd4)]()[_0x1ab73c(0xba)]),_0x389698={'product':_0x4eef72['MKJpR'](getObservabilityLinkedProductName,_0x2241f7),'capabilities':_0x2241f7,'platform':_0xa0c4d0[_0x1ab73c(0xe1)](),'platform_version':_0xa0c4d0['get'](_0x4eef72['ZfxSh'])?_0xa0c4d0[_0x1ab73c(0xbb)](_0x4eef72['ZfxSh']):_0x4eef72[_0x1ab73c(0xd7)](getPlatformVersion,_0x4eef72[_0x1ab73c(0xdb)](global[_0x1ab73c(0xd3)],_0x4eef72[_0x1ab73c(0xc1)])),'browser':_0xa0c4d0[_0x1ab73c(0xe9)](),'browser_version':_0xa0c4d0[_0x1ab73c(0x9d)](),'session_id':_0x264a1e[_0x1ab73c(0x9a)]()};global[_0x1ab73c(0xd3)]?_0xb12097[global[_0x1ab73c(0xd3)]]=_0x389698:_0xb12097[_0x4eef72[_0x1ab73c(0x96)]]=_0x389698,process[_0x1ab73c(0xc4)]('bs:addPlatformDetails:'+process['pid'],{'timestamp':new Date()[_0x1ab73c(0xe3)](),'level':null,'message':null,'kind':_0x4eef72[_0x1ab73c(0xc6)],'http_response':_0xb12097,'uuid':_0x29b8bd});}catch(_0x394d1e){_0x4eef72['MKJpR'](debug,_0x1ab73c(0xdf)+_0x394d1e);}},exports[a31_0x516b6e(0xb5)]=_0x47a26b=>{const _0x3af5aa=a31_0x516b6e,_0x143c38={};_0x143c38[_0x3af5aa(0xca)]=function(_0x3b01ed,_0x2a2ae8){return _0x3b01ed!==_0x2a2ae8;},_0x143c38[_0x3af5aa(0xcd)]=_0x3af5aa(0xc3),_0x143c38['sdEJv']=function(_0x299697,_0x411b87){return _0x299697!==_0x411b87;},_0x143c38['XsfUR']=_0x3af5aa(0xbf),_0x143c38[_0x3af5aa(0xb6)]='failed';const _0x349ec4=_0x143c38,_0x21433f=_0x47a26b[_0x3af5aa(0xad)][_0x3af5aa(0xcb)]((_0x2ccd2e,_0x573e6d)=>{const _0x662a4d=_0x3af5aa,_0x1d5575=exports[_0x662a4d(0xb5)](_0x573e6d);return _0x1d5575&&(_0x2ccd2e=_0x2ccd2e['concat'](_0x1d5575)),_0x2ccd2e;},[]),_0x1d34b0=_0x47a26b[_0x3af5aa(0x9c)][_0x3af5aa(0xe6)](_0x2a556c=>{const _0x14591=_0x3af5aa,_0x564a9b=_0x349ec4[_0x14591(0xca)](_0x2a556c[_0x14591(0xc7)],_0x349ec4[_0x14591(0xcd)])&&!_0x2a556c['markedStatus']&&_0x349ec4[_0x14591(0xb0)](_0x2a556c[_0x14591(0xa8)],_0x349ec4[_0x14591(0xa0)])&&_0x349ec4[_0x14591(0xb0)](_0x2a556c[_0x14591(0xa8)],_0x349ec4[_0x14591(0xb6)])&&!_0x2a556c['pending'];return _0x564a9b;});return _0x1d34b0[_0x3af5aa(0xde)](_0x21433f);};function a31_0x7ba0(){const _0xf11136=['cUGuu','kvJOB','uuid','mapTestHooks','slice','forEach','__cloud_provider___','getCapabilities','getHookDetails','parent','equZE','PpOjk','IsZie','substring','GrCdy','3736sJuoaX','browserstack','concat','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','lodash','getPlatform','split','toISOString','../../../helpers/helper','27441TCGrQK','filter','30LFZqta','push','getBrowserName','getSession','59576FoMxJA','markedStatus','generic','fromEntries','2928864xUGtSO','yeSvK','AhjRN','sendPlatformDetails','BLKOB','toJSON','FIwoL','tests','getBrowserVersion','BTDQt','../../../helpers/testhub/utils','XsfUR','TEST_PLATFORM','DOOhR','iokxx','13151215DNkRHA','../../../../package.json','2sHXiUB','indexOf','state','1427517vwbplQ','DOOxc','OCDes','_afterAll','suites','../../../helpers/test-observability/utils','_beforeAll','sdEJv','1521898cRvKBs','1690sEXSjg','string','../../utils/logPatcher','getHookSkippedTests','YHJjc','179280TzlDCS','yeVoL','../../../helpers/test-observability/constants','map_','get','_beforeEach','hook:','KIXZb','passed','_afterEach','JKbus','bHOSM','hook','emit','MQMGo','LHxkT','type','platformVersion','hookAnalyticsId','JQEyW','reduce','pxSOQ'];a31_0x7ba0=function(){return _0xf11136;};return a31_0x7ba0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x21bb23=a32_0x10ae;(function(_0x3ab081,_0x3be998){const _0x175b34=a32_0x10ae,_0x16d1c9=_0x3ab081();while(!![]){try{const _0x3b5243=-parseInt(_0x175b34(0x106))/0x1*(parseInt(_0x175b34(0x151))/0x2)+parseInt(_0x175b34(0x12a))/0x3*(parseInt(_0x175b34(0x167))/0x4)+parseInt(_0x175b34(0x133))/0x5+parseInt(_0x175b34(0x190))/0x6*(parseInt(_0x175b34(0x120))/0x7)+-parseInt(_0x175b34(0x141))/0x8*(parseInt(_0x175b34(0x16d))/0x9)+-parseInt(_0x175b34(0x14e))/0xa*(-parseInt(_0x175b34(0x176))/0xb)+-parseInt(_0x175b34(0x139))/0xc;if(_0x3b5243===_0x3be998)break;else _0x16d1c9['push'](_0x16d1c9['shift']());}catch(_0x2dd908){_0x16d1c9['push'](_0x16d1c9['shift']());}}}(a32_0x39e8,0xd77d2));function a32_0x10ae(_0x7905bc,_0x17af5a){const _0x39e875=a32_0x39e8();return a32_0x10ae=function(_0x10ae26,_0x44a1e7){_0x10ae26=_0x10ae26-0xe4;let _0x38c5d1=_0x39e875[_0x10ae26];return _0x38c5d1;},a32_0x10ae(_0x7905bc,_0x17af5a);}function a32_0x39e8(){const _0x1bb350=['VCsqp','LCXCH','afterTest','debug','VKAXF','RejLQ','__error_messages__','currentTest','SAVE_RESULTS','MOkxf','GezTc','fCvHi','WImbf','FTLga','accessibilityScanStarted','util','bstackA11yShouldScan','KlaAZ','SYNC','geYUU','setGlobal','mVAim','JlOhh','titlePath','NPPZy','\x20-\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','browserstackSessionName','end','isAccessibilityPlatform','jIJza','../../helpers/globals','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','app','command','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','ErkJt','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','percyCaptureMode','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20',',\x22level\x22:\x20\x22','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','ThGoH','__platformCaps','607BtNZNh','measureWrapper','testcase','testAnalyticsId','kPuUi','protocol','__sessionFailed','jLJzk','KORGG','OgYqk','SDK_HOOK','cXZZc','quitCount_','sZrMh','SESSION_STATUS','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','message','KLedH','push','../../helpers/logger','AAXex','sessionNameSet__','hZgSb','zJswo','\x20|\x20','length','38108vBCLco','NYohF','err','rGmIb','MbKki','Failed:\x20','ObservabilitySync:','kRFED','TLKdj','http:','268572fQMUjv','browserstackTestName','./test-observability/mochaUtils','getGlobal','then','../../helpers/percy/utils','ntxia','error','Tvzhy','7249975nlnFwN','BROWSERSTACK_TESTHUB_JWT','Jciht','TWdew','BROWSERSTACK_TESTHUB_UUID','MTIQP','17238096VMPiNo','isArray','failed','ukrGa','xHujb','env','executeScript','vAinY','7486696cZQOPN','aApvW','GgGvM','Automate\x20test\x20case\x20execution\x20has\x20started.','https:','shift','HDuDj','shouldScanTestForAccessibility','driverCleanup','ENV_VAR','format','tNxIK','\x22}}','17506050DcSdmu','__skipSessionName','join','4638FvFruE','capabilities','thTestRunUuid','UubGf','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','sXPsy','winstonLogger','MYpHS','mdtVW','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','OLfph','txOVN','oWKUX','beforeEach','bwUPd','beforeAll','XUlTa','.\x20Error\x20:','LEyrO','nXyyX','passed','state','32dVdqgg','pVtdu','executeAsyncScript','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','saveTestResults','XJOXJ','9OdZylK','fZule','../../helpers/helper','thJwtToken','KBNKt','info','JhQZn','Lrduu','MWHoq','11UlkIVR','../../helpers/accessibility-automation/helper','performScan','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','index','Failed\x20to\x20store\x20session\x20name:\x20','sessionName','zkryj','Performing\x20scan\x20before\x20saving\x20results','start','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','afterAll','../../helpers/testhub/constants','GeroJ','Passed','EjHBu','ihpCT','BGtSB','stringify','session_','__drivers','lTmWB','TIKQJ','HErHK','AGZwP','timeout','822Bvyihm'];a32_0x39e8=function(){return _0x1bb350;};return a32_0x39e8();}const util=require(a32_0x21bb23(0xe9)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x21bb23(0x177)),{percyAutoCapture}=require(a32_0x21bb23(0x12f)),{sendPlatformDetails}=require(a32_0x21bb23(0x12c)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x21bb23(0x16f)),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a32_0x21bb23(0xf9)),logger=require(a32_0x21bb23(0x119))[a32_0x21bb23(0x157)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a32_0x21bb23(0x182));exports['mochaHooks']={'beforeAll'(){const _0x46b0e3=a32_0x21bb23,_0x1c6495={'jLJzk':function(_0x552139,_0x727b9e,_0x4761fe,_0x569d6b){return _0x552139(_0x727b9e,_0x4761fe,_0x569d6b);},'nXyyX':_0x46b0e3(0x13b),'HDuDj':_0x46b0e3(0x11e),'ntxia':function(_0x4bdbdf,_0x55ebc0,_0x22cf82){return _0x4bdbdf(_0x55ebc0,_0x22cf82);},'jzMjE':_0x46b0e3(0x165),'zJswo':function(_0x19cb84){return _0x19cb84();},'ihpCT':function(_0x112f13,_0x507b24,_0x2854b0){return _0x112f13(_0x507b24,_0x2854b0);},'mVAim':'index','lTmWB':_0x46b0e3(0x160)};PerformanceTester['startMonitoring']();const _0x5ef411='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x46b0e3(0x110)],()=>{const _0x4ca104=_0x46b0e3;global[_0x4ca104(0x197)]=[],global[_0x4ca104(0x10c)]=![],global[_0x4ca104(0x149)]=async()=>{const _0x4d5b22=_0x4ca104;let _0x3aab25=![];try{await global[_0x4d5b22(0x18a)][0x0][_0x4d5b22(0x189)],_0x3aab25=!![],global[_0x4d5b22(0x10c)]?await _0x1c6495[_0x4d5b22(0x10d)](markSessionStatus,global[_0x4d5b22(0x18a)][0x0],_0x1c6495[_0x4d5b22(0x164)],global['__error_messages__'][_0x4d5b22(0x150)](_0x1c6495[_0x4d5b22(0x147)])):await _0x1c6495[_0x4d5b22(0x130)](markSessionStatus,global['__drivers'][0x0],_0x1c6495['jzMjE']);}catch(_0x8dbdd){logger[_0x4d5b22(0x194)](_0x4d5b22(0x101)+_0x8dbdd);}global[_0x4d5b22(0x197)]=[],global['__sessionFailed']=![];if(_0x3aab25)try{try{_0x1c6495[_0x4d5b22(0x11d)](shouldProcessEventForTesthub)&&(global['__drivers'][0x0]&&await _0x1c6495[_0x4d5b22(0x186)](sendPlatformDetails,global[_0x4d5b22(0x18a)][0x0],this[_0x4d5b22(0x198)]?this[_0x4d5b22(0x198)][_0x4d5b22(0x109)]:null));}catch(_0x3e386b){logger[_0x4d5b22(0x194)](_0x4d5b22(0x155)+_0x3e386b);}await global[_0x4d5b22(0x18a)][0x0]['initQuit']();}catch(_0x38b7e7){logger[_0x4d5b22(0x194)](_0x4d5b22(0x103)+_0x38b7e7);}};},{'platform':_0x1c6495[_0x46b0e3(0x186)](nestedKeyValue,global[_0x46b0e3(0x105)],[_0x1c6495[_0x46b0e3(0xef)]]),'hookType':_0x1c6495[_0x46b0e3(0x18b)]})();},'beforeEach'(_0x2d403f){const _0x3bbfa6=a32_0x21bb23,_0x176815={'Tvzhy':function(_0x32fa8a,_0x61f7d4){return _0x32fa8a>_0x61f7d4;},'RejLQ':function(_0x298b00,_0x5963a1){return _0x298b00>_0x5963a1;},'KORGG':_0x3bbfa6(0xf3),'KLedH':function(_0x239bc3,_0x382fd6,_0x50e144){return _0x239bc3(_0x382fd6,_0x50e144);},'GgGvM':_0x3bbfa6(0xea),'FTLga':function(_0x3254a9){return _0x3254a9();},'HErHK':function(_0x337485,_0x353c89){return _0x337485>_0x353c89;},'OgYqk':_0x3bbfa6(0xf7),'ErkJt':function(_0x25dd26,_0x1f11ad){return _0x25dd26===_0x1f11ad;},'UubGf':_0x3bbfa6(0x129),'VWIJY':_0x3bbfa6(0x145),'yvHrh':_0x3bbfa6(0x115),'XJOXJ':_0x3bbfa6(0x144),'mdtVW':function(_0x1b6120){return _0x1b6120();},'WImbf':_0x3bbfa6(0x12b),'VKAXF':_0x3bbfa6(0x17a),'QkJDX':_0x3bbfa6(0x15e)};globals[_0x3bbfa6(0xee)](_0x176815[_0x3bbfa6(0xe6)],this[_0x3bbfa6(0x198)][_0x3bbfa6(0xf1)]()['join'](_0x176815[_0x3bbfa6(0x10e)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x3bbfa6(0x110)],()=>{const _0x31b3d1=_0x3bbfa6,_0x33661d={'jIAwQ':function(_0x1c8bf2,_0x742c01){const _0x40cfcc=a32_0x10ae;return _0x176815[_0x40cfcc(0x132)](_0x1c8bf2,_0x742c01);},'oWKUX':function(_0x58a9d0,_0x15ee66){const _0x1f4c48=a32_0x10ae;return _0x176815[_0x1f4c48(0x196)](_0x58a9d0,_0x15ee66);},'sXPsy':_0x176815['KORGG'],'KlaAZ':function(_0x257531,_0xe6afb1,_0xba78af){const _0x40788e=a32_0x10ae;return _0x176815[_0x40788e(0x117)](_0x257531,_0xe6afb1,_0xba78af);},'hJBMh':_0x176815[_0x31b3d1(0x143)],'OurRk':function(_0x251f0c){const _0x49bbe2=_0x31b3d1;return _0x176815[_0x49bbe2(0xe7)](_0x251f0c);},'TWdew':function(_0x16d19f,_0x2b341e){const _0x48e4dd=_0x31b3d1;return _0x176815[_0x48e4dd(0x18d)](_0x16d19f,_0x2b341e);},'hZgSb':_0x176815[_0x31b3d1(0x10f)],'MOkxf':function(_0x238eb5,_0x1fe4f4){const _0x1d22d8=_0x31b3d1;return _0x176815[_0x1d22d8(0xfe)](_0x238eb5,_0x1fe4f4);},'zkryj':_0x176815[_0x31b3d1(0x154)],'MbKki':function(_0x2868e4,_0x31d8ad){const _0x459d11=_0x31b3d1;return _0x176815[_0x459d11(0xfe)](_0x2868e4,_0x31d8ad);},'KBNKt':_0x176815['VWIJY'],'JhQZn':_0x176815['yvHrh'],'GezTc':_0x176815[_0x31b3d1(0x16c)],'MTIQP':function(_0x16912d){const _0x1bf97f=_0x31b3d1;return _0x176815[_0x1bf97f(0x159)](_0x16912d);},'MYpHS':function(_0x7301bb){const _0x4793fc=_0x31b3d1;return _0x176815[_0x4793fc(0x159)](_0x7301bb);}},_0x253bdb='browserstack internal helper hook';new Promise(async _0x34c3e0=>{const _0x579406=_0x31b3d1;let _0x3c5898=!![];try{_0x33661d['jIAwQ'](global['__drivers'][_0x579406(0x11f)],0x1)&&(await global[_0x579406(0x149)](),global[_0x579406(0x18a)][_0x579406(0x146)]()),_0x33661d[_0x579406(0x15d)](global[_0x579406(0x18a)][0x0]['quitCount_'],0x0)&&(_0x3c5898=![],await global[_0x579406(0x149)]());}catch(_0x296238){logger[_0x579406(0x194)](_0x579406(0x103)+_0x296238);}try{Array[_0x579406(0x13a)](global[_0x579406(0x18a)])&&global[_0x579406(0x18a)][0x0]&&(global[_0x579406(0x18a)][0x0][_0x579406(0xf5)]=this['currentTest'][_0x579406(0xf1)]()[_0x579406(0x150)](_0x33661d['sXPsy'])),global[_0x579406(0xf5)]=this['currentTest'][_0x579406(0xf1)]()[_0x579406(0x150)](_0x33661d[_0x579406(0x156)]);}catch(_0x48ad90){logger[_0x579406(0x194)](_0x579406(0x17b)+_0x48ad90);}this[_0x579406(0x198)][_0x579406(0x148)]=_0x33661d[_0x579406(0xeb)](shouldScanTestForAccessibility,this[_0x579406(0x198)][_0x579406(0xf1)](),!![]),globals[_0x579406(0xee)](_0x33661d['hJBMh'],this[_0x579406(0x198)][_0x579406(0x148)]),this[_0x579406(0x198)]['accessibilityScanStarted']=!![];if(_0x33661d['OurRk'](isAccessibilityAutomationSession)&&_0x3c5898&&Array[_0x579406(0x13a)](global[_0x579406(0x18a)])&&_0x33661d[_0x579406(0x136)](global[_0x579406(0x18a)]['length'],0x0)&&globals[_0x579406(0x12d)](_0x33661d[_0x579406(0x11c)]))try{const _0x3d1867=await global[_0x579406(0x18a)][0x0][_0x579406(0x189)];if(_0x3d1867){let _0xf51fa9=!![];const _0x243453=await global[_0x579406(0x18a)][0x0]['getCurrentUrl']();let _0x323c50;try{_0x323c50=new URL(_0x243453);}catch(_0x173fba){_0xf51fa9=![];}_0xf51fa9=_0x33661d[_0x579406(0x19a)](_0x323c50[_0x579406(0x10b)],_0x33661d[_0x579406(0x17d)])||_0x33661d[_0x579406(0x124)](_0x323c50[_0x579406(0x10b)],_0x33661d[_0x579406(0x171)]),_0xf51fa9&&(this[_0x579406(0x198)]['shouldScanTestForAccessibility']&&logger[_0x579406(0x172)](_0x33661d[_0x579406(0x173)])),this[_0x579406(0x198)]['accessibilityScanStarted']=this['currentTest'][_0x579406(0x148)],this[_0x579406(0x198)][_0x579406(0x148)]&&logger[_0x579406(0x172)](_0x33661d[_0x579406(0xe4)]);}}catch(_0x407965){logger['error'](_0x579406(0x16a)+util[_0x579406(0x14b)](_0x407965));}_0x33661d[_0x579406(0x138)](_0x34c3e0);})['then'](()=>{const _0x3cef3d=_0x31b3d1;_0x33661d[_0x3cef3d(0x158)](_0x2d403f);});},{'platform':_0x176815[_0x3bbfa6(0x117)](nestedKeyValue,global['__platformCaps'],[_0x176815[_0x3bbfa6(0x195)]]),'hookType':_0x176815['QkJDX']})();},'afterEach'(_0x2aa5ba){const _0x3f620a=a32_0x21bb23,_0x303ef9={'AAXex':function(_0x28e2c3,_0x45f17e){return _0x28e2c3!==_0x45f17e;},'kPuUi':_0x3f620a(0x165),'kRFED':function(_0x4ca65c,_0x4eeacc,_0x4f0c46){return _0x4ca65c(_0x4eeacc,_0x4f0c46);},'xpZJP':function(_0x55fe0f,_0x155c18){return _0x55fe0f+_0x155c18;},'JlOhh':_0x3f620a(0x125),'NYohF':_0x3f620a(0x131),'Lrduu':_0x3f620a(0x184),'OLfph':'info','TIKQJ':function(_0x3f3e34,_0x54260c){return _0x3f3e34>_0x54260c;},'xhxBN':function(_0x230c7,_0x4bef46){return _0x230c7===_0x4bef46;},'VCsqp':_0x3f620a(0x108),'Jciht':function(_0x41b5db,_0x220fb4){return _0x41b5db>_0x220fb4;},'vAinY':'appium:app','tNxIK':function(_0x53e08a,_0x156199,_0x26ea07,_0x30a251){return _0x53e08a(_0x156199,_0x26ea07,_0x30a251);},'fZule':_0x3f620a(0xf7),'jIJza':'bstackA11yShouldScan','txOVN':_0x3f620a(0x179),'pVtdu':_0x3f620a(0x17e),'bwUPd':_0x3f620a(0x193),'XUlTa':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','sZrMh':function(_0x251c87){return _0x251c87();},'BGtSB':function(_0x19e46e,_0x1be337,_0x1146c3){return _0x19e46e(_0x1be337,_0x1146c3);},'WghEQ':_0x3f620a(0x194),'rGmIb':function(_0x5d29bb,_0x4ad46b){return _0x5d29bb>_0x4ad46b;},'TLKdj':'\x20-\x20','NPPZy':function(_0x288512,_0x2bc6eb,_0x46329a){return _0x288512(_0x2bc6eb,_0x46329a);},'MWHoq':_0x3f620a(0x17a),'ukrGa':'afterEach'},_0x42454b='browserstack internal helper hook';this[_0x3f620a(0x18f)](0xfde8),global[_0x3f620a(0x17c)]=this['currentTest'][_0x3f620a(0xf1)]()[_0x3f620a(0x150)](_0x303ef9[_0x3f620a(0x128)]),PerformanceTester[_0x3f620a(0x107)](PerformanceSdkEvents[_0x3f620a(0x110)],()=>{const _0x4535ab=_0x3f620a,_0x360b19={};_0x360b19[_0x4535ab(0x185)]=_0x303ef9['TLKdj'];const _0x14dc86=_0x360b19,_0xc9ad23=async(_0x118270,_0x5f3fcb)=>{const _0x27144f=_0x4535ab;await global[_0x27144f(0x18a)][0x0][_0x27144f(0x13f)](_0x27144f(0xf4)+_0x118270+_0x27144f(0x102)+_0x5f3fcb+_0x27144f(0x14d));};new Promise(async _0x18afe1=>{const _0x5344dd=_0x4535ab,_0x37e0f4={'GXmso':function(_0x2aad73,_0x3313ea){const _0x2913b5=a32_0x10ae;return _0x303ef9[_0x2913b5(0x11a)](_0x2aad73,_0x3313ea);},'KVbeA':_0x303ef9[_0x5344dd(0x10a)],'fCvHi':function(_0x221d11,_0x15423e,_0x2e9816){return _0x303ef9['kRFED'](_0x221d11,_0x15423e,_0x2e9816);},'mvRjs':function(_0x18a312,_0x59f943){return _0x303ef9['xpZJP'](_0x18a312,_0x59f943);},'xHujb':_0x303ef9[_0x5344dd(0xf0)],'LCXCH':_0x303ef9[_0x5344dd(0x121)],'cXZZc':function(_0xc99328,_0x3f3c0e,_0x4080e1){const _0x2df4e0=_0x5344dd;return _0x303ef9[_0x2df4e0(0x127)](_0xc99328,_0x3f3c0e,_0x4080e1);},'yMMUm':_0x303ef9[_0x5344dd(0x174)],'AGZwP':_0x303ef9[_0x5344dd(0x15b)]};try{_0x303ef9[_0x5344dd(0x18c)](global[_0x5344dd(0x18a)][_0x5344dd(0x11f)],0x1)&&(await global[_0x5344dd(0x149)](),global[_0x5344dd(0x18a)][_0x5344dd(0x146)](),global[_0x5344dd(0x197)]=[],global[_0x5344dd(0x10c)]=![]);try{if(global['percy']&&_0x303ef9['xhxBN'](global[_0x5344dd(0x100)],_0x303ef9['VCsqp'])&&global['__drivers'][0x0]){const _0x24dae=_0x303ef9[_0x5344dd(0x135)](global[_0x5344dd(0x152)][_0x5344dd(0x11f)],0x0)?!!global[_0x5344dd(0x152)][0x0][_0x5344dd(0xfb)]||!!global['capabilities'][0x0][_0x303ef9[_0x5344dd(0x140)]]:![],_0x17bf5b={};_0x17bf5b[_0x5344dd(0xfb)]=_0x24dae,await _0x303ef9[_0x5344dd(0x14c)](percyAutoCapture,global['__drivers'][0x0],_0x303ef9[_0x5344dd(0x191)],_0x17bf5b);}}catch(_0x537b70){logger[_0x5344dd(0x194)](_0x5344dd(0xff)+_0x537b70);}!global[_0x5344dd(0x14f)]&&(await PerformanceTester[_0x5344dd(0x107)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x15a62c=_0x5344dd;await global['__drivers'][0x0][_0x15a62c(0x13f)](_0x15a62c(0x180)+JSON['stringify'](this[_0x15a62c(0x198)]['titlePath']()[_0x15a62c(0x150)](_0x14dc86[_0x15a62c(0x185)]))+'}}');})(),global[_0x5344dd(0x18a)][0x0][_0x5344dd(0x11b)]=!![]),await PerformanceTester[_0x5344dd(0x107)](PerformanceAutEvents[_0x5344dd(0x114)],async()=>{const _0x168ac5=_0x5344dd,_0x54d600=_0x37e0f4['GXmso'](this[_0x168ac5(0x198)][_0x168ac5(0x166)],_0x37e0f4['KVbeA']);_0x54d600?(global[_0x168ac5(0x10c)]=!![],global['__error_messages__'][_0x168ac5(0x118)](this['currentTest'][_0x168ac5(0x122)][_0x168ac5(0x116)]),await _0x37e0f4[_0x168ac5(0xe5)](_0xc9ad23,JSON[_0x168ac5(0x188)](_0x37e0f4['mvRjs'](_0x37e0f4[_0x168ac5(0x13d)],this[_0x168ac5(0x198)][_0x168ac5(0x122)][_0x168ac5(0x116)])),_0x37e0f4[_0x168ac5(0x192)])):await _0x37e0f4[_0x168ac5(0x111)](_0xc9ad23,JSON[_0x168ac5(0x188)](_0x37e0f4['yMMUm']),_0x37e0f4[_0x168ac5(0x18e)]);})();}catch(_0x173c17){logger[_0x5344dd(0x194)](_0x5344dd(0x15a)+_0x173c17);}try{if(this[_0x5344dd(0x198)][_0x5344dd(0xe8)]&&globals[_0x5344dd(0x12d)](_0x303ef9[_0x5344dd(0x16e)])&&globals[_0x5344dd(0x12d)](_0x303ef9[_0x5344dd(0xf8)])){logger[_0x5344dd(0x172)](_0x303ef9[_0x5344dd(0x15c)]);const _0x4a59be={};_0x4a59be[_0x5344dd(0x153)]=this[_0x5344dd(0x198)][_0x5344dd(0x109)],_0x4a59be['thBuildUuid']=process['env'][testHubConstants[_0x5344dd(0x14a)][_0x5344dd(0x137)]],_0x4a59be[_0x5344dd(0x170)]=process[_0x5344dd(0x13e)][testHubConstants[_0x5344dd(0x14a)][_0x5344dd(0x134)]];const _0x30ce0a=_0x4a59be;logger[_0x5344dd(0x194)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x30ce0a)),logger[_0x5344dd(0x194)](_0x303ef9[_0x5344dd(0x168)]);const _0x42458d={};_0x42458d[_0x5344dd(0xfc)]=_0x303ef9[_0x5344dd(0x15f)],await PerformanceTester[_0x5344dd(0x107)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x2b2310=_0x5344dd;logger[_0x2b2310(0x194)](util[_0x2b2310(0x14b)](await global[_0x2b2310(0x18a)][0x0][_0x2b2310(0x169)](scripts[_0x2b2310(0x178)],{'method':global[_0x2b2310(0xf5)]})));},_0x42458d)(),await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x5344dd(0x199)],async()=>{const _0x4f6f5a=_0x5344dd;await global[_0x4f6f5a(0x18a)][0x0][_0x4f6f5a(0x169)](scripts[_0x4f6f5a(0x16b)],_0x30ce0a);})(),logger[_0x5344dd(0x172)](_0x303ef9[_0x5344dd(0x161)]);}}catch(_0x1aa85a){logger[_0x5344dd(0x131)](_0x5344dd(0xfd)+this[_0x5344dd(0x198)][_0x5344dd(0xf1)]()+_0x5344dd(0x162),_0x1aa85a);}try{try{if(_0x303ef9[_0x5344dd(0x113)](shouldProcessEventForTesthub)){global[_0x5344dd(0x18a)][0x0]&&await _0x303ef9[_0x5344dd(0x187)](sendPlatformDetails,global[_0x5344dd(0x18a)][0x0],this[_0x5344dd(0x198)]?this[_0x5344dd(0x198)][_0x5344dd(0x109)]:null);if(_0x303ef9[_0x5344dd(0x113)](isBrowserstackInfra)){PerformanceTester[_0x5344dd(0x17f)](PerformanceO11yEvents[_0x5344dd(0xec)]);const _0x4df571=_0x5344dd(0x126)+Date['now']();await _0x303ef9[_0x5344dd(0x127)](_0xc9ad23,JSON[_0x5344dd(0x188)](_0x4df571),_0x303ef9['WghEQ']),PerformanceTester[_0x5344dd(0xf6)](PerformanceO11yEvents[_0x5344dd(0xec)]);}}}catch(_0x43abb7){logger[_0x5344dd(0x194)](_0x5344dd(0xfa)+_0x43abb7),PerformanceTester[_0x5344dd(0xf6)](PerformanceO11yEvents[_0x5344dd(0xec)],![],_0x43abb7);}_0x303ef9[_0x5344dd(0x123)](global[_0x5344dd(0x18a)][0x0][_0x5344dd(0x112)],0x0)&&await global['driverCleanup']();}catch(_0x17b34d){logger[_0x5344dd(0x194)](_0x5344dd(0x103)+_0x17b34d);}_0x303ef9[_0x5344dd(0x113)](_0x18afe1);})['then'](()=>{const _0x3d68c1=_0x4535ab;_0x303ef9[_0x3d68c1(0x113)](_0x2aa5ba);});},{'platform':_0x303ef9[_0x3f620a(0xf2)](nestedKeyValue,global[_0x3f620a(0x105)],[_0x303ef9[_0x3f620a(0x175)]]),'hookType':_0x303ef9[_0x3f620a(0x13c)]})();},'afterAll'(_0x1bbb11){const _0x40d06a=a32_0x21bb23,_0x2f2a53={'GeroJ':function(_0x1ff8b3){return _0x1ff8b3();},'LEyrO':function(_0x13c8a2){return _0x13c8a2();},'ThGoH':function(_0x45bbed,_0x45101e,_0x27e795){return _0x45bbed(_0x45101e,_0x27e795);},'Icvxh':_0x40d06a(0x17a),'geYUU':_0x40d06a(0x181)},_0x1bdd6e='browserstack internal helper hook';this[_0x40d06a(0x18f)](0xfde8),PerformanceTester[_0x40d06a(0x107)](PerformanceSdkEvents[_0x40d06a(0x110)],()=>{const _0x2591ad=_0x40d06a,_0x33ca61={'aApvW':function(_0x53d07d){const _0x30721b=a32_0x10ae;return _0x2f2a53[_0x30721b(0x163)](_0x53d07d);}};new Promise(async _0x545a13=>{const _0x382577=a32_0x10ae;await global[_0x382577(0x149)](),_0x33ca61[_0x382577(0x142)](_0x545a13);})[_0x2591ad(0x12e)]()['finally'](()=>{const _0x2b6961=_0x2591ad;_0x2f2a53[_0x2b6961(0x183)](_0x1bbb11);});},{'platform':_0x2f2a53[_0x40d06a(0x104)](nestedKeyValue,global[_0x40d06a(0x105)],[_0x2f2a53['Icvxh']]),'hookType':_0x2f2a53[_0x40d06a(0xed)]})();}};
|
|
1
|
+
function a32_0x749d(_0x1c0be6,_0x2f8e2c){const _0x537ff2=a32_0x537f();return a32_0x749d=function(_0x749d3a,_0x22a250){_0x749d3a=_0x749d3a-0x1ce;let _0x2a2000=_0x537ff2[_0x749d3a];return _0x2a2000;},a32_0x749d(_0x1c0be6,_0x2f8e2c);}const a32_0x4a6239=a32_0x749d;(function(_0x472c03,_0x49466c){const _0x383eec=a32_0x749d,_0x5b9377=_0x472c03();while(!![]){try{const _0x4a3b9d=-parseInt(_0x383eec(0x244))/0x1+-parseInt(_0x383eec(0x1da))/0x2+parseInt(_0x383eec(0x240))/0x3+parseInt(_0x383eec(0x246))/0x4*(-parseInt(_0x383eec(0x1d2))/0x5)+parseInt(_0x383eec(0x25e))/0x6+-parseInt(_0x383eec(0x237))/0x7+parseInt(_0x383eec(0x219))/0x8;if(_0x4a3b9d===_0x49466c)break;else _0x5b9377['push'](_0x5b9377['shift']());}catch(_0x65a6a6){_0x5b9377['push'](_0x5b9377['shift']());}}}(a32_0x537f,0x8c3c6));function a32_0x537f(){const _0x100488=['driverCleanup','qreoF','sBVaA','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Jvijc','percyCaptureMode','browserstackSessionName','uzIDo','app','MkNCj','command','SDK_HOOK','SAVE_RESULTS','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','getGlobal','bhUzT','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','UHhiX','index','https:','TaiZc','vHvXI','join','currentTest','afterEach','byhGk','xmuNu','../../helpers/helper','__drivers','7658208ovwfRm','LoVTM','Passed','../../helpers/accessibility-automation/helper','measureWrapper','jSYbX','sCkGF','mochaHooks','GHSIu','GvvSS','VlEmC','\x22}}','passed','PERFORM_SCAN','executeAsyncScript','jCQup','KWYsu','PHQJv','shouldScanTestForAccessibility','SESSION_NAME','Performing\x20scan\x20before\x20saving\x20results','beforeAll','util',',\x22level\x22:\x20\x22','quitCount_','dGMXm','__sessionFailed','sVwkK','../../helpers/testhub/constants','accessibilityScanStarted','3381217zltYZa','QMvpr','iaUuR','../../helpers/performance/constants','BROWSERSTACK_TESTHUB_UUID','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','eENlP','../../helpers/globals','mtAnt','3406347musFCD','jmfpr','BsjGq','DUFJP','1138419QDMypj','debug','1428iYdynO','protocol','zdikv','ghfxm','message','zMUYd','__error_messages__','oCJBB','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','KAfpc','\x20-\x20','__platformCaps','TnLGE','\x20|\x20','HPiSG','length','nWVVh','nYnQZ','sJhXL','zWveo','error','capabilities','browserstackTestName','2976408cMhWhY','.\x20Error\x20:','../../helpers/testhub/utils','percy','EHRpo','thTestRunUuid','titlePath','isAccessibilityPlatform','thJwtToken','end','setGlobal','YynbI','RuDyI','bstackA11yShouldScan','ZzWrv','SYNC','__skipSessionName','testcase','ObservabilitySync:','testAnalyticsId','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','then','format','2735FeAQha','./test-observability/mochaUtils','../../helpers/percy/utils','now','session_','stringify','ENV_VAR','appium:app','395316HTlspe','SESSION_STATUS','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','OiptL','lTzDM','err','push','oiLMZ','finally','BTjJI','ofqBE','sessionNameSet__','failed','ZXyni','MGxER','MFhKK','env','info','../../helpers/accessibility-automation/scripts','BEZFn','vYiod','../../helpers/performance/performance-tester','timeout','executeScript','vYVKF','afterAll','msYmL','cZrzE','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','bmcCJ','shift','isArray','SnlkL','start'];a32_0x537f=function(){return _0x100488;};return a32_0x537f();}const util=require(a32_0x4a6239(0x22f)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a32_0x4a6239(0x21c)),{percyAutoCapture}=require(a32_0x4a6239(0x1d4)),{sendPlatformDetails}=require(a32_0x4a6239(0x1d3)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a32_0x4a6239(0x217)),PerformanceTester=require(a32_0x4a6239(0x1ef)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a32_0x4a6239(0x23a)),scripts=require(a32_0x4a6239(0x1ec)),globals=require(a32_0x4a6239(0x23e)),logger=require('../../helpers/logger')['winstonLogger'],{shouldProcessEventForTesthub}=require(a32_0x4a6239(0x260)),testHubConstants=require(a32_0x4a6239(0x235));exports[a32_0x4a6239(0x220)]={'beforeAll'(){const _0x1bda6f=a32_0x4a6239,_0x53e81d={'qKlEL':function(_0x54dc7b,_0x118eb9,_0xbfa018,_0x52eb90){return _0x54dc7b(_0x118eb9,_0xbfa018,_0x52eb90);},'KWYsu':_0x1bda6f(0x1e6),'jmfpr':_0x1bda6f(0x254),'sBVaA':function(_0x12ef0e,_0x158dfb,_0x449529){return _0x12ef0e(_0x158dfb,_0x449529);},'fonCl':_0x1bda6f(0x225),'dGMXm':function(_0x1807d4){return _0x1807d4();},'jSYbX':function(_0x514cf5,_0x54879e,_0x5603f2){return _0x514cf5(_0x54879e,_0x5603f2);},'EHRpo':function(_0x1bd065,_0x46d398,_0x3f40ce){return _0x1bd065(_0x46d398,_0x3f40ce);},'vHvXI':_0x1bda6f(0x20e),'qmEBA':_0x1bda6f(0x22e)};PerformanceTester['startMonitoring']();const _0xf8dc22='browserstack internal helper hook';PerformanceTester[_0x1bda6f(0x21d)](PerformanceSdkEvents[_0x1bda6f(0x207)],()=>{const _0x374fb6=_0x1bda6f;global[_0x374fb6(0x24c)]=[],global['__sessionFailed']=![],global[_0x374fb6(0x1fc)]=async()=>{const _0x1a5841=_0x374fb6;let _0x4f95ad=![];try{await global['__drivers'][0x0][_0x1a5841(0x1d6)],_0x4f95ad=!![],global[_0x1a5841(0x233)]?await _0x53e81d['qKlEL'](markSessionStatus,global['__drivers'][0x0],_0x53e81d[_0x1a5841(0x229)],global['__error_messages__'][_0x1a5841(0x212)](_0x53e81d[_0x1a5841(0x241)])):await _0x53e81d[_0x1a5841(0x1fe)](markSessionStatus,global[_0x1a5841(0x218)][0x0],_0x53e81d['fonCl']);}catch(_0x5b4795){logger[_0x1a5841(0x245)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x5b4795);}global[_0x1a5841(0x24c)]=[],global[_0x1a5841(0x233)]=![];if(_0x4f95ad)try{try{_0x53e81d[_0x1a5841(0x232)](shouldProcessEventForTesthub)&&(global[_0x1a5841(0x218)][0x0]&&await _0x53e81d[_0x1a5841(0x21e)](sendPlatformDetails,global[_0x1a5841(0x218)][0x0],this[_0x1a5841(0x213)]?this['currentTest'][_0x1a5841(0x1ce)]:null));}catch(_0x5216c8){logger[_0x1a5841(0x245)]('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x5216c8);}await global[_0x1a5841(0x218)][0x0]['initQuit']();}catch(_0x4ea1f9){logger[_0x1a5841(0x245)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x4ea1f9);}};},{'platform':_0x53e81d[_0x1bda6f(0x262)](nestedKeyValue,global[_0x1bda6f(0x252)],[_0x53e81d[_0x1bda6f(0x211)]]),'hookType':_0x53e81d['qmEBA']})();},'beforeEach'(_0x3f5e85){const _0x4b861e=a32_0x4a6239,_0xfe6b66={'PHQJv':function(_0x2f78a5,_0x5e309f){return _0x2f78a5>_0x5e309f;},'xmuNu':function(_0x2223c4,_0x24d90a){return _0x2223c4>_0x24d90a;},'ghfxm':_0x4b861e(0x251),'zWveo':function(_0x258d41,_0x293cfd,_0x10b852){return _0x258d41(_0x293cfd,_0x10b852);},'lTzDM':'bstackA11yShouldScan','nYnQZ':function(_0x33e081){return _0x33e081();},'oCJBB':function(_0x3f7ab2,_0xd21fa0){return _0x3f7ab2>_0xd21fa0;},'TnLGE':_0x4b861e(0x265),'UHhiX':function(_0x17d2bf,_0x534029){return _0x17d2bf===_0x534029;},'jCQup':'http:','VlEmC':_0x4b861e(0x20f),'MFhKK':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','BTjJI':'Automate\x20test\x20case\x20execution\x20has\x20started.','cZrzE':_0x4b861e(0x25d),'nWVVh':function(_0x43ab83,_0x19cdd3,_0x40fc65){return _0x43ab83(_0x19cdd3,_0x40fc65);},'rhjeu':'index','ofqBE':'beforeEach'};globals['setGlobal'](_0xfe6b66[_0x4b861e(0x1f5)],this[_0x4b861e(0x213)][_0x4b861e(0x264)]()[_0x4b861e(0x212)](_0xfe6b66['ghfxm'])),PerformanceTester[_0x4b861e(0x21d)](PerformanceSdkEvents[_0x4b861e(0x207)],()=>{const _0x30f544=_0x4b861e,_0x5dec7e={'MKqtJ':function(_0x386a63){const _0x3c28d4=a32_0x749d;return _0xfe6b66[_0x3c28d4(0x258)](_0x386a63);}},_0xd58061='browserstack internal helper hook';new Promise(async _0x1c05c5=>{const _0x309b93=a32_0x749d;let _0xda7101=!![];try{_0xfe6b66[_0x309b93(0x22a)](global[_0x309b93(0x218)][_0x309b93(0x256)],0x1)&&(await global[_0x309b93(0x1fc)](),global['__drivers'][_0x309b93(0x1f8)]()),_0xfe6b66[_0x309b93(0x216)](global[_0x309b93(0x218)][0x0]['quitCount_'],0x0)&&(_0xda7101=![],await global[_0x309b93(0x1fc)]());}catch(_0x6bbebc){logger[_0x309b93(0x245)](_0x309b93(0x1cf)+_0x6bbebc);}try{Array[_0x309b93(0x1f9)](global[_0x309b93(0x218)])&&global['__drivers'][0x0]&&(global[_0x309b93(0x218)][0x0]['browserstackSessionName']=this[_0x309b93(0x213)][_0x309b93(0x264)]()['join'](_0xfe6b66[_0x309b93(0x249)])),global[_0x309b93(0x202)]=this[_0x309b93(0x213)]['titlePath']()[_0x309b93(0x212)](_0xfe6b66[_0x309b93(0x249)]);}catch(_0x533aae){logger[_0x309b93(0x245)]('Failed\x20to\x20store\x20session\x20name:\x20'+_0x533aae);}this[_0x309b93(0x213)][_0x309b93(0x22b)]=_0xfe6b66[_0x309b93(0x25a)](shouldScanTestForAccessibility,this[_0x309b93(0x213)][_0x309b93(0x264)](),!![]),globals[_0x309b93(0x268)](_0xfe6b66[_0x309b93(0x1de)],this[_0x309b93(0x213)][_0x309b93(0x22b)]),this[_0x309b93(0x213)][_0x309b93(0x236)]=!![];if(_0xfe6b66[_0x309b93(0x258)](isAccessibilityAutomationSession)&&_0xda7101&&Array[_0x309b93(0x1f9)](global['__drivers'])&&_0xfe6b66[_0x309b93(0x24d)](global[_0x309b93(0x218)][_0x309b93(0x256)],0x0)&&globals[_0x309b93(0x20a)](_0xfe6b66[_0x309b93(0x253)]))try{const _0x56ef04=await global[_0x309b93(0x218)][0x0][_0x309b93(0x1d6)];if(_0x56ef04){let _0x29c5c8=!![];const _0x2bdff9=await global[_0x309b93(0x218)][0x0]['getCurrentUrl']();let _0x297e2b;try{_0x297e2b=new URL(_0x2bdff9);}catch(_0x4f7fc0){_0x29c5c8=![];}_0x29c5c8=_0xfe6b66['UHhiX'](_0x297e2b[_0x309b93(0x247)],_0xfe6b66[_0x309b93(0x228)])||_0xfe6b66[_0x309b93(0x20d)](_0x297e2b['protocol'],_0xfe6b66[_0x309b93(0x223)]),_0x29c5c8&&(this[_0x309b93(0x213)][_0x309b93(0x22b)]&&logger['info'](_0xfe6b66[_0x309b93(0x1e9)])),this[_0x309b93(0x213)]['accessibilityScanStarted']=this[_0x309b93(0x213)][_0x309b93(0x22b)],this[_0x309b93(0x213)][_0x309b93(0x22b)]&&logger[_0x309b93(0x1eb)](_0xfe6b66[_0x309b93(0x1e3)]);}}catch(_0x399ae2){logger['error'](_0x309b93(0x20c)+util[_0x309b93(0x1d1)](_0x399ae2));}_0xfe6b66[_0x309b93(0x258)](_0x1c05c5);})[_0x30f544(0x1d0)](()=>{_0x5dec7e['MKqtJ'](_0x3f5e85);});},{'platform':_0xfe6b66[_0x4b861e(0x257)](nestedKeyValue,global[_0x4b861e(0x252)],[_0xfe6b66['rhjeu']]),'hookType':_0xfe6b66[_0x4b861e(0x1e4)]})();},'afterEach'(_0x54cf69){const _0x17fc7f=a32_0x4a6239,_0xe4752f={'YynbI':_0x17fc7f(0x251),'GHSIu':function(_0x15bdb2,_0x312747){return _0x15bdb2!==_0x312747;},'bpHUS':_0x17fc7f(0x225),'BEZFn':function(_0x4a0ff0,_0x14a2e3,_0x5cee27){return _0x4a0ff0(_0x14a2e3,_0x5cee27);},'bhUzT':function(_0x27e3d4,_0x1fc0e8){return _0x27e3d4+_0x1fc0e8;},'DqCbw':'Failed:\x20','vYVKF':_0x17fc7f(0x25b),'sJhXL':_0x17fc7f(0x21b),'KAfpc':_0x17fc7f(0x1eb),'zdikv':function(_0xf13982,_0x2ecb2b){return _0xf13982>_0x2ecb2b;},'eENlP':function(_0x4626eb,_0x2a2e58){return _0x4626eb===_0x2a2e58;},'ZzWrv':_0x17fc7f(0x26f),'rebZs':_0x17fc7f(0x1d9),'sCkGF':function(_0x125d9e,_0x2a24c2,_0x1c6785,_0x5df0dd){return _0x125d9e(_0x2a24c2,_0x1c6785,_0x5df0dd);},'sVwkK':_0x17fc7f(0x265),'HPiSG':_0x17fc7f(0x26b),'GvvSS':_0x17fc7f(0x1ff),'RuDyI':_0x17fc7f(0x22d),'GTbDn':'afterTest','aHNsR':_0x17fc7f(0x23c),'oiLMZ':function(_0x402bf7){return _0x402bf7();},'vYiod':function(_0x52ebcf,_0x3f0999,_0x3da692){return _0x52ebcf(_0x3f0999,_0x3da692);},'QMvpr':function(_0x5c3ce7){return _0x5c3ce7();},'ZXyni':'debug','mtAnt':function(_0x455bd6){return _0x455bd6();},'zMUYd':function(_0x38ed5f){return _0x38ed5f();},'qreoF':function(_0x2ddfb3,_0x1bd660,_0x181eff){return _0x2ddfb3(_0x1bd660,_0x181eff);},'iaUuR':_0x17fc7f(0x20e),'MkNCj':_0x17fc7f(0x214)},_0x28370b='browserstack internal helper hook';this[_0x17fc7f(0x1f0)](0xfde8),global['sessionName']=this[_0x17fc7f(0x213)]['titlePath']()['join'](_0xe4752f[_0x17fc7f(0x269)]),PerformanceTester[_0x17fc7f(0x21d)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0xe25869=_0x17fc7f,_0x18db69={'OiptL':function(_0x17d0da){const _0x5f17b4=a32_0x749d;return _0xe4752f[_0x5f17b4(0x24b)](_0x17d0da);}},_0x51296e=async(_0x141d34,_0x3e060d)=>{const _0x479da4=a32_0x749d;await global[_0x479da4(0x218)][0x0][_0x479da4(0x1f1)](_0x479da4(0x24f)+_0x141d34+_0x479da4(0x230)+_0x3e060d+_0x479da4(0x224));};new Promise(async _0x2d268f=>{const _0x12bf10=a32_0x749d,_0x8889c8={'BsjGq':_0xe4752f[_0x12bf10(0x269)],'LoVTM':function(_0x4e4a4b,_0x297b99){const _0x5553de=_0x12bf10;return _0xe4752f[_0x5553de(0x221)](_0x4e4a4b,_0x297b99);},'Irmfv':_0xe4752f['bpHUS'],'uzIDo':function(_0x446a95,_0x2c538e,_0x245e6a){return _0xe4752f['BEZFn'](_0x446a95,_0x2c538e,_0x245e6a);},'Cqhce':function(_0x2d00da,_0x2451d6){const _0x2e66cd=_0x12bf10;return _0xe4752f[_0x2e66cd(0x20b)](_0x2d00da,_0x2451d6);},'bmcCJ':_0xe4752f['DqCbw'],'TaiZc':_0xe4752f[_0x12bf10(0x1f2)],'byhGk':_0xe4752f[_0x12bf10(0x259)],'DUFJP':_0xe4752f[_0x12bf10(0x250)]};try{_0xe4752f[_0x12bf10(0x248)](global[_0x12bf10(0x218)]['length'],0x1)&&(await global[_0x12bf10(0x1fc)](),global['__drivers']['shift'](),global['__error_messages__']=[],global['__sessionFailed']=![]);try{if(global[_0x12bf10(0x261)]&&_0xe4752f[_0x12bf10(0x23d)](global[_0x12bf10(0x201)],_0xe4752f[_0x12bf10(0x26c)])&&global['__drivers'][0x0]){const _0x1f0855=_0xe4752f[_0x12bf10(0x248)](global[_0x12bf10(0x25c)]['length'],0x0)?!!global[_0x12bf10(0x25c)][0x0][_0x12bf10(0x204)]||!!global['capabilities'][0x0][_0xe4752f['rebZs']]:![],_0x92d290={};_0x92d290[_0x12bf10(0x204)]=_0x1f0855,await _0xe4752f[_0x12bf10(0x21f)](percyAutoCapture,global[_0x12bf10(0x218)][0x0],_0xe4752f['ZzWrv'],_0x92d290);}}catch(_0x349498){logger['debug'](_0x12bf10(0x24e)+_0x349498);}!global[_0x12bf10(0x26e)]&&(await PerformanceTester[_0x12bf10(0x21d)](PerformanceAutEvents[_0x12bf10(0x22c)],async()=>{const _0x14fc5c=_0x12bf10;await global[_0x14fc5c(0x218)][0x0][_0x14fc5c(0x1f1)](_0x14fc5c(0x1dc)+JSON[_0x14fc5c(0x1d7)](this[_0x14fc5c(0x213)][_0x14fc5c(0x264)]()[_0x14fc5c(0x212)](_0x8889c8[_0x14fc5c(0x242)]))+'}}');})(),global['__drivers'][0x0][_0x12bf10(0x1e5)]=!![]),await PerformanceTester[_0x12bf10(0x21d)](PerformanceAutEvents[_0x12bf10(0x1db)],async()=>{const _0x4f6e23=_0x12bf10,_0x4e1771=_0x8889c8[_0x4f6e23(0x21a)](this[_0x4f6e23(0x213)]['state'],_0x8889c8['Irmfv']);_0x4e1771?(global[_0x4f6e23(0x233)]=!![],global[_0x4f6e23(0x24c)][_0x4f6e23(0x1e0)](this['currentTest'][_0x4f6e23(0x1df)][_0x4f6e23(0x24a)]),await _0x8889c8[_0x4f6e23(0x203)](_0x51296e,JSON[_0x4f6e23(0x1d7)](_0x8889c8['Cqhce'](_0x8889c8[_0x4f6e23(0x1f7)],this[_0x4f6e23(0x213)][_0x4f6e23(0x1df)]['message'])),_0x8889c8[_0x4f6e23(0x210)])):await _0x8889c8[_0x4f6e23(0x203)](_0x51296e,JSON['stringify'](_0x8889c8[_0x4f6e23(0x215)]),_0x8889c8[_0x4f6e23(0x243)]);})();}catch(_0x1df85f){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x1df85f);}try{if(this[_0x12bf10(0x213)][_0x12bf10(0x236)]&&globals[_0x12bf10(0x20a)](_0xe4752f[_0x12bf10(0x234)])&&globals[_0x12bf10(0x20a)](_0xe4752f[_0x12bf10(0x255)])){logger[_0x12bf10(0x1eb)](_0xe4752f[_0x12bf10(0x222)]);const _0xf2a150={};_0xf2a150[_0x12bf10(0x263)]=this[_0x12bf10(0x213)][_0x12bf10(0x1ce)],_0xf2a150['thBuildUuid']=process[_0x12bf10(0x1ea)][testHubConstants[_0x12bf10(0x1d8)][_0x12bf10(0x23b)]],_0xf2a150[_0x12bf10(0x266)]=process[_0x12bf10(0x1ea)][testHubConstants[_0x12bf10(0x1d8)]['BROWSERSTACK_TESTHUB_JWT']];const _0x287f09=_0xf2a150;logger[_0x12bf10(0x245)](_0x12bf10(0x209)+JSON[_0x12bf10(0x1d7)](_0x287f09)),logger['debug'](_0xe4752f[_0x12bf10(0x26a)]);const _0x4162db={};_0x4162db[_0x12bf10(0x206)]=_0xe4752f['GTbDn'],await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x12bf10(0x226)],async()=>{const _0x668a0e=_0x12bf10;logger['debug'](util[_0x668a0e(0x1d1)](await global['__drivers'][0x0][_0x668a0e(0x227)](scripts['performScan'],{'method':global['browserstackSessionName']})));},_0x4162db)(),await PerformanceTester[_0x12bf10(0x21d)](PerformanceA11yEvents[_0x12bf10(0x208)],async()=>{const _0x15c631=_0x12bf10;await global[_0x15c631(0x218)][0x0][_0x15c631(0x227)](scripts['saveTestResults'],_0x287f09);})(),logger[_0x12bf10(0x1eb)](_0xe4752f['aHNsR']);}}catch(_0x38ad6e){logger[_0x12bf10(0x25b)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x12bf10(0x213)][_0x12bf10(0x264)]()+_0x12bf10(0x25f),_0x38ad6e);}try{try{if(_0xe4752f[_0x12bf10(0x1e1)](shouldProcessEventForTesthub)){global[_0x12bf10(0x218)][0x0]&&await _0xe4752f[_0x12bf10(0x1ee)](sendPlatformDetails,global[_0x12bf10(0x218)][0x0],this[_0x12bf10(0x213)]?this[_0x12bf10(0x213)][_0x12bf10(0x1ce)]:null);if(_0xe4752f[_0x12bf10(0x238)](isBrowserstackInfra)){PerformanceTester[_0x12bf10(0x1fb)](PerformanceO11yEvents['SYNC']);const _0x2d5e17=_0x12bf10(0x270)+Date[_0x12bf10(0x1d5)]();await _0xe4752f[_0x12bf10(0x1ed)](_0x51296e,JSON[_0x12bf10(0x1d7)](_0x2d5e17),_0xe4752f[_0x12bf10(0x1e7)]),PerformanceTester[_0x12bf10(0x267)](PerformanceO11yEvents[_0x12bf10(0x26d)]);}}}catch(_0x4e4657){logger[_0x12bf10(0x245)](_0x12bf10(0x1f6)+_0x4e4657),PerformanceTester[_0x12bf10(0x267)](PerformanceO11yEvents[_0x12bf10(0x26d)],![],_0x4e4657);}_0xe4752f['zdikv'](global[_0x12bf10(0x218)][0x0][_0x12bf10(0x231)],0x0)&&await global[_0x12bf10(0x1fc)]();}catch(_0xae4e5e){logger[_0x12bf10(0x245)](_0x12bf10(0x1cf)+_0xae4e5e);}_0xe4752f[_0x12bf10(0x23f)](_0x2d268f);})[_0xe25869(0x1d0)](()=>{const _0x681214=_0xe25869;_0x18db69[_0x681214(0x1dd)](_0x54cf69);});},{'platform':_0xe4752f[_0x17fc7f(0x1fd)](nestedKeyValue,global[_0x17fc7f(0x252)],[_0xe4752f[_0x17fc7f(0x239)]]),'hookType':_0xe4752f[_0x17fc7f(0x205)]})();},'afterAll'(_0x199318){const _0x216064=a32_0x4a6239,_0x30dcba={'Jvijc':function(_0x1ec368){return _0x1ec368();},'LuEwK':function(_0x3a7607,_0x21215b,_0x4f1c27){return _0x3a7607(_0x21215b,_0x4f1c27);},'SnlkL':_0x216064(0x20e),'MGxER':_0x216064(0x1f3)},_0xefe6fe='browserstack internal helper hook';this[_0x216064(0x1f0)](0xfde8),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x216064(0x207)],()=>{const _0x376ae4=_0x216064,_0x171b61={'msYmL':function(_0x2992a5){return _0x30dcba['Jvijc'](_0x2992a5);}};new Promise(async _0x44309a=>{const _0x27e2e5=a32_0x749d;await global['driverCleanup'](),_0x171b61[_0x27e2e5(0x1f4)](_0x44309a);})['then']()[_0x376ae4(0x1e2)](()=>{const _0x1448c8=_0x376ae4;_0x30dcba[_0x1448c8(0x200)](_0x199318);});},{'platform':_0x30dcba['LuEwK'](nestedKeyValue,global[_0x216064(0x252)],[_0x30dcba[_0x216064(0x1fa)]]),'hookType':_0x30dcba[_0x216064(0x1e8)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a33_0x4bd795=a33_0x16a8;(function(_0x17a03b,_0x118e74){const _0x51e682=a33_0x16a8,_0x3f5ba6=_0x17a03b();while(!![]){try{const _0x1e49d4=-parseInt(_0x51e682(0xe7))/0x1+parseInt(_0x51e682(0xe8))/0x2+-parseInt(_0x51e682(0x10e))/0x3+-parseInt(_0x51e682(0xe4))/0x4+-parseInt(_0x51e682(0xfa))/0x5+parseInt(_0x51e682(0xe3))/0x6+parseInt(_0x51e682(0x11e))/0x7*(parseInt(_0x51e682(0xe1))/0x8);if(_0x1e49d4===_0x118e74)break;else _0x3f5ba6['push'](_0x3f5ba6['shift']());}catch(_0xf464d0){_0x3f5ba6['push'](_0x3f5ba6['shift']());}}}(a33_0x192d,0x7e910));const fs=require('fs'),path=require(a33_0x4bd795(0xf1)),{spawn}=require('child_process'),logger=require(a33_0x4bd795(0xec))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a33_0x4bd795(0x116)),constants=require(a33_0x4bd795(0xf9)),getUserNightwatchConfigs=(_0x15b9c6,_0x57d54c)=>{const _0x46b57c=a33_0x4bd795,_0x35099c={'RMVmR':'nightwatch.conf.js','kUGGS':'nightwatch.json','WUPLg':function(_0x486c9c,_0x5916cb){return _0x486c9c(_0x5916cb);},'bnIjh':_0x46b57c(0x124)};let _0x2d10c8=null,_0x5630d9={};const _0x5ae6e1=_0x57d54c[_0x46b57c(0x10b)](_0x4bf349=>_0x4bf349===_0x46b57c(0xfb));if(!helper['isUndefined'](_0x15b9c6['config'])&&fs['existsSync'](path[_0x46b57c(0xf0)](process[_0x46b57c(0xea)](),_0x15b9c6[_0x46b57c(0x104)])))_0x2d10c8=path['join'](process[_0x46b57c(0xea)](),_0x15b9c6['config']),_0x57d54c[_0x46b57c(0x107)](_0x5ae6e1,0x2);else{if(fs[_0x46b57c(0x118)](path[_0x46b57c(0xf0)](process[_0x46b57c(0xea)](),_0x35099c[_0x46b57c(0xf2)])))_0x2d10c8=path[_0x46b57c(0xf0)](process[_0x46b57c(0xea)](),_0x35099c['RMVmR']);else fs[_0x46b57c(0x118)](path[_0x46b57c(0xf0)](process[_0x46b57c(0xea)](),_0x35099c[_0x46b57c(0x109)]))&&(_0x2d10c8=path[_0x46b57c(0xf0)](process[_0x46b57c(0xea)](),_0x35099c['kUGGS']));}return _0x2d10c8?(logger[_0x46b57c(0xfd)]('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x2d10c8),_0x5630d9=_0x35099c[_0x46b57c(0xe5)](require,_0x2d10c8)):logger[_0x46b57c(0xfd)](_0x35099c[_0x46b57c(0x106)]),_0x5630d9;},removeExistingEnvs=_0x2b106b=>{const _0x45a26b=a33_0x4bd795,_0x5c1562={};_0x5c1562['ydlIl']=function(_0x227a42,_0x309f94){return _0x227a42>_0x309f94;},_0x5c1562['bxuTV']=function(_0x20cfc3,_0x3f1354){return _0x20cfc3>_0x3f1354;};const _0x2157df=_0x5c1562;let _0x2b1491=_0x2b106b['findIndex'](_0x149361=>_0x149361===_0x45a26b(0xeb));_0x2157df['ydlIl'](_0x2b1491,-0x1)&&_0x2b106b[_0x45a26b(0x107)](_0x2b1491,0x2),_0x2b1491=_0x2b106b[_0x45a26b(0x10b)](_0xd03a45=>_0xd03a45==='-e'),_0x2157df[_0x45a26b(0x127)](_0x2b1491,-0x1)&&_0x2b106b[_0x45a26b(0x107)](_0x2b1491,0x2);};function run(_0x4758f4,_0x4449e5){const _0x3e4a8f=a33_0x4bd795,_0x35545f={'GDAZi':_0x3e4a8f(0x11c),'KhtLx':function(_0x5110f3,_0xef7e1e){return _0x5110f3+_0xef7e1e;},'VLave':'test_settings','TEsbl':function(_0x504827,_0x215a9a,_0x3ccc3a){return _0x504827(_0x215a9a,_0x3ccc3a);},'rqPEI':'hub.browserstack.com','SEKjy':_0x3e4a8f(0x11d),'bIBsy':function(_0x23ef6a,_0x476a7e){return _0x23ef6a===_0x476a7e;},'ICyKg':'nightwatch-browserstack.json','aKmor':function(_0x520410,_0x1a84c8){return _0x520410(_0x1a84c8);},'yyCXA':function(_0x3d4eb9,_0x3ff41f,_0x6f28ea,_0x416377){return _0x3d4eb9(_0x3ff41f,_0x6f28ea,_0x416377);},'dSKfc':_0x3e4a8f(0xed),'AGPND':_0x3e4a8f(0xfb),'bDBZw':_0x3e4a8f(0xeb),'czLLN':_0x3e4a8f(0xef),'cwnzg':_0x3e4a8f(0x11b)},_0x241e3c=new BrowserStackSetup(_0x4758f4);if(!_0x241e3c[_0x3e4a8f(0x104)])return;const _0x116d13=_0x35545f[_0x3e4a8f(0x122)](getUserNightwatchConfigs,_0x4758f4,_0x4449e5),_0x4c0b3c={};_0x4c0b3c[_0x3e4a8f(0xf7)]=![];const _0x26079b={};_0x26079b[_0x3e4a8f(0x120)]=_0x35545f[_0x3e4a8f(0x11f)],_0x26079b['port']=0x1bb;const _0x2cca75={};_0x2cca75['webdriver']=_0x4c0b3c,_0x2cca75['selenium']=_0x26079b;const _0x329880=_0x2cca75;logger['info'](_0x35545f['SEKjy']);const _0x4cdd79={..._0x116d13},_0x1f2ee3=_0x4cdd79,_0x4bc7c4=helper['useW3C'](_0x241e3c[_0x3e4a8f(0x104)]),_0x315cb3=[];_0x241e3c[_0x3e4a8f(0x104)][_0x3e4a8f(0xe9)][_0x3e4a8f(0xe6)]((_0x304e1d,_0x170ce1)=>{const _0x4d31ba=_0x3e4a8f;_0x4bc7c4?_0x315cb3[_0x4d31ba(0x110)](helper['modifyBrowserStackW3CCaps'](_0x241e3c['config'],_0x35545f[_0x4d31ba(0x114)],_0x170ce1)):_0x315cb3[_0x4d31ba(0x110)](helper[_0x4d31ba(0x11a)](_0x241e3c[_0x4d31ba(0x104)],_0x35545f['GDAZi'],_0x170ce1));});const _0x491b99={},_0x23479b=[];_0x4758f4[_0x3e4a8f(0xe2)]=_0x4758f4['env']||_0x4758f4['e'];const _0x407f74=_0x4758f4[_0x3e4a8f(0xe2)]?_0x4758f4['env']['trim']()[_0x3e4a8f(0x10c)](',')[_0x3e4a8f(0x102)](_0xa14666=>_0xa14666[_0x3e4a8f(0x10a)]())[_0x3e4a8f(0x125)](_0x18429a=>_0x18429a!==''):[''];_0x35545f['bIBsy'](_0x407f74[_0x3e4a8f(0x10d)],0x0)&&_0x407f74[_0x3e4a8f(0x110)]('');_0x407f74[_0x3e4a8f(0xe6)](_0x5696ea=>{const _0x58869b=_0x3e4a8f,_0x3f5166={'nCmUn':function(_0x8ee149,_0xfb14b){const _0x49059f=a33_0x16a8;return _0x35545f[_0x49059f(0xfc)](_0x8ee149,_0xfb14b);},'jARfG':_0x35545f[_0x58869b(0xe0)]};_0x315cb3['forEach'](_0x1136f5=>{const _0x464b46=_0x58869b;let _0x2f1163=_0x3f5166[_0x464b46(0xf3)](helper[_0x464b46(0x105)](_0x1136f5,'_'),'_'+Date['now']());_0x5696ea&&(_0x2f1163+='_'+_0x5696ea);if(_0x5696ea&&(!_0x116d13[_0x3f5166[_0x464b46(0xf8)]]||!_0x116d13[_0x3f5166[_0x464b46(0xf8)]][_0x5696ea]))return;const _0x371e43={..._0x329880};_0x371e43[_0x464b46(0xff)]=_0x1136f5;const _0x174f5a=_0x371e43;_0x491b99[_0x2f1163]=_0x5696ea?helper[_0x464b46(0xf4)](_0x116d13[_0x3f5166[_0x464b46(0xf8)]][_0x5696ea],_0x174f5a):_0x174f5a,_0x23479b[_0x464b46(0x110)](_0x2f1163);});});!_0x1f2ee3[_0x3e4a8f(0xf5)]&&(_0x1f2ee3[_0x3e4a8f(0xf5)]={});_0x1f2ee3['test_settings']={..._0x1f2ee3[_0x3e4a8f(0xf5)],..._0x491b99};const _0x38638d=path[_0x3e4a8f(0xf0)](__dirname,_0x35545f[_0x3e4a8f(0x121)]);fs[_0x3e4a8f(0x111)](_0x38638d,JSON[_0x3e4a8f(0x115)](_0x1f2ee3)),_0x35545f[_0x3e4a8f(0xee)](removeExistingEnvs,_0x4449e5);const _0x54e922=_0x35545f[_0x3e4a8f(0x100)](spawn,/^win/[_0x3e4a8f(0x126)](process[_0x3e4a8f(0x128)])?_0x35545f[_0x3e4a8f(0x119)]:_0x35545f[_0x3e4a8f(0x114)],[_0x35545f[_0x3e4a8f(0x117)],_0x38638d,..._0x4449e5[_0x3e4a8f(0x101)](0x1),_0x35545f[_0x3e4a8f(0x113)],_0x23479b['join'](',')],{'stdio':_0x35545f[_0x3e4a8f(0x10f)]});_0x54e922['on'](_0x35545f[_0x3e4a8f(0x103)],async _0x5789b1=>{const _0x303a84=_0x3e4a8f;logger[_0x303a84(0x112)](_0x303a84(0x108)+_0x5789b1),logger[_0x303a84(0xfd)](_0x303a84(0xf6)+_0x38638d),fs[_0x303a84(0x123)](_0x38638d);});}function a33_0x192d(){const _0x1d9be4=['TEsbl','unlinkSync','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','filter','test','bxuTV','platform','VLave','48eWAnFN','env','2320860ZjDxNM','1157840kQJjQR','WUPLg','forEach','988372qrUsIQ','1159144ZLiYPn','platforms','cwd','--env','../../helpers/logger','nightwatch.cmd','aKmor','inherit','join','path','RMVmR','nCmUn','mergeDeep','test_settings','Deleting\x20','start_process','jARfG','../utils/constants','1379200IjTMwS','--config','KhtLx','info','exports','desiredCapabilities','yyCXA','slice','map','cwnzg','config','getPlatformName','bnIjh','splice','child\x20process\x20exited\x20with\x20code\x20','kUGGS','trim','findIndex','split','length','1228278BodqgL','czLLN','push','writeFileSync','debug','bDBZw','GDAZi','stringify','../../helpers/helper','AGPND','existsSync','dSKfc','modifyBrowserStackCaps','close','nightwatch','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','1767654bxbBlC','rqPEI','host','ICyKg'];a33_0x192d=function(){return _0x1d9be4;};return a33_0x192d();}function a33_0x16a8(_0x42ddb8,_0x1fa85b){const _0x192d24=a33_0x192d();return a33_0x16a8=function(_0x16a8d6,_0x4b3cd7){_0x16a8d6=_0x16a8d6-0xe0;let _0x2fbb12=_0x192d24[_0x16a8d6];return _0x2fbb12;},a33_0x16a8(_0x42ddb8,_0x1fa85b);}module[a33_0x4bd795(0xfe)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x22e85a=a34_0x142b;function a34_0x142b(_0x5f2957,_0x4fa2df){const _0xfa5e68=a34_0xfa5e();return a34_0x142b=function(_0x142be0,_0x5e3adb){_0x142be0=_0x142be0-0x15b;let _0x9f7888=_0xfa5e68[_0x142be0];return _0x9f7888;},a34_0x142b(_0x5f2957,_0x4fa2df);}(function(_0x2e7ee9,_0x58f511){const _0x4f1bdd=a34_0x142b,_0x2abb80=_0x2e7ee9();while(!![]){try{const _0x541035=parseInt(_0x4f1bdd(0x1a4))/0x1+-parseInt(_0x4f1bdd(0x1a9))/0x2*(parseInt(_0x4f1bdd(0x1be))/0x3)+parseInt(_0x4f1bdd(0x16e))/0x4+parseInt(_0x4f1bdd(0x174))/0x5*(parseInt(_0x4f1bdd(0x185))/0x6)+-parseInt(_0x4f1bdd(0x160))/0x7+-parseInt(_0x4f1bdd(0x1b6))/0x8+-parseInt(_0x4f1bdd(0x19f))/0x9;if(_0x541035===_0x58f511)break;else _0x2abb80['push'](_0x2abb80['shift']());}catch(_0x237a45){_0x2abb80['push'](_0x2abb80['shift']());}}}(a34_0xfa5e,0x4c7ee));const util=require(a34_0x22e85a(0x1ab)),logger=require(a34_0x22e85a(0x195))['winstonLogger'],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined}=require(a34_0x22e85a(0x16d)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a34_0x22e85a(0x1b9)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x22e85a(0x17c));exports[a34_0x22e85a(0x180)]=async(_0xf4cacc,_0x35120a,_0xf6e43b={})=>{const _0x4800d1=a34_0x22e85a,_0x4fd7a6={};_0x4fd7a6[_0x4800d1(0x1a1)]=_0x4800d1(0x1bd);const _0x56904b=_0x4fd7a6;return await _0xf4cacc[_0x4800d1(0x18c)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x35120a[_0x4800d1(0x16b)](/arguments/g,_0x56904b[_0x4800d1(0x1a1)])+_0x4800d1(0x1b1)+JSON['stringify'](_0xf6e43b)+')');},exports[a34_0x22e85a(0x1ba)]=async(_0x4bc631,_0x281239,_0x1c470b={})=>{const _0x4c98b8=a34_0x22e85a,_0x3a1aae={};_0x3a1aae['byRDB']=function(_0x51f5c0,_0x42f61c){return _0x51f5c0===_0x42f61c;},_0x3a1aae[_0x4c98b8(0x18b)]=_0x4c98b8(0x181),_0x3a1aae['QrSuW']=function(_0x3cb674,_0x4a2600){return _0x3cb674===_0x4a2600;},_0x3a1aae[_0x4c98b8(0x15b)]='Playwright',_0x3a1aae[_0x4c98b8(0x17f)]=_0x4c98b8(0x1bd);const _0x448d7a=_0x3a1aae;if(_0x448d7a['byRDB'](_0x4bc631[_0x4c98b8(0x188)][_0x4c98b8(0x189)],_0x448d7a[_0x4c98b8(0x18b)]))return await _0x4bc631[_0x4c98b8(0x1ac)](_0x281239,_0x1c470b);else{if(_0x448d7a['QrSuW'](_0x4bc631[_0x4c98b8(0x188)]['name'],_0x448d7a['pRDPK']))return await _0x4bc631[_0x4c98b8(0x17a)](_0x4c98b8(0x190)+_0x281239['replace'](/arguments/g,_0x448d7a['HNueX'])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x4c98b8(0x176)](_0x1c470b)+')');}},exports[a34_0x22e85a(0x17d)]=async _0x1f77c5=>{const _0x5ce075=a34_0x22e85a,_0x257d68={};_0x257d68[_0x5ce075(0x16c)]='accessibilityOptions.wcagVersion',_0x257d68[_0x5ce075(0x1ae)]=_0x5ce075(0x161),_0x257d68[_0x5ce075(0x168)]=_0x5ce075(0x16f),_0x257d68[_0x5ce075(0x192)]=_0x5ce075(0x1a8),_0x257d68['jTlam']=_0x5ce075(0x199),_0x257d68['jGOwr']=_0x5ce075(0x1b5);const _0x49a627=_0x257d68;_0x1f77c5[_0x5ce075(0x184)]&&(_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x1b0)]&&(_0x1f77c5[_0x49a627['ryppG']]=_0x1f77c5[_0x5ce075(0x184)]['wcagVersion']),_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x169)]&&(_0x1f77c5[_0x49a627[_0x5ce075(0x1ae)]]=_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x169)]),_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x194)]&&(_0x1f77c5[_0x49a627[_0x5ce075(0x168)]]=_0x1f77c5[_0x5ce075(0x184)][_0x5ce075(0x194)][_0x5ce075(0x15e)],_0x1f77c5[_0x49a627[_0x5ce075(0x192)]]=_0x1f77c5['accessibilityOptions']['includeIssueType'][_0x5ce075(0x171)]));const _0x26714e=JSON[_0x5ce075(0x182)](process['env'][_0x5ce075(0x1aa)])[_0x5ce075(0x170)];_0x1f77c5[_0x49a627[_0x5ce075(0x167)]]=process['env'][_0x5ce075(0x183)],_0x1f77c5[_0x49a627[_0x5ce075(0x1b2)]]=_0x26714e,delete _0x1f77c5[_0x5ce075(0x184)];},exports[a34_0x22e85a(0x17e)]=async _0x4ea432=>{const _0x1ab23f=a34_0x22e85a,_0x504c99={};_0x504c99[_0x1ab23f(0x18d)]=_0x1ab23f(0x187),_0x504c99[_0x1ab23f(0x191)]=_0x1ab23f(0x1af);const _0x2939b4=_0x504c99;if(global[_0x1ab23f(0x1a0)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x4ea432,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4ea432,scripts.getResults);})();return res;}catch{return logger[_0x1ab23f(0x175)](_0x2939b4[_0x1ab23f(0x18d)]),[];}else return logger[_0x1ab23f(0x18e)](_0x2939b4[_0x1ab23f(0x191)]),[];},exports[a34_0x22e85a(0x1a2)]=async(_0x2af247,_0x2cfbef='')=>{const _0x4de533=a34_0x22e85a;if(global[_0x4de533(0x1a0)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x4de533(0x179)],async()=>{const _0x444a45=_0x4de533,_0x186725={};_0x186725['command']=_0x2cfbef,await exports['browserStackEvaluate'](_0x2af247,scripts[_0x444a45(0x1a2)],_0x186725);},{'command':_0x2cfbef})();},exports[a34_0x22e85a(0x1a3)]=async _0x20f5e5=>{const _0x2a7f11=a34_0x22e85a,_0x14378a={};_0x14378a[_0x2a7f11(0x1b3)]=_0x2a7f11(0x1bc),_0x14378a[_0x2a7f11(0x1bf)]=_0x2a7f11(0x193);const _0xa396c4=_0x14378a;if(global['accessibilityPlatform'])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x20f5e5,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x20f5e5,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0xa396c4[_0x2a7f11(0x1b3)]),{};}else return logger[_0x2a7f11(0x18e)](_0xa396c4[_0x2a7f11(0x1bf)]),{};},exports['platformValidation']=async _0x119b66=>{const _0xf23599=a34_0x22e85a,_0x526714={'lESdY':function(_0x378e48,_0x1dc863){return _0x378e48!==_0x1dc863;},'PsNuW':_0xf23599(0x16a),'tJMzC':function(_0x20d2f4,_0x5c6a6a){return _0x20d2f4===_0x5c6a6a;},'ZwfXD':_0xf23599(0x17b),'kmEeY':function(_0x165a8b,_0x4b5522){return _0x165a8b===_0x4b5522;},'RGZiz':_0xf23599(0x18f),'bnKap':_0xf23599(0x1c1),'caMlf':function(_0x20c691,_0x2f1705){return _0x20c691(_0x2f1705);},'uqSee':function(_0x4b2735,_0x59d942){return _0x4b2735===_0x59d942;},'XxlLx':_0xf23599(0x15f),'QoGzd':function(_0x5caeff,_0x1e8663){return _0x5caeff>_0x1e8663;},'mKXwx':_0xf23599(0x15d)};try{if(!_0x526714[_0xf23599(0x178)](_0x119b66['deviceName'],''))return logger[_0xf23599(0x18e)](_0x526714['PsNuW']),![];const _0x4ae1bb=_0x119b66[_0xf23599(0x173)];if(!(_0x526714[_0xf23599(0x15c)](_0x4ae1bb,_0x526714[_0xf23599(0x162)])||_0x526714[_0xf23599(0x1a5)](_0x4ae1bb,_0x526714['RGZiz'])))return logger[_0xf23599(0x18e)](_0x526714[_0xf23599(0x196)]),![];const _0x188fc9=_0x526714['caMlf'](parseInt,_0x119b66[_0xf23599(0x1a7)]);if(!(_0x526714[_0xf23599(0x1ad)](_0x188fc9,_0x526714['XxlLx'])||_0x526714['QoGzd'](_0x188fc9,0x5e)))return logger['warn'](_0x526714['mKXwx']),![];}catch(_0x13684f){logger['debug'](_0xf23599(0x19a)+util[_0xf23599(0x19b)](_0x13684f));}return!![];},exports[a34_0x22e85a(0x172)]=(_0x3c634e,_0x45a343,_0x5dd28e)=>{const _0x4824c6=a34_0x22e85a,_0x5d7af9={'WQLIC':function(_0x4af29e){return _0x4af29e();},'LyFLw':_0x4824c6(0x186),'RteZQ':function(_0x39cf97,_0x41b200){return _0x39cf97===_0x41b200;},'HNTcM':_0x4824c6(0x17b),'hFwFq':function(_0x2b46a6,_0x1f3f76){return _0x2b46a6===_0x1f3f76;},'dYLUH':_0x4824c6(0x18f),'Lrhoe':_0x4824c6(0x1c1),'MXvfc':'latest','csKmd':function(_0x128ddb,_0x3d6f03){return _0x128ddb>_0x3d6f03;},'YvnhO':_0x4824c6(0x15d),'ZMfIB':function(_0x38e30c,_0x5c3dbc){return _0x38e30c(_0x5c3dbc);},'wlPDO':_0x4824c6(0x16a),'SOrQs':function(_0x87e4d7,_0x2e863a){return _0x87e4d7+_0x2e863a;},'FPULQ':function(_0x53e5c0,_0x1465d1){return _0x53e5c0(_0x1465d1);}};try{if(_0x5d7af9[_0x4824c6(0x18a)](isAccessibilityAutomationSession)){global[_0x4824c6(0x1a0)]=!![];!_0x3c634e[_0x5d7af9['LyFLw']]&&(global[_0x4824c6(0x1a0)]=![]);!(_0x5d7af9[_0x4824c6(0x1b8)](_0x3c634e['browserName'],_0x5d7af9[_0x4824c6(0x198)])||_0x5d7af9[_0x4824c6(0x1c0)](_0x3c634e[_0x4824c6(0x164)],_0x5d7af9['dYLUH']))&&(logger[_0x4824c6(0x18e)](_0x5d7af9[_0x4824c6(0x19e)]),global[_0x4824c6(0x1a0)]=![]);!(_0x5d7af9['hFwFq'](_0x3c634e[_0x4824c6(0x1a7)],_0x5d7af9['MXvfc'])||_0x5d7af9[_0x4824c6(0x1b7)](_0x3c634e[_0x4824c6(0x1a7)],0x5e))&&(logger[_0x4824c6(0x18e)](_0x5d7af9[_0x4824c6(0x1bb)]),global[_0x4824c6(0x1a0)]=![]);!_0x5d7af9[_0x4824c6(0x19c)](isUndefined,_0x3c634e['deviceName'])&&(logger[_0x4824c6(0x18e)](_0x5d7af9['wlPDO']),global['accessibilityPlatform']=![]);if(!global[_0x4824c6(0x1a0)]){_0x3c634e[_0x5d7af9['LyFLw']]=![];const _0x1b9e24=_0x5d7af9['SOrQs'](_0x45a343,_0x5d7af9[_0x4824c6(0x163)](encodeURIComponent,JSON['stringify'](_0x3c634e)));_0x5dd28e&&(_0x5dd28e[_0x4824c6(0x1b4)][_0x4824c6(0x19d)][_0x4824c6(0x1a6)]['use'][_0x4824c6(0x166)][_0x4824c6(0x165)]=_0x1b9e24,_0x5dd28e['workerInfo'][_0x4824c6(0x1a6)][_0x4824c6(0x177)][_0x4824c6(0x166)][_0x4824c6(0x165)]=_0x1b9e24);}}}catch(_0x3e2b51){logger['debug'](_0x4824c6(0x197)+util['format'](_0x3e2b51));}};function a34_0xfa5e(){const _0x1d18fb=['WebDriver','parse','BS_A11Y_JWT','accessibilityOptions','1083306isNCPW','browserstack.accessibility','No\x20accessibility\x20results\x20were\x20found.','constructor','name','WQLIC','omZgj','evaluate','yVfJW','warn','playwright-chromium','(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20','twyQk','YfjOG','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','includeIssueType','../../helpers/logger','bnKap','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','HNTcM','accessibilityOptions.authToken','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','format','ZMfIB','testInfo','Lrhoe','2472669MZGleF','accessibilityPlatform','WzFAZ','performScan','getAccessibilityResultsSummary','182323Tclrbz','kmEeY','project','browser_version','accessibilityOptions.includeIssueType.needsReview','6ySsfMQ','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','util','executeAsyncScript','uqSee','rAjBT','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','wcagVersion','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','jGOwr','PeBxQ','currentTest','accessibilityOptions.scannerVersion','2587880LaEeZZ','csKmd','RteZQ','../../helpers/performance/performance-tester','browserStackExecuteDriver','YvnhO','No\x20summaryResults\x20found.','bstackSdkArgs','298719GGhogb','VDHSZ','hFwFq','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','pRDPK','tJMzC','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','bestPractice','latest','140938oaAXEs','accessibilityOptions.scannerProcessingTimeout','ZwfXD','FPULQ','browserName','wsEndpoint','connectOptions','jTlam','cXrGE','scannerProcessingTimeout','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','replace','ryppG','../../helpers/helper','2025716KsZDnd','accessibilityOptions.includeIssueType.bestPractice','scannerVersion','needsReview','processAccessibilityCaps','browser','15QdvVjC','error','stringify','use','lESdY','PERFORM_SCAN','executeScript','chrome','../../helpers/performance/constants','setAccessibilityCapabilities','getAccessibilityResults','HNueX','browserStackEvaluate'];a34_0xfa5e=function(){return _0x1d18fb;};return a34_0xfa5e();}
|
|
1
|
+
const a34_0x344355=a34_0x56d0;function a34_0x56d0(_0x4e9710,_0x31e7ce){const _0x16ea76=a34_0x16ea();return a34_0x56d0=function(_0x56d0ca,_0x2e70d3){_0x56d0ca=_0x56d0ca-0xd5;let _0x23c9e2=_0x16ea76[_0x56d0ca];return _0x23c9e2;},a34_0x56d0(_0x4e9710,_0x31e7ce);}(function(_0x194588,_0x57725b){const _0x4133bc=a34_0x56d0,_0x3f5dfe=_0x194588();while(!![]){try{const _0x2b2a2e=parseInt(_0x4133bc(0xde))/0x1*(parseInt(_0x4133bc(0xfd))/0x2)+parseInt(_0x4133bc(0xf8))/0x3+-parseInt(_0x4133bc(0xe8))/0x4*(parseInt(_0x4133bc(0x126))/0x5)+parseInt(_0x4133bc(0xfe))/0x6*(parseInt(_0x4133bc(0x110))/0x7)+-parseInt(_0x4133bc(0xf6))/0x8*(-parseInt(_0x4133bc(0x11c))/0x9)+parseInt(_0x4133bc(0x128))/0xa+-parseInt(_0x4133bc(0x123))/0xb*(parseInt(_0x4133bc(0x104))/0xc);if(_0x2b2a2e===_0x57725b)break;else _0x3f5dfe['push'](_0x3f5dfe['shift']());}catch(_0x28fb89){_0x3f5dfe['push'](_0x3f5dfe['shift']());}}}(a34_0x16ea,0xcdfc5));const util=require(a34_0x344355(0x129)),logger=require(a34_0x344355(0xdd))[a34_0x344355(0xda)],{isAccessibilityAutomationSession}=require(a34_0x344355(0x12e)),{isUndefined}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a34_0x344355(0x113)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a34_0x344355(0xfa));exports[a34_0x344355(0x10c)]=async(_0x4bd562,_0x1298ac,_0x2c76c2={})=>{const _0xa3d63b=a34_0x344355,_0x4e9ab9={};_0x4e9ab9[_0xa3d63b(0x132)]='bstackSdkArgs';const _0x161fc7=_0x4e9ab9;return await _0x4bd562[_0xa3d63b(0xdf)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20'+_0x1298ac[_0xa3d63b(0x133)](/arguments/g,_0x161fc7['PoyIF'])+_0xa3d63b(0x115)+JSON[_0xa3d63b(0x112)](_0x2c76c2)+')');},exports['browserStackExecuteDriver']=async(_0x3e4edf,_0x21c552,_0x35ff4d={})=>{const _0x53591e=a34_0x344355,_0x190c71={};_0x190c71[_0x53591e(0xd9)]=function(_0x429af5,_0x4f0f10){return _0x429af5===_0x4f0f10;},_0x190c71[_0x53591e(0xd7)]='WebDriver',_0x190c71[_0x53591e(0xe2)]=function(_0x2fc13d,_0x2211d4){return _0x2fc13d===_0x2211d4;},_0x190c71[_0x53591e(0x13b)]=_0x53591e(0xd5),_0x190c71[_0x53591e(0x141)]=_0x53591e(0x11d);const _0x10272c=_0x190c71;if(_0x10272c['iqoVJ'](_0x3e4edf[_0x53591e(0x11b)][_0x53591e(0xea)],_0x10272c[_0x53591e(0xd7)]))return await _0x3e4edf[_0x53591e(0x117)](_0x21c552,_0x35ff4d);else{if(_0x10272c[_0x53591e(0xe2)](_0x3e4edf[_0x53591e(0x11b)][_0x53591e(0xea)],_0x10272c[_0x53591e(0x13b)]))return await _0x3e4edf[_0x53591e(0x12b)]('(function\x20(...bstackSdkArgs)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20new\x20Promise((resolve,\x20reject)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20bstackSdkArgs.push(resolve);\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x21c552[_0x53591e(0x133)](/arguments/g,_0x10272c[_0x53591e(0x141)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x53591e(0x112)](_0x35ff4d)+')');}},exports[a34_0x344355(0x13c)]=async _0x2b7458=>{const _0x4fe659=a34_0x344355,_0x1e9fff={};_0x1e9fff[_0x4fe659(0xd8)]='accessibilityOptions.wcagVersion',_0x1e9fff[_0x4fe659(0x108)]='accessibilityOptions.scannerProcessingTimeout',_0x1e9fff[_0x4fe659(0xe6)]=_0x4fe659(0x12f),_0x1e9fff[_0x4fe659(0x127)]=_0x4fe659(0x11f),_0x1e9fff[_0x4fe659(0x138)]=_0x4fe659(0x105),_0x1e9fff['iegEM']=_0x4fe659(0xec);const _0x5d30b9=_0x1e9fff;_0x2b7458[_0x4fe659(0x10b)]&&(_0x2b7458[_0x4fe659(0x10b)][_0x4fe659(0xf2)]&&(_0x2b7458[_0x5d30b9[_0x4fe659(0xd8)]]=_0x2b7458[_0x4fe659(0x10b)]['wcagVersion']),_0x2b7458[_0x4fe659(0x10b)][_0x4fe659(0x106)]&&(_0x2b7458[_0x5d30b9[_0x4fe659(0x108)]]=_0x2b7458[_0x4fe659(0x10b)]['scannerProcessingTimeout']),_0x2b7458[_0x4fe659(0x10b)]['includeIssueType']&&(_0x2b7458[_0x5d30b9[_0x4fe659(0xe6)]]=_0x2b7458['accessibilityOptions'][_0x4fe659(0xed)][_0x4fe659(0x13d)],_0x2b7458[_0x5d30b9[_0x4fe659(0x127)]]=_0x2b7458[_0x4fe659(0x10b)][_0x4fe659(0xed)]['needsReview']));const _0x1c6245=JSON['parse'](process[_0x4fe659(0x100)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML'])[_0x4fe659(0x131)];_0x2b7458[_0x5d30b9[_0x4fe659(0x138)]]=process[_0x4fe659(0x100)][_0x4fe659(0x137)],_0x2b7458[_0x5d30b9[_0x4fe659(0x124)]]=_0x1c6245,delete _0x2b7458[_0x4fe659(0x10b)];},exports[a34_0x344355(0xfb)]=async _0x588ba0=>{const _0x50788a=a34_0x344355,_0x53602e={};_0x53602e[_0x50788a(0x134)]=_0x50788a(0x10a),_0x53602e['LDapA']=_0x50788a(0x107);const _0x248e8b=_0x53602e;if(global[_0x50788a(0x101)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x588ba0,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x588ba0,scripts.getResults);})();return res;}catch{return logger[_0x50788a(0xe4)](_0x248e8b[_0x50788a(0x134)]),[];}else return logger['warn'](_0x248e8b[_0x50788a(0x13f)]),[];},exports[a34_0x344355(0xf7)]=async(_0x49b41b,_0x1d4085='')=>{const _0x2542bb=a34_0x344355;if(global['accessibilityPlatform'])return await PerformanceTester[_0x2542bb(0x13e)](PerformanceA11yEvents[_0x2542bb(0xe1)],async()=>{const _0x55d9d7=_0x2542bb,_0x41d7a9={};_0x41d7a9['command']=_0x1d4085,await exports[_0x55d9d7(0x10c)](_0x49b41b,scripts['performScan'],_0x41d7a9);},{'command':_0x1d4085})();},exports['getAccessibilityResultsSummary']=async _0x1f8a77=>{const _0x32b924=a34_0x344355,_0x4b5ce9={};_0x4b5ce9['XHXvy']=_0x32b924(0xf1),_0x4b5ce9[_0x32b924(0x11a)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x52b3a4=_0x4b5ce9;if(global[_0x32b924(0x101)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1f8a77,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1f8a77,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x32b924(0x139)](_0x52b3a4[_0x32b924(0xf0)]),{};}else return logger[_0x32b924(0x13a)](_0x52b3a4[_0x32b924(0x11a)]),{};},exports[a34_0x344355(0x116)]=async _0x5071c3=>{const _0xf792e7=a34_0x344355,_0x3065b0={'yYOBy':function(_0x4de66f,_0x56f6e9){return _0x4de66f!==_0x56f6e9;},'NSnob':_0xf792e7(0x119),'NQWrl':function(_0x2d1ee6,_0x48fb6d){return _0x2d1ee6===_0x48fb6d;},'NhhEy':_0xf792e7(0xe3),'ijhbY':'playwright-chromium','PvgON':_0xf792e7(0xe5),'RNkgq':function(_0x57aabb,_0x320b3f){return _0x57aabb(_0x320b3f);},'cCPgf':function(_0x4332d6,_0x55a1ca){return _0x4332d6===_0x55a1ca;},'xCxuj':'latest','qijGB':function(_0xe7653e,_0x35c6d8){return _0xe7653e>_0x35c6d8;},'HqoBm':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x3065b0[_0xf792e7(0x135)](_0x5071c3[_0xf792e7(0xf4)],''))return logger[_0xf792e7(0x13a)](_0x3065b0[_0xf792e7(0x136)]),![];const _0x23aebf=_0x5071c3[_0xf792e7(0x122)];if(!(_0x3065b0[_0xf792e7(0x12a)](_0x23aebf,_0x3065b0[_0xf792e7(0x12d)])||_0x3065b0[_0xf792e7(0x12a)](_0x23aebf,_0x3065b0['ijhbY'])))return logger[_0xf792e7(0x13a)](_0x3065b0[_0xf792e7(0x125)]),![];const _0xb181da=_0x3065b0[_0xf792e7(0xe0)](parseInt,_0x5071c3[_0xf792e7(0x130)]);if(!(_0x3065b0['cCPgf'](_0xb181da,_0x3065b0[_0xf792e7(0xdb)])||_0x3065b0[_0xf792e7(0x121)](_0xb181da,0x5e)))return logger['warn'](_0x3065b0[_0xf792e7(0xeb)]),![];}catch(_0x50175e){logger[_0xf792e7(0x139)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0xf792e7(0xf9)](_0x50175e));}return!![];},exports[a34_0x344355(0xfc)]=(_0x1d754a,_0x4ac28e,_0x180b30)=>{const _0x525698=a34_0x344355,_0x1021d7={'kjHzI':function(_0x5470bb){return _0x5470bb();},'KQhwY':_0x525698(0xff),'wvdME':function(_0x21e9cc,_0x39410d){return _0x21e9cc===_0x39410d;},'MtMXA':_0x525698(0xe3),'JiOGv':_0x525698(0xdc),'YSaRS':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','FlZvd':function(_0xefa369,_0x462ebd){return _0xefa369===_0x462ebd;},'cpzZO':_0x525698(0xf3),'tVNTW':function(_0x38b02e,_0x341d77){return _0x38b02e>_0x341d77;},'mwIqN':_0x525698(0x11e),'aIeEs':function(_0x25aa6e,_0x173c54){return _0x25aa6e(_0x173c54);},'mVknP':_0x525698(0x119),'GsVMD':function(_0x3c9e64,_0x26875f){return _0x3c9e64+_0x26875f;},'KNTzW':function(_0x45dadf,_0x3de466){return _0x45dadf(_0x3de466);}};try{if(_0x1021d7['kjHzI'](isAccessibilityAutomationSession)){global[_0x525698(0x101)]=!![];!_0x1d754a[_0x1021d7['KQhwY']]&&(global[_0x525698(0x101)]=![]);!(_0x1021d7[_0x525698(0x102)](_0x1d754a[_0x525698(0x10d)],_0x1021d7['MtMXA'])||_0x1021d7[_0x525698(0x102)](_0x1d754a['browserName'],_0x1021d7['JiOGv']))&&(logger[_0x525698(0x13a)](_0x1021d7[_0x525698(0xe9)]),global['accessibilityPlatform']=![]);!(_0x1021d7[_0x525698(0x118)](_0x1d754a['browser_version'],_0x1021d7[_0x525698(0x109)])||_0x1021d7['tVNTW'](_0x1d754a[_0x525698(0x130)],0x5e))&&(logger[_0x525698(0x13a)](_0x1021d7[_0x525698(0xf5)]),global[_0x525698(0x101)]=![]);!_0x1021d7[_0x525698(0xef)](isUndefined,_0x1d754a['deviceName'])&&(logger[_0x525698(0x13a)](_0x1021d7[_0x525698(0xee)]),global[_0x525698(0x101)]=![]);if(!global[_0x525698(0x101)]){_0x1d754a[_0x1021d7[_0x525698(0xd6)]]=![];const _0x519d6c=_0x1021d7[_0x525698(0x111)](_0x4ac28e,_0x1021d7[_0x525698(0x10f)](encodeURIComponent,JSON[_0x525698(0x112)](_0x1d754a)));_0x180b30&&(_0x180b30[_0x525698(0xe7)][_0x525698(0x120)]['project'][_0x525698(0x10e)][_0x525698(0x12c)]['wsEndpoint']=_0x519d6c,_0x180b30[_0x525698(0x140)][_0x525698(0x114)]['use']['connectOptions'][_0x525698(0x103)]=_0x519d6c);}}}catch(_0x548056){logger[_0x525698(0x139)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x525698(0xf9)](_0x548056));}};function a34_0x16ea(){const _0x493d3f=['No\x20summaryResults\x20found.','wcagVersion','latest','deviceName','mwIqN','184zVcCtJ','performScan','1695819sJSWon','format','../../helpers/performance/constants','getAccessibilityResults','processAccessibilityCaps','6172fJDeRf','654FORbxV','browserstack.accessibility','env','accessibilityPlatform','wvdME','wsEndpoint','1428LMvgoF','accessibilityOptions.authToken','scannerProcessingTimeout','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','hDDLy','cpzZO','No\x20accessibility\x20results\x20were\x20found.','accessibilityOptions','browserStackEvaluate','browserName','use','KNTzW','27594fVVdOt','GsVMD','stringify','../../helpers/performance/performance-tester','project','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','platformValidation','executeAsyncScript','FlZvd','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','wPFUw','constructor','221139WIbfVW','bstackSdkArgs','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','accessibilityOptions.includeIssueType.needsReview','testInfo','qijGB','browser','225489ljtrJA','iegEM','PvgON','700axLBNW','HfWYp','11099200jhCIeU','util','NQWrl','executeScript','connectOptions','NhhEy','../../helpers/accessibility-automation/helper','accessibilityOptions.includeIssueType.bestPractice','browser_version','scannerVersion','PoyIF','replace','Coozs','yYOBy','NSnob','BS_A11Y_JWT','eZyLG','debug','warn','xnLOv','setAccessibilityCapabilities','bestPractice','measureWrapper','LDapA','workerInfo','TEBoU','Playwright','KQhwY','wYMhb','rWufq','iqoVJ','winstonLogger','xCxuj','playwright-chromium','../../helpers/logger','519LkCiGT','evaluate','RNkgq','PERFORM_SCAN','UJZbz','chrome','error','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','RLCSQ','currentTest','28244yDCkns','YSaRS','name','HqoBm','accessibilityOptions.scannerVersion','includeIssueType','mVknP','aIeEs','XHXvy'];a34_0x16ea=function(){return _0x493d3f;};return a34_0x16ea();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a35_0x4f33(){const _0x57e48e=['XdCWB','Playwright\x20process\x20exited\x20with\x20code\x20','debug','NuPkY','5748xHqNjA','XOsYL','dCvyD','automation','CkGIK','FMSqb','push','emfXD','requirePWModule','false','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','path','QwHZa','BROWSERSTACK_AUTOMATION','testObservability','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','ebsHi','MODULE','../../helpers/performance/performance-tester','argv','nntPj','playwright-browserstack-sdk.config.cjs','PACKAGE_TYPE','441727vooxDV','cHDZT','apply','config','win32','playwright','BROWSERSTACK_RERUN_TESTS','9mytHGG','filter','skipSessionStatus','ecWvz','VOALH','BrowserStack\x20config\x20file\x20not\x20found.','PxchD','trim','clearTempPWConfig','jnyQH','scWgB','BvMLM','../../helpers/accessibility-automation/helper','UZAto','8418824yNFlbw','ARScK','../../helpers/performance/constants','313XMTcoH','trace_','./reporter/test-details','../../helpers/testhub/testhubHandler','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','1398YIQWQK','BROWSERSTACK_TEST_OBSERVABILITY','--config','RLBPV','measureWrapper','exports','EVENTS','./accessibility-helper','BqgNo','./reporter/pwUtils','inherit','util','Updated\x20config\x20file\x20name\x20to\x20-\x20','AbLLR','BHlKb','aBCjG','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','USER_CONFIG_DETAILS_PATH','concat','4633550NsCalY','--config=','testContextOptions','73028KcbJeq','platform','errorMessage','--grep','validateRerunTestList','SDK_PRE_INITIALIZE','Error\x20in\x20closing\x20playwright','eZxxe','../../helpers/helper','XpFyx','CdOHj','../../helpers/logger','has','cwd','../utils/constants','winstonLogger','lItQW','nestedKeyValue','initialize','BROWSERSTACK_PW_CONFIG_DIR','PLAYWRIGHT','hHhvA','split','bqEwE','getConfigPath','OuuYK','PCKFs','resolvedConfigFile','135nzLqUf','browserstackSetupConfig.json','splice','EIuNV','existsSync','true','Deleting\x20','ltWZq','resolve','Error\x20in\x20getting\x20funnel\x20data\x20results','stringify','accessibilityOptions','../../helpers/utilities','accessibility','start','startsWith','unlinkSync','readdirSync','../../helpers/BrowserStackSetup','dpYoy','uClHv','env','qQguA','findIndex','writeFileSync','UtBpc','isTrue','launchBuild','logLevel','LbHpK','error','XFZvW','filterBrowserstackArgs','Acini','slice','exitCode','BROWSERSTACK_TEST_ACCESSIBILITY_YML','bugTU','length','skipSessionName','iWoNi','SDK_POST_INITIALIZE','shutdown','join','Hgqsd','RxlBR','vkeQJ','isUndefined','PDMwW','getProxyUrl','VgZFp','pw_result.json','test','XYRYM','get','cliConfig','5306WRTlpO','getPackageType','3025797lbuDgQ','EYItU','homedir','jDBli','dirname','npx','--disable-browserstack-automation','pVFTR','204SpPJQg','--disable-test-observability','ngAKM','lVxgh','MKJiS','isFalse','DLWyA','readFileSync','close'];a35_0x4f33=function(){return _0x57e48e;};return a35_0x4f33();}const a35_0x5dfc7c=a35_0x532a;(function(_0x326d2c,_0x422779){const _0xaea502=a35_0x532a,_0x3573b9=_0x326d2c();while(!![]){try{const _0x3fbfda=parseInt(_0xaea502(0x193))/0x1*(parseInt(_0xaea502(0x198))/0x2)+parseInt(_0xaea502(0x14f))/0x3+parseInt(_0xaea502(0x1ae))/0x4*(-parseInt(_0xaea502(0x115))/0x5)+-parseInt(_0xaea502(0x164))/0x6*(-parseInt(_0xaea502(0x14d))/0x7)+-parseInt(_0xaea502(0x190))/0x8+parseInt(_0xaea502(0x182))/0x9*(-parseInt(_0xaea502(0x1ab))/0xa)+-parseInt(_0xaea502(0x17b))/0xb*(-parseInt(_0xaea502(0x157))/0xc);if(_0x3fbfda===_0x422779)break;else _0x3573b9['push'](_0x3573b9['shift']());}catch(_0x1da3da){_0x3573b9['push'](_0x3573b9['shift']());}}}(a35_0x4f33,0x99374));const fs=require('fs'),path=require(a35_0x5dfc7c(0x16f)),{spawn}=require('child_process'),{format}=require(a35_0x5dfc7c(0x1a3)),logger=require(a35_0x5dfc7c(0x1b9))[a35_0x5dfc7c(0x1bd)],{default:BrowserStackSetup}=require(a35_0x5dfc7c(0x127)),helper=require(a35_0x5dfc7c(0x1b6)),utilities=require(a35_0x5dfc7c(0x121)),constants=require(a35_0x5dfc7c(0x1bc)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a35_0x5dfc7c(0x1a1)),{checkAccessibilityPlatformConfig}=require(a35_0x5dfc7c(0x18e)),{setAccessibilityCapabilities}=require(a35_0x5dfc7c(0x19f)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a35_0x5dfc7c(0x195)),TestHubHandler=require(a35_0x5dfc7c(0x196)),PerformanceTester=require(a35_0x5dfc7c(0x176)),PerformanceEvents=require(a35_0x5dfc7c(0x192))[a35_0x5dfc7c(0x19e)],getUserPlaywrightConfig=async(_0x5d63ed,_0x49ec06)=>{const _0xddd368=a35_0x5dfc7c,_0x3a1cb8={'bqEwE':function(_0x9ffe9){return _0x9ffe9();},'pVFTR':function(_0x1af214,_0x243408){return _0x1af214(_0x243408);},'iWoNi':function(_0x19d27a,_0x185f66){return _0x19d27a(_0x185f66);},'RxlBR':_0xddd368(0x114),'RLBPV':'--config='},_0x49d54d=!helper[_0xddd368(0x144)](_0x5d63ed[_0xddd368(0x17e)]),_0x552cdd=_0x49d54d?path['resolve'](process[_0xddd368(0x1bb)](),_0x5d63ed[_0xddd368(0x17e)]):process[_0xddd368(0x1bb)](),{resolveConfigFile:_0x4c81fd,resolveConfigLocation:_0x2ce14c}=helper[_0xddd368(0x16c)][_0xddd368(0x17d)](null,_0x3a1cb8[_0xddd368(0x110)](getConfigLoaderPath)),_0x42beb6=_0x4c81fd?_0x3a1cb8[_0xddd368(0x156)](_0x4c81fd,_0x552cdd):helper[_0xddd368(0x1bf)](_0x3a1cb8[_0xddd368(0x13d)](_0x2ce14c,_0x552cdd),[_0x3a1cb8[_0xddd368(0x142)]]),_0x4d3951={};if(_0x49d54d){const _0x13a15e=_0x49ec06[_0xddd368(0x12c)](_0x48c8d0=>_0x48c8d0===_0xddd368(0x19a)||_0x48c8d0==='-c'||_0x48c8d0[_0xddd368(0x124)](_0xddd368(0x1ac)));_0x49ec06[_0xddd368(0x117)](_0x13a15e,_0x49ec06[_0x13a15e][_0xddd368(0x124)](_0x3a1cb8[_0xddd368(0x19b)])?0x1:0x2);}const _0x28a8e6={};return _0x28a8e6['path']=_0x42beb6,_0x28a8e6['config']=_0x4d3951,_0x28a8e6;},handleO11yRerun=_0x38fbbe=>{const _0x371bc9=a35_0x5dfc7c,_0x9f9615={};_0x9f9615[_0x371bc9(0x11c)]=_0x371bc9(0x1b1);const _0x21a77c=_0x9f9615,_0x974151=helper[_0x371bc9(0x12f)](process[_0x371bc9(0x12a)]['BROWSERSTACK_RERUN']);if(_0x974151){const _0xf5466a=process['env'][_0x371bc9(0x181)],_0x4b4846=[];if(helper[_0x371bc9(0x1b2)](_0xf5466a)&&!helper[_0x371bc9(0x144)](_0xf5466a)){_0xf5466a[_0x371bc9(0x10f)](',')['map'](_0x5afaae=>{const _0x1a01b5=_0x371bc9;_0x4b4846[_0x1a01b5(0x16a)]('('+_0x5afaae[_0x1a01b5(0x189)]()+')');});const _0x5b6eac='^'+_0x4b4846[_0x371bc9(0x140)]('|')+'$';_0x38fbbe['push'](_0x21a77c[_0x371bc9(0x11c)],_0x5b6eac);}}},spawnOriginalProcess=_0x35e8a1=>{const _0x14120e=a35_0x5dfc7c,_0x53a258={'BqgNo':function(_0x2fe665,_0x419119,_0x4063f8,_0x11b678){return _0x2fe665(_0x419119,_0x4063f8,_0x11b678);},'WQhnz':_0x14120e(0x154),'CdOHj':_0x14120e(0x180),'RZbiT':function(_0x3ea3c7,_0x1a2f33){return _0x3ea3c7===_0x1a2f33;},'lVxgh':_0x14120e(0x17f),'dpYoy':_0x14120e(0x1a2)};_0x53a258[_0x14120e(0x1a0)](spawn,_0x53a258['WQhnz'],[_0x53a258[_0x14120e(0x1b8)],..._0x35e8a1[_0x14120e(0x137)](0x1)],{'shell':_0x53a258['RZbiT'](process[_0x14120e(0x1af)],_0x53a258[_0x14120e(0x15a)]),'stdio':_0x53a258[_0x14120e(0x128)],'cwd':process['cwd']()});},isTestCommand=(_0x43fc71,_0x319c22)=>{const _0x34d2aa=a35_0x5dfc7c,_0x871ea6={};_0x871ea6[_0x34d2aa(0x163)]=function(_0x5edfb5,_0x567c63){return _0x5edfb5>_0x567c63;},_0x871ea6[_0x34d2aa(0x12b)]=function(_0x1d0ac9,_0x555e24){return _0x1d0ac9===_0x555e24;},_0x871ea6['BHlKb']=_0x34d2aa(0x149);const _0x593437=_0x871ea6;if(_0x593437['NuPkY'](_0x319c22[_0x34d2aa(0x13b)],0x1)&&_0x593437['qQguA'](_0x319c22[0x1],_0x593437[_0x34d2aa(0x1a6)]))return!![];return![];};function a35_0x532a(_0x2b41ab,_0x8f48be){const _0x4f33d4=a35_0x4f33();return a35_0x532a=function(_0x532aa3,_0x3de0d6){_0x532aa3=_0x532aa3-0x10b;let _0x524527=_0x4f33d4[_0x532aa3];return _0x524527;},a35_0x532a(_0x2b41ab,_0x8f48be);}async function run(_0x4f69d3,_0x472f76){const _0x2fd661=a35_0x5dfc7c,_0x276adf={'AbLLR':function(_0x5d7d4e,_0x3c30df){return _0x5d7d4e(_0x3c30df);},'QwHZa':'.browserstack','vkeQJ':_0x2fd661(0x148),'XpFyx':function(_0x283666,_0x343709){return _0x283666+_0x343709;},'CkGIK':_0x2fd661(0x11e),'emfXD':function(_0x1ae6d5){return _0x1ae6d5();},'XOsYL':function(_0x12a376){return _0x12a376();},'XdCWB':function(_0xc05d12,_0x454c7e){return _0xc05d12+_0x454c7e;},'Acini':_0x2fd661(0x1b4),'PDMwW':_0x2fd661(0x187),'DLWyA':_0x2fd661(0x167),'ecWvz':function(_0xbdbcbc,_0x3d7cc5){return _0xbdbcbc!=_0x3d7cc5;},'ARScK':function(_0xe38236,_0xec9dbd,_0x42f0c8){return _0xe38236(_0xec9dbd,_0x42f0c8);},'YTiCl':function(_0x55fc13,_0x5eeb43){return _0x55fc13(_0x5eeb43);},'scWgB':function(_0x490fd5,_0x47d4f9){return _0x490fd5===_0x47d4f9;},'SfbCM':_0x2fd661(0x11a),'XFZvW':function(_0x21a618,_0x57a8b9){return _0x21a618(_0x57a8b9);},'jDBli':_0x2fd661(0x116),'LbHpK':function(_0xea92f0,_0x4e7291){return _0xea92f0===_0x4e7291;},'cHDZT':_0x2fd661(0x179),'UtBpc':'playwright-browserstack-sdk.config.js','XYRYM':function(_0x2aaff1,_0x2c5175){return _0x2aaff1-_0x2c5175;},'VgZFp':_0x2fd661(0x1a4),'REOEs':function(_0x5dac93,_0x2eb8c6){return _0x5dac93>_0x2eb8c6;},'aBCjG':function(_0x2fe9f1,_0x49dff8){return _0x2fe9f1+_0x49dff8;},'sVUui':function(_0x558445,_0x53c331,_0x5e84ae,_0x40510f){return _0x558445(_0x53c331,_0x5e84ae,_0x40510f);},'bugTU':_0x2fd661(0x154),'OuuYK':'playwright','BvMLM':'test','VOALH':_0x2fd661(0x19a),'lItQW':_0x2fd661(0x17f),'hHhvA':'inherit','nntPj':_0x2fd661(0x15f),'wfAHj':'--disable-browserstack-automation','PxchD':_0x2fd661(0x16d),'ngAKM':'--disable-test-observability','PCKFs':function(_0x18fd12,_0x200297){return _0x18fd12>=_0x200297;},'EYItU':function(_0x26558f,_0x509e12){return _0x26558f+_0x509e12;},'uClHv':'Error\x20in\x20deleting\x20playwright\x20results','jnyQH':function(_0x5c8efa,_0x5888de){return _0x5c8efa(_0x5888de);}};!helper[_0x2fd661(0x15c)](process[_0x2fd661(0x12a)][_0x2fd661(0x171)])&&(process[_0x2fd661(0x12a)]['BROWSERSTACK_AUTOMATION']=!![]);process[_0x2fd661(0x177)]['includes'](_0x276adf['wfAHj'])&&(process['env'][_0x2fd661(0x171)]=_0x276adf['PxchD'],_0x472f76=_0x472f76[_0x2fd661(0x183)](_0x47fee8=>_0x47fee8!==_0x2fd661(0x155)));const _0x1ce2b3=_0x472f76['indexOf'](_0x276adf[_0x2fd661(0x159)]);_0x276adf[_0x2fd661(0x113)](_0x1ce2b3,0x0)&&(process[_0x2fd661(0x12a)][_0x2fd661(0x199)]=_0x276adf[_0x2fd661(0x188)],_0x472f76=_0x472f76['filter'](_0x168c65=>_0x168c65!==_0x2fd661(0x158)));try{const _0x8037b3=path[_0x2fd661(0x140)](helper[_0x2fd661(0x151)](),_0x276adf[_0x2fd661(0x170)],_0x276adf['vkeQJ']);fs[_0x2fd661(0x119)](_0x8037b3)&&fs[_0x2fd661(0x125)](_0x8037b3);}catch(_0x44571b){logger[_0x2fd661(0x162)](_0x276adf[_0x2fd661(0x150)](_0x276adf[_0x2fd661(0x129)],_0x44571b));}if(!_0x276adf[_0x2fd661(0x191)](isTestCommand,_0x4f69d3,_0x472f76)){_0x276adf[_0x2fd661(0x18b)](spawnOriginalProcess,_0x472f76);return;}const _0x547233=new BrowserStackSetup(_0x4f69d3,FRAMEWORKS[_0x2fd661(0x10d)]);await PerformanceTester[_0x2fd661(0x19c)](PerformanceEvents[_0x2fd661(0x1b3)],async()=>{const _0x2f6bc7=_0x2fd661,_0x64df11={'UZAto':_0x276adf[_0x2f6bc7(0x170)],'dCvyD':_0x276adf[_0x2f6bc7(0x143)],'EIuNV':function(_0x3e0664,_0x4d6495){const _0x3a9b6f=_0x2f6bc7;return _0x276adf[_0x3a9b6f(0x1b7)](_0x3e0664,_0x4d6495);},'FMSqb':_0x276adf[_0x2f6bc7(0x168)],'eZxxe':function(_0x46c131){const _0x418a97=_0x2f6bc7;return _0x276adf[_0x418a97(0x16b)](_0x46c131);},'MKJiS':function(_0x3236fd){const _0x2285ed=_0x2f6bc7;return _0x276adf[_0x2285ed(0x165)](_0x3236fd);},'Hgqsd':function(_0x6de5db,_0x5aea40){return _0x276adf['XdCWB'](_0x6de5db,_0x5aea40);},'ebsHi':_0x276adf[_0x2f6bc7(0x136)]};if(!_0x547233[_0x2f6bc7(0x17e)]){logger[_0x2f6bc7(0x133)](_0x276adf[_0x2f6bc7(0x145)]);return;}await _0x547233[_0x2f6bc7(0x10b)]();!helper[_0x2f6bc7(0x144)](_0x547233[_0x2f6bc7(0x14c)])&&_0x547233[_0x2f6bc7(0x14c)][_0x2f6bc7(0x1ba)](_0x276adf[_0x2f6bc7(0x15d)])&&(process[_0x2f6bc7(0x12a)]['BROWSERSTACK_AUTOMATION']=_0x547233['cliConfig'][_0x2f6bc7(0x14b)](_0x276adf[_0x2f6bc7(0x15d)])||!![]);_0x276adf[_0x2f6bc7(0x185)](_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x172)],null)&&!helper['isTrue'](process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x199)])&&(process[_0x2f6bc7(0x12a)]['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x199)]||_0x547233['config'][_0x2f6bc7(0x172)]);const _0x4fb67e=!helper[_0x2f6bc7(0x15c)](process[_0x2f6bc7(0x12a)]['BROWSERSTACK_TEST_OBSERVABILITY']);let _0x2bedab=![];_0x547233['config'][_0x2f6bc7(0x122)]&&(_0x2bedab=!![],process['env'][_0x2f6bc7(0x139)]=_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x122)]);_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x120)]&&(process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x197)]=JSON[_0x2f6bc7(0x11f)](_0x547233[_0x2f6bc7(0x17e)]['accessibilityOptions']));const _0x1a39cc=_0x472f76[_0x2f6bc7(0x1aa)](),_0x4c614e=await _0x276adf[_0x2f6bc7(0x191)](getUserPlaywrightConfig,_0x4f69d3,_0x472f76);if(helper[_0x2f6bc7(0x144)](_0x4c614e)){_0x276adf['YTiCl'](spawnOriginalProcess,_0x1a39cc);return;}const _0x3101ad=_0x4c614e[_0x2f6bc7(0x16f)]?path[_0x2f6bc7(0x153)](_0x4c614e[_0x2f6bc7(0x16f)]):process[_0x2f6bc7(0x1bb)]();process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x10c)]=_0x3101ad,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x2f6bc7(0x13e)],async()=>{const _0x23f36e=_0x2f6bc7;await TestHubHandler[_0x23f36e(0x130)](FRAMEWORKS[_0x23f36e(0x10d)],_0x547233),_0x4fb67e&&_0x276adf[_0x23f36e(0x1a5)](handleO11yRerun,_0x472f76);})();let _0x24ffdf=_0x276adf[_0x2f6bc7(0x18c)](process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x139)],_0x276adf['SfbCM']);_0x24ffdf=_0x24ffdf||_0x276adf['YTiCl'](checkAccessibilityPlatformConfig,_0x547233[_0x2f6bc7(0x17e)]),process['env'][_0x2f6bc7(0x139)]=_0x24ffdf;_0x24ffdf&&_0x276adf[_0x2f6bc7(0x134)](setAccessibilityCapabilities,_0x547233['config']);const _0x3abe82=path[_0x2f6bc7(0x140)](_0x4c614e[_0x2f6bc7(0x16f)]?path[_0x2f6bc7(0x153)](_0x4c614e['path']):process[_0x2f6bc7(0x1bb)](),_0x276adf[_0x2f6bc7(0x152)]);fs[_0x2f6bc7(0x12d)](_0x3abe82,helper['serializeToYamlString'](_0x547233[_0x2f6bc7(0x17e)])),process[_0x2f6bc7(0x12a)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x3abe82,helper[_0x2f6bc7(0x18a)]();let _0x59449c='';_0x276adf[_0x2f6bc7(0x132)](helper[_0x2f6bc7(0x14e)](),constants[_0x2f6bc7(0x17a)][_0x2f6bc7(0x175)])?_0x59449c=_0x276adf[_0x2f6bc7(0x17c)]:_0x59449c=_0x276adf[_0x2f6bc7(0x12e)];let _0xd4a498='';if(helper['isTypescriptProject'](_0x4c614e['path'])){_0xd4a498=_0x2f6bc7(0x16e);const _0x485402=_0x59449c[_0x2f6bc7(0x10f)]('.');_0x485402[_0x276adf[_0x2f6bc7(0x14a)](_0x485402[_0x2f6bc7(0x13b)],0x1)]='ts',_0x59449c=_0x485402[_0x2f6bc7(0x140)]('.'),logger[_0x2f6bc7(0x162)](_0x276adf[_0x2f6bc7(0x160)](_0x276adf[_0x2f6bc7(0x147)],_0x59449c));}else _0xd4a498=_0x2f6bc7(0x173);const _0x3ae7c7=path[_0x2f6bc7(0x140)](_0x4c614e[_0x2f6bc7(0x16f)]?path['dirname'](_0x4c614e['path']):process['cwd'](),_0x59449c);let _0x836b99=_0x4c614e[_0x2f6bc7(0x16f)]?_0x4c614e[_0x2f6bc7(0x16f)]:'';_0x836b99=_0x276adf['REOEs'](_0x836b99[_0x2f6bc7(0x13b)],0x0)?path[_0x2f6bc7(0x11d)](_0x836b99):'',process[_0x2f6bc7(0x12a)][_0x2f6bc7(0x1a9)]=_0x836b99;const _0x30554c=helper[_0x2f6bc7(0x146)](_0x547233['config']);_0x30554c&&(_0xd4a498=_0x276adf[_0x2f6bc7(0x1a7)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x30554c+_0x2f6bc7(0x1a8),_0xd4a498));helper[_0x2f6bc7(0x135)]({},_0x472f76),fs[_0x2f6bc7(0x12d)](_0x3ae7c7,_0xd4a498),PerformanceTester['end'](PerformanceEvents['SDK_SETUP']);const _0x55eb51=_0x276adf['sVUui'](spawn,_0x276adf[_0x2f6bc7(0x13a)],[_0x276adf[_0x2f6bc7(0x112)],_0x276adf[_0x2f6bc7(0x18d)],_0x276adf[_0x2f6bc7(0x186)],_0x3ae7c7,..._0x472f76[_0x2f6bc7(0x137)](0x2)],{'shell':_0x276adf[_0x2f6bc7(0x132)](process[_0x2f6bc7(0x1af)],_0x276adf[_0x2f6bc7(0x1be)]),'stdio':_0x276adf[_0x2f6bc7(0x10e)],'cwd':process[_0x2f6bc7(0x1bb)](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2f6bc7(0x111)](_0x4f69d3),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x1ad)][_0x2f6bc7(0x184)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x547233['config'][_0x2f6bc7(0x1ad)][_0x2f6bc7(0x13c)],'BROWSERSTACK_LOG_LEVEL':_0x547233[_0x2f6bc7(0x17e)][_0x2f6bc7(0x131)]})}),_0x240637=()=>{const _0x50b161=_0x2f6bc7;try{const _0x1be608=path[_0x50b161(0x140)](helper['homedir'](),_0x64df11['UZAto'],_0x64df11[_0x50b161(0x166)]);if(fs['existsSync'](_0x1be608)){let _0x18ee41=fs[_0x50b161(0x15e)](_0x1be608);_0x18ee41=JSON['parse'](_0x18ee41),_0x547233[_0x50b161(0x1b0)]=_0x18ee41,fs['unlinkSync'](_0x1be608);}}catch(_0xe10fd5){logger['debug'](_0x64df11[_0x50b161(0x118)](_0x64df11[_0x50b161(0x169)],_0xe10fd5));}};_0x55eb51['on'](_0x276adf[_0x2f6bc7(0x178)],async _0x2dddb5=>{const _0x5c3535=_0x2f6bc7;try{PerformanceTester[_0x5c3535(0x123)](PerformanceEvents['SDK_CLEANUP']),_0x64df11[_0x5c3535(0x1b5)](_0x240637),await TestHubHandler['stop'](),TestDetails[_0x5c3535(0x13f)](),_0x64df11[_0x5c3535(0x15b)](printBuildLink),await utilities['finalExecution'](_0x547233),process[_0x5c3535(0x138)]=_0x2dddb5,logger[_0x5c3535(0x162)](_0x5c3535(0x161)+_0x2dddb5),logger['info']('Deleting\x20'+_0x3ae7c7),fs[_0x5c3535(0x125)](_0x3ae7c7);fs[_0x5c3535(0x119)](_0x3abe82)&&(logger['debug'](_0x5c3535(0x11b)+_0x3abe82),fs[_0x5c3535(0x125)](_0x3abe82));const _0xc57fbd=fs[_0x5c3535(0x126)](path[_0x5c3535(0x140)](helper['homedir'](),_0x64df11[_0x5c3535(0x18f)]))['filter'](_0x15da7f=>_0x15da7f[_0x5c3535(0x124)](_0x5c3535(0x194)));_0xc57fbd['forEach'](_0x4fcff3=>{const _0x1dea14=_0x5c3535;fs[_0x1dea14(0x125)](path[_0x1dea14(0x140)](helper['homedir'](),_0x64df11[_0x1dea14(0x18f)],_0x4fcff3));});}catch(_0x20e7d6){logger[_0x5c3535(0x162)](_0x64df11[_0x5c3535(0x141)](_0x64df11[_0x5c3535(0x174)],_0x20e7d6));}});})();}module[a35_0x5dfc7c(0x19d)]=run;
|
|
2
|
+
'use strict';function a35_0x3c2a(){const _0x2f12cf=['startsWith','apply','playwright','MjHMZ','trace_','CclyM','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','isTypescriptProject','BROWSERSTACK_TEST_OBSERVABILITY','shutdown','win32','Error\x20in\x20closing\x20playwright','info','MODULE','../../helpers/helper','push','platform','resolve','SergK','measureWrapper','BROWSERSTACK_TEST_ACCESSIBILITY_YML','65HXFUDf','skipSessionStatus','cwd','../../helpers/testhub/testhubHandler','stringify','readdirSync','zGEPO','2094860mmktCx','split','SAbZe','--disable-browserstack-automation','tfsTn','isTrue','inherit','join','length','npx','browserstackSetupConfig.json','--config=','isFalse','homedir','ynfaw','onvBH','PACKAGE_TYPE','has','JPFED','../../helpers/accessibility-automation/helper','Deleting\x20','Playwright\x20process\x20exited\x20with\x20code\x20','logLevel','validateRerunTestList','--grep','../../helpers/test-observability/constants','Nuhxc','concat','skipSessionName','USER_CONFIG_DETAILS_PATH','config','MdQck','test','zpYky','automation','hOlpt','start','./reporter/test-details','40cfeJki','AgmXu','playwright-browserstack-sdk.config.js','BROWSERSTACK_RERUN_TESTS','existsSync','isUndefined','1250068XdxVDW','106797ilwTTp','yIVlR','NYLFL','SDK_CLEANUP','BROWSERSTACK_AUTOMATION','oikRv','SQMZO','../../helpers/logger','PLAYWRIGHT','Error\x20in\x20getting\x20funnel\x20data\x20results','negos','env','clearTempPWConfig','--disable-test-observability','cliConfig','../utils/constants','joLjY','QSWLt','../../helpers/test-observability/utils','parse','.browserstack','SDK_SETUP','errorMessage','false','ncMzV','true','SDK_PRE_INITIALIZE','includes','FhXQC','BKWEL','findIndex','KaZGF','playwright-browserstack-sdk.config.cjs','4586070fZxksc','accessibility','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','get','307701AXgnCe','kDPCe','getPackageType','dirname','BwFBK','readFileSync','getConfigPath','indexOf','FYQPa','resolvedConfigFile','IDbBw','./reporter/pwUtils','slice','util','../../helpers/BrowserStackSetup','fIJqo','nestedKeyValue','child_process','writeFileSync','../../helpers/performance/constants','splice','BROWSERSTACK_SETUP_CONFIG_PATH','hXCZM','bEEdP','1dVsyyC','./accessibility-helper','EhGCC','--config','3886295vOmhaH','Dyvpc','../../helpers/utilities','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','finalExecution','testContextOptions','DLJxI','filter','unlinkSync','aKuyQ','winstonLogger','Updated\x20config\x20file\x20name\x20to\x20-\x20','PPWpx','UkRfE','debug','vmOxL','close','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','srNOf','XpMgl','MDMrK','EVENTS','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','SQfJL','getProxyUrl','RfWHf','210918csqESn','serializeToYamlString','testObservability','path'];a35_0x3c2a=function(){return _0x2f12cf;};return a35_0x3c2a();}const a35_0x32340a=a35_0x46fd;(function(_0x5504a3,_0x254614){const _0x2a4d63=a35_0x46fd,_0x45a17e=_0x5504a3();while(!![]){try{const _0x503909=-parseInt(_0x2a4d63(0xf0))/0x1*(-parseInt(_0x2a4d63(0xb2))/0x2)+-parseInt(_0x2a4d63(0xb3))/0x3+parseInt(_0x2a4d63(0x86))/0x4+-parseInt(_0x2a4d63(0x127))/0x5*(-parseInt(_0x2a4d63(0x10e))/0x6)+-parseInt(_0x2a4d63(0xf4))/0x7+-parseInt(_0x2a4d63(0xac))/0x8*(parseInt(_0x2a4d63(0xd8))/0x9)+-parseInt(_0x2a4d63(0xd4))/0xa;if(_0x503909===_0x254614)break;else _0x45a17e['push'](_0x45a17e['shift']());}catch(_0x57859b){_0x45a17e['push'](_0x45a17e['shift']());}}}(a35_0x3c2a,0x5e17a));const fs=require('fs'),path=require(a35_0x32340a(0x111)),{spawn}=require(a35_0x32340a(0xe9)),{format}=require(a35_0x32340a(0xe5)),logger=require(a35_0x32340a(0xba))[a35_0x32340a(0xfe)],{default:BrowserStackSetup}=require(a35_0x32340a(0xe6)),helper=require(a35_0x32340a(0x120)),utilities=require(a35_0x32340a(0xf6)),constants=require(a35_0x32340a(0xc2)),{FRAMEWORKS}=require(a35_0x32340a(0x9f)),{getConfigLoaderPath}=require(a35_0x32340a(0xe3)),{checkAccessibilityPlatformConfig}=require(a35_0x32340a(0x99)),{setAccessibilityCapabilities}=require(a35_0x32340a(0xf1)),{printBuildLink}=require(a35_0x32340a(0xc5)),TestDetails=require(a35_0x32340a(0xab)),TestHubHandler=require(a35_0x32340a(0x12a)),PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a35_0x32340a(0xeb))[a35_0x32340a(0x109)],getUserPlaywrightConfig=async(_0x416be8,_0x282c6e)=>{const _0x38d60e=a35_0x32340a,_0x5b4d50={'XiogR':function(_0x4d2925){return _0x4d2925();},'SAbZe':function(_0x37b316,_0x406888){return _0x37b316(_0x406888);},'SergK':_0x38d60e(0xe1),'IDbBw':_0x38d60e(0x91)},_0x41ff19=!helper[_0x38d60e(0xb1)](_0x416be8[_0x38d60e(0xa4)]),_0x55d45a=_0x41ff19?path[_0x38d60e(0x123)](process[_0x38d60e(0x129)](),_0x416be8['config']):process['cwd'](),{resolveConfigFile:_0x42fbb2,resolveConfigLocation:_0x283c21}=helper['requirePWModule'][_0x38d60e(0x113)](null,_0x5b4d50['XiogR'](getConfigLoaderPath)),_0x551217=_0x42fbb2?_0x5b4d50[_0x38d60e(0x88)](_0x42fbb2,_0x55d45a):helper[_0x38d60e(0xe8)](_0x5b4d50[_0x38d60e(0x88)](_0x283c21,_0x55d45a),[_0x5b4d50[_0x38d60e(0x124)]]),_0x94a8ac={};if(_0x41ff19){const _0x2ce19d=_0x282c6e[_0x38d60e(0xd1)](_0xa93665=>_0xa93665===_0x38d60e(0xf3)||_0xa93665==='-c'||_0xa93665[_0x38d60e(0x112)](_0x38d60e(0x91)));_0x282c6e[_0x38d60e(0xec)](_0x2ce19d,_0x282c6e[_0x2ce19d][_0x38d60e(0x112)](_0x5b4d50[_0x38d60e(0xe2)])?0x1:0x2);}const _0x3475f4={};return _0x3475f4[_0x38d60e(0x111)]=_0x551217,_0x3475f4['config']=_0x94a8ac,_0x3475f4;},handleO11yRerun=_0x30aa80=>{const _0x525f70=a35_0x32340a,_0x2fa34e={};_0x2fa34e[_0x525f70(0xa5)]=_0x525f70(0x9e);const _0x1717ee=_0x2fa34e,_0x24b50b=helper[_0x525f70(0x8b)](process['env']['BROWSERSTACK_RERUN']);if(_0x24b50b){const _0x1f68c5=process[_0x525f70(0xbe)][_0x525f70(0xaf)],_0x1f2d22=[];if(helper[_0x525f70(0x9d)](_0x1f68c5)&&!helper[_0x525f70(0xb1)](_0x1f68c5)){_0x1f68c5[_0x525f70(0x87)](',')['map'](_0x33c724=>{const _0x51216c=_0x525f70;_0x1f2d22[_0x51216c(0x121)]('('+_0x33c724['trim']()+')');});const _0x221547='^'+_0x1f2d22[_0x525f70(0x8d)]('|')+'$';_0x30aa80[_0x525f70(0x121)](_0x1717ee[_0x525f70(0xa5)],_0x221547);}}},spawnOriginalProcess=_0x234367=>{const _0x5d4f07=a35_0x32340a,_0x42edb9={'BKWEL':function(_0x409d3a,_0x2ade7a,_0x146373,_0x153f74){return _0x409d3a(_0x2ade7a,_0x146373,_0x153f74);},'IwhNF':_0x5d4f07(0x8f),'vmOxL':_0x5d4f07(0x114),'KaZGF':function(_0x484dc9,_0x8f89df){return _0x484dc9===_0x8f89df;},'oFnVk':_0x5d4f07(0x11c),'nEusS':_0x5d4f07(0x8c)};_0x42edb9[_0x5d4f07(0xd0)](spawn,_0x42edb9['IwhNF'],[_0x42edb9[_0x5d4f07(0x103)],..._0x234367[_0x5d4f07(0xe4)](0x1)],{'shell':_0x42edb9[_0x5d4f07(0xd2)](process[_0x5d4f07(0x122)],_0x42edb9['oFnVk']),'stdio':_0x42edb9['nEusS'],'cwd':process['cwd']()});},isTestCommand=(_0x45e782,_0x4a25e3)=>{const _0x671f05=a35_0x32340a,_0x513282={};_0x513282[_0x671f05(0x117)]=function(_0x1fb296,_0x2306d8){return _0x1fb296>_0x2306d8;},_0x513282[_0x671f05(0xa0)]=function(_0x2fcd1d,_0x3a2e2f){return _0x2fcd1d===_0x3a2e2f;},_0x513282['DLJxI']=_0x671f05(0xa6);const _0x495a1f=_0x513282;if(_0x495a1f[_0x671f05(0x117)](_0x4a25e3[_0x671f05(0x8e)],0x1)&&_0x495a1f[_0x671f05(0xa0)](_0x4a25e3[0x1],_0x495a1f[_0x671f05(0xfa)]))return!![];return![];};async function run(_0x45f2e6,_0x2ffbb3){const _0x1af0ac=a35_0x32340a,_0x4075ca={'ynfaw':_0x1af0ac(0xc7),'aKuyQ':'pw_result.json','SQMZO':function(_0x536628,_0x5c4c1c){return _0x536628+_0x5c4c1c;},'MDMrK':_0x1af0ac(0xbc),'NYLFL':function(_0x438efb,_0x453b72){return _0x438efb(_0x453b72);},'fIJqo':function(_0x39add0){return _0x39add0();},'hOlpt':_0x1af0ac(0x11d),'RfWHf':'BrowserStack\x20config\x20file\x20not\x20found.','XpMgl':_0x1af0ac(0xa8),'JPFED':function(_0x93f099,_0x4610f3){return _0x93f099!=_0x4610f3;},'Dyvpc':function(_0x22714b,_0x3696bb,_0x910278){return _0x22714b(_0x3696bb,_0x910278);},'DfQqU':function(_0x32fdfb,_0x152f35){return _0x32fdfb(_0x152f35);},'QSWLt':function(_0x336ef7,_0x29a75c){return _0x336ef7===_0x29a75c;},'ahPMe':_0x1af0ac(0xcc),'FYQPa':function(_0x56b044,_0x1fd202){return _0x56b044(_0x1fd202);},'kDPCe':_0x1af0ac(0x90),'yIVlR':_0x1af0ac(0xd3),'hXCZM':_0x1af0ac(0xae),'srNOf':function(_0x71fe62,_0x2b0990){return _0x71fe62-_0x2b0990;},'bEEdP':function(_0x51636c,_0x5d21e7){return _0x51636c+_0x5d21e7;},'oikRv':_0x1af0ac(0xff),'BwFBK':function(_0xd43222,_0x4c9bb6){return _0xd43222>_0x4c9bb6;},'UkRfE':function(_0x5827e1,_0x59cef6){return _0x5827e1+_0x59cef6;},'negos':function(_0x35f476,_0x573e86,_0x83282f,_0x30be9e){return _0x35f476(_0x573e86,_0x83282f,_0x30be9e);},'EhGCC':'npx','IRBUa':_0x1af0ac(0x114),'lLLlD':_0x1af0ac(0xa6),'fEcsA':_0x1af0ac(0xf3),'PPWpx':function(_0x5e5359,_0x2f46cc){return _0x5e5359===_0x2f46cc;},'zpYky':'win32','ncMzV':_0x1af0ac(0x8c),'AgmXu':_0x1af0ac(0x104),'NmbeP':_0x1af0ac(0x89),'zGEPO':_0x1af0ac(0xca),'MJvRK':_0x1af0ac(0xc0),'FhXQC':function(_0x858f5c,_0x56a98a){return _0x858f5c>=_0x56a98a;},'XSOWi':'Error\x20in\x20deleting\x20playwright\x20results','rNjfO':function(_0x460c9b,_0x47e6eb,_0x54b950){return _0x460c9b(_0x47e6eb,_0x54b950);}};!helper[_0x1af0ac(0x92)](process[_0x1af0ac(0xbe)]['BROWSERSTACK_AUTOMATION'])&&(process[_0x1af0ac(0xbe)][_0x1af0ac(0xb7)]=!![]);process['argv'][_0x1af0ac(0xce)](_0x4075ca['NmbeP'])&&(process['env'][_0x1af0ac(0xb7)]=_0x4075ca['zGEPO'],_0x2ffbb3=_0x2ffbb3['filter'](_0x12f360=>_0x12f360!==_0x1af0ac(0x89)));const _0x3c74c4=_0x2ffbb3[_0x1af0ac(0xdf)](_0x4075ca['MJvRK']);_0x4075ca[_0x1af0ac(0xcf)](_0x3c74c4,0x0)&&(process[_0x1af0ac(0xbe)][_0x1af0ac(0x11a)]=_0x4075ca[_0x1af0ac(0x85)],_0x2ffbb3=_0x2ffbb3[_0x1af0ac(0xfb)](_0x31d904=>_0x31d904!==_0x1af0ac(0xc0)));try{const _0xca93a0=path[_0x1af0ac(0x8d)](helper[_0x1af0ac(0x93)](),_0x4075ca['ynfaw'],_0x4075ca[_0x1af0ac(0xfd)]);fs[_0x1af0ac(0xb0)](_0xca93a0)&&fs[_0x1af0ac(0xfc)](_0xca93a0);}catch(_0x29e331){logger['debug'](_0x4075ca[_0x1af0ac(0xb9)](_0x4075ca['XSOWi'],_0x29e331));}if(!_0x4075ca['rNjfO'](isTestCommand,_0x45f2e6,_0x2ffbb3)){_0x4075ca[_0x1af0ac(0xb5)](spawnOriginalProcess,_0x2ffbb3);return;}const _0x391706=new BrowserStackSetup(_0x45f2e6,FRAMEWORKS['PLAYWRIGHT']);await PerformanceTester[_0x1af0ac(0x125)](PerformanceEvents[_0x1af0ac(0xcd)],async()=>{const _0x5cad5b=_0x1af0ac,_0x7170d1={'joLjY':function(_0x1b9426,_0x2ec6ed){const _0x3243c9=a35_0x46fd;return _0x4075ca[_0x3243c9(0xb5)](_0x1b9426,_0x2ec6ed);},'tfsTn':_0x4075ca['ynfaw'],'xBiOU':function(_0x569622){return _0x4075ca['fIJqo'](_0x569622);},'SQfJL':function(_0x106db9){const _0x3d0bda=a35_0x46fd;return _0x4075ca[_0x3d0bda(0xe7)](_0x106db9);},'onvBH':function(_0x1ea892,_0xa98410){return _0x4075ca['SQMZO'](_0x1ea892,_0xa98410);},'MjHMZ':_0x4075ca[_0x5cad5b(0xa9)]};if(!_0x391706[_0x5cad5b(0xa4)]){logger['error'](_0x4075ca[_0x5cad5b(0x10d)]);return;}await _0x391706['initialize']();!helper[_0x5cad5b(0xb1)](_0x391706[_0x5cad5b(0xc1)])&&_0x391706['cliConfig'][_0x5cad5b(0x97)](_0x4075ca[_0x5cad5b(0x107)])&&(process[_0x5cad5b(0xbe)][_0x5cad5b(0xb7)]=_0x391706[_0x5cad5b(0xc1)][_0x5cad5b(0xd7)](_0x4075ca[_0x5cad5b(0x107)])||!![]);_0x4075ca[_0x5cad5b(0x98)](_0x391706[_0x5cad5b(0xa4)]['testObservability'],null)&&!helper[_0x5cad5b(0x8b)](process[_0x5cad5b(0xbe)][_0x5cad5b(0x11a)])&&(process['env'][_0x5cad5b(0x11a)]=process[_0x5cad5b(0xbe)][_0x5cad5b(0x11a)]||_0x391706[_0x5cad5b(0xa4)][_0x5cad5b(0x110)]);const _0x1b8e1c=!helper[_0x5cad5b(0x92)](process[_0x5cad5b(0xbe)][_0x5cad5b(0x11a)]);let _0x1f148c=![];_0x391706[_0x5cad5b(0xa4)][_0x5cad5b(0xd5)]&&(_0x1f148c=!![],process[_0x5cad5b(0xbe)][_0x5cad5b(0x126)]=_0x391706[_0x5cad5b(0xa4)][_0x5cad5b(0xd5)]);_0x391706['config']['accessibilityOptions']&&(process[_0x5cad5b(0xbe)][_0x5cad5b(0x10a)]=JSON[_0x5cad5b(0x83)](_0x391706[_0x5cad5b(0xa4)]['accessibilityOptions']));const _0x47fb6f=_0x2ffbb3[_0x5cad5b(0xa1)](),_0x45d647=await _0x4075ca[_0x5cad5b(0xf5)](getUserPlaywrightConfig,_0x45f2e6,_0x2ffbb3);if(helper[_0x5cad5b(0xb1)](_0x45d647)){_0x4075ca['DfQqU'](spawnOriginalProcess,_0x47fb6f);return;}const _0x43e4f4=_0x45d647['path']?path[_0x5cad5b(0xdb)](_0x45d647['path']):process[_0x5cad5b(0x129)]();process[_0x5cad5b(0xbe)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x43e4f4,await PerformanceTester['measureWrapper'](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x4c6273=_0x5cad5b;await TestHubHandler['launchBuild'](FRAMEWORKS[_0x4c6273(0xbb)],_0x391706),_0x1b8e1c&&_0x7170d1[_0x4c6273(0xc3)](handleO11yRerun,_0x2ffbb3);})();let _0x3df18b=_0x4075ca[_0x5cad5b(0xc4)](process[_0x5cad5b(0xbe)][_0x5cad5b(0x126)],_0x4075ca['ahPMe']);_0x3df18b=_0x3df18b||_0x4075ca[_0x5cad5b(0xe0)](checkAccessibilityPlatformConfig,_0x391706[_0x5cad5b(0xa4)]),process[_0x5cad5b(0xbe)][_0x5cad5b(0x126)]=_0x3df18b;_0x3df18b&&_0x4075ca['NYLFL'](setAccessibilityCapabilities,_0x391706['config']);const _0x39f09a=path['join'](_0x45d647[_0x5cad5b(0x111)]?path[_0x5cad5b(0xdb)](_0x45d647[_0x5cad5b(0x111)]):process['cwd'](),_0x4075ca[_0x5cad5b(0xd9)]);fs[_0x5cad5b(0xea)](_0x39f09a,helper[_0x5cad5b(0x10f)](_0x391706[_0x5cad5b(0xa4)])),process[_0x5cad5b(0xbe)][_0x5cad5b(0xed)]=_0x39f09a,helper[_0x5cad5b(0xbf)]();let _0x5e62d5='';_0x4075ca['QSWLt'](helper[_0x5cad5b(0xda)](),constants[_0x5cad5b(0x96)][_0x5cad5b(0x11f)])?_0x5e62d5=_0x4075ca[_0x5cad5b(0xb4)]:_0x5e62d5=_0x4075ca[_0x5cad5b(0xee)];let _0x1852d7='';if(helper[_0x5cad5b(0x119)](_0x45d647[_0x5cad5b(0x111)])){_0x1852d7=_0x5cad5b(0x118);const _0x1bea4d=_0x5e62d5[_0x5cad5b(0x87)]('.');_0x1bea4d[_0x4075ca[_0x5cad5b(0x106)](_0x1bea4d[_0x5cad5b(0x8e)],0x1)]='ts',_0x5e62d5=_0x1bea4d[_0x5cad5b(0x8d)]('.'),logger['debug'](_0x4075ca[_0x5cad5b(0xef)](_0x4075ca[_0x5cad5b(0xb8)],_0x5e62d5));}else _0x1852d7=_0x5cad5b(0xf7);const _0x522a8e=path[_0x5cad5b(0x8d)](_0x45d647[_0x5cad5b(0x111)]?path['dirname'](_0x45d647[_0x5cad5b(0x111)]):process['cwd'](),_0x5e62d5);let _0x3059a2=_0x45d647['path']?_0x45d647[_0x5cad5b(0x111)]:'';_0x3059a2=_0x4075ca[_0x5cad5b(0xdc)](_0x3059a2['length'],0x0)?path[_0x5cad5b(0x123)](_0x3059a2):'',process[_0x5cad5b(0xbe)][_0x5cad5b(0xa3)]=_0x3059a2;const _0x5c8ec1=helper[_0x5cad5b(0x10c)](_0x391706[_0x5cad5b(0xa4)]);_0x5c8ec1&&(_0x1852d7=_0x4075ca[_0x5cad5b(0x101)](_0x5cad5b(0x105)+_0x5c8ec1+_0x5cad5b(0xd6),_0x1852d7));helper['filterBrowserstackArgs']({},_0x2ffbb3),fs[_0x5cad5b(0xea)](_0x522a8e,_0x1852d7),PerformanceTester['end'](PerformanceEvents[_0x5cad5b(0xc8)]);const _0x59a867=_0x4075ca[_0x5cad5b(0xbd)](spawn,_0x4075ca[_0x5cad5b(0xf2)],[_0x4075ca['IRBUa'],_0x4075ca['lLLlD'],_0x4075ca['fEcsA'],_0x522a8e,..._0x2ffbb3[_0x5cad5b(0xe4)](0x2)],{'shell':_0x4075ca[_0x5cad5b(0x100)](process[_0x5cad5b(0x122)],_0x4075ca[_0x5cad5b(0xa7)]),'stdio':_0x4075ca[_0x5cad5b(0xcb)],'cwd':process[_0x5cad5b(0x129)](),'env':Object['assign']({},process[_0x5cad5b(0xbe)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5cad5b(0xde)](_0x45f2e6),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x391706[_0x5cad5b(0xa4)][_0x5cad5b(0xf9)][_0x5cad5b(0x128)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x391706['config'][_0x5cad5b(0xf9)][_0x5cad5b(0xa2)],'BROWSERSTACK_LOG_LEVEL':_0x391706[_0x5cad5b(0xa4)][_0x5cad5b(0x9c)]})}),_0x10d4cf=()=>{const _0x50baef=_0x5cad5b;try{const _0xadc4d7=path[_0x50baef(0x8d)](helper['homedir'](),_0x4075ca[_0x50baef(0x94)],_0x4075ca[_0x50baef(0xfd)]);if(fs['existsSync'](_0xadc4d7)){let _0x3fe858=fs[_0x50baef(0xdd)](_0xadc4d7);_0x3fe858=JSON[_0x50baef(0xc6)](_0x3fe858),_0x391706[_0x50baef(0xc9)]=_0x3fe858,fs['unlinkSync'](_0xadc4d7);}}catch(_0x4e11a5){logger[_0x50baef(0x102)](_0x4075ca[_0x50baef(0xb9)](_0x4075ca[_0x50baef(0x108)],_0x4e11a5));}};_0x59a867['on'](_0x4075ca[_0x5cad5b(0xad)],async _0x2c0a9e=>{const _0x3001a7=_0x5cad5b;try{PerformanceTester[_0x3001a7(0xaa)](PerformanceEvents[_0x3001a7(0xb6)]),_0x7170d1['xBiOU'](_0x10d4cf),await TestHubHandler['stop'](),TestDetails[_0x3001a7(0x11b)](),_0x7170d1[_0x3001a7(0x10b)](printBuildLink),await utilities[_0x3001a7(0xf8)](_0x391706),process['exitCode']=_0x2c0a9e,logger[_0x3001a7(0x102)](_0x3001a7(0x9b)+_0x2c0a9e),logger[_0x3001a7(0x11e)](_0x3001a7(0x9a)+_0x522a8e),fs[_0x3001a7(0xfc)](_0x522a8e);fs[_0x3001a7(0xb0)](_0x39f09a)&&(logger[_0x3001a7(0x102)](_0x3001a7(0x9a)+_0x39f09a),fs[_0x3001a7(0xfc)](_0x39f09a));const _0x997b9e=fs[_0x3001a7(0x84)](path[_0x3001a7(0x8d)](helper[_0x3001a7(0x93)](),_0x7170d1[_0x3001a7(0x8a)]))[_0x3001a7(0xfb)](_0x1636d3=>_0x1636d3['startsWith'](_0x3001a7(0x116)));_0x997b9e['forEach'](_0x9c133=>{const _0x43dff3=_0x3001a7;fs['unlinkSync'](path[_0x43dff3(0x8d)](helper[_0x43dff3(0x93)](),_0x7170d1[_0x43dff3(0x8a)],_0x9c133));});}catch(_0x16d945){logger[_0x3001a7(0x102)](_0x7170d1[_0x3001a7(0x95)](_0x7170d1[_0x3001a7(0x115)],_0x16d945));}});})();}function a35_0x46fd(_0x2d1593,_0x402e70){const _0x3c2af8=a35_0x3c2a();return a35_0x46fd=function(_0x46fd2b,_0x5b22ca){_0x46fd2b=_0x46fd2b-0x83;let _0x536bae=_0x3c2af8[_0x46fd2b];return _0x536bae;},a35_0x46fd(_0x2d1593,_0x402e70);}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x6e92de=a36_0x2af7;(function(_0x12708f,_0xe2ee32){const _0x365479=a36_0x2af7,_0x511fcc=_0x12708f();while(!![]){try{const _0x303e4b=parseInt(_0x365479(0xa6))/0x1*(parseInt(_0x365479(0xab))/0x2)+-parseInt(_0x365479(0x8a))/0x3*(-parseInt(_0x365479(0x85))/0x4)+parseInt(_0x365479(0xa3))/0x5*(parseInt(_0x365479(0x86))/0x6)+parseInt(_0x365479(0x89))/0x7+parseInt(_0x365479(0x8f))/0x8*(-parseInt(_0x365479(0x9a))/0x9)+-parseInt(_0x365479(0xae))/0xa*(parseInt(_0x365479(0x98))/0xb)+-parseInt(_0x365479(0x9f))/0xc*(parseInt(_0x365479(0x88))/0xd);if(_0x303e4b===_0xe2ee32)break;else _0x511fcc['push'](_0x511fcc['shift']());}catch(_0x2d0531){_0x511fcc['push'](_0x511fcc['shift']());}}}(a36_0x484b,0x974d6));const util=require('util'),child_process=require(a36_0x6e92de(0xa7)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getFrameworkVersion,debug}=require(a36_0x6e92de(0x8b)),helper=require(a36_0x6e92de(0xaa)),{getLoadUtilsPath,getForkProcessPath}=require(a36_0x6e92de(0xac)),{mockIsWorkerRedundant}=require(a36_0x6e92de(0x95)),logger=require('../../helpers/logger')[a36_0x6e92de(0x97)];function a36_0x2af7(_0x320743,_0x587cec){const _0x484b89=a36_0x484b();return a36_0x2af7=function(_0x2af77f,_0x8fb541){_0x2af77f=_0x2af77f-0x80;let _0x126b51=_0x484b89[_0x2af77f];return _0x126b51;},a36_0x2af7(_0x320743,_0x587cec);}function a36_0x484b(){const _0x43867e=['242862JOQgLf','../../helpers/test-observability/utils','xSMus','fapaM','Cliiu','80krwWGp','config','function','includes','Call\x20to\x20child\x20fork\x20with\x20args\x20','debug','./patches','1.33.0','winstonLogger','93401ssQbDC','Path\x20','20511QciSXt','kHcDO','fork','XTuQp','vWIlu','51612cQfade','./mock-process.js','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','resolve','279515hRvoMG','oAWmE','isHandlePWErrorSet','6038Btsrww','child_process','PLAYWRIGHT','IPhdL','../../helpers/helper','302jNQBXA','./reporter/pwUtils','\x20is\x20not\x20found','910iNPmyf','BVPHW','env','apply','Running\x20existing\x20global\x20setup','IeVuY','tHUdg','toString','format','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','60lvneuR','66tadpaP','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','5200FPKlJU','2762368JbMUSz'];a36_0x484b=function(){return _0x43867e;};return a36_0x484b();}module['exports']=async function(_0x57209d){const _0x5145d8=a36_0x6e92de,_0x17ddf5={'IPhdL':function(_0x5d4cd7,_0x34708c){return _0x5d4cd7(_0x34708c);},'tHUdg':function(_0x3ab63d){return _0x3ab63d();},'IeVuY':_0x5145d8(0xa0),'nlEML':function(_0x1a0555){return _0x1a0555();},'XTuQp':function(_0x2fe981,_0x55ea71){return _0x2fe981(_0x55ea71);},'kHcDO':_0x5145d8(0xb2),'fapaM':function(_0x4075bd){return _0x4075bd();},'Cliiu':function(_0x123820,_0x5e420d){return _0x123820>=_0x5e420d;},'SIVNg':_0x5145d8(0x96),'BVPHW':function(_0x479b91,_0x26710a,_0x13d18f){return _0x479b91(_0x26710a,_0x13d18f);},'oAWmE':function(_0x47a173,_0x5c9cf1){return _0x47a173!==_0x5c9cf1;},'Ognlu':_0x5145d8(0x91),'vWIlu':'Not\x20able\x20to\x20import\x20globalSetup','xSMus':function(_0x38c576,_0x43d286){return _0x38c576(_0x43d286);}},_0x261135=child_process[_0x5145d8(0x9c)];if(helper[_0x5145d8(0xa5)]())try{_0x17ddf5['nlEML'](mockIsWorkerRedundant);}catch(_0x470fbc){logger[_0x5145d8(0x94)](_0x5145d8(0x87)+util[_0x5145d8(0x83)](_0x470fbc));}child_process['fork']=function(){const _0xfe3ee2=_0x5145d8;return _0x17ddf5['IPhdL'](debug,_0xfe3ee2(0x93)+arguments[0x0]),arguments[0x0][_0xfe3ee2(0x92)](_0x17ddf5[_0xfe3ee2(0x81)](getForkProcessPath))?arguments[0x0]=require[_0xfe3ee2(0xa2)](_0x17ddf5[_0xfe3ee2(0x80)]):logger['error'](_0xfe3ee2(0x99)+_0x17ddf5[_0xfe3ee2(0x81)](getForkProcessPath)+_0xfe3ee2(0xad)),_0x261135[_0xfe3ee2(0xb1)](null,arguments);};if(process['env'][_0x5145d8(0xa1)]){_0x17ddf5[_0x5145d8(0x9d)](debug,_0x17ddf5[_0x5145d8(0x9b)]);try{const {loadGlobalHook:_0x19fc96}=helper['requirePWModule'][_0x5145d8(0xb1)](null,_0x17ddf5[_0x5145d8(0x8d)](getLoadUtilsPath)),_0x2357e2=_0x17ddf5[_0x5145d8(0xa9)](getFrameworkVersion,FRAMEWORKS[_0x5145d8(0xa8)]);let _0x200a84=_0x57209d;if(_0x17ddf5[_0x5145d8(0x8e)](helper['compareVersions'](_0x2357e2,_0x17ddf5['SIVNg']),0x0)){const _0x435226={};_0x435226[_0x5145d8(0x90)]=_0x57209d,_0x200a84=_0x435226;}const _0x5a5970=await _0x17ddf5[_0x5145d8(0xaf)](_0x19fc96,_0x200a84,process[_0x5145d8(0xb0)][_0x5145d8(0xa1)]);if(_0x17ddf5[_0x5145d8(0xa4)](typeof _0x5a5970,_0x17ddf5['Ognlu']))throw new Error(_0x17ddf5[_0x5145d8(0x9e)]);return _0x5a5970[_0x5145d8(0xb1)](null,arguments);}catch(_0x2ccf6a){_0x17ddf5[_0x5145d8(0x8c)](debug,_0x5145d8(0x84)+_0x2ccf6a[_0x5145d8(0x82)]());}}};
|