browserstack-node-sdk 1.50.1 → 1.50.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/customSequencer.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.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.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/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.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/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.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/accessibilityRetryHelper.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/classLogger.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/playwright-helper.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/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.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 a33_0x22448e=a33_0x586f;(function(_0x3d98dd,_0x182372){const _0x41dd51=a33_0x586f,_0x34a54c=_0x3d98dd();while(!![]){try{const _0x427b15=parseInt(_0x41dd51(0x11b))/0x1*(-parseInt(_0x41dd51(0xf0))/0x2)+parseInt(_0x41dd51(0xf8))/0x3+parseInt(_0x41dd51(0x10f))/0x4+-parseInt(_0x41dd51(0x10b))/0x5*(-parseInt(_0x41dd51(0xf7))/0x6)+-parseInt(_0x41dd51(0xef))/0x7*(parseInt(_0x41dd51(0xf2))/0x8)+parseInt(_0x41dd51(0x117))/0x9+-parseInt(_0x41dd51(0xfd))/0xa;if(_0x427b15===_0x182372)break;else _0x34a54c['push'](_0x34a54c['shift']());}catch(_0x22bce8){_0x34a54c['push'](_0x34a54c['shift']());}}}(a33_0x3b25,0x8b4e3));const logger=require(a33_0x22448e(0xb9))[a33_0x22448e(0xe4)],helper=require(a33_0x22448e(0x118)),constants=require(a33_0x22448e(0xc2)),hubAllocator=require(a33_0x22448e(0xfc)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x22448e(0xcf)),{setAccessibilityCapabilities,setExtension}=require(a33_0x22448e(0xd2)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x22448e(0xd3)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a33_0x22448e(0xd7)),modify=(_0x3e5a13,_0x5f0c05=null,_0x30b390=![])=>{const _0x173cf5=a33_0x22448e,_0x2b6098={'BQZhm':function(_0x393d2e,_0x38686e){return _0x393d2e!==_0x38686e;},'uaYxW':_0x173cf5(0x108),'aaIOh':function(_0x120fe0,_0x58aeb0){return _0x120fe0!==_0x58aeb0;},'NVeyp':function(_0x14dd4f,_0x1a8833){return _0x14dd4f+_0x1a8833;},'dWadP':'https://','fzUri':'/wd/hub','lzRUW':'goog:chromeOptions','VrLkE':_0x173cf5(0xe6),'ggVhL':'ms:edgeOptions','xUtBf':_0x173cf5(0xe8),'lyxmk':'moz:firefoxOptions','pnFEI':_0x173cf5(0xeb),'Cxdqe':_0x173cf5(0xf6),'xLDsA':'se:ieOptions','bKXES':_0x173cf5(0xf5),'Bckdq':function(_0x4f9a60,_0x4bc62a){return _0x4f9a60===_0x4bc62a;},'bLoZG':'object','qofIe':_0x173cf5(0x100),'RhRXl':_0x173cf5(0xb7),'TEDQx':function(_0x3d15d1,_0x285c30){return _0x3d15d1(_0x285c30);},'gBTQC':function(_0x1aed70,_0x27c337,_0x48e2a2){return _0x1aed70(_0x27c337,_0x48e2a2);},'ybbrp':function(_0x4af556,_0x13648b,_0xf0989a){return _0x4af556(_0x13648b,_0xf0989a);},'jzPUj':'optimalHubUrl','gGYVf':_0x173cf5(0xf4),'WvdCn':function(_0x5ab8b3,_0x39278f,_0x5bc24c){return _0x5ab8b3(_0x39278f,_0x5bc24c);},'WZpVe':_0x173cf5(0x123),'VZjuB':_0x173cf5(0xe7),'RGxQe':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','amSsV':function(_0x4eee34){return _0x4eee34();},'aHtaE':function(_0x3114fd,_0x22ca06){return _0x3114fd(_0x22ca06);},'VxikH':function(_0x55cb2b,_0x477fbe){return _0x55cb2b(_0x477fbe);},'volGs':function(_0x28eb98,_0xbea075,_0x1b6ab0){return _0x28eb98(_0xbea075,_0x1b6ab0);},'bySFU':function(_0x12e0c0,_0x24468f){return _0x12e0c0!==_0x24468f;},'MPpwX':_0x173cf5(0x10d),'DJYAI':_0x173cf5(0xed)},_0x5e497e=helper[_0x173cf5(0x127)]();let _0x2ad076;try{_0x2ad076=helper['requireSeleniumWebdriver'](),_0x2ad076[_0x173cf5(0x11e)]&&(_0x2ad076[_0x173cf5(0x11f)]=_0x2ad076[_0x173cf5(0x11e)]);}catch(_0xb0ff7b){return;}if(helper['isBrowserstackInfra']()){const _0x5724dc={};_0x5724dc[_0x173cf5(0x115)]=_0x3e5a13[_0x173cf5(0xdd)],helper[_0x173cf5(0xbf)](_0x5724dc,new Map(),new Map()),logger['info'](_0x2b6098['MPpwX']),logger[_0x173cf5(0xec)](_0x2b6098[_0x173cf5(0x120)]);}class _0x1c0640 extends _0x5e497e[_0x173cf5(0x111)]{[_0x173cf5(0x103)](_0x267106){const _0x764673=_0x173cf5;if(_0x2b6098[_0x764673(0xe1)](_0x267106[_0x764673(0xea)],_0x2b6098[_0x764673(0x113)])&&_0x2b6098['aaIOh'](global[_0x764673(0x12b)],''))try{global[_0x764673(0x12b)]=_0x2b6098[_0x764673(0x109)](_0x2b6098[_0x764673(0x109)](_0x2b6098[_0x764673(0xe5)],global['newHubUrl']),_0x2b6098[_0x764673(0x10a)]),this['options_']=hubAllocator[_0x764673(0x12a)](global[_0x764673(0x12b)]),logger[_0x764673(0xec)](_0x764673(0xc4)+global[_0x764673(0x12b)]),global['newHubUrl']='';}catch(_0x24fa8b){logger[_0x764673(0xcd)](_0x24fa8b);}return super[_0x764673(0x103)](_0x267106);}}class _0x45c248 extends _0x2ad076[_0x173cf5(0x11f)]{[_0x173cf5(0xd0)](){const _0x58ffe7=_0x173cf5;return this[_0x58ffe7(0xd4)]=helper[_0x58ffe7(0xe0)](_0x3e5a13),logger[_0x58ffe7(0xec)](_0x58ffe7(0x122)+this[_0x58ffe7(0xd4)]),this;}[_0x173cf5(0x131)](_0x525392){const _0x3c0fbf=_0x173cf5;let _0x38b8a6={};for(const _0xf5c5f3 in _0x525392){switch(_0xf5c5f3){case _0x2b6098[_0x3c0fbf(0xde)]:case _0x2b6098[_0x3c0fbf(0x130)]:this[_0x3c0fbf(0xd5)]&&(_0x38b8a6=this[_0x3c0fbf(0xd5)]['get'](this[_0x3c0fbf(0xd5)][_0x3c0fbf(0xc9)])||{},this[_0x3c0fbf(0xd5)]['set'](this[_0x3c0fbf(0xd5)][_0x3c0fbf(0xc9)],helper[_0x3c0fbf(0xce)](_0x38b8a6,_0x525392[_0xf5c5f3])));break;case _0x2b6098[_0x3c0fbf(0x116)]:case _0x2b6098[_0x3c0fbf(0xb8)]:this['edgeOptions_']&&(_0x38b8a6=this[_0x3c0fbf(0xba)][_0x3c0fbf(0xd6)](this[_0x3c0fbf(0xba)][_0x3c0fbf(0xc9)])||{},this['edgeOptions_'][_0x3c0fbf(0xdf)](this[_0x3c0fbf(0xba)][_0x3c0fbf(0xc9)],helper[_0x3c0fbf(0xce)](_0x38b8a6,_0x525392[_0xf5c5f3])));break;case _0x2b6098[_0x3c0fbf(0x12f)]:case _0x2b6098[_0x3c0fbf(0xd9)]:this[_0x3c0fbf(0xe3)]&&(_0x38b8a6=this['firefoxOptions_']['get'](this[_0x3c0fbf(0xe3)][_0x3c0fbf(0xc9)])||{},this[_0x3c0fbf(0xe3)][_0x3c0fbf(0xdf)](this[_0x3c0fbf(0xe3)][_0x3c0fbf(0xc9)],helper['mergeDeep'](_0x38b8a6,_0x525392[_0xf5c5f3])));break;case _0x2b6098['Cxdqe']:this[_0x3c0fbf(0xc7)]&&(_0x38b8a6=this[_0x3c0fbf(0xc7)][_0x3c0fbf(0xd6)](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x3c0fbf(0xc7)][_0x3c0fbf(0xdf)](this[_0x3c0fbf(0xc7)][_0x3c0fbf(0xc9)],helper[_0x3c0fbf(0xce)](_0x38b8a6,_0x525392[_0xf5c5f3])));break;case _0x2b6098[_0x3c0fbf(0xc3)]:case _0x2b6098[_0x3c0fbf(0xf9)]:this[_0x3c0fbf(0xbd)]&&(_0x38b8a6=this['ieOptions_'][_0x3c0fbf(0xd6)](this[_0x3c0fbf(0xbd)][_0x3c0fbf(0xc9)])||{},this['ieOptions_'][_0x3c0fbf(0xdf)](this['ieOptions_'][_0x3c0fbf(0xc9)],helper['mergeDeep'](_0x38b8a6,_0x525392[_0xf5c5f3])));break;}}}[_0x173cf5(0x128)](){const _0x3548d2=_0x173cf5;return logger[_0x3548d2(0xec)](_0x2b6098[_0x3548d2(0x10e)]),this[_0x3548d2(0x131)](_0x3e5a13[_0x3548d2(0xc8)]),Object[_0x3548d2(0xe2)](_0x3e5a13[_0x3548d2(0xc8)])[_0x3548d2(0x125)](_0x95c328=>{const _0x30c7a6=_0x3548d2,_0x106e2a=this[_0x30c7a6(0xd1)][_0x30c7a6(0xd6)](_0x95c328);_0x2b6098[_0x30c7a6(0xda)](typeof _0x106e2a,_0x2b6098[_0x30c7a6(0x11a)])?this[_0x30c7a6(0xd1)][_0x30c7a6(0xdf)](_0x95c328,helper[_0x30c7a6(0xce)](_0x106e2a,_0x3e5a13[_0x30c7a6(0xc8)][_0x95c328])):this[_0x30c7a6(0xd1)]['set'](_0x95c328,_0x3e5a13[_0x30c7a6(0xc8)][_0x95c328]);}),this;}[_0x173cf5(0xbc)](){const _0x2fe8bd=_0x173cf5,_0xced6a7={'EGTPr':_0x2b6098[_0x2fe8bd(0xc6)],'hWfNo':_0x2b6098[_0x2fe8bd(0x12e)],'VdDeX':function(_0x548881,_0x363e55,_0x19fb79){const _0x4d5f4f=_0x2fe8bd;return _0x2b6098[_0x4d5f4f(0xfa)](_0x548881,_0x363e55,_0x19fb79);}};if(helper['isBrowserstackInfra']()){const _0x495a54=_0x2b6098[_0x2fe8bd(0x101)][_0x2fe8bd(0x121)]('|');let _0xab0eec=0x0;while(!![]){switch(_0x495a54[_0xab0eec++]){case'0':this['setCapabilities']();continue;case'1':this[_0x2fe8bd(0xd0)]();continue;case'2':globals[_0x2fe8bd(0x119)](_0x2b6098[_0x2fe8bd(0x110)])&&(!_0x2b6098[_0x2fe8bd(0x124)](setExtension,this,_0x3e5a13)&&globals[_0x2fe8bd(0x104)](_0x2b6098['VZjuB'],![]));continue;case'3':logger[_0x2fe8bd(0xec)](_0x2b6098[_0x2fe8bd(0xfb)]);continue;case'4':_0x2b6098[_0x2fe8bd(0x107)](isAccessibilityAutomationSession)&&_0x2b6098[_0x2fe8bd(0xc0)](setAccessibilityCapabilities,_0x3e5a13);continue;case'5':if(helper[_0x2fe8bd(0x112)](_0x3e5a13[_0x2fe8bd(0xfe)][_0x2fe8bd(0x12d)]))this[_0x2fe8bd(0x11c)]=helper[_0x2fe8bd(0xdb)](_0x3e5a13[_0x2fe8bd(0xfe)][_0x2fe8bd(0x12d)]);else _0x3e5a13[_0x2fe8bd(0xfe)][_0x2fe8bd(0x12d)]&&(this['proxy_']=_0x3e5a13['proxySettings'][_0x2fe8bd(0x12d)],logger[_0x2fe8bd(0xec)]('Proxy\x20set\x20to\x20'+this['proxy_']));continue;}break;}}const _0x5f2a1a=super[_0x2fe8bd(0xbc)]();return _0x5f2a1a[_0x2fe8bd(0x102)][_0x2fe8bd(0x105)](_0x31ec45=>{const _0x2c3d7c=_0x2fe8bd;try{const _0x356245=_0x31ec45[_0x2c3d7c(0xe9)][_0x2c3d7c(0xd6)](_0xced6a7['EGTPr']);_0x356245?(logger['debug'](_0x2c3d7c(0xdc)+_0x356245),hubAllocator[_0x2c3d7c(0x12c)](_0x356245),helper['storeOptimalHubUrl'](_0x356245)):logger[_0x2c3d7c(0xec)](_0xced6a7[_0x2c3d7c(0xbe)]);}catch(_0x449658){logger[_0x2c3d7c(0xec)](_0x2c3d7c(0x129)+_0x449658);}}),_0x5f2a1a['quitCount_']=0x0,_0x5f2a1a[_0x2fe8bd(0x105)]&&_0x5f2a1a[_0x2fe8bd(0x105)](_0x310371=>{const _0x348c55=_0x2fe8bd,_0x4f3346=_0x2b6098[_0x348c55(0xcc)]['split']('|');let _0x243ae7=0x0;while(!![]){switch(_0x4f3346[_0x243ae7++]){case'0':_0x310371[_0x348c55(0xca)]=async()=>{return await _0xced6a7['VdDeX'](getAccessibilityResults,_0x310371,global);};continue;case'1':_0x310371[_0x348c55(0xee)]=async()=>{const _0x597625=_0x348c55;return await _0xced6a7[_0x597625(0xff)](getAccessibilityResultsSummary,_0x310371,global);};continue;case'2':helper[_0x348c55(0xd8)](_0x310371,_0x3e5a13);continue;case'3':_0x2b6098['TEDQx'](overrideTakeScreenshot,_0x310371);continue;case'4':_0x2b6098[_0x348c55(0x124)](overrideQuit,_0x310371,_0x5f2a1a);continue;case'5':_0x2b6098[_0x348c55(0x124)](overrideExecute,_0x310371,_0x3e5a13);continue;}break;}}),_0x5f2a1a[_0x2fe8bd(0xee)]=async()=>{return await _0xced6a7['VdDeX'](getAccessibilityResultsSummary,_0x5f2a1a,global);},_0x5f2a1a['getAccessibilityResults']=async()=>{const _0x1b5f98=_0x2fe8bd;return await _0x2b6098[_0x1b5f98(0x126)](getAccessibilityResults,_0x5f2a1a,global);},_0x2b6098['aHtaE'](overrideTakeScreenshot,_0x5f2a1a),_0x2b6098['VxikH'](overrideQuit,_0x5f2a1a),helper[_0x2fe8bd(0xd8)](_0x5f2a1a,_0x3e5a13),_0x2b6098[_0x2fe8bd(0xf3)](overrideExecute,_0x5f2a1a,_0x3e5a13),helper[_0x2fe8bd(0xc1)](global[_0x2fe8bd(0x106)])&&(global[_0x2fe8bd(0x106)]=[]),helper[_0x2fe8bd(0xc1)](global[_0x2fe8bd(0xc5)])&&(global['__drivers']=[]),global[_0x2fe8bd(0x106)][_0x2fe8bd(0xbb)](_0x5f2a1a),global[_0x2fe8bd(0xcb)]=_0x5f2a1a,_0x2b6098[_0x2fe8bd(0x10c)](global['__drivers'],undefined)&&global['__drivers'][_0x2fe8bd(0xbb)](_0x5f2a1a),_0x5f0c05&&helper[_0x2fe8bd(0xc1)](_0x5f0c05[_0x2fe8bd(0x114)][_0x2fe8bd(0x106)])&&(_0x5f0c05[_0x2fe8bd(0x114)][_0x2fe8bd(0x106)]=[]),_0x5f0c05&&_0x2b6098[_0x2fe8bd(0x11d)](_0x5f0c05[_0x2fe8bd(0x114)][_0x2fe8bd(0xc5)],undefined)&&(_0x5f0c05[_0x2fe8bd(0x114)][_0x2fe8bd(0xc5)][_0x2fe8bd(0xbb)](_0x5f2a1a),_0x5f0c05['global']['__driversArray']['push'](_0x5f2a1a)),_0x5f2a1a;}}return _0x2ad076['originalBuilder']=_0x2ad076[_0x173cf5(0x11f)],_0x2ad076[_0x173cf5(0x11f)]=_0x45c248,_0x5e497e[_0x173cf5(0x111)]=_0x1c0640,_0x2ad076;};function a33_0x586f(_0x5dc7b4,_0x2dd917){const _0x3b25c4=a33_0x3b25();return a33_0x586f=function(_0x586f8c,_0xc722c4){_0x586f8c=_0x586f8c-0xb7;let _0x1cbf64=_0x3b25c4[_0x586f8c];return _0x1cbf64;},a33_0x586f(_0x5dc7b4,_0x2dd917);}module['exports'][a33_0x22448e(0xf1)]=modify;function a33_0x3b25(){const _0x52e01a=['caps_','path','firefoxOptions','debug','Modifying\x20webdriver\x20builder','getAccessibilityResultsSummary','140AMTIPu','313078gUZgkS','browserstackAgentObservability','45336nORTbX','volGs','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','ieOptions','safari.options','588axSHAf','416409kemjKR','bKXES','WvdCn','RGxQe','../../../hubAllocationMethods','9111720NXrmuV','proxySettings','VdDeX','Setting\x20Browserstack\x20capabilities','WZpVe','session_','send','setGlobal','then','__driversArray','amSsV','/session','NVeyp','fzUri','42205BYSUGM','aaIOh','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','qofIe','1164636CaDdxK','VZjuB','HttpClient','isPacProxy','uaYxW','global','logLevel','ggVhL','5859045HpndFu','../../../helpers/helper','getGlobal','bLoZG','2ZXzsGt','agent_','bySFU','originalBuilder','Builder','DJYAI','split','Hub\x20url\x20set\x20to\x20','4|1|0|5|2|3','gBTQC','forEach','ybbrp','requireHttpClient','setCapabilities','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','getRequestOptions','newHubUrl','updateHubUrl','proxyUrl','gGYVf','lyxmk','VrLkE','__setBrowserOptions','4|3|2|5|1|0','xUtBf','../../../helpers/logger','edgeOptions_','push','build','ieOptions_','hWfNo','setLogLevel','TEDQx','isUndefined','../../../bin/utils/constants','xLDsA','New\x20hub\x20url\x20set\x20to\x20','__drivers','jzPUj','safariOptions_','capability','CAPABILITY_KEY','getAccessibilityResults','__driver','RhRXl','error','mergeDeep','../../../helpers/patchHelpers','setServer','capabilities_','../accessibility-automation/helper','../../../helpers/accessibility-automation/helper','url_','chromeOptions_','get','./helpers/patchHelper','overrideGet','pnFEI','Bckdq','getHttpAgent','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','browserStackLogLevel','lzRUW','set','getHubUrl','BQZhm','keys','firefoxOptions_','winstonLogger','dWadP','chromeOptions','isAccessibilityPlatform','edgeOptions'];a33_0x3b25=function(){return _0x52e01a;};return a33_0x3b25();}
|
|
1
|
+
function a33_0x2069(_0x21961c,_0x28045f){const _0x402086=a33_0x4020();return a33_0x2069=function(_0x20694b,_0x50b39b){_0x20694b=_0x20694b-0x17e;let _0x2612dd=_0x402086[_0x20694b];return _0x2612dd;},a33_0x2069(_0x21961c,_0x28045f);}const a33_0x312590=a33_0x2069;(function(_0x2fe4a1,_0x186f58){const _0x4b295b=a33_0x2069,_0x29aeaa=_0x2fe4a1();while(!![]){try{const _0x57d20a=parseInt(_0x4b295b(0x1e3))/0x1+-parseInt(_0x4b295b(0x18a))/0x2*(parseInt(_0x4b295b(0x1de))/0x3)+parseInt(_0x4b295b(0x188))/0x4*(parseInt(_0x4b295b(0x1d7))/0x5)+-parseInt(_0x4b295b(0x1af))/0x6+parseInt(_0x4b295b(0x1c9))/0x7*(parseInt(_0x4b295b(0x184))/0x8)+parseInt(_0x4b295b(0x18b))/0x9+parseInt(_0x4b295b(0x1ca))/0xa*(-parseInt(_0x4b295b(0x1e5))/0xb);if(_0x57d20a===_0x186f58)break;else _0x29aeaa['push'](_0x29aeaa['shift']());}catch(_0xb49c17){_0x29aeaa['push'](_0x29aeaa['shift']());}}}(a33_0x4020,0x41a4b));const logger=require(a33_0x312590(0x1bd))[a33_0x312590(0x19c)],helper=require(a33_0x312590(0x19e)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a33_0x312590(0x1dc)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x312590(0x1c5)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x312590(0x1b1)),globals=require(a33_0x312590(0x189)),{overrideExecute}=require(a33_0x312590(0x1d9)),modify=(_0x3cff0b,_0x36b72e=null,_0x1e4910=![])=>{const _0x39e28c=a33_0x312590,_0x293b43={'nyTut':function(_0x136e00,_0x4ca76c){return _0x136e00!==_0x4ca76c;},'hbTjv':_0x39e28c(0x199),'vSjZt':function(_0x1a1d16,_0x1bd35e){return _0x1a1d16!==_0x1bd35e;},'RBppE':function(_0xfe0be4,_0x74bd46){return _0xfe0be4+_0x74bd46;},'bqWfI':function(_0x5e641e,_0x34a32f){return _0x5e641e+_0x34a32f;},'VGvkm':_0x39e28c(0x190),'VlJXK':_0x39e28c(0x1a3),'UaaDn':_0x39e28c(0x1c3),'GGXkE':'chromeOptions','mtcHI':'ms:edgeOptions','FJQOk':'edgeOptions','RsawN':'moz:firefoxOptions','GiZKW':_0x39e28c(0x1b2),'PfIoW':'safari.options','nJgnE':'se:ieOptions','THgtv':_0x39e28c(0x1cb),'wvXSG':function(_0x1bcdf3,_0x11ef70){return _0x1bcdf3===_0x11ef70;},'FSdyI':_0x39e28c(0x186),'HOsJf':_0x39e28c(0x1b7),'svjfF':_0x39e28c(0x18e),'nxytl':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','WjyoK':_0x39e28c(0x1ac),'qixyP':function(_0x481aa5,_0x2fd8dd,_0x3e6336){return _0x481aa5(_0x2fd8dd,_0x3e6336);},'tWksB':function(_0x48e3c9,_0x415f16){return _0x48e3c9(_0x415f16);},'XtDfr':function(_0xefc4ff,_0x3e8e5d,_0x20bb27){return _0xefc4ff(_0x3e8e5d,_0x20bb27);},'QerVg':_0x39e28c(0x193),'GuTsd':'isAccessibilityPlatform','JRHMj':function(_0x4ef669){return _0x4ef669();},'jUJKl':_0x39e28c(0x1eb),'gCnTA':function(_0x3bb38e,_0x36ac43){return _0x3bb38e(_0x36ac43);},'JmRLu':function(_0x4aa67d,_0x60c214){return _0x4aa67d!==_0x60c214;},'HaxUK':function(_0x5b07fe,_0x3f1468){return _0x5b07fe!==_0x3f1468;},'KXjtM':_0x39e28c(0x1e7),'DEmTY':_0x39e28c(0x19d)},_0x2ef8e0=helper[_0x39e28c(0x1ed)]();let _0x1cf6b9;try{_0x1cf6b9=helper['requireSeleniumWebdriver'](),_0x1cf6b9[_0x39e28c(0x1c7)]&&(_0x1cf6b9['Builder']=_0x1cf6b9[_0x39e28c(0x1c7)]);}catch(_0x1359d8){return;}if(helper[_0x39e28c(0x1b8)]()){const _0x2b89e3={};_0x2b89e3['logLevel']=_0x3cff0b[_0x39e28c(0x194)],helper['setLogLevel'](_0x2b89e3,new Map(),new Map()),logger[_0x39e28c(0x198)](_0x293b43[_0x39e28c(0x1e2)]),logger[_0x39e28c(0x1d8)](_0x293b43['DEmTY']);}class _0x38e821 extends _0x2ef8e0['HttpClient']{[_0x39e28c(0x1c4)](_0xfdb1af){const _0x2b8f46=_0x39e28c;if(_0x293b43[_0x2b8f46(0x183)](_0xfdb1af[_0x2b8f46(0x1e9)],_0x293b43[_0x2b8f46(0x1ab)])&&_0x293b43['vSjZt'](global[_0x2b8f46(0x1bc)],''))try{global[_0x2b8f46(0x1bc)]=_0x293b43[_0x2b8f46(0x1ea)](_0x293b43['bqWfI'](_0x293b43[_0x2b8f46(0x1cf)],global['newHubUrl']),_0x293b43[_0x2b8f46(0x17f)]),this['options_']=hubAllocator[_0x2b8f46(0x1bb)](global[_0x2b8f46(0x1bc)]),logger[_0x2b8f46(0x1d8)](_0x2b8f46(0x1a6)+global[_0x2b8f46(0x1bc)]),global[_0x2b8f46(0x1bc)]='';}catch(_0x6fe6f5){logger[_0x2b8f46(0x1a9)](_0x6fe6f5);}return super['send'](_0xfdb1af);}}class _0xe2c85a extends _0x1cf6b9[_0x39e28c(0x1c1)]{['setServer'](){const _0x3554a1=_0x39e28c;return this[_0x3554a1(0x1a7)]=helper['getHubUrl'](_0x3cff0b),logger[_0x3554a1(0x1d8)](_0x3554a1(0x1a0)+this[_0x3554a1(0x1a7)]),this;}['__setBrowserOptions'](_0x188bbc){const _0x534d8f=_0x39e28c;let _0x3f019c={};for(const _0x4ae6e1 in _0x188bbc){switch(_0x4ae6e1){case _0x293b43[_0x534d8f(0x1c2)]:case _0x293b43['GGXkE']:this['chromeOptions_']&&(_0x3f019c=this['chromeOptions_']['get'](this[_0x534d8f(0x1b5)][_0x534d8f(0x1f1)])||{},this['chromeOptions_'][_0x534d8f(0x1da)](this[_0x534d8f(0x1b5)][_0x534d8f(0x1f1)],helper[_0x534d8f(0x19a)](_0x3f019c,_0x188bbc[_0x4ae6e1])));break;case _0x293b43[_0x534d8f(0x1e0)]:case _0x293b43[_0x534d8f(0x18f)]:this[_0x534d8f(0x1ec)]&&(_0x3f019c=this[_0x534d8f(0x1ec)][_0x534d8f(0x181)](this[_0x534d8f(0x1ec)]['CAPABILITY_KEY'])||{},this[_0x534d8f(0x1ec)]['set'](this[_0x534d8f(0x1ec)][_0x534d8f(0x1f1)],helper[_0x534d8f(0x19a)](_0x3f019c,_0x188bbc[_0x4ae6e1])));break;case _0x293b43['RsawN']:case _0x293b43['GiZKW']:this[_0x534d8f(0x1a5)]&&(_0x3f019c=this[_0x534d8f(0x1a5)][_0x534d8f(0x181)](this[_0x534d8f(0x1a5)]['CAPABILITY_KEY'])||{},this[_0x534d8f(0x1a5)]['set'](this['firefoxOptions_'][_0x534d8f(0x1f1)],helper[_0x534d8f(0x19a)](_0x3f019c,_0x188bbc[_0x4ae6e1])));break;case _0x293b43[_0x534d8f(0x1d0)]:this[_0x534d8f(0x1e1)]&&(_0x3f019c=this[_0x534d8f(0x1e1)][_0x534d8f(0x181)](this[_0x534d8f(0x1e1)][_0x534d8f(0x1f1)])||{},this[_0x534d8f(0x1e1)][_0x534d8f(0x1da)](this[_0x534d8f(0x1e1)][_0x534d8f(0x1f1)],helper[_0x534d8f(0x19a)](_0x3f019c,_0x188bbc[_0x4ae6e1])));break;case _0x293b43[_0x534d8f(0x1aa)]:case _0x293b43[_0x534d8f(0x1b9)]:this[_0x534d8f(0x1bf)]&&(_0x3f019c=this[_0x534d8f(0x1bf)]['get'](this[_0x534d8f(0x1bf)][_0x534d8f(0x1f1)])||{},this[_0x534d8f(0x1bf)][_0x534d8f(0x1da)](this[_0x534d8f(0x1bf)][_0x534d8f(0x1f1)],helper['mergeDeep'](_0x3f019c,_0x188bbc[_0x4ae6e1])));break;}}}[_0x39e28c(0x1d4)](){const _0xbaf94d=_0x39e28c,_0x197285={'NKFLt':function(_0x87740,_0xd354ea){const _0x4daaa8=a33_0x2069;return _0x293b43[_0x4daaa8(0x1ef)](_0x87740,_0xd354ea);},'JoEbY':_0x293b43[_0xbaf94d(0x18c)]};return logger[_0xbaf94d(0x1d8)](_0x293b43['HOsJf']),this['__setBrowserOptions'](_0x3cff0b['capability']),Object[_0xbaf94d(0x1dd)](_0x3cff0b[_0xbaf94d(0x1c0)])[_0xbaf94d(0x1ad)](_0x19f71a=>{const _0x3593e2=_0xbaf94d,_0x1164ca=this['capabilities_'][_0x3593e2(0x181)](_0x19f71a);_0x197285['NKFLt'](typeof _0x1164ca,_0x197285['JoEbY'])?this[_0x3593e2(0x17e)][_0x3593e2(0x1da)](_0x19f71a,helper[_0x3593e2(0x19a)](_0x1164ca,_0x3cff0b[_0x3593e2(0x1c0)][_0x19f71a])):this[_0x3593e2(0x17e)][_0x3593e2(0x1da)](_0x19f71a,_0x3cff0b[_0x3593e2(0x1c0)][_0x19f71a]);}),this;}[_0x39e28c(0x1f0)](){const _0x32a12b=_0x39e28c,_0x32e724={'vxsEH':function(_0x315106,_0x4a3d98,_0x586aac){const _0x4fd6e4=a33_0x2069;return _0x293b43[_0x4fd6e4(0x1d5)](_0x315106,_0x4a3d98,_0x586aac);},'cujJh':function(_0x385862,_0xb5c28d,_0x40e3d7){const _0x37977e=a33_0x2069;return _0x293b43[_0x37977e(0x1d5)](_0x385862,_0xb5c28d,_0x40e3d7);}};if(helper['isBrowserstackInfra']()){const _0xa88ef6=_0x293b43[_0x32a12b(0x18d)][_0x32a12b(0x1db)]('|');let _0x2f12b4=0x0;while(!![]){switch(_0xa88ef6[_0x2f12b4++]){case'0':this[_0x32a12b(0x1d4)]();continue;case'1':if(helper[_0x32a12b(0x1d3)](_0x3cff0b[_0x32a12b(0x1e8)][_0x32a12b(0x1a4)]))this[_0x32a12b(0x1c8)]=helper['getHttpAgent'](_0x3cff0b['proxySettings'][_0x32a12b(0x1a4)]);else _0x3cff0b[_0x32a12b(0x1e8)][_0x32a12b(0x1a4)]&&(this[_0x32a12b(0x185)]=_0x3cff0b[_0x32a12b(0x1e8)]['proxyUrl'],logger[_0x32a12b(0x1d8)](_0x32a12b(0x191)+this[_0x32a12b(0x185)]));continue;case'2':globals[_0x32a12b(0x1df)](_0x293b43['GuTsd'])&&(!_0x293b43[_0x32a12b(0x1d5)](setExtension,this,_0x3cff0b)&&globals['setGlobal'](_0x293b43[_0x32a12b(0x192)],![]));continue;case'3':_0x293b43[_0x32a12b(0x19b)](isAccessibilityAutomationSession)&&_0x293b43[_0x32a12b(0x1d6)](setAccessibilityCapabilities,_0x3cff0b);continue;case'4':logger[_0x32a12b(0x1d8)](_0x293b43[_0x32a12b(0x1a2)]);continue;case'5':this[_0x32a12b(0x1a1)]();continue;}break;}}const _0x4651ff=super[_0x32a12b(0x1f0)]();return _0x4651ff[_0x32a12b(0x1c6)][_0x32a12b(0x1b4)](_0x1054ba=>{const _0x20a0ac=_0x32a12b;try{const _0x5decd9=_0x1054ba['caps_'][_0x20a0ac(0x181)](_0x293b43[_0x20a0ac(0x1b3)]);_0x5decd9?(logger[_0x20a0ac(0x1d8)](_0x20a0ac(0x180)+_0x5decd9),hubAllocator[_0x20a0ac(0x182)](_0x5decd9),helper['storeOptimalHubUrl'](_0x5decd9)):logger['debug'](_0x293b43['nxytl']);}catch(_0x43be76){logger[_0x20a0ac(0x1d8)](_0x20a0ac(0x196)+_0x43be76);}}),_0x4651ff[_0x32a12b(0x1d2)]=0x0,_0x4651ff[_0x32a12b(0x1b4)]&&_0x4651ff['then'](_0x21c100=>{const _0x50964c=_0x32a12b,_0x4cf53a=_0x293b43[_0x50964c(0x1cc)]['split']('|');let _0x3641bf=0x0;while(!![]){switch(_0x4cf53a[_0x3641bf++]){case'0':_0x21c100[_0x50964c(0x1ce)]=async()=>{const _0x51b6aa=_0x50964c;return await _0x32e724[_0x51b6aa(0x1be)](getAccessibilityResults,_0x21c100,global);};continue;case'1':_0x21c100[_0x50964c(0x195)]=async()=>{return await _0x32e724['vxsEH'](getAccessibilityResultsSummary,_0x21c100,global);};continue;case'2':_0x293b43['qixyP'](overrideExecute,_0x21c100,_0x3cff0b);continue;case'3':_0x293b43[_0x50964c(0x1e4)](overrideQuit,_0x21c100,_0x4651ff);continue;case'4':helper[_0x50964c(0x197)](_0x21c100,_0x3cff0b);continue;case'5':_0x293b43[_0x50964c(0x1d6)](overrideTakeScreenshot,_0x21c100);continue;}break;}}),_0x4651ff[_0x32a12b(0x195)]=async()=>{return await _0x293b43['qixyP'](getAccessibilityResultsSummary,_0x4651ff,global);},_0x4651ff['getAccessibilityResults']=async()=>{const _0x186e2a=_0x32a12b;return await _0x32e724[_0x186e2a(0x1be)](getAccessibilityResults,_0x4651ff,global);},_0x293b43[_0x32a12b(0x1d6)](overrideTakeScreenshot,_0x4651ff),_0x293b43[_0x32a12b(0x1ba)](overrideQuit,_0x4651ff),helper[_0x32a12b(0x197)](_0x4651ff,_0x3cff0b),_0x293b43[_0x32a12b(0x1e4)](overrideExecute,_0x4651ff,_0x3cff0b),helper[_0x32a12b(0x1e6)](global[_0x32a12b(0x19f)])&&(global['__driversArray']=[]),helper['isUndefined'](global['__drivers'])&&(global['__drivers']=[]),global[_0x32a12b(0x19f)][_0x32a12b(0x1ee)](_0x4651ff),global[_0x32a12b(0x1b6)]=_0x4651ff,_0x293b43[_0x32a12b(0x1ae)](global[_0x32a12b(0x1b0)],undefined)&&global[_0x32a12b(0x1b0)][_0x32a12b(0x1ee)](_0x4651ff),_0x36b72e&&helper['isUndefined'](_0x36b72e[_0x32a12b(0x187)][_0x32a12b(0x19f)])&&(_0x36b72e[_0x32a12b(0x187)][_0x32a12b(0x19f)]=[]),_0x36b72e&&_0x293b43[_0x32a12b(0x1a8)](_0x36b72e[_0x32a12b(0x187)]['__drivers'],undefined)&&(_0x36b72e[_0x32a12b(0x187)][_0x32a12b(0x1b0)][_0x32a12b(0x1ee)](_0x4651ff),_0x36b72e['global'][_0x32a12b(0x19f)]['push'](_0x4651ff)),_0x4651ff;}}return _0x1cf6b9['originalBuilder']=_0x1cf6b9[_0x39e28c(0x1c1)],_0x1cf6b9['Builder']=_0xe2c85a,_0x2ef8e0[_0x39e28c(0x1d1)]=_0x38e821,_0x1cf6b9;};function a33_0x4020(){const _0x512afb=['winstonLogger','Modifying\x20webdriver\x20builder','../../../helpers/helper','__driversArray','Hub\x20url\x20set\x20to\x20','setServer','jUJKl','/wd/hub','proxyUrl','firefoxOptions_','New\x20hub\x20url\x20set\x20to\x20','url_','HaxUK','error','nJgnE','hbTjv','3|5|4|2|1|0','forEach','JmRLu','2778624qaPsfg','__drivers','../../../helpers/accessibility-automation/helper','firefoxOptions','svjfF','then','chromeOptions_','__driver','Setting\x20Browserstack\x20capabilities','isBrowserstackInfra','THgtv','gCnTA','getRequestOptions','newHubUrl','../../../helpers/logger','cujJh','ieOptions_','capability','Builder','UaaDn','goog:chromeOptions','send','../../../helpers/patchHelpers','session_','originalBuilder','agent_','295946RtejTP','10pEIRRL','ieOptions','WjyoK','exports','getAccessibilityResults','VGvkm','PfIoW','HttpClient','quitCount_','isPacProxy','setCapabilities','XtDfr','tWksB','60245NZJPJs','debug','./helpers/patchHelper','set','split','../../../hubAllocationMethods','keys','3lDeqRV','getGlobal','mtcHI','safariOptions_','KXjtM','397762kdwoXo','qixyP','467401wlnbyf','isUndefined','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','proxySettings','path','RBppE','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','edgeOptions_','requireHttpClient','push','wvXSG','build','CAPABILITY_KEY','capabilities_','VlJXK','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','get','updateHubUrl','nyTut','8YgoXqx','proxy_','object','global','108biSaUJ','../../../helpers/globals','1004306BzPaES','4601340tDNgtS','FSdyI','QerVg','optimalHubUrl','FJQOk','https://','Proxy\x20set\x20to\x20','GuTsd','3|5|0|1|2|4','browserStackLogLevel','getAccessibilityResultsSummary','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','overrideGet','info','/session','mergeDeep','JRHMj'];a33_0x4020=function(){return _0x512afb;};return a33_0x4020();}module[a33_0x312590(0x1cd)]['browserstackAgentObservability']=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a34_0x55df(_0x1c6f7e,_0x29379d){const _0x503c72=a34_0x503c();return a34_0x55df=function(_0x55df1,_0x505628){_0x55df1=_0x55df1-0x1c8;let _0x245980=_0x503c72[_0x55df1];return _0x245980;},a34_0x55df(_0x1c6f7e,_0x29379d);}const a34_0x1d181b=a34_0x55df;(function(_0x18c93d,_0x2b936a){const _0x189742=a34_0x55df,_0x19aa1d=_0x18c93d();while(!![]){try{const _0xefc72=-parseInt(_0x189742(0x1d4))/0x1+-parseInt(_0x189742(0x1cc))/0x2*(parseInt(_0x189742(0x1cf))/0x3)+parseInt(_0x189742(0x1d7))/0x4*(-parseInt(_0x189742(0x1d1))/0x5)+parseInt(_0x189742(0x1d0))/0x6+-parseInt(_0x189742(0x1c8))/0x7+-parseInt(_0x189742(0x1d3))/0x8*(-parseInt(_0x189742(0x1cb))/0x9)+-parseInt(_0x189742(0x1d5))/0xa*(-parseInt(_0x189742(0x1d6))/0xb);if(_0xefc72===_0x2b936a)break;else _0x19aa1d['push'](_0x19aa1d['shift']());}catch(_0x2afc1e){_0x19aa1d['push'](_0x19aa1d['shift']());}}}(a34_0x503c,0x1d490));function a34_0x503c(){const _0x85150=['288600OFTmdB','3605fbYiUz','timeout','83696CvfBbU','1692dCLJqT','10yVXqhq','3165437xfopvc','548uAAnfq','263739mAxPfo','../../../helpers/request-spy','rZKeQ','27pfkEWC','190jqFzhD','../../../helpers/test-observability/utils','../../../bin/utils/constants','3447UxBPKJ'];a34_0x503c=function(){return _0x85150;};return a34_0x503c();}const requestSpy=require(a34_0x1d181b(0x1c9)),constants=require(a34_0x1d181b(0x1ce)),{addRequestSpy}=require(a34_0x1d181b(0x1cd));exports['mochaHooks']={'beforeAll'(){const _0xbe22d9=a34_0x1d181b,_0x1c73ae={'rZKeQ':function(_0x565727){return _0x565727();}},_0x50eabf='browserstack internal helper hook';_0x1c73ae[_0xbe22d9(0x1ca)](addRequestSpy);},'afterAll'(){const _0xee070a=a34_0x1d181b,_0x3da4f9='browserstack internal helper hook';this[_0xee070a(0x1d2)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0x532327=a35_0x1ba0;(function(_0x326e6e,_0x2a917c){const _0x1522ad=a35_0x1ba0,_0xd86409=_0x326e6e();while(!![]){try{const _0x1251a4=parseInt(_0x1522ad(0x13e))/0x1*(parseInt(_0x1522ad(0x114))/0x2)+parseInt(_0x1522ad(0x152))/0x3*(parseInt(_0x1522ad(0x14a))/0x4)+parseInt(_0x1522ad(0x146))/0x5+-parseInt(_0x1522ad(0x141))/0x6*(-parseInt(_0x1522ad(0x134))/0x7)+-parseInt(_0x1522ad(0x14f))/0x8*(parseInt(_0x1522ad(0x107))/0x9)+-parseInt(_0x1522ad(0x103))/0xa*(-parseInt(_0x1522ad(0x15f))/0xb)+-parseInt(_0x1522ad(0x156))/0xc;if(_0x1251a4===_0x2a917c)break;else _0xd86409['push'](_0xd86409['shift']());}catch(_0x20e096){_0xd86409['push'](_0xd86409['shift']());}}}(a35_0x4c68,0x69a9d));const {v4:uuidv4}=require(a35_0x532327(0x113)),{name,version}=require(a35_0x532327(0x104)),logPatcher=require(a35_0x532327(0x10a)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a35_0x532327(0x11d)),{consoleHolder}=require(a35_0x532327(0x126)),{getPlatformVersion}=require(a35_0x532327(0x11f)),{shouldProcessEventForTesthub}=require(a35_0x532327(0x15e)),{isFunction}=require(a35_0x532327(0x108)),{patchConsoleLogger}=require(a35_0x532327(0x11d));function a35_0x1ba0(_0x43bdb8,_0x2cc14f){const _0x4c6844=a35_0x4c68();return a35_0x1ba0=function(_0x1ba0ec,_0x19d9fe){_0x1ba0ec=_0x1ba0ec-0x101;let _0x16a208=_0x4c6844[_0x1ba0ec];return _0x16a208;},a35_0x1ba0(_0x43bdb8,_0x2cc14f);}function a35_0x4c68(){const _0x3f1ddf=['bs:addPlatformDetails:','toISOString','EkHSB','_beforeAll','pPYlN','WMohm','passed','11666jefJcB','type','tphvr','20166QXJpyl','indexOf','uonei','parent','__cloud_provider___','1125280uzIqxe','split','get','KNmuU','96rTktKX','getHooksForTest','tests','js-','jmyMg','1561832VLviKR','Ulnof','BcEoV','4143YYGxTc','_afterAll','NeaXR','forEach','854808czbtze','XpKhA','getTestEnv','hook','reduce','CXBQN','platformVersion','ckAEh','../../../helpers/testhub/utils','8261lxrfcP','ApZDm','_afterEach','6350ZFZHbM','../../../../package.json','rhDEj','substring','36ORmXUE','lodash','TEST_PLATFORM','../../utils/logPatcher','mapTestHooks','getHookSkippedTests','BvrAf','BVzty','wdhON','map_','sendPlatformDetails','ICYiw','uuid','62GpfGmX','aLvEK','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','state','fromEntries','LAFfT','hook:','concat','jIPQs','../../../helpers/test-observability/utils','RzWxx','../../../helpers/helper','failed','getPlatform','pending','IRsGu','judYk','slice','../../../helpers/test-observability/constants','PTrgP','_beforeEach','browserstack','SOZGa','iJKfC','igdPq','qfnJJ','hookAnalyticsId','VWlfX','CaZpW','getCapabilities','getSession','toJSON','392poJDDo','getBrowserVersion','getHookDetails'];a35_0x4c68=function(){return _0x3f1ddf;};return a35_0x4c68();}patchConsoleLogger(),exports[a35_0x532327(0x158)]=()=>{const _0x3e1385=a35_0x532327,_0x553690={'VWlfX':'generic','qfnJJ':function(_0x5a9f04){return _0x5a9f04();}};return{'ci':_0x553690[_0x3e1385(0x12f)],'key':_0x553690[_0x3e1385(0x12d)](uuidv4),'version':version,'collector':_0x3e1385(0x14d)+name};},exports[a35_0x532327(0x136)]=_0x218500=>{const _0x5bf81d=a35_0x532327,_0x150da5={};_0x150da5[_0x5bf81d(0x119)]=function(_0x5bb77c,_0x3d2cf3){return _0x5bb77c!==_0x3d2cf3;},_0x150da5['PTrgP']='string',_0x150da5[_0x5bf81d(0x143)]=_0x5bf81d(0x11a),_0x150da5[_0x5bf81d(0x130)]=function(_0x305a3d,_0x27afb7){return _0x305a3d!==_0x27afb7;},_0x150da5[_0x5bf81d(0x115)]=_0x5bf81d(0x159);const _0x34cfac=_0x150da5;if(!_0x218500||_0x34cfac['LAFfT'](typeof _0x218500,_0x34cfac[_0x5bf81d(0x127)]))return[null,null];if(_0x34cfac[_0x5bf81d(0x119)](_0x218500[_0x5bf81d(0x142)](_0x34cfac[_0x5bf81d(0x143)]),-0x1)){const _0x2110ad=_0x218500[_0x5bf81d(0x147)](_0x34cfac['uonei']);return[_0x2110ad[0x0][_0x5bf81d(0x125)](0x0,-0x1)[_0x5bf81d(0x147)]('\x22')[0x1],_0x2110ad[0x1][_0x5bf81d(0x106)](0x1)];}else{if(_0x34cfac[_0x5bf81d(0x130)](_0x218500[_0x5bf81d(0x142)](_0x34cfac['aLvEK']),-0x1)){const _0x256d2f=_0x218500[_0x5bf81d(0x147)](_0x34cfac['aLvEK']);return[_0x256d2f[0x0][_0x5bf81d(0x125)](0x0,-0x1)['split']('\x22')[0x1],_0x218500];}}return[null,null];},exports[a35_0x532327(0x14b)]=_0x2f4bf8=>{const _0x430ccd=a35_0x532327,_0x40f3ce={'iJKfC':function(_0x37fb18,_0x5de9cb){return _0x37fb18(_0x5de9cb);},'rhDEj':_0x430ccd(0x13a),'onTQi':_0x430ccd(0x153),'ApZDm':_0x430ccd(0x128),'pPYlN':_0x430ccd(0x102)};if(!_0x2f4bf8||!_0x2f4bf8[_0x430ccd(0x144)])return[];const _0x5ab8c2=[];return[_0x40f3ce[_0x430ccd(0x105)],_0x40f3ce['onTQi'],_0x40f3ce[_0x430ccd(0x101)],_0x40f3ce[_0x430ccd(0x13b)]]['forEach'](_0x4ed915=>{const _0x5bd961=_0x430ccd,_0x558ad9=_0x2f4bf8[_0x5bd961(0x144)][_0x4ed915]||[];_0x558ad9[_0x5bd961(0x155)](_0x21e391=>{const _0x42b698=_0x5bd961;_0x21e391['hookAnalyticsId']&&!_0x40f3ce[_0x42b698(0x12b)](isInternalHook,_0x21e391['fn'])&&_0x5ab8c2['push'](_0x21e391['hookAnalyticsId']);});}),[..._0x5ab8c2,...exports[_0x430ccd(0x14b)](_0x2f4bf8['parent'])];},exports[a35_0x532327(0x10b)]=_0x5aa7c9=>{const _0x50aeec=a35_0x532327,_0xe47c1e={'EkHSB':function(_0x4fc0b7){return _0x4fc0b7();},'tphvr':function(_0x226b6e,_0x51e6e3){return _0x226b6e===_0x51e6e3;},'Ulnof':_0x50aeec(0x102),'ICYiw':_0x50aeec(0x13a),'PVFfF':_0x50aeec(0x153),'NeaXR':_0x50aeec(0x128)};if(!_0x5aa7c9||!_0x5aa7c9['parent'])return;[_0xe47c1e[_0x50aeec(0x112)],_0xe47c1e['PVFfF'],_0xe47c1e[_0x50aeec(0x154)],_0xe47c1e[_0x50aeec(0x150)]][_0x50aeec(0x155)](_0x21c434=>{const _0x29ad6d=_0x50aeec,_0x487b17={'BVzty':function(_0x16ca7e){const _0x228fd5=a35_0x1ba0;return _0xe47c1e[_0x228fd5(0x139)](_0x16ca7e);},'wdhON':function(_0x428623,_0x22eca3){const _0x410888=a35_0x1ba0;return _0xe47c1e[_0x410888(0x140)](_0x428623,_0x22eca3);},'jIPQs':_0xe47c1e[_0x29ad6d(0x150)],'XpKhA':function(_0x4a194a){const _0x390d8b=_0x29ad6d;return _0xe47c1e[_0x390d8b(0x139)](_0x4a194a);}},_0x12e8c4=_0x5aa7c9[_0x29ad6d(0x144)][_0x21c434]||[];_0x12e8c4[_0x29ad6d(0x155)](_0x53f907=>{const _0x1ce18a=_0x29ad6d;if(!_0x53f907[_0x1ce18a(0x12e)])_0x53f907[_0x1ce18a(0x12e)]=_0x487b17[_0x1ce18a(0x10e)](uuidv4);else _0x53f907['markedStatus']&&_0x487b17[_0x1ce18a(0x10f)](_0x21c434,_0x487b17[_0x1ce18a(0x11c)])&&(_0x53f907[_0x1ce18a(0x12e)]=_0x487b17[_0x1ce18a(0x157)](uuidv4),delete _0x53f907['markedStatus']);});}),exports['mapTestHooks'](_0x5aa7c9[_0x50aeec(0x144)]);},exports[a35_0x532327(0x111)]=async(_0x4161e2,_0x2144c9)=>{const _0x13c15e=a35_0x532327,_0x1bf285={'jmyMg':function(_0x3793eb){return _0x3793eb();},'ckAEh':function(_0x334d43,_0x2f07f8){return _0x334d43(_0x2f07f8);},'IRsGu':_0x13c15e(0x15c),'igdPq':function(_0x48c7d4,_0x936057){return _0x48c7d4(_0x936057);},'WMohm':function(_0x3a3818,_0x1ccbd5){return _0x3a3818===_0x1ccbd5;},'kRFvB':_0x13c15e(0x129),'BvrAf':'unknown_grid','judYk':_0x13c15e(0x109),'ADWbt':function(_0x3fb4f7,_0x29f008){return _0x3fb4f7(_0x29f008);}};try{if(!_0x1bf285[_0x13c15e(0x14e)](shouldProcessEventForTesthub))return;const _0x5af230=await _0x4161e2[_0x13c15e(0x131)](),_0x3ab783=await _0x4161e2[_0x13c15e(0x132)](),_0x4e4c2f={},_0xdeb4ce=Object[_0x13c15e(0x118)](_0x3ab783[_0x13c15e(0x131)]()[_0x13c15e(0x110)]),_0x4d27e9={'product':_0x1bf285[_0x13c15e(0x15d)](getObservabilityLinkedProductName,_0xdeb4ce),'capabilities':_0xdeb4ce,'platform':_0x5af230[_0x13c15e(0x121)](),'platform_version':_0x5af230[_0x13c15e(0x148)](_0x1bf285[_0x13c15e(0x123)])?_0x5af230[_0x13c15e(0x148)](_0x1bf285[_0x13c15e(0x123)]):_0x1bf285[_0x13c15e(0x12c)](getPlatformVersion,_0x1bf285[_0x13c15e(0x13c)](global['__cloud_provider___'],_0x1bf285['kRFvB'])),'browser':_0x5af230['getBrowserName'](),'browser_version':_0x5af230[_0x13c15e(0x135)](),'session_id':_0x3ab783[_0x13c15e(0x133)]()};global[_0x13c15e(0x145)]?_0x4e4c2f[global[_0x13c15e(0x145)]]=_0x4d27e9:_0x4e4c2f[_0x1bf285[_0x13c15e(0x10d)]]=_0x4d27e9,process['emit'](_0x13c15e(0x137)+process['pid'],{'timestamp':new Date()[_0x13c15e(0x138)](),'level':null,'message':null,'kind':_0x1bf285[_0x13c15e(0x124)],'http_response':_0x4e4c2f,'uuid':_0x2144c9});}catch(_0x42e61b){_0x1bf285['ADWbt'](debug,_0x13c15e(0x116)+_0x42e61b);}},exports[a35_0x532327(0x10c)]=_0x28a8ec=>{const _0x4e6a1d=a35_0x532327,_0x22519c={};_0x22519c[_0x4e6a1d(0x149)]=function(_0x5c0b2f,_0x57e926){return _0x5c0b2f!==_0x57e926;},_0x22519c[_0x4e6a1d(0x12a)]=_0x4e6a1d(0x159),_0x22519c[_0x4e6a1d(0x11e)]=_0x4e6a1d(0x13d),_0x22519c['CXBQN']=function(_0x78849f,_0x5730ea){return _0x78849f!==_0x5730ea;},_0x22519c[_0x4e6a1d(0x151)]=_0x4e6a1d(0x120);const _0x183823=_0x22519c,_0x38728f=_0x28a8ec['suites'][_0x4e6a1d(0x15a)]((_0x262aaa,_0x4cf34f)=>{const _0x6d95b8=_0x4e6a1d,_0x2cca8b=exports[_0x6d95b8(0x10c)](_0x4cf34f);return _0x2cca8b&&(_0x262aaa=_0x262aaa['concat'](_0x2cca8b)),_0x262aaa;},[]),_0x14eac0=_0x28a8ec[_0x4e6a1d(0x14c)]['filter'](_0x538499=>{const _0x7fa7da=_0x4e6a1d,_0x3df573=_0x183823[_0x7fa7da(0x149)](_0x538499[_0x7fa7da(0x13f)],_0x183823[_0x7fa7da(0x12a)])&&!_0x538499['markedStatus']&&_0x183823[_0x7fa7da(0x149)](_0x538499[_0x7fa7da(0x117)],_0x183823[_0x7fa7da(0x11e)])&&_0x183823[_0x7fa7da(0x15b)](_0x538499[_0x7fa7da(0x117)],_0x183823[_0x7fa7da(0x151)])&&!_0x538499[_0x7fa7da(0x122)];return _0x3df573;});return _0x14eac0[_0x4e6a1d(0x11b)](_0x38728f);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a36_0x594d(){const _0x5d1164=['Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','executeScript','GWLSl','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','grFqi','SESSION_STATUS','error','ZtNFY','yIUUz','yLHMl','AoONT','yWrYY','getGlobal','351LgWkGP','mJUgR','ZKgLV','../utils/constants','Eyhhm','browserstackTestName','lRhSG','capabilities','percyCaptureMode','hSUXp','xtlWm','mgCcV','QSpiW','beforeEach','2963666wXYfte','hmIgD','../../helpers/testhub/utils','accessibilityScanStarted','sbylK','PGNUp','protocol','SYNC','start','wFISi','\x20-\x20','message','measureWrapper','BsFYA','initQuit','fauRm','../../helpers/accessibility-automation/helper','../../helpers/logger','aAnCL','gpnLk','LeVVe','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','Mocha','currentTest','../../helpers/performance/constants','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','UDIIJ','876398rMEnju','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','trWKg','isArray','failed','thJwtToken','kujfE','beforeAll','SESSION_NAME','kEQZm','ScRmJ','afterAll','WUOAJ','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','WLDlL','env','sessionName','oYdqD','SaoyI','ORPVq','gTskl','1595iMlqFv','XnkWv','HOFQv','.\x20Error\x20:','3336545HLLbPo','TCBMs','timeout','__platformCaps','CeQGk','TpgsC','BROWSERSTACK_TESTHUB_JWT','BROWSERSTACK_TESTHUB_UUID','titlePath','aBqgJ','PSmQg','sGfgp','err','__drivers','isAccessibilityPlatform','Knaog','state','performScanWithRetry','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','FnKAj','yQDgv','../../helpers/testhub/constants','../../helpers/percy/utils','Mkitj','OManG','../../helpers/accessibility-automation/accessibilityRetryHelper','gmwat','util','Accessibility\x20results\x20saved\x20successfully','testAnalyticsId','../../helpers/performance/performance-tester','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','DwKHH','YMlAI','lauSD','__error_messages__','tRCyy','rixBf','../../helpers/globals','end','rBlme','format','JWJux','now','emCPh','__sessionFailed','thBuildUuid','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','ENV_VAR','Passed','bstackA11yShouldScan','info','debug','SDsiB','shift','287568mxymhV','sessionNameSet__','__skipSessionName','muxdk','afterTest','DTnMu','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','XRTUQ','sIMJW','Automate\x20test\x20case\x20execution\x20has\x20started.','faHBV','./test-observability/mochaUtils','percy','yxYxH','wPmSB','app','http:','IWeIW','12RpFauj','index','winstonLogger','driverCleanup','kyVBh','hVGNU','Failed:\x20','testcase','BZTmy','KJKnh','Failed\x20to\x20store\x20session\x20name:\x20','then','mEHkC','SDK_HOOK','ntmty','stringify','5012JOhECo','3950212UUZoOF','nGXSu','lQrEc','setGlobal','command','EVkCx','warn','3012nVamwQ','\x20|\x20','xMFLq','oGdci','95440AUIKFb','ObservabilitySync:','join','lIOGT','quitCount_','QUuzz','afterEach','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','sHbqb','length','startMonitoring','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','kycSK','push','\x22}}','shouldScanTestForAccessibility','Zobke','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','passed','KEYzC','FxXPp','dHFbr','Accessibility\x20scan\x20completed\x20successfully'];a36_0x594d=function(){return _0x5d1164;};return a36_0x594d();}const a36_0x11b55b=a36_0x2452;function a36_0x2452(_0x7369b2,_0x3d415a){const _0x594d51=a36_0x594d();return a36_0x2452=function(_0x2452b1,_0x10ecfe){_0x2452b1=_0x2452b1-0xfe;let _0x2beda5=_0x594d51[_0x2452b1];return _0x2beda5;},a36_0x2452(_0x7369b2,_0x3d415a);}(function(_0x180733,_0x19135b){const _0x1776de=a36_0x2452,_0x19c779=_0x180733();while(!![]){try{const _0x1fee0e=-parseInt(_0x1776de(0x1b9))/0x1+parseInt(_0x1776de(0x19e))/0x2+parseInt(_0x1776de(0x168))/0x3*(parseInt(_0x1776de(0x160))/0x4)+parseInt(_0x1776de(0x106))/0x5+parseInt(_0x1776de(0x150))/0x6*(parseInt(_0x1776de(0x161))/0x7)+parseInt(_0x1776de(0x13d))/0x8*(-parseInt(_0x1776de(0x190))/0x9)+parseInt(_0x1776de(0x16c))/0xa*(-parseInt(_0x1776de(0x102))/0xb);if(_0x1fee0e===_0x19135b)break;else _0x19c779['push'](_0x19c779['shift']());}catch(_0x3315fd){_0x19c779['push'](_0x19c779['shift']());}}}(a36_0x594d,0xd548e));const util=require(a36_0x11b55b(0x121)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x11b55b(0x1ae)),accessibilityRetryHelper=require(a36_0x11b55b(0x11f)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x11b55b(0x193)),{percyAutoCapture}=require(a36_0x11b55b(0x11c)),{sendPlatformDetails}=require(a36_0x11b55b(0x149)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x11b55b(0x124)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x11b55b(0x1b6)),globals=require(a36_0x11b55b(0x12c)),logger=require(a36_0x11b55b(0x1af))[a36_0x11b55b(0x152)],{shouldProcessEventForTesthub}=require(a36_0x11b55b(0x1a0)),testHubConstants=require(a36_0x11b55b(0x11b));exports['mochaHooks']={'beforeAll'(){const _0x162a77=a36_0x11b55b,_0x23985e={'ZtNFY':function(_0xe28d97,_0x4c2286,_0x2fd1aa,_0x4c858f){return _0xe28d97(_0x4c2286,_0x2fd1aa,_0x4c858f);},'kyVBh':_0x162a77(0x1bd),'JWJux':_0x162a77(0x169),'EVkCx':function(_0x594b81,_0x42c742,_0x4cd593){return _0x594b81(_0x42c742,_0x4cd593);},'lIOGT':_0x162a77(0x17e),'mEHkC':function(_0xba801a){return _0xba801a();},'kJwZB':function(_0x2aaa78,_0x189837,_0x6b7832){return _0x2aaa78(_0x189837,_0x6b7832);},'UDIIJ':_0x162a77(0x151),'yLHMl':_0x162a77(0x1c0)};PerformanceTester[_0x162a77(0x176)]();const _0x108679='browserstack internal helper hook';PerformanceTester[_0x162a77(0x1aa)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x4e1b4d=_0x162a77;global[_0x4e1b4d(0x129)]=[],global['__sessionFailed']=![],global['driverCleanup']=async()=>{const _0x31126a=_0x4e1b4d;let _0x42a15d=![];try{await global[_0x31126a(0x113)][0x0]['session_'],_0x42a15d=!![],global['__sessionFailed']?await _0x23985e[_0x31126a(0x18a)](markSessionStatus,global['__drivers'][0x0],_0x23985e[_0x31126a(0x154)],global[_0x31126a(0x129)]['join'](_0x23985e[_0x31126a(0x130)])):await _0x23985e[_0x31126a(0x166)](markSessionStatus,global[_0x31126a(0x113)][0x0],_0x23985e[_0x31126a(0x16f)]);}catch(_0x499f82){logger[_0x31126a(0x13a)](_0x31126a(0x1ba)+_0x499f82);}global[_0x31126a(0x129)]=[],global[_0x31126a(0x133)]=![];if(_0x42a15d)try{try{_0x23985e[_0x31126a(0x15c)](shouldProcessEventForTesthub)&&(global[_0x31126a(0x113)][0x0]&&await _0x23985e['EVkCx'](sendPlatformDetails,global[_0x31126a(0x113)][0x0],this[_0x31126a(0x1b5)]?this[_0x31126a(0x1b5)][_0x31126a(0x123)]:null));}catch(_0x5d2575){logger[_0x31126a(0x13a)](_0x31126a(0x173)+_0x5d2575);}await global['__drivers'][0x0][_0x31126a(0x1ac)]();}catch(_0x279fcc){logger[_0x31126a(0x13a)](_0x31126a(0x144)+_0x279fcc);}};},{'platform':_0x23985e['kJwZB'](nestedKeyValue,global[_0x162a77(0x109)],[_0x23985e[_0x162a77(0x1b8)]]),'hookType':_0x23985e[_0x162a77(0x18c)]})();},'beforeEach'(_0x482271){const _0x2f3f7e=a36_0x11b55b,_0x3e501c={'rixBf':function(_0x25c41e,_0x136798){return _0x25c41e>_0x136798;},'YMlAI':_0x2f3f7e(0x1a8),'KJKnh':function(_0xdf55da,_0x292df2,_0x1fed4a){return _0xdf55da(_0x292df2,_0x1fed4a);},'muxdk':_0x2f3f7e(0x138),'ScRmJ':function(_0x45343d){return _0x45343d();},'KEYzC':_0x2f3f7e(0x114),'yuIaG':function(_0x3d5954,_0x57d5c1){return _0x3d5954===_0x57d5c1;},'hmIgD':_0x2f3f7e(0x14e),'DwKHH':function(_0x31925c,_0x53e9f8){return _0x31925c===_0x53e9f8;},'kycSK':'https:','wPmSB':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','Knaog':_0x2f3f7e(0x147),'QSpiW':function(_0x664157){return _0x664157();},'Obebi':_0x2f3f7e(0x195),'OManG':function(_0x5806fc,_0x65d5fe,_0x3f10f2){return _0x5806fc(_0x65d5fe,_0x3f10f2);},'HOFQv':_0x2f3f7e(0x151),'hSUXp':_0x2f3f7e(0x19d)};globals['setGlobal'](_0x3e501c['Obebi'],this['currentTest']['titlePath']()['join'](_0x3e501c[_0x2f3f7e(0x127)])),PerformanceTester[_0x2f3f7e(0x1aa)](PerformanceSdkEvents[_0x2f3f7e(0x15d)],()=>{const _0x7a840={'oGdci':function(_0x1d5170){const _0x1fb0dd=a36_0x2452;return _0x3e501c[_0x1fb0dd(0x19c)](_0x1d5170);}},_0x43c503='browserstack internal helper hook';new Promise(async _0x5c6034=>{const _0x301019=a36_0x2452;let _0x406c80=!![];try{_0x3e501c[_0x301019(0x12b)](global[_0x301019(0x113)]['length'],0x1)&&(await global[_0x301019(0x153)](),global[_0x301019(0x113)][_0x301019(0x13c)]()),_0x3e501c['rixBf'](global[_0x301019(0x113)][0x0]['quitCount_'],0x0)&&(_0x406c80=![],await global[_0x301019(0x153)]());}catch(_0x49e21e){logger[_0x301019(0x13a)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x49e21e);}try{Array['isArray'](global[_0x301019(0x113)])&&global[_0x301019(0x113)][0x0]&&(global['__drivers'][0x0]['browserstackSessionName']=this['currentTest'][_0x301019(0x10e)]()[_0x301019(0x16e)](_0x3e501c[_0x301019(0x127)])),global['browserstackSessionName']=this[_0x301019(0x1b5)]['titlePath']()['join'](_0x3e501c[_0x301019(0x127)]);}catch(_0x4400f7){logger[_0x301019(0x13a)](_0x301019(0x15a)+_0x4400f7);}this['currentTest'][_0x301019(0x17b)]=_0x3e501c[_0x301019(0x159)](shouldScanTestForAccessibility,this['currentTest'][_0x301019(0x10e)](),!![]),globals[_0x301019(0x164)](_0x3e501c[_0x301019(0x140)],this[_0x301019(0x1b5)][_0x301019(0x17b)]),this['currentTest'][_0x301019(0x1a1)]=!![];if(_0x3e501c[_0x301019(0x1c3)](isAccessibilityAutomationSession)&&_0x406c80&&Array[_0x301019(0x1bc)](global[_0x301019(0x113)])&&_0x3e501c[_0x301019(0x12b)](global[_0x301019(0x113)]['length'],0x0)&&globals[_0x301019(0x18f)](_0x3e501c[_0x301019(0x17f)]))try{const _0x3fe3be=await global[_0x301019(0x113)][0x0]['session_'];if(_0x3fe3be){let _0x4429fc=!![];const _0x1bcf38=await global[_0x301019(0x113)][0x0]['getCurrentUrl']();let _0x3299a8;try{_0x3299a8=new URL(_0x1bcf38);}catch(_0x50e6dd){_0x4429fc=![];}_0x4429fc=_0x3e501c['yuIaG'](_0x3299a8['protocol'],_0x3e501c[_0x301019(0x19f)])||_0x3e501c[_0x301019(0x126)](_0x3299a8[_0x301019(0x1a4)],_0x3e501c[_0x301019(0x178)]),_0x4429fc&&(this[_0x301019(0x1b5)][_0x301019(0x17b)]&&logger['info'](_0x3e501c[_0x301019(0x14c)])),this[_0x301019(0x1b5)]['accessibilityScanStarted']=this[_0x301019(0x1b5)][_0x301019(0x17b)],this['currentTest'][_0x301019(0x17b)]&&logger[_0x301019(0x139)](_0x3e501c[_0x301019(0x115)]);}}catch(_0x55b573){logger[_0x301019(0x189)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x301019(0x12f)](_0x55b573));}_0x3e501c['ScRmJ'](_0x5c6034);})['then'](()=>{const _0x599b1a=a36_0x2452;_0x7a840[_0x599b1a(0x16b)](_0x482271);});},{'platform':_0x3e501c[_0x2f3f7e(0x11e)](nestedKeyValue,global[_0x2f3f7e(0x109)],[_0x3e501c[_0x2f3f7e(0x104)]]),'hookType':_0x3e501c[_0x2f3f7e(0x199)]})();},'afterEach'(_0x35b7c7){const _0x514c4f=a36_0x11b55b,_0x549131={'LeVVe':'\x20-\x20','KOxTp':function(_0x40b17a,_0x241e3b){return _0x40b17a!==_0x241e3b;},'yIUUz':_0x514c4f(0x17e),'PSmQg':function(_0x3917ee,_0x2f8e67,_0x4cf839){return _0x3917ee(_0x2f8e67,_0x4cf839);},'kujfE':function(_0x9b288f,_0x1e90dc){return _0x9b288f+_0x1e90dc;},'XnkWv':_0x514c4f(0x156),'rfTWu':'error','grFqi':_0x514c4f(0x137),'mJUgR':_0x514c4f(0x139),'sIMJW':function(_0x67f3c3,_0x477be4){return _0x67f3c3>_0x477be4;},'yxYxH':function(_0x50653c,_0x5b7061){return _0x50653c===_0x5b7061;},'Mkitj':_0x514c4f(0x157),'snepj':'appium:app','QUuzz':function(_0x478648,_0x341a99,_0x5a043e,_0xd7760e){return _0x478648(_0x341a99,_0x5a043e,_0xd7760e);},'SaoyI':'isAccessibilityPlatform','sGfgp':_0x514c4f(0x138),'GWLSl':_0x514c4f(0x118),'KuVeh':_0x514c4f(0x135),'AoONT':_0x514c4f(0x141),'Eyhhm':_0x514c4f(0x182),'gpnLk':_0x514c4f(0x17d),'TCBMs':_0x514c4f(0x122),'TpgsC':_0x514c4f(0x1b3),'aBqgJ':_0x514c4f(0x186),'trWKg':function(_0x5be748){return _0x5be748();},'ORPVq':_0x514c4f(0x13a),'XRTUQ':function(_0xfe83f3,_0x43f3af){return _0xfe83f3>_0x43f3af;},'emCPh':function(_0x62e21b){return _0x62e21b();},'PGNUp':_0x514c4f(0x1b4),'eeknh':function(_0x188472,_0x509bc3,_0x411412){return _0x188472(_0x509bc3,_0x411412);},'MeWdw':_0x514c4f(0x151),'gMDbl':_0x514c4f(0x172)},_0x99ea66='browserstack internal helper hook';this[_0x514c4f(0x108)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x549131[_0x514c4f(0x1a3)]]),global[_0x514c4f(0x1c9)]=this['currentTest']['titlePath']()[_0x514c4f(0x16e)](_0x549131['LeVVe']),PerformanceTester['measureWrapper'](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x37363d=_0x514c4f,_0x258786={'yQDgv':_0x549131[_0x37363d(0x1b2)],'BsFYA':function(_0x341b0e,_0x50b513){return _0x549131['KOxTp'](_0x341b0e,_0x50b513);},'ZKgLV':_0x549131[_0x37363d(0x18b)],'kEQZm':function(_0x3474e9,_0xf50afd,_0x4d6bc1){const _0x4fed6b=_0x37363d;return _0x549131[_0x4fed6b(0x110)](_0x3474e9,_0xf50afd,_0x4d6bc1);},'ntmty':function(_0x26b277,_0x180625){const _0x5aff60=_0x37363d;return _0x549131[_0x5aff60(0x1bf)](_0x26b277,_0x180625);},'zCCGU':_0x549131[_0x37363d(0x103)],'wFISi':_0x549131['rfTWu'],'tRCyy':_0x549131[_0x37363d(0x187)],'sHbqb':_0x549131[_0x37363d(0x191)],'WUOAJ':function(_0x292469,_0x15e0d5){const _0x5da54d=_0x37363d;return _0x549131[_0x5da54d(0x146)](_0x292469,_0x15e0d5);},'rBlme':function(_0x5bf1a6,_0xdbf3df){const _0x1e1584=_0x37363d;return _0x549131[_0x1e1584(0x14b)](_0x5bf1a6,_0xdbf3df);},'hVGNU':_0x549131[_0x37363d(0x11d)],'SDsiB':_0x549131['snepj'],'gTskl':function(_0x41da46,_0x3fa4ed,_0x98e0ce,_0x427288){const _0x2e79c8=_0x37363d;return _0x549131[_0x2e79c8(0x171)](_0x41da46,_0x3fa4ed,_0x98e0ce,_0x427288);},'UUJrN':_0x549131[_0x37363d(0xff)],'aAnCL':_0x549131[_0x37363d(0x111)],'Dicey':_0x549131[_0x37363d(0x185)],'dHFbr':_0x549131['KuVeh'],'lQrEc':_0x549131[_0x37363d(0x18d)],'CeQGk':_0x549131[_0x37363d(0x194)],'eiSjB':_0x549131[_0x37363d(0x1b1)],'Zobke':_0x549131[_0x37363d(0x107)],'gmwat':_0x549131[_0x37363d(0x10b)],'oYdqD':_0x549131[_0x37363d(0x10f)],'xMFLq':function(_0x332b98){const _0x3463c9=_0x37363d;return _0x549131[_0x3463c9(0x1bb)](_0x332b98);},'yWrYY':function(_0x269ec1,_0x294da4,_0x3d322d){const _0x16f35e=_0x37363d;return _0x549131[_0x16f35e(0x110)](_0x269ec1,_0x294da4,_0x3d322d);},'FnKAj':function(_0x565094,_0x41064b,_0x5bc90b){const _0x3def79=_0x37363d;return _0x549131[_0x3def79(0x110)](_0x565094,_0x41064b,_0x5bc90b);},'BZTmy':_0x549131[_0x37363d(0x100)],'lRhSG':function(_0x21a4dc,_0x1fd86e){const _0x142996=_0x37363d;return _0x549131[_0x142996(0x145)](_0x21a4dc,_0x1fd86e);},'FxXPp':function(_0xed09eb){const _0x40296f=_0x37363d;return _0x549131[_0x40296f(0x132)](_0xed09eb);}},_0x48958b=async(_0x4d1a91,_0x6d5057)=>{const _0x13eef7=_0x37363d;await global[_0x13eef7(0x113)][0x0][_0x13eef7(0x184)](_0x13eef7(0x125)+_0x4d1a91+',\x22level\x22:\x20\x22'+_0x6d5057+_0x13eef7(0x17a));};new Promise(async _0x25040a=>{const _0x2983f9=_0x37363d,_0xf721a2={'nGXSu':_0x258786[_0x2983f9(0x11a)],'fauRm':function(_0x3581db,_0x6a5c76){const _0xf3022f=_0x2983f9;return _0x258786[_0xf3022f(0x1ab)](_0x3581db,_0x6a5c76);},'sWZFH':_0x258786[_0x2983f9(0x192)],'sbylK':function(_0x2d1a1a,_0x511a09,_0x1135f2){const _0x195ca9=_0x2983f9;return _0x258786[_0x195ca9(0x1c2)](_0x2d1a1a,_0x511a09,_0x1135f2);},'IWeIW':function(_0x5ba20e,_0x3589f3){const _0x5ee2c3=_0x2983f9;return _0x258786[_0x5ee2c3(0x15e)](_0x5ba20e,_0x3589f3);},'JylFz':_0x258786['zCCGU'],'xtlWm':_0x258786[_0x2983f9(0x1a7)],'DTnMu':_0x258786[_0x2983f9(0x12a)],'NKwUw':_0x258786[_0x2983f9(0x174)]};try{_0x258786['WUOAJ'](global['__drivers'][_0x2983f9(0x175)],0x1)&&(await global[_0x2983f9(0x153)](),global[_0x2983f9(0x113)][_0x2983f9(0x13c)](),global[_0x2983f9(0x129)]=[],global['__sessionFailed']=![]);try{if(global[_0x2983f9(0x14a)]&&_0x258786[_0x2983f9(0x12e)](global[_0x2983f9(0x198)],_0x258786['hVGNU'])&&global[_0x2983f9(0x113)][0x0]){const _0x55585a=_0x258786[_0x2983f9(0x1c5)](global['capabilities']['length'],0x0)?!!global[_0x2983f9(0x197)][0x0][_0x2983f9(0x14d)]||!!global[_0x2983f9(0x197)][0x0][_0x258786[_0x2983f9(0x13b)]]:![],_0x377e8f={};_0x377e8f[_0x2983f9(0x14d)]=_0x55585a,await _0x258786[_0x2983f9(0x101)](percyAutoCapture,global['__drivers'][0x0],_0x258786[_0x2983f9(0x155)],_0x377e8f);}}catch(_0x3af553){logger[_0x2983f9(0x13a)](_0x2983f9(0x183)+_0x3af553);}!global[_0x2983f9(0x13f)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x2983f9(0x1c1)],async()=>{const _0x373652=_0x2983f9;await global[_0x373652(0x113)][0x0][_0x373652(0x184)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x373652(0x15f)](this[_0x373652(0x1b5)][_0x373652(0x10e)]()['join'](_0xf721a2[_0x373652(0x162)]))+'}}');})(),global[_0x2983f9(0x113)][0x0][_0x2983f9(0x13e)]=!![]),await PerformanceTester[_0x2983f9(0x1aa)](PerformanceAutEvents[_0x2983f9(0x188)],async()=>{const _0x3a3ce6=_0x2983f9,_0x594d2f=_0xf721a2[_0x3a3ce6(0x1ad)](this[_0x3a3ce6(0x1b5)][_0x3a3ce6(0x116)],_0xf721a2['sWZFH']);_0x594d2f?(global['__sessionFailed']=!![],global[_0x3a3ce6(0x129)][_0x3a3ce6(0x179)](this[_0x3a3ce6(0x1b5)][_0x3a3ce6(0x112)][_0x3a3ce6(0x1a9)]),await _0xf721a2['sbylK'](_0x48958b,JSON[_0x3a3ce6(0x15f)](_0xf721a2[_0x3a3ce6(0x14f)](_0xf721a2['JylFz'],this[_0x3a3ce6(0x1b5)][_0x3a3ce6(0x112)][_0x3a3ce6(0x1a9)])),_0xf721a2[_0x3a3ce6(0x19a)])):await _0xf721a2[_0x3a3ce6(0x1a2)](_0x48958b,JSON[_0x3a3ce6(0x15f)](_0xf721a2[_0x3a3ce6(0x142)]),_0xf721a2['NKwUw']);})();}catch(_0x36a130){logger['debug'](_0x2983f9(0x1b7)+_0x36a130);}try{if(this[_0x2983f9(0x1b5)][_0x2983f9(0x1a1)]&&globals['getGlobal'](_0x258786['UUJrN'])&&globals[_0x2983f9(0x18f)](_0x258786[_0x2983f9(0x1b0)])){logger[_0x2983f9(0x139)](_0x258786['Dicey']);const _0x4b5d27={};_0x4b5d27['thTestRunUuid']=this[_0x2983f9(0x1b5)][_0x2983f9(0x123)],_0x4b5d27[_0x2983f9(0x134)]=process[_0x2983f9(0x1c8)][testHubConstants[_0x2983f9(0x136)][_0x2983f9(0x10d)]],_0x4b5d27[_0x2983f9(0x1be)]=process['env'][testHubConstants[_0x2983f9(0x136)][_0x2983f9(0x10c)]];const _0x3ceae3=_0x4b5d27;logger[_0x2983f9(0x13a)](_0x2983f9(0x177)+JSON[_0x2983f9(0x15f)](_0x3ceae3)),logger[_0x2983f9(0x13a)](_0x258786[_0x2983f9(0x181)]);const _0x4aaea1={};_0x4aaea1[_0x2983f9(0x165)]=_0x258786[_0x2983f9(0x163)];const _0x1f1721=await PerformanceTester[_0x2983f9(0x1aa)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x7cb99b=_0x2983f9;return await accessibilityRetryHelper[_0x7cb99b(0x117)](global['__drivers'][0x0],global['browserstackSessionName']);},_0x4aaea1)();_0x1f1721?logger[_0x2983f9(0x13a)](_0x258786[_0x2983f9(0x10a)]):logger[_0x2983f9(0x167)](_0x258786['eiSjB']);const _0x1bbb10=await PerformanceTester['measureWrapper'](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x1dbe70=_0x2983f9;return await accessibilityRetryHelper['saveAccessibilityResultsWithRetry'](global[_0x1dbe70(0x113)][0x0],_0x3ceae3);})();_0x1bbb10?logger['debug'](_0x258786[_0x2983f9(0x17c)]):logger['warn'](_0x258786[_0x2983f9(0x120)]),logger[_0x2983f9(0x139)](_0x258786[_0x2983f9(0xfe)]);}}catch(_0x4fbce4){logger[_0x2983f9(0x189)](_0x2983f9(0x1c6)+this['currentTest']['titlePath']()+_0x2983f9(0x105),_0x4fbce4);}try{try{if(_0x258786[_0x2983f9(0x16a)](shouldProcessEventForTesthub)){global[_0x2983f9(0x113)][0x0]&&await _0x258786[_0x2983f9(0x18e)](sendPlatformDetails,global[_0x2983f9(0x113)][0x0],this['currentTest']?this['currentTest'][_0x2983f9(0x123)]:null);if(_0x258786[_0x2983f9(0x16a)](isBrowserstackInfra)){PerformanceTester[_0x2983f9(0x1a6)](PerformanceO11yEvents[_0x2983f9(0x1a5)]);const _0x13b49a=_0x2983f9(0x16d)+Date[_0x2983f9(0x131)]();await _0x258786[_0x2983f9(0x119)](_0x48958b,JSON[_0x2983f9(0x15f)](_0x13b49a),_0x258786[_0x2983f9(0x158)]),PerformanceTester[_0x2983f9(0x12d)](PerformanceO11yEvents['SYNC']);}}}catch(_0xefecbf){logger[_0x2983f9(0x13a)](_0x2983f9(0x143)+_0xefecbf),PerformanceTester[_0x2983f9(0x12d)](PerformanceO11yEvents[_0x2983f9(0x1a5)],![],_0xefecbf);}_0x258786[_0x2983f9(0x196)](global[_0x2983f9(0x113)][0x0][_0x2983f9(0x170)],0x0)&&await global[_0x2983f9(0x153)]();}catch(_0x10883d){logger[_0x2983f9(0x13a)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x10883d);}_0x258786[_0x2983f9(0x180)](_0x25040a);})[_0x37363d(0x15b)](()=>{_0x258786['xMFLq'](_0x35b7c7);});},{'platform':_0x549131['eeknh'](nestedKeyValue,global[_0x514c4f(0x109)],[_0x549131['MeWdw']]),'hookType':_0x549131['gMDbl']})();},'afterAll'(_0x55d6e8){const _0x176166=a36_0x11b55b,_0x4c70cd={'WLDlL':function(_0x1525bd){return _0x1525bd();},'faHBV':'Mocha','ZFalg':function(_0x58b806,_0x18d277,_0x4fcab9){return _0x58b806(_0x18d277,_0x4fcab9);},'lauSD':'index','mgCcV':_0x176166(0x1c4)},_0x4960bf='browserstack internal helper hook';this[_0x176166(0x108)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x4c70cd[_0x176166(0x148)]]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x176166(0x15d)],()=>{const _0x59eb77=_0x176166;new Promise(async _0x54dc14=>{const _0x25bcc6=a36_0x2452;await global[_0x25bcc6(0x153)](),_0x4c70cd[_0x25bcc6(0x1c7)](_0x54dc14);})[_0x59eb77(0x15b)]()['finally'](()=>{const _0x2fadba=_0x59eb77;_0x4c70cd[_0x2fadba(0x1c7)](_0x55d6e8);});},{'platform':_0x4c70cd['ZFalg'](nestedKeyValue,global[_0x176166(0x109)],[_0x4c70cd[_0x176166(0x128)]]),'hookType':_0x4c70cd[_0x176166(0x19b)]})();}};
|
|
1
|
+
function a36_0x55c1(_0x32a3c8,_0x326f31){const _0x44e643=a36_0x44e6();return a36_0x55c1=function(_0x55c11e,_0x11b3f0){_0x55c11e=_0x55c11e-0xce;let _0x5e99bc=_0x44e643[_0x55c11e];return _0x5e99bc;},a36_0x55c1(_0x32a3c8,_0x326f31);}const a36_0x57d32f=a36_0x55c1;function a36_0x44e6(){const _0x3fcffc=['HklgF','DsOWC','VrSnM','yehdb','OvGDt','session_','../../helpers/accessibility-automation/helper','shift','warn','JczvN','sFHOk','protocol','jknyN','QPVEe','../utils/constants','zSMCL','./test-observability/mochaUtils','../../helpers/performance/constants','shouldScanTestForAccessibility','SwCCY','setGlobal','https:','jiCnB','thJwtToken','QYFzw','SESSION_STATUS','qpUwg','error','KWNpf','PSuay','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','gXYVk','browserstackTestName','currentTest','debug','RlkTP','../../helpers/logger','failed','testAnalyticsId','WLGit','appium:app','titlePath','KUaFx','EzBul','JKPJA','stringify','5833150gMfWZs','sessionNameSet__','NsHAP','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','FwGDS','ejhkT','pvQgn','SESSION_NAME','YUcmH','Accessibility\x20scan\x20completed\x20successfully','lAjQK','IJOix','JPDcr','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','state','AVJbV','performScanWithRetry','isArray','info','sPQPw','EfmHb','join','__sessionFailed','command','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','Qvert','uRUXx','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','bstackA11yShouldScan','sessionName','WfNlO','Ilpmn','BeZQk','eYhkg','end','FggUq','getCurrentUrl','cIFUX','ISmeO','../../helpers/accessibility-automation/accessibilityRetryHelper','JOHUA','Automate\x20test\x20case\x20execution\x20has\x20started.','measureWrapper','startMonitoring','\x20|\x20','431883EBAJkO','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','http:','677614Itqmun','8648934hajigM','EOyML','Kenbs','finally','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','ObservabilitySync:','aqXTP','bjELg','__platformCaps','../../helpers/testhub/constants','ENV_VAR','388GRXJRa','USYrZ','length','Accessibility\x20results\x20saved\x20successfully','message','ebJYs','14987bEnOSY','executeScript','vxwkq','TbOTY','ysuQX','yNnYE','err','UHiQj','QkoNf','DSHPM','winstonLogger','driverCleanup','CPTiS','KhmcQ','accessibilityScanStarted','../../helpers/testhub/utils','XVEvq','JNxvQ','IGoJA','kyyDm','QthzH','capabilities','jADfq','beforeAll','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Kfdxv','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','GcSCC','ErdLI','DxAaL','percy','__drivers','kuxKL','kgcMR','TOIRu','mTEEN','index','sCOdK','HPSBf','34161VozHOV','../../helpers/performance/performance-tester','2152EtHzEA','lancS','UdbEs','Sptfs','__error_messages__','../../helpers/helper','thBuildUuid','690dBAQZb','vCMOs','NLyjP','percyCaptureMode','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','browserstackSessionName','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','kaHXs','afterTest','Mocha','saveAccessibilityResultsWithRetry','Passed','wsvMr','SAVE_RESULTS','BROWSERSTACK_TESTHUB_JWT','timeout','mmDuy','aCICO','dGncD','LPTof','rAcmE','ArQpV','xizwM','__skipSessionName','xsaNE','EbArh','env','quitCount_','Sgcix','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','then','getGlobal','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','orfep','fLjal','FPDBM','isAccessibilityPlatform','etjtB','yAwmd','app','\x20-\x20','vVruC','SYNC','format','util','EqQFT','Failed\x20to\x20store\x20session\x20name:\x20','passed','cjmzo','742762vQCbHY','SDK_HOOK','ZfxNW','\x22}}','push'];a36_0x44e6=function(){return _0x3fcffc;};return a36_0x44e6();}(function(_0x3e849c,_0x256b29){const _0xdd0e7b=a36_0x55c1,_0xf33bb7=_0x3e849c();while(!![]){try{const _0x262ca1=-parseInt(_0xdd0e7b(0x188))/0x1+parseInt(_0xdd0e7b(0x115))/0x2+-parseInt(_0xdd0e7b(0x14e))/0x3*(-parseInt(_0xdd0e7b(0x121))/0x4)+-parseInt(_0xdd0e7b(0xe5))/0x5+-parseInt(_0xdd0e7b(0x116))/0x6+-parseInt(_0xdd0e7b(0x127))/0x7*(parseInt(_0xdd0e7b(0x150))/0x8)+-parseInt(_0xdd0e7b(0x112))/0x9*(-parseInt(_0xdd0e7b(0x157))/0xa);if(_0x262ca1===_0x256b29)break;else _0xf33bb7['push'](_0xf33bb7['shift']());}catch(_0x620f58){_0xf33bb7['push'](_0xf33bb7['shift']());}}}(a36_0x44e6,0xca0f7));const util=require(a36_0x57d32f(0x183)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x57d32f(0x193)),accessibilityRetryHelper=require(a36_0x57d32f(0x10c)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x57d32f(0x19b)),{percyAutoCapture}=require('../../helpers/percy/utils'),{sendPlatformDetails}=require(a36_0x57d32f(0x19d)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a36_0x57d32f(0x155)),PerformanceTester=require(a36_0x57d32f(0x14f)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x57d32f(0x19e)),globals=require('../../helpers/globals'),logger=require(a36_0x57d32f(0xdb))[a36_0x57d32f(0x131)],{shouldProcessEventForTesthub}=require(a36_0x57d32f(0x136)),testHubConstants=require(a36_0x57d32f(0x11f));exports['mochaHooks']={'beforeAll'(){const _0x268c9c=a36_0x57d32f,_0x3e54fe={'xsaNE':function(_0x45963d,_0x2a4f9b,_0x5b2a63,_0x147ba7){return _0x45963d(_0x2a4f9b,_0x5b2a63,_0x147ba7);},'IJOix':_0x268c9c(0xdc),'eYhkg':_0x268c9c(0x111),'JczvN':function(_0x15baa8,_0x201b29,_0x2e1826){return _0x15baa8(_0x201b29,_0x2e1826);},'kgcMR':_0x268c9c(0x186),'ebJYs':function(_0x2dc733){return _0x2dc733();},'vxwkq':function(_0x5a14a7,_0x1f6f65,_0x256dde){return _0x5a14a7(_0x1f6f65,_0x256dde);},'FwGDS':function(_0x46e8b6,_0x49d97f,_0x5cb49d){return _0x46e8b6(_0x49d97f,_0x5cb49d);},'NlZJl':_0x268c9c(0x14b),'QYFzw':_0x268c9c(0x13e)};PerformanceTester[_0x268c9c(0x110)]();const _0x24d9fe='browserstack internal helper hook';PerformanceTester[_0x268c9c(0x10f)](PerformanceSdkEvents[_0x268c9c(0x189)],()=>{const _0x2638d4=_0x268c9c,_0x2a57e3={'ErdLI':function(_0x1ca833,_0x2ba0ee,_0x316620,_0x167ecb){const _0x48cc53=a36_0x55c1;return _0x3e54fe[_0x48cc53(0x16f)](_0x1ca833,_0x2ba0ee,_0x316620,_0x167ecb);},'cIFUX':_0x3e54fe[_0x2638d4(0xf0)],'yNnYE':_0x3e54fe[_0x2638d4(0x106)],'kaHXs':function(_0x55fd7d,_0x116308,_0xa4498){const _0xfc139=_0x2638d4;return _0x3e54fe[_0xfc139(0x196)](_0x55fd7d,_0x116308,_0xa4498);},'ejhkT':_0x3e54fe[_0x2638d4(0x148)],'AZCWA':function(_0x141324){const _0x418dd7=_0x2638d4;return _0x3e54fe[_0x418dd7(0x126)](_0x141324);},'KWNpf':function(_0x761ba3,_0x2f746c,_0x264b61){const _0x3eb73e=_0x2638d4;return _0x3e54fe[_0x3eb73e(0x129)](_0x761ba3,_0x2f746c,_0x264b61);}};global['__error_messages__']=[],global['__sessionFailed']=![],global[_0x2638d4(0x132)]=async()=>{const _0x586ef8=_0x2638d4;let _0x407fac=![];try{await global[_0x586ef8(0x146)][0x0][_0x586ef8(0x192)],_0x407fac=!![],global[_0x586ef8(0xfb)]?await _0x2a57e3[_0x586ef8(0x143)](markSessionStatus,global['__drivers'][0x0],_0x2a57e3[_0x586ef8(0x10a)],global[_0x586ef8(0x154)][_0x586ef8(0xfa)](_0x2a57e3[_0x586ef8(0x12c)])):await _0x2a57e3[_0x586ef8(0x15e)](markSessionStatus,global['__drivers'][0x0],_0x2a57e3[_0x586ef8(0xea)]);}catch(_0x2cd88d){logger[_0x586ef8(0xd9)](_0x586ef8(0x174)+_0x2cd88d);}global[_0x586ef8(0x154)]=[],global['__sessionFailed']=![];if(_0x407fac)try{try{_0x2a57e3['AZCWA'](shouldProcessEventForTesthub)&&(global[_0x586ef8(0x146)][0x0]&&await _0x2a57e3[_0x586ef8(0xd3)](sendPlatformDetails,global[_0x586ef8(0x146)][0x0],this['currentTest']?this['currentTest'][_0x586ef8(0xdd)]:null));}catch(_0x215e20){logger[_0x586ef8(0xd9)](_0x586ef8(0xfd)+_0x215e20);}await global[_0x586ef8(0x146)][0x0]['initQuit']();}catch(_0x2e6eec){logger[_0x586ef8(0xd9)](_0x586ef8(0xd5)+_0x2e6eec);}};},{'platform':_0x3e54fe[_0x268c9c(0xe9)](nestedKeyValue,global['__platformCaps'],[_0x3e54fe['NlZJl']]),'hookType':_0x3e54fe[_0x268c9c(0xcf)]})();},'beforeEach'(_0x4ef182){const _0x43ae5d=a36_0x57d32f,_0xfe2a3e={'XVEvq':function(_0x219b29,_0xb807fc){return _0x219b29>_0xb807fc;},'EfmHb':function(_0x2f01ad,_0x242afe){return _0x2f01ad>_0x242afe;},'dGncD':_0x43ae5d(0x17f),'aFtYW':function(_0x3ac9a8,_0x284762,_0x228515){return _0x3ac9a8(_0x284762,_0x228515);},'LPTof':_0x43ae5d(0x101),'EbArh':function(_0x10c989){return _0x10c989();},'WLGit':_0x43ae5d(0x17b),'fLjal':function(_0x49b6e7,_0xd9ccf8){return _0x49b6e7===_0xd9ccf8;},'ltITY':_0x43ae5d(0x114),'Sptfs':_0x43ae5d(0x1a2),'USYrZ':_0x43ae5d(0x100),'HklgF':_0x43ae5d(0x10e),'ISmeO':function(_0x1a1565){return _0x1a1565();},'GcSCC':_0x43ae5d(0xd7),'wsvMr':function(_0x84d207,_0x545065,_0x34eaa5){return _0x84d207(_0x545065,_0x34eaa5);},'FXFYH':_0x43ae5d(0x14b),'UHiQj':'beforeEach'};globals['setGlobal'](_0xfe2a3e[_0x43ae5d(0x142)],this[_0x43ae5d(0xd8)][_0x43ae5d(0xe0)]()[_0x43ae5d(0xfa)](_0xfe2a3e[_0x43ae5d(0x169)])),PerformanceTester[_0x43ae5d(0x10f)](PerformanceSdkEvents[_0x43ae5d(0x189)],()=>{const _0x201c07=_0x43ae5d,_0x37f493={'PRzWt':function(_0x30a2d9,_0x41b656){const _0x1c0642=a36_0x55c1;return _0xfe2a3e[_0x1c0642(0x137)](_0x30a2d9,_0x41b656);},'HPSBf':function(_0x2a1e0b,_0x17aca1){const _0x261d6a=a36_0x55c1;return _0xfe2a3e[_0x261d6a(0xf9)](_0x2a1e0b,_0x17aca1);},'JNxvQ':_0xfe2a3e[_0x201c07(0x169)],'CPTiS':function(_0x584281,_0x592fd9,_0x134684){return _0xfe2a3e['aFtYW'](_0x584281,_0x592fd9,_0x134684);},'vVruC':_0xfe2a3e[_0x201c07(0x16a)],'UdbEs':function(_0x545bfe){const _0x3b9b59=_0x201c07;return _0xfe2a3e[_0x3b9b59(0x170)](_0x545bfe);},'vCMOs':_0xfe2a3e[_0x201c07(0xde)],'pvQgn':function(_0x27048c,_0x37b75b){const _0x3fdb2f=_0x201c07;return _0xfe2a3e[_0x3fdb2f(0x179)](_0x27048c,_0x37b75b);},'PSuay':_0xfe2a3e['ltITY'],'Kfdxv':function(_0x3e6421,_0x5aa0dc){const _0xbf28f2=_0x201c07;return _0xfe2a3e[_0xbf28f2(0x179)](_0x3e6421,_0x5aa0dc);},'fpUnm':_0xfe2a3e[_0x201c07(0x153)],'AVJbV':_0xfe2a3e[_0x201c07(0x122)],'EzBul':_0xfe2a3e[_0x201c07(0x18d)],'JPDcr':function(_0x67c70f){const _0x2dff12=_0x201c07;return _0xfe2a3e[_0x2dff12(0x170)](_0x67c70f);},'ArQpV':function(_0x1cb511){const _0x3344f9=_0x201c07;return _0xfe2a3e[_0x3344f9(0x10b)](_0x1cb511);}},_0x4f53c0='browserstack internal helper hook';new Promise(async _0x56f1e6=>{const _0x5a8bbf=_0x201c07;let _0x3c8d77=!![];try{_0x37f493['PRzWt'](global[_0x5a8bbf(0x146)][_0x5a8bbf(0x123)],0x1)&&(await global[_0x5a8bbf(0x132)](),global[_0x5a8bbf(0x146)][_0x5a8bbf(0x194)]()),_0x37f493[_0x5a8bbf(0x14d)](global[_0x5a8bbf(0x146)][0x0][_0x5a8bbf(0x172)],0x0)&&(_0x3c8d77=![],await global['driverCleanup']());}catch(_0x2ad1ca){logger[_0x5a8bbf(0xd9)](_0x5a8bbf(0xd5)+_0x2ad1ca);}try{Array['isArray'](global[_0x5a8bbf(0x146)])&&global[_0x5a8bbf(0x146)][0x0]&&(global[_0x5a8bbf(0x146)][0x0][_0x5a8bbf(0x15c)]=this[_0x5a8bbf(0xd8)]['titlePath']()[_0x5a8bbf(0xfa)](_0x37f493['JNxvQ'])),global[_0x5a8bbf(0x15c)]=this[_0x5a8bbf(0xd8)][_0x5a8bbf(0xe0)]()[_0x5a8bbf(0xfa)](_0x37f493[_0x5a8bbf(0x138)]);}catch(_0x37fabc){logger[_0x5a8bbf(0xd9)](_0x5a8bbf(0x185)+_0x37fabc);}this[_0x5a8bbf(0xd8)][_0x5a8bbf(0x19f)]=_0x37f493[_0x5a8bbf(0x133)](shouldScanTestForAccessibility,this['currentTest'][_0x5a8bbf(0xe0)](),!![]),globals[_0x5a8bbf(0x1a1)](_0x37f493[_0x5a8bbf(0x180)],this['currentTest'][_0x5a8bbf(0x19f)]),this['currentTest'][_0x5a8bbf(0x135)]=!![];if(_0x37f493[_0x5a8bbf(0x152)](isAccessibilityAutomationSession)&&_0x3c8d77&&Array[_0x5a8bbf(0xf6)](global[_0x5a8bbf(0x146)])&&_0x37f493[_0x5a8bbf(0x14d)](global[_0x5a8bbf(0x146)][_0x5a8bbf(0x123)],0x0)&&globals[_0x5a8bbf(0x176)](_0x37f493[_0x5a8bbf(0x158)]))try{const _0x4cc556=await global[_0x5a8bbf(0x146)][0x0]['session_'];if(_0x4cc556){let _0x34a5fa=!![];const _0x2b8a00=await global[_0x5a8bbf(0x146)][0x0][_0x5a8bbf(0x109)]();let _0x14de18;try{_0x14de18=new URL(_0x2b8a00);}catch(_0x4c2e6e){_0x34a5fa=![];}_0x34a5fa=_0x37f493[_0x5a8bbf(0xeb)](_0x14de18['protocol'],_0x37f493[_0x5a8bbf(0xd4)])||_0x37f493[_0x5a8bbf(0x140)](_0x14de18[_0x5a8bbf(0x198)],_0x37f493['fpUnm']),_0x34a5fa&&(this[_0x5a8bbf(0xd8)]['shouldScanTestForAccessibility']&&logger[_0x5a8bbf(0xf7)](_0x37f493[_0x5a8bbf(0xf4)])),this[_0x5a8bbf(0xd8)]['accessibilityScanStarted']=this['currentTest'][_0x5a8bbf(0x19f)],this[_0x5a8bbf(0xd8)]['shouldScanTestForAccessibility']&&logger[_0x5a8bbf(0xf7)](_0x37f493[_0x5a8bbf(0xe2)]);}}catch(_0x27d834){logger['error'](_0x5a8bbf(0xe8)+util[_0x5a8bbf(0x182)](_0x27d834));}_0x37f493[_0x5a8bbf(0xf1)](_0x56f1e6);})[_0x201c07(0x175)](()=>{const _0x1f3898=_0x201c07;_0x37f493[_0x1f3898(0x16c)](_0x4ef182);});},{'platform':_0xfe2a3e[_0x43ae5d(0x163)](nestedKeyValue,global[_0x43ae5d(0x11e)],[_0xfe2a3e['FXFYH']]),'hookType':_0xfe2a3e[_0x43ae5d(0x12e)]})();},'afterEach'(_0x84689b){const _0x9de0e8=a36_0x57d32f,_0x51e73c={'FggUq':function(_0x3c80d8){return _0x3c80d8();},'ZfxNW':_0x9de0e8(0x17f),'FPDBM':function(_0x4bf0ab,_0x1971ca){return _0x4bf0ab!==_0x1971ca;},'uRUXx':_0x9de0e8(0x186),'rAcmE':function(_0x5648d9,_0x34fb0b,_0x2d52f4){return _0x5648d9(_0x34fb0b,_0x2d52f4);},'UwMYZ':function(_0x54c9c3,_0x57ba52){return _0x54c9c3+_0x57ba52;},'kuxKL':'Failed:\x20','hwMtQ':'error','RmFoA':_0x9de0e8(0x162),'uPSXa':'info','WfNlO':function(_0x58cc5f,_0x2cadd1){return _0x58cc5f>_0x2cadd1;},'NsHAP':function(_0x2f9f36,_0xb39f50){return _0x2f9f36===_0xb39f50;},'EoKlq':'testcase','KhmcQ':function(_0x692710,_0x7e55c7){return _0x692710>_0x7e55c7;},'TbOTY':_0x9de0e8(0xdf),'mmDuy':function(_0x3124a4,_0x5282b7,_0x36d2d1,_0x96c85){return _0x3124a4(_0x5282b7,_0x36d2d1,_0x96c85);},'mTEEN':_0x9de0e8(0x17b),'yAwmd':'bstackA11yShouldScan','jiCnB':_0x9de0e8(0x113),'jvfBG':_0x9de0e8(0xf2),'sFHOk':_0x9de0e8(0x15f),'zgUdw':_0x9de0e8(0xee),'orfep':_0x9de0e8(0x15b),'FGdKh':_0x9de0e8(0x124),'YUcmH':_0x9de0e8(0x11a),'Qvert':_0x9de0e8(0x177),'JqQVY':'debug','tRsVh':function(_0x449fe6){return _0x449fe6();},'etjtB':_0x9de0e8(0x160),'zSMCL':function(_0x9f5cc9,_0x28bcc4,_0x456092){return _0x9f5cc9(_0x28bcc4,_0x456092);},'Sgcix':_0x9de0e8(0x14b),'cjmzo':'afterEach'},_0x1c93a7='browserstack internal helper hook';this[_0x9de0e8(0x166)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x51e73c[_0x9de0e8(0x17c)]]),global[_0x9de0e8(0x102)]=this[_0x9de0e8(0xd8)][_0x9de0e8(0xe0)]()['join'](_0x51e73c[_0x9de0e8(0x18a)]),PerformanceTester[_0x9de0e8(0x10f)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x34297d=_0x9de0e8,_0x146b3c={'KUaFx':_0x51e73c['ZfxNW'],'VrSnM':function(_0x38c6dd,_0xd42069){const _0x46d5fa=a36_0x55c1;return _0x51e73c[_0x46d5fa(0x17a)](_0x38c6dd,_0xd42069);},'yehdb':_0x51e73c[_0x34297d(0xff)],'JKPJA':function(_0x5153f0,_0x5c3fcc,_0x1d448e){const _0x305847=_0x34297d;return _0x51e73c[_0x305847(0x16b)](_0x5153f0,_0x5c3fcc,_0x1d448e);},'EOyML':function(_0xf6ef44,_0x4b8a42){return _0x51e73c['UwMYZ'](_0xf6ef44,_0x4b8a42);},'DsOWC':_0x51e73c[_0x34297d(0x147)],'BeZQk':_0x51e73c['hwMtQ'],'EqQFT':_0x51e73c['RmFoA'],'ysuQX':_0x51e73c['uPSXa'],'aqXTP':function(_0x2ac793,_0x7acea1){const _0x36ba74=_0x34297d;return _0x51e73c[_0x36ba74(0x103)](_0x2ac793,_0x7acea1);},'sPQPw':function(_0x263ded,_0x15a4c0){const _0x16184a=_0x34297d;return _0x51e73c[_0x16184a(0xe7)](_0x263ded,_0x15a4c0);},'JOHUA':_0x51e73c['EoKlq'],'aCICO':function(_0x2ee55,_0x15fca0){const _0x532493=_0x34297d;return _0x51e73c[_0x532493(0x134)](_0x2ee55,_0x15fca0);},'TOIRu':_0x51e73c[_0x34297d(0x12a)],'SwCCY':function(_0x570ad7,_0x427f2f,_0x770cf9,_0x2b9e70){const _0x17a589=_0x34297d;return _0x51e73c[_0x17a589(0x167)](_0x570ad7,_0x427f2f,_0x770cf9,_0x2b9e70);},'jknyN':_0x51e73c[_0x34297d(0x14a)],'QPVEe':_0x51e73c[_0x34297d(0x17d)],'QkoNf':_0x51e73c[_0x34297d(0x1a3)],'yRoCj':_0x51e73c['jvfBG'],'OvGDt':_0x51e73c[_0x34297d(0x197)],'Ilpmn':_0x51e73c['zgUdw'],'lancS':_0x51e73c[_0x34297d(0x178)],'biQWZ':_0x51e73c['FGdKh'],'nKvBk':_0x51e73c[_0x34297d(0xed)],'sCOdK':_0x51e73c[_0x34297d(0xfe)],'qpUwg':function(_0x116a06){const _0x44a0f4=_0x34297d;return _0x51e73c[_0x44a0f4(0x108)](_0x116a06);},'QthzH':_0x51e73c['JqQVY'],'lWAUg':function(_0x331e8c,_0x5909f1){const _0x305987=_0x34297d;return _0x51e73c[_0x305987(0x103)](_0x331e8c,_0x5909f1);},'Pmhst':function(_0x5379d9){return _0x51e73c['tRsVh'](_0x5379d9);}},_0x3bf4c0=async(_0x5b7d72,_0x41b2ff)=>{const _0x4250e8=_0x34297d;await global['__drivers'][0x0]['executeScript']('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x5b7d72+',\x22level\x22:\x20\x22'+_0x41b2ff+_0x4250e8(0x18b));};new Promise(async _0x5a9279=>{const _0x306129=_0x34297d,_0x2db0eb={'kedyX':_0x146b3c[_0x306129(0xe1)],'buSQi':function(_0x38fe3d,_0x16e61d){const _0x9f725a=_0x306129;return _0x146b3c[_0x9f725a(0x18f)](_0x38fe3d,_0x16e61d);},'xizwM':_0x146b3c[_0x306129(0x190)],'tgwDK':function(_0x15d27b,_0x27dc3c,_0x5e24c0){const _0x4272b9=_0x306129;return _0x146b3c[_0x4272b9(0xe3)](_0x15d27b,_0x27dc3c,_0x5e24c0);},'jADfq':function(_0x5038b4,_0x4f84d9){const _0x46fec8=_0x306129;return _0x146b3c[_0x46fec8(0x117)](_0x5038b4,_0x4f84d9);},'DxAaL':_0x146b3c[_0x306129(0x18e)],'bjELg':_0x146b3c[_0x306129(0x105)],'kyyDm':function(_0x2d3bda,_0x1d184e,_0x5ce849){const _0x150643=_0x306129;return _0x146b3c[_0x150643(0xe3)](_0x2d3bda,_0x1d184e,_0x5ce849);},'NLyjP':_0x146b3c[_0x306129(0x184)],'Kenbs':_0x146b3c[_0x306129(0x12b)]};try{_0x146b3c[_0x306129(0x11c)](global['__drivers'][_0x306129(0x123)],0x1)&&(await global['driverCleanup'](),global[_0x306129(0x146)]['shift'](),global['__error_messages__']=[],global[_0x306129(0xfb)]=![]);try{if(global[_0x306129(0x145)]&&_0x146b3c[_0x306129(0xf8)](global[_0x306129(0x15a)],_0x146b3c[_0x306129(0x10d)])&&global[_0x306129(0x146)][0x0]){const _0x1b1db4=_0x146b3c[_0x306129(0x168)](global[_0x306129(0x13c)][_0x306129(0x123)],0x0)?!!global[_0x306129(0x13c)][0x0][_0x306129(0x17e)]||!!global[_0x306129(0x13c)][0x0][_0x146b3c[_0x306129(0x149)]]:![],_0x37584d={};_0x37584d[_0x306129(0x17e)]=_0x1b1db4,await _0x146b3c[_0x306129(0x1a0)](percyAutoCapture,global[_0x306129(0x146)][0x0],_0x146b3c[_0x306129(0x10d)],_0x37584d);}}catch(_0x1ab711){logger[_0x306129(0xd9)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x1ab711);}!global[_0x306129(0x16e)]&&(await PerformanceTester[_0x306129(0x10f)](PerformanceAutEvents[_0x306129(0xec)],async()=>{const _0x44a0ee=_0x306129;await global[_0x44a0ee(0x146)][0x0][_0x44a0ee(0x128)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x44a0ee(0xe4)](this['currentTest'][_0x44a0ee(0xe0)]()[_0x44a0ee(0xfa)](_0x2db0eb['kedyX']))+'}}');})(),global[_0x306129(0x146)][0x0][_0x306129(0xe6)]=!![]),await PerformanceTester[_0x306129(0x10f)](PerformanceAutEvents[_0x306129(0xd0)],async()=>{const _0x57ef66=_0x306129,_0x12c460=_0x2db0eb['buSQi'](this['currentTest'][_0x57ef66(0xf3)],_0x2db0eb[_0x57ef66(0x16d)]);_0x12c460?(global[_0x57ef66(0xfb)]=!![],global[_0x57ef66(0x154)][_0x57ef66(0x18c)](this['currentTest'][_0x57ef66(0x12d)]['message']),await _0x2db0eb['tgwDK'](_0x3bf4c0,JSON['stringify'](_0x2db0eb[_0x57ef66(0x13d)](_0x2db0eb[_0x57ef66(0x144)],this[_0x57ef66(0xd8)][_0x57ef66(0x12d)][_0x57ef66(0x125)])),_0x2db0eb[_0x57ef66(0x11d)])):await _0x2db0eb[_0x57ef66(0x13a)](_0x3bf4c0,JSON[_0x57ef66(0xe4)](_0x2db0eb[_0x57ef66(0x159)]),_0x2db0eb[_0x57ef66(0x118)]);})();}catch(_0x57575d){logger[_0x306129(0xd9)](_0x306129(0x141)+_0x57575d);}try{if(this[_0x306129(0xd8)]['accessibilityScanStarted']&&globals[_0x306129(0x176)](_0x146b3c[_0x306129(0x199)])&&globals[_0x306129(0x176)](_0x146b3c[_0x306129(0x19a)])){logger[_0x306129(0xf7)](_0x146b3c[_0x306129(0x12f)]);const _0x32947d={};_0x32947d['thTestRunUuid']=this[_0x306129(0xd8)][_0x306129(0xdd)],_0x32947d[_0x306129(0x156)]=process[_0x306129(0x171)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']],_0x32947d[_0x306129(0xce)]=process[_0x306129(0x171)][testHubConstants[_0x306129(0x120)][_0x306129(0x165)]];const _0x13dbfc=_0x32947d;logger[_0x306129(0xd9)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON['stringify'](_0x13dbfc)),logger['debug'](_0x146b3c['yRoCj']);const _0x6f6368={};_0x6f6368[_0x306129(0xfc)]=_0x146b3c[_0x306129(0x191)];const _0x33a9af=await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x326cd2=_0x306129;return await accessibilityRetryHelper[_0x326cd2(0xf5)](global['__drivers'][0x0],global[_0x326cd2(0x15c)]);},_0x6f6368)();_0x33a9af?logger[_0x306129(0xd9)](_0x146b3c[_0x306129(0x104)]):logger['warn'](_0x146b3c[_0x306129(0x151)]);const _0x544464=await PerformanceTester[_0x306129(0x10f)](PerformanceA11yEvents[_0x306129(0x164)],async()=>{const _0x58a606=_0x306129;return await accessibilityRetryHelper[_0x58a606(0x161)](global[_0x58a606(0x146)][0x0],_0x13dbfc);})();_0x544464?logger[_0x306129(0xd9)](_0x146b3c['biQWZ']):logger[_0x306129(0x195)](_0x146b3c['nKvBk']),logger[_0x306129(0xf7)](_0x146b3c[_0x306129(0x14c)]);}}catch(_0x1f20fc){logger[_0x306129(0xd2)](_0x306129(0x13f)+this['currentTest'][_0x306129(0xe0)]()+'.\x20Error\x20:',_0x1f20fc);}try{try{if(_0x146b3c[_0x306129(0xd1)](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x146b3c[_0x306129(0xe3)](sendPlatformDetails,global['__drivers'][0x0],this[_0x306129(0xd8)]?this[_0x306129(0xd8)][_0x306129(0xdd)]:null);if(_0x146b3c[_0x306129(0xd1)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x306129(0x181)]);const _0x2c6b08=_0x306129(0x11b)+Date['now']();await _0x146b3c[_0x306129(0xe3)](_0x3bf4c0,JSON[_0x306129(0xe4)](_0x2c6b08),_0x146b3c[_0x306129(0x13b)]),PerformanceTester[_0x306129(0x107)](PerformanceO11yEvents[_0x306129(0x181)]);}}}catch(_0x4d6944){logger['debug'](_0x306129(0x15d)+_0x4d6944),PerformanceTester['end'](PerformanceO11yEvents[_0x306129(0x181)],![],_0x4d6944);}_0x146b3c['lWAUg'](global[_0x306129(0x146)][0x0][_0x306129(0x172)],0x0)&&await global[_0x306129(0x132)]();}catch(_0x39b49c){logger[_0x306129(0xd9)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x39b49c);}_0x146b3c['Pmhst'](_0x5a9279);})[_0x34297d(0x175)](()=>{const _0x5cbe46=_0x34297d;_0x51e73c[_0x5cbe46(0x108)](_0x84689b);});},{'platform':_0x51e73c[_0x9de0e8(0x19c)](nestedKeyValue,global[_0x9de0e8(0x11e)],[_0x51e73c[_0x9de0e8(0x173)]]),'hookType':_0x51e73c[_0x9de0e8(0x187)]})();},'afterAll'(_0x5d1cb1){const _0x565c02=a36_0x57d32f,_0x473c5e={'gXYVk':function(_0x2034c9){return _0x2034c9();},'gcHSa':function(_0x5a9456){return _0x5a9456();},'IGoJA':_0x565c02(0x160),'DSHPM':function(_0x18217f,_0x2d2363,_0x1d0b1e){return _0x18217f(_0x2d2363,_0x1d0b1e);},'YmetA':'index','lAjQK':'afterAll'},_0x2006c4='browserstack internal helper hook';this[_0x565c02(0x166)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x473c5e[_0x565c02(0x139)]]),PerformanceTester[_0x565c02(0x10f)](PerformanceSdkEvents[_0x565c02(0x189)],()=>{const _0x54cff9=_0x565c02,_0xd8c418={'RlkTP':function(_0x39a579){return _0x473c5e['gcHSa'](_0x39a579);}};new Promise(async _0x420c50=>{const _0x28182e=a36_0x55c1;await global[_0x28182e(0x132)](),_0xd8c418[_0x28182e(0xda)](_0x420c50);})[_0x54cff9(0x175)]()[_0x54cff9(0x119)](()=>{const _0x519573=_0x54cff9;_0x473c5e[_0x519573(0xd6)](_0x5d1cb1);});},{'platform':_0x473c5e[_0x565c02(0x130)](nestedKeyValue,global[_0x565c02(0x11e)],[_0x473c5e['YmetA']]),'hookType':_0x473c5e[_0x565c02(0xef)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a37_0xa08444=a37_0x547e;(function(_0x3cd28b,_0x8be65c){const _0x1b30b0=a37_0x547e,_0x5ec139=_0x3cd28b();while(!![]){try{const _0x5db61a=parseInt(_0x1b30b0(0x1ee))/0x1*(parseInt(_0x1b30b0(0x1db))/0x2)+parseInt(_0x1b30b0(0x1e1))/0x3*(parseInt(_0x1b30b0(0x20d))/0x4)+-parseInt(_0x1b30b0(0x20e))/0x5+parseInt(_0x1b30b0(0x207))/0x6+-parseInt(_0x1b30b0(0x1fc))/0x7*(parseInt(_0x1b30b0(0x203))/0x8)+parseInt(_0x1b30b0(0x1f5))/0x9*(parseInt(_0x1b30b0(0x20a))/0xa)+-parseInt(_0x1b30b0(0x1cf))/0xb*(parseInt(_0x1b30b0(0x1c9))/0xc);if(_0x5db61a===_0x8be65c)break;else _0x5ec139['push'](_0x5ec139['shift']());}catch(_0x473e71){_0x5ec139['push'](_0x5ec139['shift']());}}}(a37_0x4700,0x77324));function a37_0x547e(_0x42a283,_0x3b9b71){const _0x4700a6=a37_0x4700();return a37_0x547e=function(_0x547e9c,_0x4491db){_0x547e9c=_0x547e9c-0x1c5;let _0x3bf52e=_0x4700a6[_0x547e9c];return _0x3bf52e;},a37_0x547e(_0x42a283,_0x3b9b71);}function a37_0x4700(){const _0xe1518e=['env','kYSpG','nightwatch-browserstack.json','cwd','11904LKgFwR','start_process','child\x20process\x20exited\x20with\x20code\x20','nightwatch.conf.js','now','--config','3UIaNyT','QLzPz','writeFileSync','--env','platform','MYjYs','modifyBrowserStackW3CCaps','bMyOe','findIndex','VmUmD','hxnkj','test_settings','path','3bLBmcX','uvMpO','nightwatch.json','Deleting\x20','jYeyw','length','../utils/constants','315ePkvaI','FiBeW','port','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','XlPHe','urKkV','CIPgS','7QVdBTP','../../helpers/helper','forEach','KSGWX','EZaOc','../../helpers/logger','stringify','6964432ageYaJ','ScYEb','platforms','nightwatch.cmd','5787270kfsPBS','modifyBrowserStackCaps','join','70270UqikyV','getPlatformName','isUndefined','3038668FCtFkg','2194450xJAdoN','splice','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','rUvbx','slice','webdriver','test','108afVgKD','desiredCapabilities','selenium','push','info','gwyAB','232639lqSJfU','nightwatch','hub.browserstack.com','Getting\x20your\x20nightwatch\x20configs\x20from\x20','trim','existsSync','map','config'];a37_0x4700=function(){return _0xe1518e;};return a37_0x4700();}const fs=require('fs'),path=require(a37_0xa08444(0x1ed)),{spawn}=require('child_process'),logger=require(a37_0xa08444(0x201))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a37_0xa08444(0x1fd)),constants=require(a37_0xa08444(0x1f4)),getUserNightwatchConfigs=(_0x362513,_0x21b972)=>{const _0xe51c03=a37_0xa08444,_0x2e3b40={'FiBeW':_0xe51c03(0x1de),'RyGdj':_0xe51c03(0x1f0),'EZaOc':function(_0x106ef4,_0x11a97d){return _0x106ef4(_0x11a97d);},'hxnkj':_0xe51c03(0x210)};let _0x220965=null,_0x55178c={};const _0x226eaa=_0x21b972[_0xe51c03(0x1e9)](_0x51e8f8=>_0x51e8f8===_0xe51c03(0x1e0));if(!helper[_0xe51c03(0x20c)](_0x362513[_0xe51c03(0x1d6)])&&fs[_0xe51c03(0x1d4)](path[_0xe51c03(0x209)](process[_0xe51c03(0x1da)](),_0x362513[_0xe51c03(0x1d6)])))_0x220965=path[_0xe51c03(0x209)](process[_0xe51c03(0x1da)](),_0x362513[_0xe51c03(0x1d6)]),_0x21b972['splice'](_0x226eaa,0x2);else{if(fs[_0xe51c03(0x1d4)](path['join'](process[_0xe51c03(0x1da)](),_0x2e3b40[_0xe51c03(0x1f6)])))_0x220965=path[_0xe51c03(0x209)](process[_0xe51c03(0x1da)](),_0x2e3b40[_0xe51c03(0x1f6)]);else fs[_0xe51c03(0x1d4)](path[_0xe51c03(0x209)](process[_0xe51c03(0x1da)](),_0x2e3b40['RyGdj']))&&(_0x220965=path[_0xe51c03(0x209)](process['cwd'](),_0x2e3b40['RyGdj']));}return _0x220965?(logger[_0xe51c03(0x1cd)](_0xe51c03(0x1d2)+_0x220965),_0x55178c=_0x2e3b40[_0xe51c03(0x200)](require,_0x220965)):logger[_0xe51c03(0x1cd)](_0x2e3b40[_0xe51c03(0x1eb)]),_0x55178c;},removeExistingEnvs=_0x120582=>{const _0xc94fad=a37_0xa08444,_0x43b18b={};_0x43b18b[_0xc94fad(0x1f9)]=function(_0x208192,_0x52032d){return _0x208192>_0x52032d;};const _0x483aa0=_0x43b18b;let _0x429105=_0x120582[_0xc94fad(0x1e9)](_0x5c2c6b=>_0x5c2c6b===_0xc94fad(0x1e4));_0x483aa0['XlPHe'](_0x429105,-0x1)&&_0x120582[_0xc94fad(0x20f)](_0x429105,0x2),_0x429105=_0x120582[_0xc94fad(0x1e9)](_0xe5fc77=>_0xe5fc77==='-e'),_0x483aa0[_0xc94fad(0x1f9)](_0x429105,-0x1)&&_0x120582['splice'](_0x429105,0x2);};function run(_0x265989,_0x1cf7cf,_0x3fbdfb){const _0x1a576a=a37_0xa08444,_0x4ad113={'CIPgS':_0x1a576a(0x1d0),'zrPSv':function(_0x4cd725,_0x371393){return _0x4cd725+_0x371393;},'ScYEb':_0x1a576a(0x1ec),'jYeyw':function(_0x40184f,_0x400b16,_0x5031d2){return _0x40184f(_0x400b16,_0x5031d2);},'nHsHV':_0x1a576a(0x1d1),'bMiJE':_0x1a576a(0x1f8),'VmUmD':function(_0x593325,_0x41bd05){return _0x593325===_0x41bd05;},'KSGWX':_0x1a576a(0x1d9),'rUvbx':function(_0x1d730b,_0x4c5bda){return _0x1d730b(_0x4c5bda);},'kYSpG':function(_0x5ad1c6,_0x57a1c5,_0x46423d,_0x52fe9a){return _0x5ad1c6(_0x57a1c5,_0x46423d,_0x52fe9a);},'MYjYs':_0x1a576a(0x206),'QLzPz':'--config','KqSQF':_0x1a576a(0x1e4),'urKkV':'inherit','uvMpO':'close'};if(!_0x3fbdfb[_0x1a576a(0x1d6)])return;const _0x7411d7=_0x4ad113[_0x1a576a(0x1f2)](getUserNightwatchConfigs,_0x265989,_0x1cf7cf),_0x1e2c83={};_0x1e2c83[_0x1a576a(0x1dc)]=![];const _0x4b99a7={};_0x4b99a7['host']=_0x4ad113['nHsHV'],_0x4b99a7[_0x1a576a(0x1f7)]=0x1bb;const _0x10372e={};_0x10372e[_0x1a576a(0x1c7)]=_0x1e2c83,_0x10372e[_0x1a576a(0x1cb)]=_0x4b99a7;const _0x36d1ed=_0x10372e;logger['info'](_0x4ad113['bMiJE']);const _0x130c74={..._0x7411d7},_0x2fa0b1=_0x130c74,_0x5775a8=helper['useW3C'](_0x3fbdfb[_0x1a576a(0x1d6)]),_0x33dc9d=[];_0x3fbdfb['config'][_0x1a576a(0x205)][_0x1a576a(0x1fe)]((_0x33fb8d,_0xd5f3e0)=>{const _0x59ac64=_0x1a576a;_0x5775a8?_0x33dc9d[_0x59ac64(0x1cc)](helper[_0x59ac64(0x1e7)](_0x3fbdfb[_0x59ac64(0x1d6)],_0x4ad113[_0x59ac64(0x1fb)],_0xd5f3e0)):_0x33dc9d[_0x59ac64(0x1cc)](helper[_0x59ac64(0x208)](_0x3fbdfb[_0x59ac64(0x1d6)],_0x4ad113[_0x59ac64(0x1fb)],_0xd5f3e0));});const _0x4edd73={},_0x4a4417=[];_0x265989[_0x1a576a(0x1d7)]=_0x265989['env']||_0x265989['e'];const _0x23214f=_0x265989['env']?_0x265989[_0x1a576a(0x1d7)][_0x1a576a(0x1d3)]()['split'](',')[_0x1a576a(0x1d5)](_0x4cf7f9=>_0x4cf7f9[_0x1a576a(0x1d3)]())['filter'](_0x591872=>_0x591872!==''):[''];_0x4ad113[_0x1a576a(0x1ea)](_0x23214f[_0x1a576a(0x1f3)],0x0)&&_0x23214f[_0x1a576a(0x1cc)]('');_0x23214f[_0x1a576a(0x1fe)](_0x1e6039=>{const _0x3d5543=_0x1a576a,_0x3cb1e0={'gwyAB':function(_0x5289bb,_0x28341f){return _0x4ad113['zrPSv'](_0x5289bb,_0x28341f);},'bMyOe':_0x4ad113[_0x3d5543(0x204)]};_0x33dc9d[_0x3d5543(0x1fe)](_0x41435c=>{const _0x343cdd=_0x3d5543;let _0x4fed12=_0x3cb1e0[_0x343cdd(0x1ce)](helper[_0x343cdd(0x20b)](_0x41435c,'_'),'_'+Date[_0x343cdd(0x1df)]());_0x1e6039&&(_0x4fed12+='_'+_0x1e6039);if(_0x1e6039&&(!_0x7411d7[_0x3cb1e0[_0x343cdd(0x1e8)]]||!_0x7411d7[_0x3cb1e0[_0x343cdd(0x1e8)]][_0x1e6039]))return;const _0x238f14={..._0x36d1ed};_0x238f14[_0x343cdd(0x1ca)]=_0x41435c;const _0xaa5fd8=_0x238f14;_0x4edd73[_0x4fed12]=_0x1e6039?helper['mergeDeep'](_0x7411d7[_0x3cb1e0[_0x343cdd(0x1e8)]][_0x1e6039],_0xaa5fd8):_0xaa5fd8,_0x4a4417[_0x343cdd(0x1cc)](_0x4fed12);});});!_0x2fa0b1[_0x1a576a(0x1ec)]&&(_0x2fa0b1[_0x1a576a(0x1ec)]={});_0x2fa0b1[_0x1a576a(0x1ec)]={..._0x2fa0b1[_0x1a576a(0x1ec)],..._0x4edd73};const _0x493174=path['join'](__dirname,_0x4ad113[_0x1a576a(0x1ff)]);fs[_0x1a576a(0x1e3)](_0x493174,JSON[_0x1a576a(0x202)](_0x2fa0b1)),_0x4ad113[_0x1a576a(0x1c5)](removeExistingEnvs,_0x1cf7cf);const _0xa27066=_0x4ad113[_0x1a576a(0x1d8)](spawn,/^win/[_0x1a576a(0x1c8)](process[_0x1a576a(0x1e5)])?_0x4ad113[_0x1a576a(0x1e6)]:_0x4ad113[_0x1a576a(0x1fb)],[_0x4ad113[_0x1a576a(0x1e2)],_0x493174,..._0x1cf7cf[_0x1a576a(0x1c6)](0x1),_0x4ad113['KqSQF'],_0x4a4417['join'](',')],{'stdio':_0x4ad113[_0x1a576a(0x1fa)]});_0xa27066['on'](_0x4ad113[_0x1a576a(0x1ef)],async _0x3f900c=>{const _0x4f7321=_0x1a576a;logger['debug'](_0x4f7321(0x1dd)+_0x3f900c),logger[_0x4f7321(0x1cd)](_0x4f7321(0x1f1)+_0x493174),fs['unlinkSync'](_0x493174);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x1fbaa4=a38_0xe4b1;function a38_0x3670(){const _0x14b0d4=['10446vEiDIF','browser_version','wxjmD','WebDriver','replace','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','lefUF','Performing\x20scan\x20with\x20method:\x20','deviceName','../../helpers/accessibility-automation/helper','find','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','418898mDUmkN','qKJGf','XaIXM','browser','BuBdY','accessibilityOptions.includeIssueType.bestPractice','../../helpers/logger','3225bcUYlO','27axuFMv','JnvuX','../../helpers/performance/performance-tester','eXrSL','browserStackExecuteDriver','body','1956104sawfmq','name','iAxqu','TqGdG','amlJJ','caEen','includes','latest','hVnTh','processAccessibilityCaps','21khhaVC','request','connectOptions','VXFZb','rqSkS','parse','url','svPax','setAccessibilityCapabilities','8657936CSkqKO','command','accessibilityOptions.wcagVersion','message','warn','152574QmRrrI','measureWrapper','accessibilityOptions','WCcuW','parameters','DZaFF','osSjp','\x20page:\x20','PEYzF','Iiiyg','bofDL','Dfzjo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','browserstack.accessibility','bcJwR','aQDSF','debug','env','ZXJAY','5071912UiWRPB','opaec','scannerProcessingTimeout','No\x20accessibility\x20results\x20were\x20found.','../../helpers/performance/constants','QJQzt','Playwright','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','(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','includeIssueType','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','rUvxh','project','BS_A11Y_JWT','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','getAccessibilityResultsSummary','playwright-chromium','currentTest','string','wcagVersion','uSBGr','../../helpers/accessibility-automation/scripts','ZQLEV','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','stringify','winstonLogger','ckcro','byUCt','PERFORM_SCAN','xfLTt','accessibilityPlatform','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','Rlejo','accessibilityOptions.includeIssueType.needsReview','Gpoum','][\x20SDK-AUTOMATION\x20]\x20','accessibilityOptions.scannerProcessingTimeout','../utils/constants','constructor','qkIDS','4611780AsmccC','getAccessibilityResults','browserName','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','wsEndpoint','silly','FYYwa','No\x20summaryResults\x20found.','accessibilityOptions.scannerVersion','platformValidation','YxaYZ','rOrTG','use','UjVFB','util','executeAsyncScript','chrome','VTyVW','format','toISOString','DWhiX','needsReview'];a38_0x3670=function(){return _0x14b0d4;};return a38_0x3670();}(function(_0x11dd4d,_0x212e32){const _0x182638=a38_0xe4b1,_0x1ee1ea=_0x11dd4d();while(!![]){try{const _0x38d694=parseInt(_0x182638(0x194))/0x1+-parseInt(_0x182638(0x16e))/0x2*(parseInt(_0x182638(0x186))/0x3)+parseInt(_0x182638(0x1a7))/0x4+parseInt(_0x182638(0x175))/0x5*(parseInt(_0x182638(0x162))/0x6)+-parseInt(_0x182638(0x18f))/0x7+-parseInt(_0x182638(0x17c))/0x8+parseInt(_0x182638(0x176))/0x9*(parseInt(_0x182638(0x1d0))/0xa);if(_0x38d694===_0x212e32)break;else _0x1ee1ea['push'](_0x1ee1ea['shift']());}catch(_0x4765ba){_0x1ee1ea['push'](_0x1ee1ea['shift']());}}}(a38_0x3670,0xef247));const util=require(a38_0x1fbaa4(0x15a)),logger=require('../../helpers/logger')[a38_0x1fbaa4(0x1c0)],{automationLogger}=require(a38_0x1fbaa4(0x174)),{isAccessibilityAutomationSession}=require(a38_0x1fbaa4(0x16b)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require(a38_0x1fbaa4(0x1bc)),PerformanceTester=require(a38_0x1fbaa4(0x178)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x1fbaa4(0x1ab)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x1fbaa4(0x1cd));function a38_0xe4b1(_0x39bd31,_0x5f52b8){const _0x36703d=a38_0x3670();return a38_0xe4b1=function(_0xe4b16e,_0x2e1a27){_0xe4b16e=_0xe4b16e-0x153;let _0x3235a7=_0x36703d[_0xe4b16e];return _0x3235a7;},a38_0xe4b1(_0x39bd31,_0x5f52b8);}exports['browserStackEvaluate']=async(_0x4586c0,_0x28de20,_0x500c6a={})=>{const _0x3e0bb7=a38_0x1fbaa4,_0x3c3671={};_0x3c3671[_0x3e0bb7(0x18d)]='bstackSdkArgs',_0x3c3671[_0x3e0bb7(0x1c1)]=function(_0x389e4d,_0x15634b){return _0x389e4d===_0x15634b;},_0x3c3671[_0x3e0bb7(0x1a6)]=_0x3e0bb7(0x1b9);const _0x376b1e=_0x3c3671,_0x2e73e9=await _0x4586c0['evaluate']('(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'+_0x28de20[_0x3e0bb7(0x166)](/arguments/g,_0x376b1e['svPax'])+_0x3e0bb7(0x1c7)+JSON[_0x3e0bb7(0x1bf)](_0x500c6a)+')');try{if(_0x28de20&&_0x376b1e['ckcro'](typeof _0x28de20,_0x376b1e[_0x3e0bb7(0x1a6)])){const _0x51a8dc=AUTOMATION_LOG_COMMANDS[_0x3e0bb7(0x16c)](_0x3f88b1=>_0x28de20[_0x3e0bb7(0x182)](_0x3f88b1));if(_0x51a8dc){const _0x232d88={};_0x232d88['command']=_0x51a8dc,_0x232d88[_0x3e0bb7(0x198)]=[_0x500c6a];const _0x3784ef={};_0x3784ef[_0x3e0bb7(0x17b)]=_0x2e73e9;const _0x450b2f={};_0x450b2f[_0x3e0bb7(0x187)]=_0x232d88,_0x450b2f['response']=_0x3784ef,automationLogger[_0x3e0bb7(0x1d5)]('['+new Date()[_0x3e0bb7(0x15f)]()+_0x3e0bb7(0x1cb)+JSON[_0x3e0bb7(0x1bf)](_0x450b2f));}}}catch(_0x5c46fe){logger[_0x3e0bb7(0x1a4)](_0x3e0bb7(0x1b5)+_0x5c46fe[_0x3e0bb7(0x192)]);}return _0x2e73e9;},exports[a38_0x1fbaa4(0x17a)]=async(_0x4e30b3,_0x265390,_0x4361f3={})=>{const _0x92cb7f=a38_0x1fbaa4,_0x5acf02={};_0x5acf02[_0x92cb7f(0x19d)]=function(_0x365484,_0x3ff2dc){return _0x365484===_0x3ff2dc;},_0x5acf02[_0x92cb7f(0x157)]=_0x92cb7f(0x165),_0x5acf02[_0x92cb7f(0x181)]=function(_0x4bc349,_0x238810){return _0x4bc349===_0x238810;},_0x5acf02[_0x92cb7f(0x19e)]=_0x92cb7f(0x1ad),_0x5acf02[_0x92cb7f(0x19f)]='bstackSdkArgs';const _0x1e6c23=_0x5acf02;if(_0x1e6c23['Iiiyg'](_0x4e30b3[_0x92cb7f(0x1ce)][_0x92cb7f(0x17d)],_0x1e6c23[_0x92cb7f(0x157)]))return await _0x4e30b3[_0x92cb7f(0x15b)](_0x265390,_0x4361f3);else{if(_0x1e6c23[_0x92cb7f(0x181)](_0x4e30b3[_0x92cb7f(0x1ce)][_0x92cb7f(0x17d)],_0x1e6c23['bofDL']))return await _0x4e30b3['executeScript'](_0x92cb7f(0x1af)+_0x265390['replace'](/arguments/g,_0x1e6c23[_0x92cb7f(0x19f)])+_0x92cb7f(0x1b1)+JSON[_0x92cb7f(0x1bf)](_0x4361f3)+')');}},exports[a38_0x1fbaa4(0x18e)]=async _0x1870d7=>{const _0x4ce3ad=a38_0x1fbaa4,_0x2e6990={};_0x2e6990[_0x4ce3ad(0x1ca)]=_0x4ce3ad(0x191),_0x2e6990['TqGdG']=_0x4ce3ad(0x1cc),_0x2e6990['qKJGf']=_0x4ce3ad(0x173),_0x2e6990['VXFZb']=_0x4ce3ad(0x1c9),_0x2e6990[_0x4ce3ad(0x1cf)]='accessibilityOptions.authToken',_0x2e6990[_0x4ce3ad(0x156)]=_0x4ce3ad(0x154);const _0x573d5a=_0x2e6990;_0x1870d7[_0x4ce3ad(0x196)]&&(_0x1870d7['accessibilityOptions']['wcagVersion']&&(_0x1870d7[_0x573d5a[_0x4ce3ad(0x1ca)]]=_0x1870d7[_0x4ce3ad(0x196)][_0x4ce3ad(0x1ba)]),_0x1870d7[_0x4ce3ad(0x196)]['scannerProcessingTimeout']&&(_0x1870d7[_0x573d5a[_0x4ce3ad(0x17f)]]=_0x1870d7[_0x4ce3ad(0x196)][_0x4ce3ad(0x1a9)]),_0x1870d7[_0x4ce3ad(0x196)][_0x4ce3ad(0x1b0)]&&(_0x1870d7[_0x573d5a[_0x4ce3ad(0x16f)]]=_0x1870d7[_0x4ce3ad(0x196)][_0x4ce3ad(0x1b0)]['bestPractice'],_0x1870d7[_0x573d5a[_0x4ce3ad(0x189)]]=_0x1870d7[_0x4ce3ad(0x196)]['includeIssueType'][_0x4ce3ad(0x161)]));const _0x4f62b3=JSON[_0x4ce3ad(0x18b)](process['env'][_0x4ce3ad(0x1c6)])['scannerVersion'];_0x1870d7[_0x573d5a[_0x4ce3ad(0x1cf)]]=process[_0x4ce3ad(0x1a5)][_0x4ce3ad(0x1b4)],_0x1870d7[_0x573d5a[_0x4ce3ad(0x156)]]=_0x4f62b3,delete _0x1870d7['accessibilityOptions'];},exports[a38_0x1fbaa4(0x1d1)]=async _0xc55af=>{const _0x3c8d81=a38_0x1fbaa4,_0x191dcc={};_0x191dcc[_0x3c8d81(0x1c8)]=_0x3c8d81(0x1aa),_0x191dcc[_0x3c8d81(0x1bb)]=_0x3c8d81(0x1ae);const _0x4ca72e=_0x191dcc;if(global[_0x3c8d81(0x1c5)])try{const details={'url':await _0xc55af.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0xc55af,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0xc55af,scripts.getResults);},{...details})();return res;}catch{return logger['error'](_0x4ca72e[_0x3c8d81(0x1c8)]),[];}else return logger[_0x3c8d81(0x193)](_0x4ca72e[_0x3c8d81(0x1bb)]),[];},exports['performScan']=async(_0x25c46d,_0x4f91c5='')=>{const _0x587c64=a38_0x1fbaa4;logger[_0x587c64(0x1a4)](_0x587c64(0x169)+_0x4f91c5+_0x587c64(0x19b)+_0x25c46d);const _0x2f33c6={'url':await _0x25c46d[_0x587c64(0x18c)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x587c64(0x1b8)]?.['id']};if(global[_0x587c64(0x1c5)])return await PerformanceTester[_0x587c64(0x195)](PerformanceA11yEvents[_0x587c64(0x1c3)],async()=>{const _0xee0f54=_0x587c64,_0x47a544={};_0x47a544[_0xee0f54(0x190)]=_0x4f91c5;const _0x2adfe6=await exports['browserStackEvaluate'](_0x25c46d,scripts['performScan'],_0x47a544);return _0x2adfe6;},{'command':_0x4f91c5,..._0x2f33c6})();},exports[a38_0x1fbaa4(0x1b6)]=async _0x55dc78=>{const _0x463208=a38_0x1fbaa4,_0x1b6842={};_0x1b6842[_0x463208(0x19a)]=_0x463208(0x153),_0x1b6842[_0x463208(0x19c)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x43087a=_0x1b6842;if(global[_0x463208(0x1c5)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x55dc78,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x55dc78,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x463208(0x1a4)](_0x43087a[_0x463208(0x19a)]),{};}else return logger[_0x463208(0x193)](_0x43087a['PEYzF']),{};},exports[a38_0x1fbaa4(0x155)]=async _0x112631=>{const _0x5e3ac7=a38_0x1fbaa4,_0x24be3e={'lefUF':function(_0x2d98cc,_0xbd7ad9){return _0x2d98cc!==_0xbd7ad9;},'TXxMV':_0x5e3ac7(0x16d),'amlJJ':'chrome','WCcuW':_0x5e3ac7(0x1b7),'xfLTt':'chromium','byUCt':_0x5e3ac7(0x1be),'JnvuX':function(_0x11b073,_0x211081){return _0x11b073(_0x211081);},'BuBdY':function(_0x3a5eb9){return _0x3a5eb9();},'iAxqu':function(_0x12e9ce,_0x5c1b43){return _0x12e9ce<_0x5c1b43;},'DWhiX':_0x5e3ac7(0x1a0),'ZTqaa':function(_0x3f4977,_0x261b1f){return _0x3f4977===_0x261b1f;},'JPDNg':'latest','hVnTh':function(_0x3dc331,_0x57c359){return _0x3dc331>_0x57c359;},'aQDSF':_0x5e3ac7(0x1d3)};try{if(!_0x24be3e[_0x5e3ac7(0x168)](_0x112631[_0x5e3ac7(0x16a)],''))return logger[_0x5e3ac7(0x193)](_0x24be3e['TXxMV']),![];const _0x43f97a=_0x112631[_0x5e3ac7(0x171)];if(![_0x24be3e[_0x5e3ac7(0x180)],_0x24be3e[_0x5e3ac7(0x197)],_0x24be3e[_0x5e3ac7(0x1c4)]][_0x5e3ac7(0x182)](_0x43f97a))return logger[_0x5e3ac7(0x193)](_0x24be3e[_0x5e3ac7(0x1c2)]),![];const _0xa98081=_0x24be3e[_0x5e3ac7(0x177)](parseInt,_0x112631[_0x5e3ac7(0x163)]);!_0x24be3e[_0x5e3ac7(0x172)](isBrowserstackInfra)&&(!_0x24be3e[_0x5e3ac7(0x17e)](_0xa98081,0x64)&&logger[_0x5e3ac7(0x193)](_0x24be3e[_0x5e3ac7(0x160)]));if(!(_0x24be3e['ZTqaa'](_0xa98081,_0x24be3e['JPDNg'])||_0x24be3e[_0x5e3ac7(0x184)](_0xa98081,0x5e)))return logger['warn'](_0x24be3e[_0x5e3ac7(0x1a3)]),![];}catch(_0x5ab332){logger[_0x5e3ac7(0x1a4)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x5e3ac7(0x15e)](_0x5ab332));}return!![];},exports[a38_0x1fbaa4(0x185)]=(_0x4bc7fd,_0x205eaf,_0x2e90ae)=>{const _0x1f30ed=a38_0x1fbaa4,_0x3dc34d={'wxjmD':function(_0x474b11){return _0x474b11();},'DZaFF':_0x1f30ed(0x1a1),'opaec':function(_0x1f7b1e,_0x1d4ceb){return _0x1f7b1e===_0x1d4ceb;},'ZQLEV':_0x1f30ed(0x15c),'XaIXM':_0x1f30ed(0x1b7),'eXrSL':_0x1f30ed(0x1be),'Agddj':function(_0x47e413){return _0x47e413();},'bcJwR':function(_0x36aaac,_0x1321fa){return _0x36aaac>_0x1321fa;},'FYYwa':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','qqrKD':function(_0x30475a,_0x11510a){return _0x30475a===_0x11510a;},'QJQzt':_0x1f30ed(0x183),'rUvxh':_0x1f30ed(0x1d3),'VTyVW':function(_0x1849aa,_0x2dd239){return _0x1849aa(_0x2dd239);},'rqSkS':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','UjVFB':function(_0x466bb1,_0x542e2f){return _0x466bb1+_0x542e2f;}};try{if(_0x3dc34d[_0x1f30ed(0x164)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x4bc7fd[_0x3dc34d['DZaFF']]&&(global[_0x1f30ed(0x1c5)]=![]);!(_0x3dc34d[_0x1f30ed(0x1a8)](_0x4bc7fd['browserName'],_0x3dc34d[_0x1f30ed(0x1bd)])||_0x3dc34d[_0x1f30ed(0x1a8)](_0x4bc7fd[_0x1f30ed(0x1d2)],_0x3dc34d[_0x1f30ed(0x170)])||_0x3dc34d['opaec'](_0x4bc7fd[_0x1f30ed(0x171)],_0x3dc34d[_0x1f30ed(0x1bd)])||_0x3dc34d[_0x1f30ed(0x1a8)](_0x4bc7fd[_0x1f30ed(0x171)],_0x3dc34d[_0x1f30ed(0x170)]))&&(logger['warn'](_0x3dc34d[_0x1f30ed(0x179)]),global[_0x1f30ed(0x1c5)]=![]);!_0x3dc34d['Agddj'](isBrowserstackInfra)&&(!_0x3dc34d[_0x1f30ed(0x1a2)](_0x4bc7fd['browser_version'],0x64)&&logger['warn'](_0x3dc34d[_0x1f30ed(0x1d6)]));!(_0x3dc34d['qqrKD'](_0x4bc7fd[_0x1f30ed(0x163)],_0x3dc34d[_0x1f30ed(0x1ac)])||_0x3dc34d[_0x1f30ed(0x1a2)](_0x4bc7fd[_0x1f30ed(0x163)],0x5e))&&(logger['warn'](_0x3dc34d[_0x1f30ed(0x1b2)]),global[_0x1f30ed(0x1c5)]=![]);!_0x3dc34d[_0x1f30ed(0x15d)](isUndefined,_0x4bc7fd['deviceName'])&&(logger[_0x1f30ed(0x193)](_0x3dc34d[_0x1f30ed(0x18a)]),global[_0x1f30ed(0x1c5)]=![]);if(!global[_0x1f30ed(0x1c5)]){_0x4bc7fd[_0x3dc34d[_0x1f30ed(0x199)]]=![];const _0x323234=_0x3dc34d[_0x1f30ed(0x159)](_0x205eaf,_0x3dc34d[_0x1f30ed(0x15d)](encodeURIComponent,JSON[_0x1f30ed(0x1bf)](_0x4bc7fd)));_0x2e90ae&&(_0x2e90ae['currentTest']['testInfo'][_0x1f30ed(0x1b3)][_0x1f30ed(0x158)][_0x1f30ed(0x188)][_0x1f30ed(0x1d4)]=_0x323234,_0x2e90ae['workerInfo'][_0x1f30ed(0x1b3)]['use'][_0x1f30ed(0x188)]['wsEndpoint']=_0x323234);}}else global[_0x1f30ed(0x1c5)]=![];}catch(_0x43309a){logger[_0x1f30ed(0x1a4)](_0x1f30ed(0x167)+util['format'](_0x43309a));}};
|
|
1
|
+
function a38_0x23ee(_0x4ce556,_0x35f9a7){const _0x4479bb=a38_0x4479();return a38_0x23ee=function(_0x23ee8f,_0x5d586e){_0x23ee8f=_0x23ee8f-0x1ec;let _0x14ea6c=_0x4479bb[_0x23ee8f];return _0x14ea6c;},a38_0x23ee(_0x4ce556,_0x35f9a7);}const a38_0x29884b=a38_0x23ee;(function(_0x136980,_0x5dd0f1){const _0x28049e=a38_0x23ee,_0x3eb1d1=_0x136980();while(!![]){try{const _0x53a544=-parseInt(_0x28049e(0x24f))/0x1+-parseInt(_0x28049e(0x212))/0x2+-parseInt(_0x28049e(0x203))/0x3+parseInt(_0x28049e(0x252))/0x4*(parseInt(_0x28049e(0x21d))/0x5)+-parseInt(_0x28049e(0x234))/0x6*(-parseInt(_0x28049e(0x253))/0x7)+parseInt(_0x28049e(0x257))/0x8*(-parseInt(_0x28049e(0x21e))/0x9)+-parseInt(_0x28049e(0x224))/0xa*(-parseInt(_0x28049e(0x21f))/0xb);if(_0x53a544===_0x5dd0f1)break;else _0x3eb1d1['push'](_0x3eb1d1['shift']());}catch(_0x4f3ae6){_0x3eb1d1['push'](_0x3eb1d1['shift']());}}}(a38_0x4479,0x4fa0a));const util=require(a38_0x29884b(0x26e)),logger=require(a38_0x29884b(0x254))[a38_0x29884b(0x22e)],{automationLogger}=require('../../helpers/logger'),{isAccessibilityAutomationSession}=require(a38_0x29884b(0x22f)),{isUndefined,isBrowserstackInfra}=require(a38_0x29884b(0x25e)),scripts=require(a38_0x29884b(0x204)),PerformanceTester=require(a38_0x29884b(0x25f)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x29884b(0x264)),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants');function a38_0x4479(){const _0x507570=['accessibilityOptions.authToken','name','../../helpers/performance/constants','yMHYe','scannerProcessingTimeout','browserStackEvaluate','PERFORM_SCAN','BWTji','AMHJh','OuTjn','ultsw','includeIssueType','util','Mhweg','CjtAa','accessibilityOptions.includeIssueType.bestPractice','sWEot','SaCRp','__workerDetails','Performing\x20scan\x20with\x20method:\x20','accessibilityOptions.wcagVersion','wcagVersion','bMLyp','(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','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','wsEndpoint','use','][\x20SDK-AUTOMATION\x20]\x20','hRxHs','accessibilityOptions','parameters','BS_A11Y_JWT','PMBmU','string','format','mdvdK','1812186kMAkTh','../../helpers/accessibility-automation/scripts','evaluate','getAccessibilityResults','toISOString','body','message','bstackSdkArgs','latest','OXThV','command','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','ekAOj','project','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','672016qWHaQv','cwNuM','accessibilityPlatform','error','needsReview','browserName','CEoMN','browserStackExecuteDriver','NTrsf','constructor','WebDriver','109465KQvPOi','122949JpbsTG','5347067tbFWDC','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','browser','executeScript','fkRkp','30TOWWpG','jQXrD','request','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','stringify','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','biogU','QufwR','playwright-chromium','winstonLogger','../../helpers/accessibility-automation/helper','gjNJC','includes','debug','accessibilityOptions.scannerVersion','708iKMeuN','performScan','lVIhZ','wqzpk','currentTest','browser_version','response','nZtMO','platformValidation','processAccessibilityCaps','workerInfo','env','Playwright','Cibkr','replace','lKsmk','find','parse','TqpZz','warn','chrome','VcggP','chromium','getAccessibilityResultsSummary','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','yaSJl','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','402236RPdPhH','EelLo','GcfRM','116EQLtpQ','8841LVPRfs','../../helpers/logger','OOqkz','scannerVersion','336aUlCsv','GelAG','pItnx','connectOptions','No\x20accessibility\x20results\x20were\x20found.','VjYZf','(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','../../helpers/helper','../../helpers/performance/performance-tester','YiaJc','No\x20summaryResults\x20found.'];a38_0x4479=function(){return _0x507570;};return a38_0x4479();}exports['browserStackEvaluate']=async(_0x3a2fe1,_0x486c1d,_0x9ff5ab={})=>{const _0x3b2ac2=a38_0x29884b,_0x3a88ad={};_0x3a88ad['RZedt']=_0x3b2ac2(0x20a),_0x3a88ad[_0x3b2ac2(0x258)]=function(_0x2930ca,_0x36ad91){return _0x2930ca===_0x36ad91;},_0x3a88ad[_0x3b2ac2(0x260)]=_0x3b2ac2(0x200);const _0x13238b=_0x3a88ad,_0x2a17db=await _0x3a2fe1[_0x3b2ac2(0x205)](_0x3b2ac2(0x1f6)+_0x486c1d['replace'](/arguments/g,_0x13238b['RZedt'])+_0x3b2ac2(0x220)+JSON['stringify'](_0x9ff5ab)+')');try{if(_0x486c1d&&_0x13238b[_0x3b2ac2(0x258)](typeof _0x486c1d,_0x13238b[_0x3b2ac2(0x260)])){const _0x3be064=AUTOMATION_LOG_COMMANDS[_0x3b2ac2(0x244)](_0x663318=>_0x486c1d[_0x3b2ac2(0x231)](_0x663318));if(_0x3be064){const _0x4ef17d={};_0x4ef17d[_0x3b2ac2(0x20d)]=_0x3be064,_0x4ef17d[_0x3b2ac2(0x1fd)]=[_0x9ff5ab];const _0x25c3d1={};_0x25c3d1[_0x3b2ac2(0x208)]=_0x2a17db;const _0x582d76={};_0x582d76[_0x3b2ac2(0x226)]=_0x4ef17d,_0x582d76[_0x3b2ac2(0x23a)]=_0x25c3d1,automationLogger['silly']('['+new Date()[_0x3b2ac2(0x207)]()+_0x3b2ac2(0x1fa)+JSON[_0x3b2ac2(0x228)](_0x582d76));}}}catch(_0x380f8a){logger[_0x3b2ac2(0x232)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x380f8a[_0x3b2ac2(0x209)]);}return _0x2a17db;},exports[a38_0x29884b(0x219)]=async(_0x4466db,_0x1e7cbb,_0x1aff85={})=>{const _0x4c9fce=a38_0x29884b,_0x3bd512={};_0x3bd512['NTrsf']=function(_0x56ae50,_0x4d2b70){return _0x56ae50===_0x4d2b70;},_0x3bd512['OXThV']=_0x4c9fce(0x21c),_0x3bd512[_0x4c9fce(0x26a)]=_0x4c9fce(0x240),_0x3bd512[_0x4c9fce(0x269)]=_0x4c9fce(0x20a);const _0x52353c=_0x3bd512;if(_0x52353c[_0x4c9fce(0x21a)](_0x4466db[_0x4c9fce(0x21b)][_0x4c9fce(0x263)],_0x52353c[_0x4c9fce(0x20c)]))return await _0x4466db['executeAsyncScript'](_0x1e7cbb,_0x1aff85);else{if(_0x52353c[_0x4c9fce(0x21a)](_0x4466db[_0x4c9fce(0x21b)][_0x4c9fce(0x263)],_0x52353c[_0x4c9fce(0x26a)]))return await _0x4466db[_0x4c9fce(0x222)](_0x4c9fce(0x25d)+_0x1e7cbb[_0x4c9fce(0x242)](/arguments/g,_0x52353c[_0x4c9fce(0x269)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON[_0x4c9fce(0x228)](_0x1aff85)+')');}},exports['setAccessibilityCapabilities']=async _0xba621a=>{const _0x39215a=a38_0x29884b,_0x2eb78d={};_0x2eb78d[_0x39215a(0x1ff)]=_0x39215a(0x1f3),_0x2eb78d[_0x39215a(0x26c)]='accessibilityOptions.scannerProcessingTimeout',_0x2eb78d[_0x39215a(0x241)]=_0x39215a(0x1ee),_0x2eb78d[_0x39215a(0x250)]='accessibilityOptions.includeIssueType.needsReview',_0x2eb78d[_0x39215a(0x1f5)]=_0x39215a(0x262),_0x2eb78d[_0x39215a(0x243)]=_0x39215a(0x233);const _0x35745b=_0x2eb78d;_0xba621a[_0x39215a(0x1fc)]&&(_0xba621a[_0x39215a(0x1fc)]['wcagVersion']&&(_0xba621a[_0x35745b['PMBmU']]=_0xba621a[_0x39215a(0x1fc)][_0x39215a(0x1f4)]),_0xba621a['accessibilityOptions'][_0x39215a(0x266)]&&(_0xba621a[_0x35745b['ultsw']]=_0xba621a[_0x39215a(0x1fc)][_0x39215a(0x266)]),_0xba621a[_0x39215a(0x1fc)][_0x39215a(0x26d)]&&(_0xba621a[_0x35745b[_0x39215a(0x241)]]=_0xba621a[_0x39215a(0x1fc)][_0x39215a(0x26d)]['bestPractice'],_0xba621a[_0x35745b[_0x39215a(0x250)]]=_0xba621a[_0x39215a(0x1fc)]['includeIssueType'][_0x39215a(0x216)]));const _0x3f85c2=JSON[_0x39215a(0x245)](process[_0x39215a(0x23f)][_0x39215a(0x22a)])[_0x39215a(0x256)];_0xba621a[_0x35745b['bMLyp']]=process[_0x39215a(0x23f)][_0x39215a(0x1fe)],_0xba621a[_0x35745b[_0x39215a(0x243)]]=_0x3f85c2,delete _0xba621a[_0x39215a(0x1fc)];},exports[a38_0x29884b(0x206)]=async _0x2cf384=>{const _0x345b1d=a38_0x29884b,_0x2785c5={};_0x2785c5['rVSvj']=_0x345b1d(0x25b),_0x2785c5[_0x345b1d(0x259)]=_0x345b1d(0x211);const _0x274308=_0x2785c5;if(global['accessibilityPlatform'])try{const details={'url':await _0x2cf384.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x2cf384,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x2cf384,scripts.getResults);},{...details})();return res;}catch{return logger[_0x345b1d(0x215)](_0x274308['rVSvj']),[];}else return logger[_0x345b1d(0x247)](_0x274308[_0x345b1d(0x259)]),[];},exports['performScan']=async(_0x24351b,_0x1e4078='')=>{const _0x117a69=a38_0x29884b;logger[_0x117a69(0x232)](_0x117a69(0x1f2)+_0x1e4078+'\x20page:\x20'+_0x24351b);const _0x2c94ca={'url':await _0x24351b['url'](),'testhub_btcer_uuid':global[_0x117a69(0x1f1)]?.[_0x117a69(0x238)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x117a69(0x268)],async()=>{const _0x3c5339=_0x117a69,_0x100fb5={};_0x100fb5[_0x3c5339(0x20d)]=_0x1e4078;const _0x5163ca=await exports[_0x3c5339(0x267)](_0x24351b,scripts[_0x3c5339(0x235)],_0x100fb5);return _0x5163ca;},{'command':_0x1e4078,..._0x2c94ca})();},exports[a38_0x29884b(0x24b)]=async _0x282293=>{const _0x2e8d9a=a38_0x29884b,_0x4c7e0f={};_0x4c7e0f[_0x2e8d9a(0x24d)]=_0x2e8d9a(0x261),_0x4c7e0f['mzdAF']=_0x2e8d9a(0x24e);const _0x2775f9=_0x4c7e0f;if(global[_0x2e8d9a(0x214)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x282293,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x282293,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x2e8d9a(0x232)](_0x2775f9[_0x2e8d9a(0x24d)]),{};}else return logger[_0x2e8d9a(0x247)](_0x2775f9['mzdAF']),{};},exports[a38_0x29884b(0x23c)]=async _0xa91542=>{const _0x3f5786=a38_0x29884b,_0x1ac0af={'QUxYj':function(_0x19711a,_0x192b17){return _0x19711a!==_0x192b17;},'GcfRM':_0x3f5786(0x1f7),'mdvdK':_0x3f5786(0x248),'DXllR':_0x3f5786(0x22d),'OuTjn':_0x3f5786(0x24a),'OOqkz':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','Mhweg':function(_0x254785,_0x4f158d){return _0x254785(_0x4f158d);},'cjELt':function(_0x41a037){return _0x41a037();},'TqpZz':function(_0x52191a,_0x14807f){return _0x52191a<_0x14807f;},'nZtMO':_0x3f5786(0x24c),'jQXrD':function(_0x4348ac,_0x3aa24b){return _0x4348ac===_0x3aa24b;},'fLYnk':_0x3f5786(0x20b),'SaCRp':function(_0x1729f0,_0x243c4b){return _0x1729f0>_0x243c4b;},'wqzpk':_0x3f5786(0x20e)};try{if(!_0x1ac0af['QUxYj'](_0xa91542['deviceName'],''))return logger[_0x3f5786(0x247)](_0x1ac0af[_0x3f5786(0x251)]),![];const _0x3d6983=_0xa91542[_0x3f5786(0x221)];if(![_0x1ac0af[_0x3f5786(0x202)],_0x1ac0af['DXllR'],_0x1ac0af[_0x3f5786(0x26b)]][_0x3f5786(0x231)](_0x3d6983))return logger[_0x3f5786(0x247)](_0x1ac0af[_0x3f5786(0x255)]),![];const _0x12b6de=_0x1ac0af[_0x3f5786(0x1ec)](parseInt,_0xa91542[_0x3f5786(0x239)]);!_0x1ac0af['cjELt'](isBrowserstackInfra)&&(!_0x1ac0af[_0x3f5786(0x246)](_0x12b6de,0x64)&&logger[_0x3f5786(0x247)](_0x1ac0af[_0x3f5786(0x23b)]));if(!(_0x1ac0af[_0x3f5786(0x225)](_0x12b6de,_0x1ac0af['fLYnk'])||_0x1ac0af[_0x3f5786(0x1f0)](_0x12b6de,0x5e)))return logger['warn'](_0x1ac0af[_0x3f5786(0x237)]),![];}catch(_0x16a1ba){logger[_0x3f5786(0x232)](_0x3f5786(0x229)+util[_0x3f5786(0x201)](_0x16a1ba));}return!![];},exports[a38_0x29884b(0x23d)]=(_0x9aaef0,_0x3d097e,_0x545396)=>{const _0x427cbe=a38_0x29884b,_0x49c487={'QufwR':function(_0x3f42e1){return _0x3f42e1();},'fkRkp':'browserstack.accessibility','biogU':function(_0x402e7b,_0x4934f5){return _0x402e7b===_0x4934f5;},'VcggP':_0x427cbe(0x248),'CEoMN':function(_0x2aeeb9,_0x2d66e0){return _0x2aeeb9===_0x2d66e0;},'CjtAa':_0x427cbe(0x22d),'hRxHs':_0x427cbe(0x227),'sWEot':function(_0x3c1cc8,_0x59ddf0){return _0x3c1cc8>_0x59ddf0;},'yMHYe':_0x427cbe(0x24c),'ekAOj':function(_0x430a54,_0x144a5d){return _0x430a54===_0x144a5d;},'QzNRi':_0x427cbe(0x20b),'VjYZf':_0x427cbe(0x20e),'cwNuM':function(_0x461f31,_0x322475){return _0x461f31(_0x322475);},'VDCyo':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','gjNJC':function(_0x9ee420,_0x3c5a18){return _0x9ee420+_0x3c5a18;},'lVIhZ':function(_0x45d9a1,_0x502cd1){return _0x45d9a1(_0x502cd1);}};try{if(_0x49c487[_0x427cbe(0x22c)](isAccessibilityAutomationSession)){global[_0x427cbe(0x214)]=!![];!_0x9aaef0[_0x49c487[_0x427cbe(0x223)]]&&(global[_0x427cbe(0x214)]=![]);!(_0x49c487[_0x427cbe(0x22b)](_0x9aaef0[_0x427cbe(0x217)],_0x49c487[_0x427cbe(0x249)])||_0x49c487['CEoMN'](_0x9aaef0[_0x427cbe(0x217)],_0x49c487[_0x427cbe(0x1ed)])||_0x49c487[_0x427cbe(0x218)](_0x9aaef0['browser'],_0x49c487['VcggP'])||_0x49c487[_0x427cbe(0x218)](_0x9aaef0['browser'],_0x49c487[_0x427cbe(0x1ed)]))&&(logger[_0x427cbe(0x247)](_0x49c487[_0x427cbe(0x1fb)]),global[_0x427cbe(0x214)]=![]);!_0x49c487[_0x427cbe(0x22c)](isBrowserstackInfra)&&(!_0x49c487[_0x427cbe(0x1ef)](_0x9aaef0[_0x427cbe(0x239)],0x64)&&logger[_0x427cbe(0x247)](_0x49c487[_0x427cbe(0x265)]));!(_0x49c487[_0x427cbe(0x20f)](_0x9aaef0[_0x427cbe(0x239)],_0x49c487['QzNRi'])||_0x49c487[_0x427cbe(0x1ef)](_0x9aaef0['browser_version'],0x5e))&&(logger['warn'](_0x49c487[_0x427cbe(0x25c)]),global['accessibilityPlatform']=![]);!_0x49c487[_0x427cbe(0x213)](isUndefined,_0x9aaef0['deviceName'])&&(logger[_0x427cbe(0x247)](_0x49c487['VDCyo']),global[_0x427cbe(0x214)]=![]);if(!global[_0x427cbe(0x214)]){_0x9aaef0[_0x49c487[_0x427cbe(0x223)]]=![];const _0x45cf84=_0x49c487[_0x427cbe(0x230)](_0x3d097e,_0x49c487[_0x427cbe(0x236)](encodeURIComponent,JSON[_0x427cbe(0x228)](_0x9aaef0)));_0x545396&&(_0x545396[_0x427cbe(0x238)]['testInfo'][_0x427cbe(0x210)][_0x427cbe(0x1f9)][_0x427cbe(0x25a)][_0x427cbe(0x1f8)]=_0x45cf84,_0x545396[_0x427cbe(0x23e)][_0x427cbe(0x210)]['use'][_0x427cbe(0x25a)][_0x427cbe(0x1f8)]=_0x45cf84);}}else global[_0x427cbe(0x214)]=![];}catch(_0x20f426){logger['debug']('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x20f426));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a39_0x5cc9a5=a39_0x539b;function a39_0x539b(_0xb0a259,_0x5ec367){const _0x2d9e7c=a39_0x2d9e();return a39_0x539b=function(_0x539b1f,_0x3bfc86){_0x539b1f=_0x539b1f-0xc6;let _0x1c2f91=_0x2d9e7c[_0x539b1f];return _0x1c2f91;},a39_0x539b(_0xb0a259,_0x5ec367);}(function(_0x3548eb,_0x5350d0){const _0x3daa85=a39_0x539b,_0x476d47=_0x3548eb();while(!![]){try{const _0x5c2133=parseInt(_0x3daa85(0x176))/0x1+-parseInt(_0x3daa85(0x140))/0x2*(parseInt(_0x3daa85(0x155))/0x3)+parseInt(_0x3daa85(0x13f))/0x4+parseInt(_0x3daa85(0xe3))/0x5*(parseInt(_0x3daa85(0x14c))/0x6)+-parseInt(_0x3daa85(0x12e))/0x7*(-parseInt(_0x3daa85(0x104))/0x8)+parseInt(_0x3daa85(0xed))/0x9+-parseInt(_0x3daa85(0x13b))/0xa;if(_0x5c2133===_0x5350d0)break;else _0x476d47['push'](_0x476d47['shift']());}catch(_0x51e955){_0x476d47['push'](_0x476d47['shift']());}}}(a39_0x2d9e,0x7402b));const fs=require('fs'),path=require(a39_0x5cc9a5(0xc7)),{spawn}=require(a39_0x5cc9a5(0x150)),{format}=require(a39_0x5cc9a5(0x102)),logger=require(a39_0x5cc9a5(0x182))[a39_0x5cc9a5(0x161)],{default:BrowserStackSetup}=require(a39_0x5cc9a5(0xdb)),helper=require(a39_0x5cc9a5(0xd2)),utilities=require(a39_0x5cc9a5(0x108)),constants=require(a39_0x5cc9a5(0x16c)),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a39_0x5cc9a5(0xee)),{checkAccessibilityPlatformConfig}=require(a39_0x5cc9a5(0xc9)),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a39_0x5cc9a5(0x119)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a39_0x5cc9a5(0x111)),PerformanceTester=require('../../helpers/performance/performance-tester'),BrowserstackCLI=require(a39_0x5cc9a5(0xd6)),PerformanceEvents=require(a39_0x5cc9a5(0x138))['EVENTS'],CLIUtils=require(a39_0x5cc9a5(0xfa)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require(a39_0x5cc9a5(0xf4)),getUserPlaywrightConfig=async(_0x1ae2ef,_0x3f3b57)=>{const _0x396194=a39_0x5cc9a5,_0x22717a={'zwzpk':function(_0xc73e42){return _0xc73e42();},'bdCtG':function(_0x20146b){return _0x20146b();},'XXAXk':function(_0x3b85b5,_0x29b39a){return _0x3b85b5(_0x29b39a);},'vyXza':_0x396194(0x147),'EaTrW':_0x396194(0xcd)},_0x2ea7d6=!helper[_0x396194(0x15e)](_0x1ae2ef['config']),_0xfd2d30=_0x2ea7d6?path[_0x396194(0x158)](process[_0x396194(0x165)](),_0x1ae2ef[_0x396194(0xe9)]):process[_0x396194(0x165)](),{resolveConfigFile:_0x5ed312,resolveConfigLocation:_0x2ec228}=helper[_0x396194(0xdf)]()?helper[_0x396194(0x117)](..._0x22717a['zwzpk'](getConfigLoaderPath)):helper[_0x396194(0x151)][_0x396194(0x16d)](null,_0x22717a[_0x396194(0x14b)](getConfigLoaderPath)),_0x5a9977=_0x5ed312?_0x22717a['XXAXk'](_0x5ed312,_0xfd2d30):helper['nestedKeyValue'](_0x22717a[_0x396194(0x168)](_0x2ec228,_0xfd2d30),[_0x22717a[_0x396194(0xde)]]),_0x1f2784={};if(_0x2ea7d6){const _0x14b583=_0x3f3b57['findIndex'](_0x56dd01=>_0x56dd01===_0x396194(0x128)||_0x56dd01==='-c'||_0x56dd01[_0x396194(0xf3)](_0x396194(0xcd)));_0x3f3b57[_0x396194(0x15f)](_0x14b583,_0x3f3b57[_0x14b583]['startsWith'](_0x22717a[_0x396194(0x17f)])?0x1:0x2);}const _0x2729a8={};return _0x2729a8[_0x396194(0xc7)]=_0x5a9977,_0x2729a8[_0x396194(0xe9)]=_0x1f2784,_0x2729a8;},handleO11yRerun=_0x2f8673=>{const _0x115233=a39_0x5cc9a5,_0x505dec={};_0x505dec['rqVEh']=_0x115233(0x10f);const _0x1b5e00=_0x505dec,_0x1411ae=helper['isTrue'](process[_0x115233(0x10a)][_0x115233(0x16b)]);if(_0x1411ae){const _0x5188be=process[_0x115233(0x10a)][_0x115233(0x15a)],_0x3551df=[];if(helper[_0x115233(0x11b)](_0x5188be)&&!helper[_0x115233(0x15e)](_0x5188be)){_0x5188be[_0x115233(0x13a)](',')['map'](_0x351a33=>{const _0x36a8ff=_0x115233;_0x3551df[_0x36a8ff(0x160)]('('+_0x351a33['trim']()+')');});const _0x532f27='^'+_0x3551df['join']('|')+'$';_0x2f8673['push'](_0x1b5e00[_0x115233(0xcc)],_0x532f27);}}},spawnOriginalProcess=_0x5e2ffc=>{const _0x4bc6b2=a39_0x5cc9a5,_0x4668bd={'WdwFZ':function(_0x7ce211,_0xfb5fa3,_0x301c26,_0x218ed1){return _0x7ce211(_0xfb5fa3,_0x301c26,_0x218ed1);},'RBtjv':_0x4bc6b2(0x180),'ZMwMY':_0x4bc6b2(0x170),'ipBFU':_0x4bc6b2(0xd3),'dGCeL':function(_0x483626,_0x293ee5){return _0x483626===_0x293ee5;},'ECzpI':_0x4bc6b2(0x123),'PTTqh':_0x4bc6b2(0x15b)};_0x4668bd['WdwFZ'](spawn,helper[_0x4bc6b2(0xdf)]()?_0x4668bd[_0x4bc6b2(0x159)]:_0x4668bd[_0x4bc6b2(0x173)],[_0x4668bd[_0x4bc6b2(0xd1)],..._0x5e2ffc[_0x4bc6b2(0x14a)](0x1)],{'shell':_0x4668bd[_0x4bc6b2(0x17d)](process[_0x4bc6b2(0x16a)],_0x4668bd[_0x4bc6b2(0xe7)]),'stdio':_0x4668bd[_0x4bc6b2(0x131)],'cwd':process[_0x4bc6b2(0x165)]()});},isTestCommand=(_0x3efc0a,_0x543237)=>{const _0x173979=a39_0x5cc9a5,_0x18f6d6={};_0x18f6d6[_0x173979(0x133)]=function(_0x240e38,_0x5b6164){return _0x240e38>_0x5b6164;},_0x18f6d6[_0x173979(0x11a)]=function(_0x5113ee,_0x380fe5){return _0x5113ee===_0x380fe5;},_0x18f6d6[_0x173979(0x17c)]='test';const _0x345aff=_0x18f6d6;if(_0x345aff[_0x173979(0x133)](_0x543237['length'],0x1)&&_0x345aff[_0x173979(0x11a)](_0x543237[0x1],_0x345aff['TiYgI']))return!![];return![];};async function run(_0x554bd2,_0x3fe4d0,_0x554069){const _0x416287=a39_0x5cc9a5,_0x5448dc={'qDhcY':function(_0x3d4e55,_0x440771){return _0x3d4e55(_0x440771);},'tPSUf':_0x416287(0x134),'ePPoa':function(_0x272d4e){return _0x272d4e();},'LCofc':function(_0x24257e,_0x397a0e){return _0x24257e+_0x397a0e;},'dGnik':_0x416287(0x14d),'Rtahs':_0x416287(0x144),'cBfnj':function(_0x201465,_0x5b1ae1){return _0x201465+_0x5b1ae1;},'zYjet':_0x416287(0xdc),'EQYZn':_0x416287(0x100),'lmNkV':function(_0x50bcfe,_0x59d93b){return _0x50bcfe<_0x59d93b;},'UTSef':function(_0x1a7b1c,_0xa43bbf){return _0x1a7b1c===_0xa43bbf;},'BZNab':_0x416287(0x11e),'aSKnU':_0x416287(0x169),'oeSkE':function(_0x568d50,_0x534e52){return _0x568d50>=_0x534e52;},'ejAZz':'automation','TKEGY':function(_0x52c053,_0x105c28){return _0x52c053!=_0x105c28;},'PJdFs':function(_0x52793b,_0x53c4f3,_0x3997a9){return _0x52793b(_0x53c4f3,_0x3997a9);},'RnmHU':function(_0x36a8c1,_0x47e3a3){return _0x36a8c1(_0x47e3a3);},'crhfH':function(_0x1fddf8,_0x27c4be){return _0x1fddf8===_0x27c4be;},'kxmxh':'true','GnXAL':function(_0x23ef12,_0x33698d){return _0x23ef12(_0x33698d);},'kxOAu':function(_0x2c64b5,_0x34aaa0){return _0x2c64b5(_0x34aaa0);},'KCIpl':_0x416287(0x183),'uVSFL':'playwright-browserstack-sdk.config.cjs','xXeqM':_0x416287(0x156),'aNBaq':function(_0x62a8ae,_0x6c2080){return _0x62a8ae-_0x6c2080;},'KCnTP':'Updated\x20config\x20file\x20name\x20to\x20-\x20','AZkXc':function(_0x19e197,_0x23a964){return _0x19e197>_0x23a964;},'WxeBJ':function(_0x56c337,_0x1c1d5c){return _0x56c337+_0x1c1d5c;},'wViey':function(_0x21d19c,_0x34b117,_0x3baeff,_0x53b39b){return _0x21d19c(_0x34b117,_0x3baeff,_0x53b39b);},'KoXDH':'yarn','ETAip':_0x416287(0x170),'bewMv':_0x416287(0xd3),'QiRvg':_0x416287(0xc8),'EJqVT':'--config','IxWNE':_0x416287(0x123),'CPKls':_0x416287(0x15b),'tipAC':'close','SqZDa':function(_0x97bd3c,_0x9f2ce1){return _0x97bd3c|_0x9f2ce1;},'Ubvyf':function(_0x285130,_0x418586){return _0x285130+_0x418586;},'FzAeA':_0x416287(0xfc),'zEfuL':_0x416287(0x120),'Ukfvp':function(_0x2b6581,_0x217a0f,_0x3d8699){return _0x2b6581(_0x217a0f,_0x3d8699);},'uGiFI':function(_0x1e8e4c,_0x2915db){return _0x1e8e4c(_0x2915db);}};try{const _0x2524fd=path[_0x416287(0x132)](helper[_0x416287(0x10d)](),_0x5448dc['tPSUf']);try{fs[_0x416287(0xcf)](_0x2524fd,_0x5448dc[_0x416287(0x13c)](fs[_0x416287(0x171)]['R_OK'],fs['constants']['W_OK']));}catch(_0x1fb6f8){ClientTroubleShootingService[_0x416287(0xf5)]();}}catch(_0x4b1da2){logger[_0x416287(0x106)](_0x5448dc[_0x416287(0xdd)](_0x5448dc[_0x416287(0x112)],_0x4b1da2));}try{const _0x401057=path['join'](helper[_0x416287(0x10d)](),_0x5448dc[_0x416287(0xfe)],_0x5448dc[_0x416287(0x10c)]);fs[_0x416287(0xfb)](_0x401057)&&fs[_0x416287(0x14e)](_0x401057);}catch(_0x2243eb){logger[_0x416287(0x106)](_0x5448dc[_0x416287(0x149)](_0x5448dc[_0x416287(0x113)],_0x2243eb));}if(!_0x5448dc[_0x416287(0x125)](isTestCommand,_0x554bd2,_0x3fe4d0)){_0x5448dc[_0x416287(0x109)](spawnOriginalProcess,_0x3fe4d0);return;}await PerformanceTester[_0x416287(0x17e)](PerformanceEvents[_0x416287(0xea)],async()=>{const _0x5435d2=_0x416287,_0x33801a={'oomHD':_0x5448dc[_0x5435d2(0xfe)],'kKHYh':_0x5448dc[_0x5435d2(0x10c)],'kaHOo':function(_0x5c4efa,_0x554e22){const _0x1159d7=_0x5435d2;return _0x5448dc[_0x1159d7(0x177)](_0x5c4efa,_0x554e22);},'XiQzn':_0x5448dc[_0x5435d2(0x107)]};if(!_0x554069[_0x5435d2(0xe9)]){logger[_0x5435d2(0x139)](_0x5448dc[_0x5435d2(0x13e)]);return;}await _0x554069[_0x5435d2(0x11f)](_0x554bd2),CLIUtils[_0x5435d2(0xf6)](FRAMEWORKS[_0x5435d2(0x141)],FRAMEWORKS[_0x5435d2(0x141)]),BrowserstackCLI[_0x5435d2(0xf0)]()[_0x5435d2(0x12f)](_0x554069[_0x5435d2(0xe9)],_0x554069[_0x5435d2(0xda)],_0x554069[_0x5435d2(0x143)]),await BrowserstackCLI['getInstance']()[_0x5435d2(0x157)]();for(var _0x269865=0x0;_0x5448dc['lmNkV'](_0x269865,constants[_0x5435d2(0x12d)][_0x5435d2(0x136)]);_0x269865++){var _0x3b0258=constants['INTERNALLY_USED_ENV_VARS'][_0x269865];process[_0x5435d2(0x10a)][_0x3b0258]&&await ClientTroubleShootingService[_0x5435d2(0x11d)](_0x3b0258);}const _0x3df424=BrowserstackCLI[_0x5435d2(0xf0)]()['getConfig']();!helper['isFalse'](_0x3df424[_0x5435d2(0xe2)])&&(process[_0x5435d2(0x10a)]['BROWSERSTACK_AUTOMATION']=!![]);_0x5448dc[_0x5435d2(0xcb)](_0x3df424[_0x5435d2(0xe2)],![])&&(process[_0x5435d2(0x10a)]['BROWSERSTACK_AUTOMATION']=_0x5448dc[_0x5435d2(0x105)],_0x3fe4d0=_0x3fe4d0[_0x5435d2(0xe5)](_0x59c1f5=>_0x59c1f5!=='--disable-browserstack-automation'));const _0x22a2d6=_0x3fe4d0['indexOf'](_0x5448dc[_0x5435d2(0x122)]);(_0x5448dc[_0x5435d2(0xec)](_0x22a2d6,0x0)||_0x5448dc[_0x5435d2(0xcb)](_0x3df424[_0x5435d2(0x15d)],![]))&&(process[_0x5435d2(0x10a)][_0x5435d2(0x118)]=_0x5448dc[_0x5435d2(0x105)],_0x3fe4d0=_0x3fe4d0[_0x5435d2(0xe5)](_0x38c91e=>_0x38c91e!==_0x5435d2(0x169)));!helper[_0x5435d2(0x15e)](_0x554069[_0x5435d2(0x143)])&&_0x554069[_0x5435d2(0x143)][_0x5435d2(0x16f)](_0x5448dc[_0x5435d2(0x103)])&&(process[_0x5435d2(0x10a)][_0x5435d2(0x17b)]=_0x554069['cliConfig'][_0x5435d2(0x175)](_0x5448dc['ejAZz'])||!![]);_0x5448dc['TKEGY'](_0x554069[_0x5435d2(0xe9)][_0x5435d2(0x15d)],null)&&!helper[_0x5435d2(0x163)](process['env'][_0x5435d2(0x118)])&&(process[_0x5435d2(0x10a)][_0x5435d2(0x118)]=process[_0x5435d2(0x10a)][_0x5435d2(0x118)]||_0x554069['config'][_0x5435d2(0x15d)]);const _0x503bf1=!helper[_0x5435d2(0x130)](process[_0x5435d2(0x10a)][_0x5435d2(0x118)]);_0x554069[_0x5435d2(0xe9)][_0x5435d2(0x127)]&&(process[_0x5435d2(0x10a)][_0x5435d2(0x179)]=JSON['stringify'](_0x554069[_0x5435d2(0xe9)][_0x5435d2(0x127)]));let _0x478c2f=![];_0x554069[_0x5435d2(0xe9)][_0x5435d2(0x17a)]&&(_0x478c2f=!![],process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x554069[_0x5435d2(0xe9)][_0x5435d2(0x17a)]);const _0x26ed0f=_0x3fe4d0[_0x5435d2(0x101)](),_0x3ffaea=await _0x5448dc[_0x5435d2(0xd8)](getUserPlaywrightConfig,_0x554bd2,_0x3fe4d0);if(helper[_0x5435d2(0x15e)](_0x3ffaea)){_0x5448dc[_0x5435d2(0xe1)](spawnOriginalProcess,_0x26ed0f);return;}const _0x29e7e6=_0x3ffaea['path']?path['dirname'](_0x3ffaea[_0x5435d2(0xc7)]):process[_0x5435d2(0x165)]();process['env'][_0x5435d2(0xce)]=_0x29e7e6,await PerformanceTester[_0x5435d2(0x17e)](PerformanceEvents[_0x5435d2(0x14f)],async()=>{const _0x157b8d=_0x5435d2;!BrowserstackCLI[_0x157b8d(0xf0)]()[_0x157b8d(0xf7)]()&&await TestHubHandler[_0x157b8d(0xe0)](FRAMEWORKS[_0x157b8d(0x141)],_0x554069),_0x503bf1&&_0x5448dc[_0x157b8d(0x15c)](handleO11yRerun,_0x3fe4d0);})();if(!BrowserstackCLI[_0x5435d2(0xf0)]()[_0x5435d2(0xf7)]()){let _0x32433e=_0x5448dc['crhfH'](process[_0x5435d2(0x10a)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x5448dc[_0x5435d2(0xf1)]);_0x32433e=_0x32433e||_0x5448dc['GnXAL'](checkAccessibilityPlatformConfig,_0x554069[_0x5435d2(0xe9)]),process[_0x5435d2(0x10a)][_0x5435d2(0xf2)]=_0x32433e,_0x32433e&&_0x5448dc[_0x5435d2(0xd7)](setAccessibilityCapabilities,_0x554069['config']);}const _0xa9478f=path[_0x5435d2(0x132)](_0x3ffaea[_0x5435d2(0xc7)]?path['dirname'](_0x3ffaea[_0x5435d2(0xc7)]):process[_0x5435d2(0x165)](),_0x5448dc[_0x5435d2(0x148)]);fs[_0x5435d2(0x121)](_0xa9478f,helper[_0x5435d2(0x129)](_0x554069['config'])),process[_0x5435d2(0x10a)][_0x5435d2(0x174)]=_0xa9478f,helper[_0x5435d2(0xef)]();let _0x29a6e8='';_0x5448dc[_0x5435d2(0x10e)](helper['getPackageType'](),constants[_0x5435d2(0x124)]['MODULE'])?_0x29a6e8=_0x5448dc['uVSFL']:_0x29a6e8=_0x5448dc['xXeqM'];let _0x34c8ff='';if(helper[_0x5435d2(0x166)](_0x3ffaea['path'])){_0x34c8ff='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x313129=_0x29a6e8[_0x5435d2(0x13a)]('.');_0x313129[_0x5448dc[_0x5435d2(0xf9)](_0x313129[_0x5435d2(0x136)],0x1)]='ts',_0x29a6e8=_0x313129[_0x5435d2(0x132)]('.'),logger[_0x5435d2(0x106)](_0x5448dc[_0x5435d2(0x177)](_0x5448dc[_0x5435d2(0x13d)],_0x29a6e8));}else _0x34c8ff=_0x5435d2(0x181);const _0x14f1d9=path[_0x5435d2(0x132)](_0x3ffaea[_0x5435d2(0xc7)]?path['dirname'](_0x3ffaea['path']):process[_0x5435d2(0x165)](),_0x29a6e8);let _0x1ba61f=_0x3ffaea[_0x5435d2(0xc7)]?_0x3ffaea['path']:'';_0x1ba61f=_0x5448dc[_0x5435d2(0x172)](_0x1ba61f['length'],0x0)?path[_0x5435d2(0x158)](_0x1ba61f):'',process[_0x5435d2(0x10a)][_0x5435d2(0x137)]=_0x1ba61f;const _0x4ac1d2=helper['getProxyUrl'](_0x554069[_0x5435d2(0xe9)]),_0x2ce8a6=helper[_0x5435d2(0x142)](_0x554069['config']);logger[_0x5435d2(0x106)](_0x5435d2(0x11c)+_0x4ac1d2),logger[_0x5435d2(0x106)]('No\x20Proxy\x20:\x20'+_0x2ce8a6);_0x4ac1d2&&(_0x34c8ff=_0x5448dc[_0x5435d2(0x149)](_0x5435d2(0x152)+_0x4ac1d2+_0x5435d2(0x135)+_0x2ce8a6+'\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();',_0x34c8ff));helper[_0x5435d2(0xeb)]({},_0x3fe4d0),fs[_0x5435d2(0x121)](_0x14f1d9,_0x34c8ff),PerformanceTester[_0x5435d2(0x116)](PerformanceEvents[_0x5435d2(0xe8)]);const _0x452918=_0x5448dc[_0x5435d2(0x164)](spawn,helper[_0x5435d2(0xdf)]()?_0x5448dc['KoXDH']:_0x5448dc[_0x5435d2(0x12b)],[_0x5448dc[_0x5435d2(0xf8)],_0x5448dc[_0x5435d2(0x114)],_0x5448dc[_0x5435d2(0xd5)],_0x5448dc[_0x5435d2(0xcb)](process[_0x5435d2(0x16a)],_0x5448dc[_0x5435d2(0x153)])?'\x22'+_0x14f1d9+'\x22':_0x14f1d9,..._0x3fe4d0[_0x5435d2(0x14a)](0x2)],{'shell':_0x5448dc[_0x5435d2(0xcb)](process['platform'],_0x5448dc[_0x5435d2(0x153)]),'stdio':_0x5448dc['CPKls'],'cwd':process[_0x5435d2(0x165)](),'env':Object['assign']({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x5435d2(0xff)](_0x554bd2),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x554069[_0x5435d2(0xe9)][_0x5435d2(0xfd)][_0x5435d2(0x110)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x554069[_0x5435d2(0xe9)][_0x5435d2(0xfd)][_0x5435d2(0x145)],'BROWSERSTACK_LOG_LEVEL':_0x554069[_0x5435d2(0xe9)]['logLevel']})}),_0x83f659=()=>{const _0x3f0b1b=_0x5435d2;try{const _0x192cdb=path['join'](helper[_0x3f0b1b(0x10d)](),_0x33801a[_0x3f0b1b(0x126)],_0x33801a[_0x3f0b1b(0x10b)]);if(fs[_0x3f0b1b(0xfb)](_0x192cdb)){let _0x197b83=fs['readFileSync'](_0x192cdb);_0x197b83=JSON['parse'](_0x197b83),_0x554069[_0x3f0b1b(0xca)]=_0x197b83,fs[_0x3f0b1b(0x14e)](_0x192cdb);}}catch(_0x7b00c8){logger[_0x3f0b1b(0x106)](_0x33801a['kaHOo'](_0x33801a['XiQzn'],_0x7b00c8));}};_0x452918['on'](_0x5448dc[_0x5435d2(0x154)],async _0x52e29c=>{const _0x513ccc=_0x5435d2,_0xfc1373={};_0xfc1373['Ciskj']=_0x5448dc[_0x513ccc(0xfe)];const _0x5e087c=_0xfc1373;try{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),_0x5448dc[_0x513ccc(0x146)](_0x83f659),await TestHubHandler[_0x513ccc(0x115)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x5139bc=BrowserstackCLI[_0x513ccc(0xd4)]();await BrowserstackCLI['getInstance']()[_0x513ccc(0x115)](),TestDetails[_0x513ccc(0x167)](),_0x5448dc['ePPoa'](printBuildLink),await utilities[_0x513ccc(0xe4)](_0x554069,_0x5139bc),process[_0x513ccc(0x16e)]=_0x52e29c,logger[_0x513ccc(0x106)](_0x513ccc(0xe6)+_0x52e29c),logger[_0x513ccc(0x12c)]('Deleting\x20'+_0x14f1d9),fs[_0x513ccc(0x14e)](_0x14f1d9);fs['existsSync'](_0xa9478f)&&(logger[_0x513ccc(0x106)](_0x513ccc(0xd9)+_0xa9478f),fs[_0x513ccc(0x14e)](_0xa9478f));const _0x31d3b1=fs['readdirSync'](path['join'](helper['homedir'](),_0x5448dc[_0x513ccc(0xfe)]))[_0x513ccc(0xe5)](_0x288726=>_0x288726['startsWith']('trace_'));_0x31d3b1[_0x513ccc(0x178)](_0x36ee75=>{const _0xd54f9e=_0x513ccc;fs[_0xd54f9e(0x14e)](path['join'](helper['homedir'](),_0x5e087c[_0xd54f9e(0x12a)],_0x36ee75));});}catch(_0x536a5d){logger[_0x513ccc(0x106)](_0x5448dc[_0x513ccc(0x162)](_0x5448dc[_0x513ccc(0xc6)],_0x536a5d));}});})();}function a39_0x2d9e(){const _0x3e0a30=['kxmxh','BROWSERSTACK_TEST_ACCESSIBILITY_YML','startsWith','../utils/clientTroubleshootingService','reportDotBrowserStackFolderNotAccessibleIssue','setFrameworkDetail','isRunning','bewMv','aNBaq','../v2/cliUtils','existsSync','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','testContextOptions','tPSUf','getConfigPath','BrowserStack\x20config\x20file\x20not\x20found.','concat','util','ejAZz','24lBymIQ','BZNab','debug','zYjet','../../helpers/utilities','uGiFI','env','kKHYh','Rtahs','homedir','crhfH','--grep','skipSessionStatus','../../helpers/testhub/testhubHandler','FzAeA','zEfuL','QiRvg','stop','end','requireConfigLoaderYarnPnP','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/test-observability/utils','WqfGJ','validateRerunTestList','Proxy\x20url\x20:\x20','reportConflictingEnvVarIssue','false','initialize','Error\x20in\x20deleting\x20playwright\x20results','writeFileSync','aSKnU','win32','PACKAGE_TYPE','Ukfvp','oomHD','accessibilityOptions','--config','serializeToYamlString','Ciskj','ETAip','info','INTERNALLY_USED_ENV_VARS','610239MBWrSv','setBrowserstackConfig','isFalse','PTTqh','join','uBosr','.browserstack','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','length','USER_CONFIG_DETAILS_PATH','../../helpers/performance/constants','error','split','18819370yiALPd','SqZDa','KCnTP','EQYZn','1226408bceUKa','8xngwpp','PLAYWRIGHT','getNoProxy','cliConfig','pw_result.json','skipSessionName','ePPoa','resolvedConfigFile','KCIpl','WxeBJ','slice','bdCtG','12mfRYtL','Error\x20in\x20closing\x20playwright','unlinkSync','SDK_POST_INITIALIZE','child_process','requirePWModule','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','IxWNE','tipAC','28356sqLMyg','playwright-browserstack-sdk.config.js','bootstrap','resolve','RBtjv','BROWSERSTACK_RERUN_TESTS','inherit','qDhcY','testObservability','isUndefined','splice','push','winstonLogger','LCofc','isTrue','wViey','cwd','isTypescriptProject','shutdown','XXAXk','--disable-test-observability','platform','BROWSERSTACK_RERUN','../utils/constants','apply','exitCode','has','npx','constants','AZkXc','ZMwMY','BROWSERSTACK_SETUP_CONFIG_PATH','get','889218gEeKpK','cBfnj','forEach','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','accessibility','BROWSERSTACK_AUTOMATION','TiYgI','dGCeL','measureWrapper','EaTrW','yarn','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','../../helpers/logger','browserstackSetupConfig.json','dGnik','path','test','../../helpers/accessibility-automation/helper','errorMessage','UTSef','rqVEh','--config=','BROWSERSTACK_PW_CONFIG_DIR','accessSync','exports','ipBFU','../../helpers/helper','playwright','isCLIEnabled','EJqVT','../v2/browserstackCLI','kxOAu','PJdFs','Deleting\x20','configPath','../../helpers/BrowserStackSetup','Error\x20in\x20getting\x20funnel\x20data\x20results','Ubvyf','vyXza','isYarnPnP','launchBuild','RnmHU','browserstackAutomation','2118830VQqwTx','finalExecution','filter','Playwright\x20process\x20exited\x20with\x20code\x20','ECzpI','SDK_SETUP','config','SDK_PRE_INITIALIZE','filterBrowserstackArgs','oeSkE','810369XMiuLL','./reporter/pwUtils','clearTempPWConfig','getInstance'];a39_0x2d9e=function(){return _0x3e0a30;};return a39_0x2d9e();}module[a39_0x5cc9a5(0xd0)]=run;
|
|
2
|
+
'use strict';function a39_0xcbcf(){const _0x2fad4c=['configPath','NmqWH','1936124vUybbd','../v2/TestInfo','./reporter/test-details','SizuT','indexOf','accessibilityOptions','UASCr','BrowserStack\x20config\x20file\x20not\x20found.','split','PURNS','UexWY','MNGWI','skipSessionStatus','jrEAP','./reporter/pwUtils','BROWSERSTACK_RERUN_TESTS','filter','TonnK','OPQMk','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','SDK_POST_INITIALIZE','nZjxL','aMCGH','apply','Error\x20in\x20getting\x20funnel\x20data\x20results','\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();','../../helpers/BrowserStackSetup','CAJAh','winstonLogger','WTNAc','IBnGZ','--disable-browserstack-automation','push','forEach','KiaDh','NwhcP','pw_result.json','yFFfM','reportConflictingEnvVarIssue','pbSUw','24vREgad','serializeToYamlString','PLAYWRIGHT','end','1603742pRzTyk','ZTXnI','concat','109430yWPkVe','resolvedConfigFile','../utils/clientTroubleshootingService','error','BROWSERSTACK_TEST_OBSERVABILITY','MODULE','npx','getConfig','cwd','cliConfig','inherit','config','Deleting\x20','constants','../v2/browserstackCLI','testContextOptions','tXuEX','has','join','99TItMvg','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','isUndefined','accessibility','requirePWModule','reportDotBrowserStackFolderNotAccessibleIssue','resolve','setBrowserstackConfig','../../helpers/utilities','getProxyUrl','path','BROWSERSTACK_RERUN','trace_','99372zZONtE','parse','playwright-browserstack-sdk.config.js','env','requireConfigLoaderYarnPnP','VVdnf','489869jPXunR','exitCode','../../helpers/performance/performance-tester','erVNB','isTrue','W_OK','testObservability','USER_CONFIG_DETAILS_PATH','existsSync','zidSe','Proxy\x20url\x20:\x20','filterBrowserstackArgs','accessSync','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/accessibility-automation/helper','skipSessionName','../../helpers/helper','getInstance','SDK_SETUP','YqKuE','assign','playwright','getConfigPath','initialize','.browserstack','3YDTVPF','SDK_PRE_INITIALIZE','getPackageType','jbowm','WIDeQ','measureWrapper','isYarnPnP','HAYdF','Error\x20in\x20deleting\x20playwright\x20results','icKZC','dirname','isCLIEnabled','160860thEDXR','vJIIb','writeFileSync','GIDkH','stop','zaYqM','rVbxO','browserstackAutomation','win32','495tZBuqi','../../helpers/test-observability/utils','25FOjVWf','--config=','EVENTS','homedir','fOeIn','../../helpers/logger','launchBuild','startsWith','PugqY','getNoProxy','Error\x20in\x20closing\x20playwright','../../helpers/test-observability/constants','errorMessage','Cuqgl','unlinkSync','uyXuc','map','length','BROWSERSTACK_TEST_ACCESSIBILITY_YML','readFileSync','isFalse','../../helpers/testhub/testhubHandler','SDK_CLEANUP','No\x20Proxy\x20:\x20','browserstackSetupConfig.json','nestedKeyValue','NEBAI','./accessibility-helper','exports','clearTempPWConfig','debug','1366066DTZosP','util','shutdown','SNvxk','HXuDa','wdKGc','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','qqeic','vbcan','slice','--disable-test-observability','BROWSERSTACK_AUTOMATION','ipCnB','isRunning','jfJFj','--config','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','stringify','logLevel','Updated\x20config\x20file\x20name\x20to\x20-\x20','false','rweox','BROWSERSTACK_SETUP_CONFIG_PATH','BROWSERSTACK_PW_CONFIG_DIR','vmHCh','trim','playwright-browserstack-sdk.config.cjs','test','eSuay','isTypescriptProject','EuCKS','yarn','findIndex','FWgIR','QCrFl','LpPoH','start','platform','INTERNALLY_USED_ENV_VARS','mgRsA','setFrameworkDetail','jCIul','oDeeu'];a39_0xcbcf=function(){return _0x2fad4c;};return a39_0xcbcf();}const a39_0x2ad739=a39_0x1619;function a39_0x1619(_0x5c127d,_0x4b642b){const _0xcbcf01=a39_0xcbcf();return a39_0x1619=function(_0x1619aa,_0x3a7274){_0x1619aa=_0x1619aa-0x1b4;let _0x1cf398=_0xcbcf01[_0x1619aa];return _0x1cf398;},a39_0x1619(_0x5c127d,_0x4b642b);}(function(_0x3e807c,_0x4ec3c0){const _0x392166=a39_0x1619,_0x4418df=_0x3e807c();while(!![]){try{const _0x4948eb=parseInt(_0x392166(0x236))/0x1+-parseInt(_0x392166(0x1b4))/0x2*(-parseInt(_0x392166(0x24f))/0x3)+-parseInt(_0x392166(0x1e1))/0x4+parseInt(_0x392166(0x266))/0x5*(-parseInt(_0x392166(0x25b))/0x6)+parseInt(_0x392166(0x20d))/0x7*(-parseInt(_0x392166(0x209))/0x8)+-parseInt(_0x392166(0x264))/0x9*(-parseInt(_0x392166(0x210))/0xa)+parseInt(_0x392166(0x223))/0xb*(-parseInt(_0x392166(0x230))/0xc);if(_0x4948eb===_0x4ec3c0)break;else _0x4418df['push'](_0x4418df['shift']());}catch(_0xac0df){_0x4418df['push'](_0x4418df['shift']());}}}(a39_0xcbcf,0x60657));const fs=require('fs'),path=require(a39_0x2ad739(0x22d)),{spawn}=require('child_process'),{format}=require(a39_0x2ad739(0x1b5)),logger=require(a39_0x2ad739(0x26b))[a39_0x2ad739(0x1fd)],{default:BrowserStackSetup}=require(a39_0x2ad739(0x1fb)),helper=require(a39_0x2ad739(0x246)),utilities=require(a39_0x2ad739(0x22b)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a39_0x2ad739(0x271)),{getConfigLoaderPath}=require(a39_0x2ad739(0x1ef)),{checkAccessibilityPlatformConfig}=require(a39_0x2ad739(0x244)),{setAccessibilityCapabilities}=require(a39_0x2ad739(0x281)),{printBuildLink}=require(a39_0x2ad739(0x265)),TestDetails=require(a39_0x2ad739(0x1e3)),TestHubHandler=require(a39_0x2ad739(0x27b)),PerformanceTester=require(a39_0x2ad739(0x238)),BrowserstackCLI=require(a39_0x2ad739(0x21e)),PerformanceEvents=require('../../helpers/performance/constants')[a39_0x2ad739(0x268)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a39_0x2ad739(0x1e2)),ClientTroubleShootingService=require(a39_0x2ad739(0x212)),getUserPlaywrightConfig=async(_0x2cc603,_0x329d2d)=>{const _0x345557=a39_0x2ad739,_0x3357a1={'erVNB':function(_0x59b19f){return _0x59b19f();},'tXuEX':function(_0xcc526c){return _0xcc526c();},'ZTXnI':function(_0x1cd13d,_0x2d4c2d){return _0x1cd13d(_0x2d4c2d);},'qUSku':_0x345557(0x211),'snTGA':_0x345557(0x267)},_0x2038b9=!helper[_0x345557(0x225)](_0x2cc603['config']),_0x147dec=_0x2038b9?path[_0x345557(0x229)](process[_0x345557(0x218)](),_0x2cc603['config']):process['cwd'](),{resolveConfigFile:_0x3527a3,resolveConfigLocation:_0x198ce9}=helper[_0x345557(0x255)]()?helper[_0x345557(0x234)](..._0x3357a1[_0x345557(0x239)](getConfigLoaderPath)):helper[_0x345557(0x227)][_0x345557(0x1f8)](null,_0x3357a1[_0x345557(0x220)](getConfigLoaderPath)),_0x36b007=_0x3527a3?_0x3357a1['ZTXnI'](_0x3527a3,_0x147dec):helper[_0x345557(0x27f)](_0x3357a1[_0x345557(0x20e)](_0x198ce9,_0x147dec),[_0x3357a1['qUSku']]),_0x100e19={};if(_0x2038b9){const _0x42cc05=_0x329d2d[_0x345557(0x1d4)](_0x340251=>_0x340251===_0x345557(0x1c3)||_0x340251==='-c'||_0x340251[_0x345557(0x26d)](_0x345557(0x267)));_0x329d2d['splice'](_0x42cc05,_0x329d2d[_0x42cc05]['startsWith'](_0x3357a1['snTGA'])?0x1:0x2);}const _0x4a8f6d={};return _0x4a8f6d['path']=_0x36b007,_0x4a8f6d[_0x345557(0x21b)]=_0x100e19,_0x4a8f6d;},handleO11yRerun=_0x1ae1bf=>{const _0x3b347d=a39_0x2ad739,_0x161018={};_0x161018[_0x3b347d(0x1cc)]='--grep';const _0x19319b=_0x161018,_0x418102=helper[_0x3b347d(0x23a)](process[_0x3b347d(0x233)][_0x3b347d(0x22e)]);if(_0x418102){const _0x64d0f3=process[_0x3b347d(0x233)][_0x3b347d(0x1f0)],_0x45de33=[];if(helper['validateRerunTestList'](_0x64d0f3)&&!helper[_0x3b347d(0x225)](_0x64d0f3)){_0x64d0f3[_0x3b347d(0x1e9)](',')[_0x3b347d(0x276)](_0x458fab=>{const _0x1b00a3=_0x3b347d;_0x45de33[_0x1b00a3(0x201)]('('+_0x458fab[_0x1b00a3(0x1cd)]()+')');});const _0x512ddf='^'+_0x45de33['join']('|')+'$';_0x1ae1bf['push'](_0x19319b[_0x3b347d(0x1cc)],_0x512ddf);}}},spawnOriginalProcess=_0x57cf22=>{const _0x1efbeb=a39_0x2ad739,_0x120aba={'UexWY':function(_0x46ba5d,_0x338786,_0x466298,_0x37c632){return _0x46ba5d(_0x338786,_0x466298,_0x37c632);},'faYMj':_0x1efbeb(0x1d3),'OPQMk':_0x1efbeb(0x216),'WIDeQ':'playwright','NwhcP':function(_0x107dbf,_0x49a095){return _0x107dbf===_0x49a095;},'mgRsA':'win32','vbcan':_0x1efbeb(0x21a)};_0x120aba[_0x1efbeb(0x1eb)](spawn,helper[_0x1efbeb(0x255)]()?_0x120aba['faYMj']:_0x120aba[_0x1efbeb(0x1f3)],[_0x120aba[_0x1efbeb(0x253)],..._0x57cf22[_0x1efbeb(0x1bd)](0x1)],{'shell':_0x120aba[_0x1efbeb(0x204)](process[_0x1efbeb(0x1d9)],_0x120aba[_0x1efbeb(0x1db)]),'stdio':_0x120aba[_0x1efbeb(0x1bc)],'cwd':process['cwd']()});},isTestCommand=(_0x1cb24c,_0x22712e)=>{const _0x2edc8e=a39_0x2ad739,_0x115878={};_0x115878['GBwcU']=function(_0x51339a,_0x1c72e0){return _0x51339a>_0x1c72e0;},_0x115878[_0x2edc8e(0x1e4)]=function(_0x2ce005,_0x337cc5){return _0x2ce005===_0x337cc5;},_0x115878[_0x2edc8e(0x261)]=_0x2edc8e(0x1cf);const _0x52b50e=_0x115878;if(_0x52b50e['GBwcU'](_0x22712e[_0x2edc8e(0x277)],0x1)&&_0x52b50e[_0x2edc8e(0x1e4)](_0x22712e[0x1],_0x52b50e[_0x2edc8e(0x261)]))return!![];return![];};async function run(_0x3df026,_0x2d6302,_0x2ec853){const _0x39ede3=a39_0x2ad739,_0x143c9c={'WTNAc':function(_0x4401f2,_0x332c9d){return _0x4401f2(_0x332c9d);},'zaYqM':_0x39ede3(0x24e),'UASCr':_0x39ede3(0x205),'plakT':function(_0x21fcb1,_0x5959c2){return _0x21fcb1+_0x5959c2;},'yFFfM':_0x39ede3(0x1f9),'aMCGH':function(_0x152c8e){return _0x152c8e();},'GIDkH':function(_0x5cdf4e){return _0x5cdf4e();},'Cuqgl':function(_0x2d1d51,_0x549933){return _0x2d1d51+_0x549933;},'qqeic':_0x39ede3(0x270),'eSuay':_0x39ede3(0x1e8),'jbowm':function(_0x4aa557,_0x29785c){return _0x4aa557<_0x29785c;},'TonnK':function(_0x543b40,_0x3d3b99){return _0x543b40===_0x3d3b99;},'EuCKS':_0x39ede3(0x1c8),'FWgIR':_0x39ede3(0x1be),'QCrFl':function(_0x3dd5be,_0x157661){return _0x3dd5be>=_0x157661;},'NEBAI':function(_0x1662c0,_0x3f114d){return _0x1662c0===_0x3f114d;},'fOeIn':'automation','zidSe':function(_0x1e7385,_0x638ba1){return _0x1e7385!=_0x638ba1;},'KiaDh':function(_0x4d8818,_0x2953a2,_0x1ca9ca){return _0x4d8818(_0x2953a2,_0x1ca9ca);},'IBnGZ':function(_0x1c4672,_0x3dbb41){return _0x1c4672(_0x3dbb41);},'mYHCA':function(_0x25a958,_0x594c73){return _0x25a958===_0x594c73;},'oDeeu':'true','LpPoH':function(_0x36affa,_0xa48913){return _0x36affa(_0xa48913);},'xAgoI':_0x39ede3(0x27e),'ikNoE':_0x39ede3(0x1ce),'vJIIb':_0x39ede3(0x232),'ipCnB':function(_0x1a3567,_0x31c84f){return _0x1a3567-_0x31c84f;},'jfJFj':function(_0x215a32,_0x2572a8){return _0x215a32+_0x2572a8;},'jCIul':_0x39ede3(0x1c7),'nZjxL':function(_0x3640e1,_0x4dd1f7){return _0x3640e1>_0x4dd1f7;},'HAYdF':function(_0x231629,_0x897e8c,_0x4316da,_0x1154b1){return _0x231629(_0x897e8c,_0x4316da,_0x1154b1);},'HXuDa':_0x39ede3(0x1d3),'jrEAP':_0x39ede3(0x216),'PURNS':_0x39ede3(0x24b),'wdKGc':_0x39ede3(0x1cf),'rweox':'--config','pbSUw':function(_0x4a9f2b,_0x57ea47){return _0x4a9f2b===_0x57ea47;},'MNGWI':_0x39ede3(0x263),'uyXuc':function(_0x88b7c6,_0x478b86){return _0x88b7c6===_0x478b86;},'YqKuE':'inherit','NmqWH':'close','PugqY':function(_0x2ca708,_0x7b70ce){return _0x2ca708|_0x7b70ce;},'SNvxk':function(_0x17b87b,_0xa36b50){return _0x17b87b+_0xa36b50;},'rYisY':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','CAJAh':_0x39ede3(0x257),'vkmqy':function(_0x5beb99,_0x46bbc9,_0x2380ec){return _0x5beb99(_0x46bbc9,_0x2380ec);},'VVdnf':function(_0x153ba7,_0x5306cf){return _0x153ba7(_0x5306cf);}};try{const _0x2dc62a=path[_0x39ede3(0x222)](helper[_0x39ede3(0x269)](),_0x143c9c[_0x39ede3(0x260)]);try{fs[_0x39ede3(0x242)](_0x2dc62a,_0x143c9c[_0x39ede3(0x26e)](fs[_0x39ede3(0x21d)]['R_OK'],fs['constants'][_0x39ede3(0x23b)]));}catch(_0x5241c3){ClientTroubleShootingService[_0x39ede3(0x228)]();}}catch(_0x6e7314){logger[_0x39ede3(0x284)](_0x143c9c[_0x39ede3(0x1b7)](_0x143c9c['rYisY'],_0x6e7314));}try{const _0x23d292=path[_0x39ede3(0x222)](helper['homedir'](),_0x143c9c['zaYqM'],_0x143c9c[_0x39ede3(0x1e7)]);fs[_0x39ede3(0x23e)](_0x23d292)&&fs['unlinkSync'](_0x23d292);}catch(_0x944b0){logger[_0x39ede3(0x284)](_0x143c9c[_0x39ede3(0x273)](_0x143c9c[_0x39ede3(0x1fc)],_0x944b0));}if(!_0x143c9c['vkmqy'](isTestCommand,_0x3df026,_0x2d6302)){_0x143c9c[_0x39ede3(0x235)](spawnOriginalProcess,_0x2d6302);return;}await PerformanceTester[_0x39ede3(0x254)](PerformanceEvents[_0x39ede3(0x250)],async()=>{const _0x3a753e=_0x39ede3,_0x1498d9={};_0x1498d9[_0x3a753e(0x258)]=_0x143c9c[_0x3a753e(0x260)];const _0x412bb6=_0x1498d9;if(!_0x2ec853[_0x3a753e(0x21b)]){logger[_0x3a753e(0x213)](_0x143c9c[_0x3a753e(0x1d0)]);return;}await _0x2ec853[_0x3a753e(0x24d)](_0x3df026),CLIUtils[_0x3a753e(0x1dc)](FRAMEWORKS[_0x3a753e(0x20b)],FRAMEWORKS[_0x3a753e(0x20b)]),BrowserstackCLI['getInstance']()[_0x3a753e(0x22a)](_0x2ec853[_0x3a753e(0x21b)],_0x2ec853[_0x3a753e(0x1df)],_0x2ec853[_0x3a753e(0x219)]),await BrowserstackCLI[_0x3a753e(0x247)]()['bootstrap']();for(var _0x3f4619=0x0;_0x143c9c[_0x3a753e(0x252)](_0x3f4619,constants[_0x3a753e(0x1da)][_0x3a753e(0x277)]);_0x3f4619++){var _0x71e8d6=constants[_0x3a753e(0x1da)][_0x3f4619];process['env'][_0x71e8d6]&&await ClientTroubleShootingService[_0x3a753e(0x207)](_0x71e8d6);}const _0xdf7e3f=BrowserstackCLI[_0x3a753e(0x247)]()[_0x3a753e(0x217)]();!helper[_0x3a753e(0x27a)](_0xdf7e3f[_0x3a753e(0x262)])&&(process[_0x3a753e(0x233)][_0x3a753e(0x1bf)]=!![]);_0x143c9c[_0x3a753e(0x1f2)](_0xdf7e3f[_0x3a753e(0x262)],![])&&(process[_0x3a753e(0x233)][_0x3a753e(0x1bf)]=_0x143c9c[_0x3a753e(0x1d2)],_0x2d6302=_0x2d6302[_0x3a753e(0x1f1)](_0x25262f=>_0x25262f!==_0x3a753e(0x200)));const _0x294c17=_0x2d6302[_0x3a753e(0x1e5)](_0x143c9c[_0x3a753e(0x1d5)]);(_0x143c9c[_0x3a753e(0x1d6)](_0x294c17,0x0)||_0x143c9c['NEBAI'](_0xdf7e3f[_0x3a753e(0x23c)],![]))&&(process[_0x3a753e(0x233)][_0x3a753e(0x214)]=_0x143c9c[_0x3a753e(0x1d2)],_0x2d6302=_0x2d6302[_0x3a753e(0x1f1)](_0x2ea0e3=>_0x2ea0e3!==_0x3a753e(0x1be)));!helper[_0x3a753e(0x225)](_0x2ec853['cliConfig'])&&_0x2ec853[_0x3a753e(0x219)][_0x3a753e(0x221)](_0x143c9c[_0x3a753e(0x26a)])&&(process['env'][_0x3a753e(0x1bf)]=_0x2ec853[_0x3a753e(0x219)]['get'](_0x143c9c[_0x3a753e(0x26a)])||!![]);_0x143c9c[_0x3a753e(0x23f)](_0x2ec853['config'][_0x3a753e(0x23c)],null)&&!helper[_0x3a753e(0x23a)](process['env'][_0x3a753e(0x214)])&&(process[_0x3a753e(0x233)][_0x3a753e(0x214)]=process['env'][_0x3a753e(0x214)]||_0x2ec853['config']['testObservability']);const _0x5bdaa6=!helper[_0x3a753e(0x27a)](process[_0x3a753e(0x233)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0x2ec853['config'][_0x3a753e(0x1e6)]&&(process[_0x3a753e(0x233)][_0x3a753e(0x243)]=JSON[_0x3a753e(0x1c5)](_0x2ec853['config'][_0x3a753e(0x1e6)]));let _0x5af0c8=![];_0x2ec853[_0x3a753e(0x21b)][_0x3a753e(0x226)]&&(_0x5af0c8=!![],process[_0x3a753e(0x233)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2ec853['config']['accessibility']);const _0x2a9ecf=_0x2d6302[_0x3a753e(0x20f)](),_0x1a6f00=await _0x143c9c[_0x3a753e(0x203)](getUserPlaywrightConfig,_0x3df026,_0x2d6302);if(helper[_0x3a753e(0x225)](_0x1a6f00)){_0x143c9c[_0x3a753e(0x1ff)](spawnOriginalProcess,_0x2a9ecf);return;}const _0x6d2908=_0x1a6f00[_0x3a753e(0x22d)]?path['dirname'](_0x1a6f00['path']):process[_0x3a753e(0x218)]();process['env'][_0x3a753e(0x1cb)]=_0x6d2908,await PerformanceTester[_0x3a753e(0x254)](PerformanceEvents[_0x3a753e(0x1f5)],async()=>{const _0x58cbea=_0x3a753e;!BrowserstackCLI[_0x58cbea(0x247)]()[_0x58cbea(0x1c1)]()&&await TestHubHandler[_0x58cbea(0x26c)](FRAMEWORKS['PLAYWRIGHT'],_0x2ec853),_0x5bdaa6&&_0x143c9c[_0x58cbea(0x1fe)](handleO11yRerun,_0x2d6302);})();if(!BrowserstackCLI['getInstance']()[_0x3a753e(0x1c1)]()){let _0x22fdaa=_0x143c9c['mYHCA'](process[_0x3a753e(0x233)][_0x3a753e(0x278)],_0x143c9c[_0x3a753e(0x1de)]);_0x22fdaa=_0x22fdaa||_0x143c9c[_0x3a753e(0x1d7)](checkAccessibilityPlatformConfig,_0x2ec853[_0x3a753e(0x21b)]),process[_0x3a753e(0x233)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x22fdaa,_0x22fdaa&&_0x143c9c[_0x3a753e(0x1ff)](setAccessibilityCapabilities,_0x2ec853[_0x3a753e(0x21b)]);}const _0x3d825d=path['join'](_0x1a6f00[_0x3a753e(0x22d)]?path[_0x3a753e(0x259)](_0x1a6f00[_0x3a753e(0x22d)]):process[_0x3a753e(0x218)](),_0x143c9c['xAgoI']);fs[_0x3a753e(0x25d)](_0x3d825d,helper[_0x3a753e(0x20a)](_0x2ec853[_0x3a753e(0x21b)])),process[_0x3a753e(0x233)][_0x3a753e(0x1ca)]=_0x3d825d,helper[_0x3a753e(0x283)]();let _0x57d5d0='';_0x143c9c[_0x3a753e(0x280)](helper[_0x3a753e(0x251)](),constants['PACKAGE_TYPE'][_0x3a753e(0x215)])?_0x57d5d0=_0x143c9c['ikNoE']:_0x57d5d0=_0x143c9c[_0x3a753e(0x25c)];let _0x57fd36='';if(helper[_0x3a753e(0x1d1)](_0x1a6f00[_0x3a753e(0x22d)])){_0x57fd36=_0x3a753e(0x1c4);const _0x3de41f=_0x57d5d0[_0x3a753e(0x1e9)]('.');_0x3de41f[_0x143c9c[_0x3a753e(0x1c0)](_0x3de41f['length'],0x1)]='ts',_0x57d5d0=_0x3de41f[_0x3a753e(0x222)]('.'),logger[_0x3a753e(0x284)](_0x143c9c['jfJFj'](_0x143c9c[_0x3a753e(0x1dd)],_0x57d5d0));}else _0x57fd36=_0x3a753e(0x224);const _0x1e5487=path[_0x3a753e(0x222)](_0x1a6f00[_0x3a753e(0x22d)]?path[_0x3a753e(0x259)](_0x1a6f00[_0x3a753e(0x22d)]):process[_0x3a753e(0x218)](),_0x57d5d0);let _0x42ecad=_0x1a6f00['path']?_0x1a6f00[_0x3a753e(0x22d)]:'';_0x42ecad=_0x143c9c[_0x3a753e(0x1f6)](_0x42ecad[_0x3a753e(0x277)],0x0)?path['resolve'](_0x42ecad):'',process[_0x3a753e(0x233)][_0x3a753e(0x23d)]=_0x42ecad;const _0x1eb0cd=helper[_0x3a753e(0x22c)](_0x2ec853[_0x3a753e(0x21b)]),_0x447b1e=helper[_0x3a753e(0x26f)](_0x2ec853['config']);logger[_0x3a753e(0x284)](_0x3a753e(0x240)+_0x1eb0cd),logger[_0x3a753e(0x284)](_0x3a753e(0x27d)+_0x447b1e);_0x1eb0cd&&(_0x57fd36=_0x143c9c[_0x3a753e(0x1c2)](_0x3a753e(0x1ba)+_0x1eb0cd+_0x3a753e(0x1f4)+_0x447b1e+_0x3a753e(0x1fa),_0x57fd36));helper[_0x3a753e(0x241)]({},_0x2d6302),fs[_0x3a753e(0x25d)](_0x1e5487,_0x57fd36),PerformanceTester[_0x3a753e(0x20c)](PerformanceEvents[_0x3a753e(0x248)]);const _0x36f3e5=_0x143c9c[_0x3a753e(0x256)](spawn,helper[_0x3a753e(0x255)]()?_0x143c9c[_0x3a753e(0x1b8)]:_0x143c9c[_0x3a753e(0x1ee)],[_0x143c9c[_0x3a753e(0x1ea)],_0x143c9c[_0x3a753e(0x1b9)],_0x143c9c[_0x3a753e(0x1c9)],_0x143c9c[_0x3a753e(0x208)](process[_0x3a753e(0x1d9)],_0x143c9c['MNGWI'])?'\x22'+_0x1e5487+'\x22':_0x1e5487,..._0x2d6302[_0x3a753e(0x1bd)](0x2)],{'shell':_0x143c9c[_0x3a753e(0x275)](process[_0x3a753e(0x1d9)],_0x143c9c[_0x3a753e(0x1ec)]),'stdio':_0x143c9c[_0x3a753e(0x249)],'cwd':process[_0x3a753e(0x218)](),'env':Object[_0x3a753e(0x24a)]({},process[_0x3a753e(0x233)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3a753e(0x24c)](_0x3df026),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x2ec853[_0x3a753e(0x21b)][_0x3a753e(0x21f)][_0x3a753e(0x1ed)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x2ec853[_0x3a753e(0x21b)][_0x3a753e(0x21f)][_0x3a753e(0x245)],'BROWSERSTACK_LOG_LEVEL':_0x2ec853[_0x3a753e(0x21b)][_0x3a753e(0x1c6)]})}),_0x132655=()=>{const _0x1342f3=_0x3a753e;try{const _0x224668=path[_0x1342f3(0x222)](helper[_0x1342f3(0x269)](),_0x143c9c[_0x1342f3(0x260)],_0x143c9c[_0x1342f3(0x1e7)]);if(fs[_0x1342f3(0x23e)](_0x224668)){let _0x1432ae=fs[_0x1342f3(0x279)](_0x224668);_0x1432ae=JSON[_0x1342f3(0x231)](_0x1432ae),_0x2ec853[_0x1342f3(0x272)]=_0x1432ae,fs[_0x1342f3(0x274)](_0x224668);}}catch(_0xd261fa){logger[_0x1342f3(0x284)](_0x143c9c['plakT'](_0x143c9c[_0x1342f3(0x206)],_0xd261fa));}};_0x36f3e5['on'](_0x143c9c[_0x3a753e(0x1e0)],async _0x433549=>{const _0xe20c13=_0x3a753e;try{PerformanceTester[_0xe20c13(0x1d8)](PerformanceEvents[_0xe20c13(0x27c)]),_0x143c9c[_0xe20c13(0x1f7)](_0x132655),await TestHubHandler[_0xe20c13(0x25f)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x290135=BrowserstackCLI[_0xe20c13(0x25a)]();await BrowserstackCLI[_0xe20c13(0x247)]()[_0xe20c13(0x25f)](),TestDetails[_0xe20c13(0x1b6)](),_0x143c9c[_0xe20c13(0x25e)](printBuildLink),await utilities['finalExecution'](_0x2ec853,_0x290135),process[_0xe20c13(0x237)]=_0x433549,logger[_0xe20c13(0x284)]('Playwright\x20process\x20exited\x20with\x20code\x20'+_0x433549),logger['info'](_0xe20c13(0x21c)+_0x1e5487),fs[_0xe20c13(0x274)](_0x1e5487);fs[_0xe20c13(0x23e)](_0x3d825d)&&(logger['debug'](_0xe20c13(0x21c)+_0x3d825d),fs[_0xe20c13(0x274)](_0x3d825d));const _0x44c23c=fs['readdirSync'](path[_0xe20c13(0x222)](helper['homedir'](),_0x143c9c[_0xe20c13(0x260)]))[_0xe20c13(0x1f1)](_0x328737=>_0x328737[_0xe20c13(0x26d)](_0xe20c13(0x22f)));_0x44c23c[_0xe20c13(0x202)](_0xb8fecc=>{const _0x212b8f=_0xe20c13;fs['unlinkSync'](path[_0x212b8f(0x222)](helper[_0x212b8f(0x269)](),_0x412bb6[_0x212b8f(0x258)],_0xb8fecc));});}catch(_0x249a7e){logger[_0xe20c13(0x284)](_0x143c9c[_0xe20c13(0x273)](_0x143c9c[_0xe20c13(0x1bb)],_0x249a7e));}});})();}module[a39_0x2ad739(0x282)]=run;
|