browserstack-node-sdk 1.50.0 → 1.50.1
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_0x3ea761=a33_0x1931;(function(_0xaa5734,_0x44ea7c){const _0x3f9750=a33_0x1931,_0x533ac8=_0xaa5734();while(!![]){try{const _0x345721=parseInt(_0x3f9750(0x1ac))/0x1+-parseInt(_0x3f9750(0x15e))/0x2*(parseInt(_0x3f9750(0x17e))/0x3)+parseInt(_0x3f9750(0x158))/0x4+parseInt(_0x3f9750(0x163))/0x5+parseInt(_0x3f9750(0x16c))/0x6+-parseInt(_0x3f9750(0x15b))/0x7*(parseInt(_0x3f9750(0x160))/0x8)+-parseInt(_0x3f9750(0x14c))/0x9;if(_0x345721===_0x44ea7c)break;else _0x533ac8['push'](_0x533ac8['shift']());}catch(_0x3d95cc){_0x533ac8['push'](_0x533ac8['shift']());}}}(a33_0x42ba,0x9a0e4));const logger=require(a33_0x3ea761(0x188))['winstonLogger'],helper=require(a33_0x3ea761(0x155)),constants=require(a33_0x3ea761(0x1a2)),hubAllocator=require(a33_0x3ea761(0x167)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x3ea761(0x156)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x3ea761(0x19d)),globals=require(a33_0x3ea761(0x1a8)),{overrideExecute}=require(a33_0x3ea761(0x1ad)),modify=(_0x44278c,_0x3b92d9=null,_0x4b45f2=![])=>{const _0x5e6b6b=a33_0x3ea761,_0x1a788e={'ktaJJ':function(_0x56c3d9,_0x49cabe){return _0x56c3d9!==_0x49cabe;},'iYCjC':_0x5e6b6b(0x1b2),'tnZSs':function(_0x19f195,_0x452f53){return _0x19f195+_0x452f53;},'AFoHs':_0x5e6b6b(0x198),'plpEd':_0x5e6b6b(0x1a9),'CWkcq':'goog:chromeOptions','VAXfB':_0x5e6b6b(0x191),'dedOL':_0x5e6b6b(0x1be),'VNcmc':'edgeOptions','GDmOl':_0x5e6b6b(0x15f),'mkGcj':'firefoxOptions','zTsja':'safari.options','WUmZX':_0x5e6b6b(0x171),'kXcBL':'ieOptions','ggECY':function(_0x4d6ec2,_0x39614f){return _0x4d6ec2===_0x39614f;},'ylnwt':_0x5e6b6b(0x157),'zlUqC':_0x5e6b6b(0x19c),'RnnQU':_0x5e6b6b(0x18a),'nLAdP':_0x5e6b6b(0x16f),'MmKmz':function(_0x1218fb,_0x5b236d,_0x4101c2){return _0x1218fb(_0x5b236d,_0x4101c2);},'beivu':'2|3|4|0|5|1','qiTAn':function(_0x9927a0,_0x14ab07){return _0x9927a0(_0x14ab07);},'rpAnx':_0x5e6b6b(0x14d),'xhXhM':function(_0x3dfb69){return _0x3dfb69();},'CLMCC':function(_0x137824,_0x22d108){return _0x137824(_0x22d108);},'Dafew':_0x5e6b6b(0x187),'BPgdx':_0x5e6b6b(0x182),'FIsiR':function(_0x5e5378,_0xc56941,_0x8cdc32){return _0x5e5378(_0xc56941,_0x8cdc32);},'PvDTa':_0x5e6b6b(0x152),'qfHLr':_0x5e6b6b(0x185)},_0x43cda8=helper[_0x5e6b6b(0x176)]();let _0x53b2da;try{_0x53b2da=helper[_0x5e6b6b(0x161)](),_0x53b2da['originalBuilder']&&(_0x53b2da[_0x5e6b6b(0x1b8)]=_0x53b2da[_0x5e6b6b(0x16a)]);}catch(_0x2d3944){return;}if(helper['isBrowserstackInfra']()){const _0x1d95dc={};_0x1d95dc[_0x5e6b6b(0x169)]=_0x44278c[_0x5e6b6b(0x17d)],helper['setLogLevel'](_0x1d95dc,new Map(),new Map()),logger['info'](_0x1a788e[_0x5e6b6b(0x19f)]),logger[_0x5e6b6b(0x15a)](_0x1a788e[_0x5e6b6b(0x183)]);}class _0x59d29b extends _0x43cda8[_0x5e6b6b(0x19a)]{[_0x5e6b6b(0x164)](_0x396e30){const _0x528b95=_0x5e6b6b;if(_0x1a788e[_0x528b95(0x162)](_0x396e30[_0x528b95(0x15c)],_0x1a788e[_0x528b95(0x14e)])&&_0x1a788e[_0x528b95(0x162)](global[_0x528b95(0x181)],''))try{global[_0x528b95(0x181)]=_0x1a788e[_0x528b95(0x145)](_0x1a788e[_0x528b95(0x145)](_0x1a788e[_0x528b95(0x1bb)],global[_0x528b95(0x181)]),_0x1a788e[_0x528b95(0x153)]),this[_0x528b95(0x1b9)]=hubAllocator[_0x528b95(0x154)](global[_0x528b95(0x181)]),logger['debug']('New\x20hub\x20url\x20set\x20to\x20'+global[_0x528b95(0x181)]),global[_0x528b95(0x181)]='';}catch(_0x3a1772){logger['error'](_0x3a1772);}return super[_0x528b95(0x164)](_0x396e30);}}class _0x1a68d4 extends _0x53b2da[_0x5e6b6b(0x1b8)]{[_0x5e6b6b(0x1ae)](){const _0x1930d4=_0x5e6b6b;return this[_0x1930d4(0x179)]=helper[_0x1930d4(0x173)](_0x44278c),logger['debug']('Hub\x20url\x20set\x20to\x20'+this[_0x1930d4(0x179)]),this;}[_0x5e6b6b(0x1b6)](_0x374c02){const _0x519fbe=_0x5e6b6b;let _0x284669={};for(const _0x1ca88d in _0x374c02){switch(_0x1ca88d){case _0x1a788e[_0x519fbe(0x19b)]:case _0x1a788e['VAXfB']:this[_0x519fbe(0x1b3)]&&(_0x284669=this['chromeOptions_'][_0x519fbe(0x17c)](this[_0x519fbe(0x1b3)][_0x519fbe(0x192)])||{},this['chromeOptions_'][_0x519fbe(0x189)](this[_0x519fbe(0x1b3)][_0x519fbe(0x192)],helper['mergeDeep'](_0x284669,_0x374c02[_0x1ca88d])));break;case _0x1a788e[_0x519fbe(0x16d)]:case _0x1a788e[_0x519fbe(0x159)]:this[_0x519fbe(0x19e)]&&(_0x284669=this[_0x519fbe(0x19e)]['get'](this[_0x519fbe(0x19e)][_0x519fbe(0x192)])||{},this['edgeOptions_'][_0x519fbe(0x189)](this[_0x519fbe(0x19e)][_0x519fbe(0x192)],helper[_0x519fbe(0x14f)](_0x284669,_0x374c02[_0x1ca88d])));break;case _0x1a788e[_0x519fbe(0x1a3)]:case _0x1a788e[_0x519fbe(0x165)]:this['firefoxOptions_']&&(_0x284669=this[_0x519fbe(0x1a5)][_0x519fbe(0x17c)](this['firefoxOptions_']['CAPABILITY_KEY'])||{},this[_0x519fbe(0x1a5)][_0x519fbe(0x189)](this['firefoxOptions_']['CAPABILITY_KEY'],helper[_0x519fbe(0x14f)](_0x284669,_0x374c02[_0x1ca88d])));break;case _0x1a788e[_0x519fbe(0x1b0)]:this[_0x519fbe(0x1a4)]&&(_0x284669=this['safariOptions_'][_0x519fbe(0x17c)](this[_0x519fbe(0x1a4)][_0x519fbe(0x192)])||{},this['safariOptions_']['set'](this[_0x519fbe(0x1a4)][_0x519fbe(0x192)],helper[_0x519fbe(0x14f)](_0x284669,_0x374c02[_0x1ca88d])));break;case _0x1a788e[_0x519fbe(0x1af)]:case _0x1a788e[_0x519fbe(0x17b)]:this[_0x519fbe(0x196)]&&(_0x284669=this[_0x519fbe(0x196)][_0x519fbe(0x17c)](this[_0x519fbe(0x196)][_0x519fbe(0x192)])||{},this[_0x519fbe(0x196)][_0x519fbe(0x189)](this['ieOptions_'][_0x519fbe(0x192)],helper[_0x519fbe(0x14f)](_0x284669,_0x374c02[_0x1ca88d])));break;}}}[_0x5e6b6b(0x190)](){const _0x508c5d=_0x5e6b6b,_0x1b8728={'gocvi':function(_0x1120ab,_0x1a9689){const _0x451af9=a33_0x1931;return _0x1a788e[_0x451af9(0x174)](_0x1120ab,_0x1a9689);},'uXoEU':_0x1a788e[_0x508c5d(0x16e)]};return logger[_0x508c5d(0x15a)](_0x1a788e[_0x508c5d(0x197)]),this[_0x508c5d(0x1b6)](_0x44278c[_0x508c5d(0x193)]),Object[_0x508c5d(0x178)](_0x44278c[_0x508c5d(0x193)])[_0x508c5d(0x180)](_0x46edc0=>{const _0x53ad39=_0x508c5d,_0x9cc2b5=this[_0x53ad39(0x175)][_0x53ad39(0x17c)](_0x46edc0);_0x1b8728[_0x53ad39(0x1a6)](typeof _0x9cc2b5,_0x1b8728['uXoEU'])?this[_0x53ad39(0x175)][_0x53ad39(0x189)](_0x46edc0,helper['mergeDeep'](_0x9cc2b5,_0x44278c[_0x53ad39(0x193)][_0x46edc0])):this[_0x53ad39(0x175)][_0x53ad39(0x189)](_0x46edc0,_0x44278c[_0x53ad39(0x193)][_0x46edc0]);}),this;}[_0x5e6b6b(0x1b5)](){const _0x1522da=_0x5e6b6b,_0x149429={'fpGAO':function(_0x4b649b,_0x859a04,_0x3c516e){const _0x28f751=a33_0x1931;return _0x1a788e[_0x28f751(0x166)](_0x4b649b,_0x859a04,_0x3c516e);},'OcCiw':_0x1a788e[_0x1522da(0x184)],'AoFoF':function(_0x3d9e58,_0x43d4cb){const _0x4ab092=_0x1522da;return _0x1a788e[_0x4ab092(0x172)](_0x3d9e58,_0x43d4cb);}};if(helper[_0x1522da(0x14a)]()){const _0x52aef5=_0x1a788e[_0x1522da(0x1aa)][_0x1522da(0x1b4)]('|');let _0x197bc3=0x0;while(!![]){switch(_0x52aef5[_0x197bc3++]){case'0':_0x1a788e['xhXhM'](isAccessibilityAutomationSession)&&_0x1a788e[_0x1522da(0x16b)](setAccessibilityCapabilities,_0x44278c);continue;case'1':if(helper[_0x1522da(0x195)](_0x44278c[_0x1522da(0x1b7)][_0x1522da(0x1bd)]))this['agent_']=helper[_0x1522da(0x1a7)](_0x44278c[_0x1522da(0x1b7)][_0x1522da(0x1bd)]);else _0x44278c[_0x1522da(0x1b7)][_0x1522da(0x1bd)]&&(this[_0x1522da(0x170)]=_0x44278c['proxySettings'][_0x1522da(0x1bd)],logger[_0x1522da(0x15a)](_0x1522da(0x15d)+this[_0x1522da(0x170)]));continue;case'2':logger[_0x1522da(0x15a)](_0x1a788e[_0x1522da(0x17f)]);continue;case'3':this[_0x1522da(0x1ae)]();continue;case'4':globals['getGlobal'](_0x1a788e[_0x1522da(0x186)])&&(!_0x1a788e[_0x1522da(0x1b1)](setExtension,this,_0x44278c)&&globals[_0x1522da(0x1a1)](_0x1a788e['BPgdx'],![]));continue;case'5':this['setCapabilities']();continue;}break;}}const _0x530050=super[_0x1522da(0x1b5)]();return _0x530050['session_'][_0x1522da(0x199)](_0x1530ac=>{const _0x5e54dc=_0x1522da;try{const _0x89942c=_0x1530ac['caps_'][_0x5e54dc(0x17c)](_0x1a788e[_0x5e54dc(0x147)]);_0x89942c?(logger[_0x5e54dc(0x15a)](_0x5e54dc(0x1a0)+_0x89942c),hubAllocator[_0x5e54dc(0x177)](_0x89942c),helper[_0x5e54dc(0x149)](_0x89942c)):logger[_0x5e54dc(0x15a)](_0x1a788e[_0x5e54dc(0x18e)]);}catch(_0x3c05c7){logger[_0x5e54dc(0x15a)](_0x5e54dc(0x18b)+_0x3c05c7);}}),_0x530050[_0x1522da(0x18d)]=0x0,_0x530050[_0x1522da(0x199)]&&_0x530050[_0x1522da(0x199)](_0x44f53a=>{const _0x23600a=_0x1522da,_0x36aefe=_0x149429[_0x23600a(0x18f)]['split']('|');let _0x5ec6a0=0x0;while(!![]){switch(_0x36aefe[_0x5ec6a0++]){case'0':_0x149429[_0x23600a(0x1ab)](overrideExecute,_0x44f53a,_0x44278c);continue;case'1':_0x44f53a['getAccessibilityResults']=async()=>{return await _0x149429['fpGAO'](getAccessibilityResults,_0x44f53a,global);};continue;case'2':_0x149429['fpGAO'](overrideQuit,_0x44f53a,_0x530050);continue;case'3':_0x149429['AoFoF'](overrideTakeScreenshot,_0x44f53a);continue;case'4':helper[_0x23600a(0x151)](_0x44f53a,_0x44278c);continue;case'5':_0x44f53a['getAccessibilityResultsSummary']=async()=>{const _0x4b1211=_0x23600a;return await _0x149429[_0x4b1211(0x1ab)](getAccessibilityResultsSummary,_0x44f53a,global);};continue;}break;}}),_0x530050[_0x1522da(0x150)]=async()=>{const _0x17f56d=_0x1522da;return await _0x149429[_0x17f56d(0x1ab)](getAccessibilityResultsSummary,_0x530050,global);},_0x530050[_0x1522da(0x148)]=async()=>{const _0x25c913=_0x1522da;return await _0x1a788e[_0x25c913(0x166)](getAccessibilityResults,_0x530050,global);},_0x1a788e[_0x1522da(0x16b)](overrideTakeScreenshot,_0x530050),_0x1a788e[_0x1522da(0x16b)](overrideQuit,_0x530050),helper[_0x1522da(0x151)](_0x530050,_0x44278c),_0x1a788e[_0x1522da(0x1b1)](overrideExecute,_0x530050,_0x44278c),helper[_0x1522da(0x18c)](global[_0x1522da(0x168)])&&(global[_0x1522da(0x168)]=[]),helper[_0x1522da(0x18c)](global['__drivers'])&&(global[_0x1522da(0x17a)]=[]),global[_0x1522da(0x168)][_0x1522da(0x1ba)](_0x530050),global[_0x1522da(0x1bc)]=_0x530050,_0x1a788e[_0x1522da(0x162)](global['__drivers'],undefined)&&global[_0x1522da(0x17a)][_0x1522da(0x1ba)](_0x530050),_0x3b92d9&&helper[_0x1522da(0x18c)](_0x3b92d9[_0x1522da(0x14b)][_0x1522da(0x168)])&&(_0x3b92d9['global'][_0x1522da(0x168)]=[]),_0x3b92d9&&_0x1a788e[_0x1522da(0x162)](_0x3b92d9[_0x1522da(0x14b)][_0x1522da(0x17a)],undefined)&&(_0x3b92d9['global']['__drivers'][_0x1522da(0x1ba)](_0x530050),_0x3b92d9[_0x1522da(0x14b)][_0x1522da(0x168)][_0x1522da(0x1ba)](_0x530050)),_0x530050;}}return _0x53b2da[_0x5e6b6b(0x16a)]=_0x53b2da[_0x5e6b6b(0x1b8)],_0x53b2da['Builder']=_0x1a68d4,_0x43cda8[_0x5e6b6b(0x19a)]=_0x59d29b,_0x53b2da;};function a33_0x1931(_0x912c4,_0x5c8351){const _0x42ba21=a33_0x42ba();return a33_0x1931=function(_0x19315f,_0x27a497){_0x19315f=_0x19315f-0x145;let _0x3f9556=_0x42ba21[_0x19315f];return _0x3f9556;},a33_0x1931(_0x912c4,_0x5c8351);}function a33_0x42ba(){const _0x347810=['7207074WplHvJ','0|3|5|1|4|2','iYCjC','mergeDeep','getAccessibilityResultsSummary','overrideGet','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','plpEd','getRequestOptions','../../../helpers/helper','../../../helpers/patchHelpers','object','4716028vFcWCu','VNcmc','debug','14sddJMT','path','Proxy\x20set\x20to\x20','471140nQsOVK','moz:firefoxOptions','1272056NwoWrn','requireSeleniumWebdriver','ktaJJ','4326735HEMziw','send','mkGcj','MmKmz','../../../hubAllocationMethods','__driversArray','logLevel','originalBuilder','CLMCC','82074OFMCWi','dedOL','ylnwt','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','proxy_','se:ieOptions','qiTAn','getHubUrl','ggECY','capabilities_','requireHttpClient','updateHubUrl','keys','url_','__drivers','kXcBL','get','browserStackLogLevel','15dlXAOY','Dafew','forEach','newHubUrl','isAccessibilityPlatform','qfHLr','beivu','Modifying\x20webdriver\x20builder','BPgdx','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','../../../helpers/logger','set','optimalHubUrl','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','isUndefined','quitCount_','nLAdP','OcCiw','setCapabilities','chromeOptions','CAPABILITY_KEY','capability','exports','isPacProxy','ieOptions_','zlUqC','https://','then','HttpClient','CWkcq','Setting\x20Browserstack\x20capabilities','../../../helpers/accessibility-automation/helper','edgeOptions_','PvDTa','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','setGlobal','../../../bin/utils/constants','GDmOl','safariOptions_','firefoxOptions_','gocvi','getHttpAgent','../../../helpers/globals','/wd/hub','rpAnx','fpGAO','869629VsjovA','./helpers/patchHelper','setServer','WUmZX','zTsja','FIsiR','/session','chromeOptions_','split','build','__setBrowserOptions','proxySettings','Builder','options_','push','AFoHs','__driver','proxyUrl','ms:edgeOptions','tnZSs','browserstackAgentObservability','RnnQU','getAccessibilityResults','storeOptimalHubUrl','isBrowserstackInfra','global'];a33_0x42ba=function(){return _0x347810;};return a33_0x42ba();}module[a33_0x3ea761(0x194)][a33_0x3ea761(0x146)]=modify;
|
|
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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a34_0x1d05(){const _0x4d7a0a=['mochaHooks','10215096UIwflY','3495486onPAlw','../../../helpers/test-observability/utils','4796RrLwEk','restore','54992fSrMeZ','288086WYjLKP','../../../helpers/request-spy','9iKEhFd','1704IrfOnz','timeout','qLmHu','153982qAmScP','127540JFSVOm'];a34_0x1d05=function(){return _0x4d7a0a;};return a34_0x1d05();}const a34_0x537557=a34_0x5c72;(function(_0x4831c6,_0x53e19f){const _0xb631f3=a34_0x5c72,_0x5cf2b9=_0x4831c6();while(!![]){try{const _0xd28db6=parseInt(_0xb631f3(0x18b))/0x1+parseInt(_0xb631f3(0x182))/0x2+parseInt(_0xb631f3(0x17f))/0x3*(parseInt(_0xb631f3(0x188))/0x4)+parseInt(_0xb631f3(0x183))/0x5+parseInt(_0xb631f3(0x186))/0x6+-parseInt(_0xb631f3(0x18a))/0x7+parseInt(_0xb631f3(0x185))/0x8*(-parseInt(_0xb631f3(0x18d))/0x9);if(_0xd28db6===_0x53e19f)break;else _0x5cf2b9['push'](_0x5cf2b9['shift']());}catch(_0x232b6f){_0x5cf2b9['push'](_0x5cf2b9['shift']());}}}(a34_0x1d05,0x5a32f));const requestSpy=require(a34_0x537557(0x18c)),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a34_0x537557(0x187));function a34_0x5c72(_0x220080,_0x144d1b){const _0x1d0509=a34_0x1d05();return a34_0x5c72=function(_0x5c7274,_0x4601e7){_0x5c7274=_0x5c7274-0x17f;let _0x344f38=_0x1d0509[_0x5c7274];return _0x344f38;},a34_0x5c72(_0x220080,_0x144d1b);}exports[a34_0x537557(0x184)]={'beforeAll'(){const _0x28eeee=a34_0x537557,_0x2ecf8f={'qLmHu':function(_0x2f3035){return _0x2f3035();}},_0x459d94='browserstack internal helper hook';_0x2ecf8f[_0x28eeee(0x181)](addRequestSpy);},'afterAll'(){const _0xbbe841=a34_0x537557,_0x5d6a12='browserstack internal helper hook';this[_0xbbe841(0x180)](0xea60),requestSpy[_0xbbe841(0x189)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a35_0x19baae=a35_0x2953;(function(_0x407c0d,_0xa6089c){const _0x247d4d=a35_0x2953,_0x2e0800=_0x407c0d();while(!![]){try{const _0x45a10e=-parseInt(_0x247d4d(0x1e1))/0x1+parseInt(_0x247d4d(0x1f5))/0x2+parseInt(_0x247d4d(0x1ed))/0x3+parseInt(_0x247d4d(0x1ec))/0x4*(parseInt(_0x247d4d(0x1bc))/0x5)+parseInt(_0x247d4d(0x1aa))/0x6*(parseInt(_0x247d4d(0x1c3))/0x7)+-parseInt(_0x247d4d(0x1ad))/0x8*(parseInt(_0x247d4d(0x1f1))/0x9)+-parseInt(_0x247d4d(0x1d9))/0xa*(-parseInt(_0x247d4d(0x1dc))/0xb);if(_0x45a10e===_0xa6089c)break;else _0x2e0800['push'](_0x2e0800['shift']());}catch(_0x1176ab){_0x2e0800['push'](_0x2e0800['shift']());}}}(a35_0x61cf,0x7d29b));function a35_0x2953(_0x595358,_0x35af74){const _0x61cf4f=a35_0x61cf();return a35_0x2953=function(_0x29535d,_0x2d2768){_0x29535d=_0x29535d-0x1a7;let _0x1db98e=_0x61cf4f[_0x29535d];return _0x1db98e;},a35_0x2953(_0x595358,_0x35af74);}const {v4:uuidv4}=require(a35_0x19baae(0x1ae)),{name,version}=require(a35_0x19baae(0x1f3)),logPatcher=require(a35_0x19baae(0x1cf)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a35_0x19baae(0x1ac)),{consoleHolder}=require(a35_0x19baae(0x1d6)),{getPlatformVersion}=require(a35_0x19baae(0x1e4)),{shouldProcessEventForTesthub}=require(a35_0x19baae(0x1ff)),{isFunction}=require(a35_0x19baae(0x1f2)),{patchConsoleLogger}=require(a35_0x19baae(0x1ac));patchConsoleLogger(),exports[a35_0x19baae(0x1e8)]=()=>{const _0x5a8e07=a35_0x19baae,_0x376c41={'qdTYt':_0x5a8e07(0x1b4),'TrIEM':function(_0x22022b){return _0x22022b();}};return{'ci':_0x376c41[_0x5a8e07(0x1fa)],'key':_0x376c41['TrIEM'](uuidv4),'version':version,'collector':_0x5a8e07(0x1c6)+name};},exports[a35_0x19baae(0x1bf)]=_0x2e09fd=>{const _0xf38667=a35_0x19baae,_0x58e313={};_0x58e313[_0xf38667(0x1d2)]=function(_0x4a8b2b,_0x4fdacc){return _0x4a8b2b!==_0x4fdacc;},_0x58e313[_0xf38667(0x1d3)]=_0xf38667(0x1fb),_0x58e313[_0xf38667(0x1f9)]=function(_0x224e9b,_0x123eb7){return _0x224e9b!==_0x123eb7;},_0x58e313[_0xf38667(0x1c5)]='hook:',_0x58e313[_0xf38667(0x1e5)]=function(_0x3f8ef6,_0x3d401d){return _0x3f8ef6!==_0x3d401d;},_0x58e313[_0xf38667(0x1b1)]=_0xf38667(0x1c0);const _0x550133=_0x58e313;if(!_0x2e09fd||_0x550133['CbKpc'](typeof _0x2e09fd,_0x550133[_0xf38667(0x1d3)]))return[null,null];if(_0x550133[_0xf38667(0x1f9)](_0x2e09fd[_0xf38667(0x1df)](_0x550133[_0xf38667(0x1c5)]),-0x1)){const _0x56afa8=_0x2e09fd['split'](_0x550133['VgWFh']);return[_0x56afa8[0x0][_0xf38667(0x1b2)](0x0,-0x1)['split']('\x22')[0x1],_0x56afa8[0x1][_0xf38667(0x1f4)](0x1)];}else{if(_0x550133['vygWI'](_0x2e09fd[_0xf38667(0x1df)](_0x550133[_0xf38667(0x1b1)]),-0x1)){const _0x66d0bd=_0x2e09fd[_0xf38667(0x1ce)](_0x550133[_0xf38667(0x1b1)]);return[_0x66d0bd[0x0][_0xf38667(0x1b2)](0x0,-0x1)[_0xf38667(0x1ce)]('\x22')[0x1],_0x2e09fd];}}return[null,null];},exports['getHooksForTest']=_0x3720a8=>{const _0x77f080=a35_0x19baae,_0x369303={'jeuqW':function(_0x2160f2,_0x23399d){return _0x2160f2(_0x23399d);},'gASvo':_0x77f080(0x1be),'VAOHm':_0x77f080(0x1d7),'ItytP':_0x77f080(0x1b3),'FeIEY':_0x77f080(0x1d8)};if(!_0x3720a8||!_0x3720a8[_0x77f080(0x1bb)])return[];const _0x21f125=[];return[_0x369303[_0x77f080(0x1d0)],_0x369303[_0x77f080(0x1fe)],_0x369303['ItytP'],_0x369303[_0x77f080(0x1e6)]][_0x77f080(0x1da)](_0x480e6a=>{const _0x4126ee=_0x77f080,_0x3fcda8=_0x3720a8[_0x4126ee(0x1bb)][_0x480e6a]||[];_0x3fcda8[_0x4126ee(0x1da)](_0x637de3=>{const _0x3c0a50=_0x4126ee;_0x637de3['hookAnalyticsId']&&!_0x369303['jeuqW'](isInternalHook,_0x637de3['fn'])&&_0x21f125[_0x3c0a50(0x1f8)](_0x637de3[_0x3c0a50(0x1b9)]);});}),[..._0x21f125,...exports[_0x77f080(0x1e9)](_0x3720a8[_0x77f080(0x1bb)])];},exports['mapTestHooks']=_0x45dd49=>{const _0x4801c9=a35_0x19baae,_0x48e4e7={'baFxN':function(_0x31e9eb){return _0x31e9eb();},'WKMkX':function(_0x1be1b6,_0x4fe4bc){return _0x1be1b6===_0x4fe4bc;},'UKluF':_0x4801c9(0x1d8),'pCfbp':_0x4801c9(0x1be),'HAigW':_0x4801c9(0x1d7),'DRzTa':_0x4801c9(0x1b3)};if(!_0x45dd49||!_0x45dd49[_0x4801c9(0x1bb)])return;[_0x48e4e7[_0x4801c9(0x1a9)],_0x48e4e7[_0x4801c9(0x1bd)],_0x48e4e7['DRzTa'],_0x48e4e7[_0x4801c9(0x1af)]]['forEach'](_0x255982=>{const _0xbbedd2=_0x4801c9,_0x4a9231={'skTlI':function(_0x577441){return _0x48e4e7['baFxN'](_0x577441);},'xGdFP':function(_0x66e8cc,_0x17f471){const _0x2a0dc6=a35_0x2953;return _0x48e4e7[_0x2a0dc6(0x1f7)](_0x66e8cc,_0x17f471);},'prVMM':_0x48e4e7[_0xbbedd2(0x1af)]},_0x3e11e8=_0x45dd49['parent'][_0x255982]||[];_0x3e11e8['forEach'](_0x588f6e=>{const _0x2682bf=_0xbbedd2;if(!_0x588f6e['hookAnalyticsId'])_0x588f6e['hookAnalyticsId']=_0x4a9231[_0x2682bf(0x1ba)](uuidv4);else _0x588f6e[_0x2682bf(0x1ab)]&&_0x4a9231[_0x2682bf(0x1ee)](_0x255982,_0x4a9231[_0x2682bf(0x1b8)])&&(_0x588f6e[_0x2682bf(0x1b9)]=_0x4a9231[_0x2682bf(0x1ba)](uuidv4),delete _0x588f6e[_0x2682bf(0x1ab)]);});}),exports['mapTestHooks'](_0x45dd49['parent']);},exports['sendPlatformDetails']=async(_0x5cc94a,_0x95233)=>{const _0x2d0a42=a35_0x19baae,_0x55c8d4={'Fhjzs':function(_0x2dc827){return _0x2dc827();},'QYJcK':function(_0x244192,_0x623376){return _0x244192(_0x623376);},'AEJsT':_0x2d0a42(0x1ef),'BSJmg':function(_0x3b2433,_0x5426d3){return _0x3b2433===_0x5426d3;},'ycWnP':_0x2d0a42(0x1ca),'FcqXD':'unknown_grid','ryYfA':_0x2d0a42(0x1eb)};try{if(!_0x55c8d4[_0x2d0a42(0x1c8)](shouldProcessEventForTesthub))return;const _0x4d8514=await _0x5cc94a[_0x2d0a42(0x1b5)](),_0x3c3927=await _0x5cc94a[_0x2d0a42(0x1b0)](),_0x32b3cc={},_0x1cf98d=Object['fromEntries'](_0x3c3927[_0x2d0a42(0x1b5)]()[_0x2d0a42(0x1d5)]),_0x28d92e={'product':_0x55c8d4[_0x2d0a42(0x1e2)](getObservabilityLinkedProductName,_0x1cf98d),'capabilities':_0x1cf98d,'platform':_0x4d8514[_0x2d0a42(0x1c9)](),'platform_version':_0x4d8514[_0x2d0a42(0x1cb)](_0x55c8d4[_0x2d0a42(0x1f6)])?_0x4d8514[_0x2d0a42(0x1cb)](_0x55c8d4['AEJsT']):_0x55c8d4[_0x2d0a42(0x1e2)](getPlatformVersion,_0x55c8d4[_0x2d0a42(0x1a7)](global[_0x2d0a42(0x1dd)],_0x55c8d4[_0x2d0a42(0x1b6)])),'browser':_0x4d8514['getBrowserName'](),'browser_version':_0x4d8514[_0x2d0a42(0x1c1)](),'session_id':_0x3c3927[_0x2d0a42(0x1fd)]()};global['__cloud_provider___']?_0x32b3cc[global['__cloud_provider___']]=_0x28d92e:_0x32b3cc[_0x55c8d4[_0x2d0a42(0x1cd)]]=_0x28d92e,process['emit']('bs:addPlatformDetails:'+process['pid'],{'timestamp':new Date()['toISOString'](),'level':null,'message':null,'kind':_0x55c8d4[_0x2d0a42(0x1e3)],'http_response':_0x32b3cc,'uuid':_0x95233});}catch(_0xa8ac05){_0x55c8d4[_0x2d0a42(0x1e2)](debug,_0x2d0a42(0x200)+_0xa8ac05);}},exports[a35_0x19baae(0x1fc)]=_0x492c6d=>{const _0xbff4a4=a35_0x19baae,_0xfbb72e={};_0xfbb72e[_0xbff4a4(0x1a8)]=function(_0x40615e,_0x24b55d){return _0x40615e!==_0x24b55d;},_0xfbb72e['TvqyY']='hook',_0xfbb72e[_0xbff4a4(0x1e7)]=function(_0x55a923,_0x634ab4){return _0x55a923!==_0x634ab4;},_0xfbb72e['zpNrv']=_0xbff4a4(0x1c4),_0xfbb72e[_0xbff4a4(0x1e0)]=function(_0x1713d2,_0x417a1b){return _0x1713d2!==_0x417a1b;},_0xfbb72e[_0xbff4a4(0x1d1)]=_0xbff4a4(0x1f0);const _0x35bc11=_0xfbb72e,_0x182407=_0x492c6d[_0xbff4a4(0x1cc)]['reduce']((_0x1e6276,_0x688781)=>{const _0x4257a8=_0xbff4a4,_0x5912f7=exports[_0x4257a8(0x1fc)](_0x688781);return _0x5912f7&&(_0x1e6276=_0x1e6276[_0x4257a8(0x1c7)](_0x5912f7)),_0x1e6276;},[]),_0x4196ec=_0x492c6d['tests'][_0xbff4a4(0x1b7)](_0x2da3bf=>{const _0x14e555=_0xbff4a4,_0x15aa63=_0x35bc11['UtUnH'](_0x2da3bf[_0x14e555(0x1d4)],_0x35bc11[_0x14e555(0x1de)])&&!_0x2da3bf[_0x14e555(0x1ab)]&&_0x35bc11[_0x14e555(0x1e7)](_0x2da3bf[_0x14e555(0x1db)],_0x35bc11[_0x14e555(0x1ea)])&&_0x35bc11[_0x14e555(0x1e0)](_0x2da3bf[_0x14e555(0x1db)],_0x35bc11[_0x14e555(0x1d1)])&&!_0x2da3bf[_0x14e555(0x1c2)];return _0x15aa63;});return _0x4196ec[_0xbff4a4(0x1c7)](_0x182407);};function a35_0x61cf(){const _0x3df54d=['QYJcK','ryYfA','../../../helpers/helper','vygWI','FeIEY','ZaMVC','getTestEnv','getHooksForTest','zpNrv','TEST_PLATFORM','4olmwWN','380103lkauBv','xGdFP','platformVersion','failed','1509678wOnnTW','lodash','../../../../package.json','substring','12266KEZvGP','AEJsT','WKMkX','push','AckuQ','qdTYt','string','getHookSkippedTests','toJSON','VAOHm','../../../helpers/testhub/utils','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','BSJmg','UtUnH','pCfbp','84gBCHGs','markedStatus','../../../helpers/test-observability/utils','16rLxXZR','uuid','UKluF','getSession','BGEjB','slice','_beforeEach','generic','getCapabilities','ycWnP','filter','prVMM','hookAnalyticsId','skTlI','parent','1131005EoilCR','HAigW','_beforeAll','getHookDetails','hook','getBrowserVersion','pending','455357iXBlvG','passed','VgWFh','js-','concat','Fhjzs','getPlatform','browserstack','get','suites','FcqXD','split','../../utils/logPatcher','gASvo','rHsuR','CbKpc','kWHlW','type','map_','../../../helpers/test-observability/constants','_afterAll','_afterEach','290aMuabB','forEach','state','84227dMuccB','__cloud_provider___','TvqyY','indexOf','xnsiz','643651NjkrcR'];a35_0x61cf=function(){return _0x3df54d;};return a35_0x61cf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a36_0x3ad1(){const _0x4a02bc=['474431GAwkIe','info','__sessionFailed','SBdDE','protocol','UJWKk','Failed\x20to\x20store\x20session\x20name:\x20','XaJyb','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','286435GWmYQR','ewDut','\x20|\x20','../../helpers/performance/constants','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','getGlobal','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','setGlobal','__error_messages__','WgtDq','qlNvT','vNohJ','BFGuX','aQfSN','sessionNameSet__','vgPgj','length','afterEach','OWgtJ','timeout','FKbLY','12oGLhbd','then','bHZct','capabilities','ceflj','PlMIQ','HmOHn','__skipSessionName','qjLne','ruzNo','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','YIZKq','CHXOs','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','isArray','cuENZ','PPUeX','eflOY','beforeAll','percy','getCurrentUrl','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','XdkIr','UpUVW','testcase','zHPHI',',\x22level\x22:\x20\x22','../utils/constants','KUoiD','2286152jyAFFF','Accessibility\x20scan\x20completed\x20successfully','app','passed','29636222xdufnX','hZPve','message','VLaRd','35xdRvcu','Automate\x20test\x20case\x20execution\x20has\x20started.','36690hjGltH','state','IXuTB','zWKfK','../../helpers/accessibility-automation/accessibilityRetryHelper','lNMSL','stringify','iEVXN','baJGx','cYVKR','SDK_HOOK','../../helpers/testhub/constants','uqhnN','TaACw','KLTkv','startMonitoring','nkoEK','iVOtF','GBnKR','LIgUS','SESSION_NAME','../../helpers/helper','initQuit','wRmtS','BROWSERSTACK_TESTHUB_UUID','__platformCaps','ncPgK','VMjLu','currentTest','5001vqaccs','ZRrdL','DjDKC','ObservabilitySync:','XRYck','VYLoi','titlePath','SESSION_STATUS','driverCleanup','149694eJAizO','daYCa','../../helpers/logger','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','zgmOC','browserstackSessionName','command','KTvFq','thTestRunUuid','join','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','2529Hqwajd','now','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','bstackA11yShouldScan','SYNC','AhLgB','start','sfkSU','format','isAccessibilityPlatform','SAVE_RESULTS','beforeEach','browserstackTestName','env','TLUoG','jZOwf','index','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','accessibilityScanStarted','failed','appium:app','JPBqf','err','percyCaptureMode','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','nnoWg','yEJas','debug','sessionName','ENV_VAR','bRNHL','GxHdf','mBCLx','bhTpY','fIxov','\x20-\x20','afterAll','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','warn','NqzlV','1438FizHQF','RGfYv','RskUk','Passed','JTWpv','zNaoO','GjFqu','__drivers','../../helpers/percy/utils','thJwtToken','measureWrapper','end','VuMMK','NrIQj','executeScript','testAnalyticsId','error','gbPEo','shouldScanTestForAccessibility','Mocha','oSnoK','TWfaP','session_','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','UugLE','./test-observability/mochaUtils','../../helpers/performance/performance-tester','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','PlPid','hfZGO','mochaHooks','finally','../../helpers/testhub/utils','util','dzJnc','afterTest'];a36_0x3ad1=function(){return _0x4a02bc;};return a36_0x3ad1();}const a36_0x441966=a36_0x1b74;(function(_0x116fb9,_0x59a512){const _0x42308d=a36_0x1b74,_0x5d51e0=_0x116fb9();while(!![]){try{const _0x3ffe70=parseInt(_0x42308d(0xfb))/0x1+parseInt(_0x42308d(0xd7))/0x2*(-parseInt(_0x42308d(0x15d))/0x3)+-parseInt(_0x42308d(0x119))/0x4*(-parseInt(_0x42308d(0x104))/0x5)+parseInt(_0x42308d(0x166))/0x6*(parseInt(_0x42308d(0x13e))/0x7)+-parseInt(_0x42308d(0x136))/0x8+parseInt(_0x42308d(0xaf))/0x9*(-parseInt(_0x42308d(0x140))/0xa)+parseInt(_0x42308d(0x13a))/0xb;if(_0x3ffe70===_0x59a512)break;else _0x5d51e0['push'](_0x5d51e0['shift']());}catch(_0x15d92e){_0x5d51e0['push'](_0x5d51e0['shift']());}}}(a36_0x3ad1,0xe7e94));function a36_0x1b74(_0x2c7603,_0x2da42b){const _0x3ad1de=a36_0x3ad1();return a36_0x1b74=function(_0x1b74e1,_0xeadc8f){_0x1b74e1=_0x1b74e1-0xaf;let _0x9e2ef1=_0x3ad1de[_0x1b74e1];return _0x9e2ef1;},a36_0x1b74(_0x2c7603,_0x2da42b);}const util=require(a36_0x441966(0xf8)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),accessibilityRetryHelper=require(a36_0x441966(0x144)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x441966(0x134)),{percyAutoCapture}=require(a36_0x441966(0xdf)),{sendPlatformDetails}=require(a36_0x441966(0xf0)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a36_0x441966(0x155)),PerformanceTester=require(a36_0x441966(0xf1)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x441966(0x107)),globals=require('../../helpers/globals'),logger=require(a36_0x441966(0x168))['winstonLogger'],{shouldProcessEventForTesthub}=require(a36_0x441966(0xf7)),testHubConstants=require(a36_0x441966(0x14b));exports[a36_0x441966(0xf5)]={'beforeAll'(){const _0x119ffe=a36_0x441966,_0x4887d3={'hZPve':function(_0x387319,_0x23780c,_0x440ff0,_0x1137c4){return _0x387319(_0x23780c,_0x440ff0,_0x1137c4);},'NrIQj':_0x119ffe(0xc2),'zHPHI':_0x119ffe(0x106),'zgmOC':function(_0x2fcc8f,_0x5d417b,_0x5dc62d){return _0x2fcc8f(_0x5d417b,_0x5dc62d);},'baJGx':_0x119ffe(0x139),'PPUeX':function(_0x32939d){return _0x32939d();},'ruzNo':function(_0x265697,_0x327913,_0x272ee4){return _0x265697(_0x327913,_0x272ee4);},'cuENZ':_0x119ffe(0xbf),'DjDKC':_0x119ffe(0x12b)};PerformanceTester[_0x119ffe(0x14f)]();const _0x5254fd='browserstack internal helper hook';PerformanceTester[_0x119ffe(0xe1)](PerformanceSdkEvents[_0x119ffe(0x14a)],()=>{const _0x19f985=_0x119ffe,_0x1d923c={'WgtDq':function(_0x3685e8,_0x12cca1,_0x2e0c43,_0x47320){const _0x539b55=a36_0x1b74;return _0x4887d3[_0x539b55(0x13b)](_0x3685e8,_0x12cca1,_0x2e0c43,_0x47320);},'hfZGO':_0x4887d3[_0x19f985(0xe4)],'nkoEK':_0x4887d3[_0x19f985(0x132)],'HmOHn':function(_0x46b2f9,_0x31a036,_0x1e260a){const _0x4fcd25=_0x19f985;return _0x4887d3[_0x4fcd25(0x16a)](_0x46b2f9,_0x31a036,_0x1e260a);},'FpDJx':_0x4887d3[_0x19f985(0x148)],'tndsc':function(_0x378780){const _0x357530=_0x19f985;return _0x4887d3[_0x357530(0x129)](_0x378780);},'uqhnN':function(_0x4bb673,_0x42c982,_0x2cce16){const _0x2e3207=_0x19f985;return _0x4887d3[_0x2e3207(0x122)](_0x4bb673,_0x42c982,_0x2cce16);}};global['__error_messages__']=[],global[_0x19f985(0xfd)]=![],global[_0x19f985(0x165)]=async()=>{const _0x47d9f9=_0x19f985;let _0x52077a=![];try{await global[_0x47d9f9(0xde)][0x0][_0x47d9f9(0xed)],_0x52077a=!![],global[_0x47d9f9(0xfd)]?await _0x1d923c[_0x47d9f9(0x10d)](markSessionStatus,global[_0x47d9f9(0xde)][0x0],_0x1d923c[_0x47d9f9(0xf4)],global['__error_messages__'][_0x47d9f9(0x16f)](_0x1d923c[_0x47d9f9(0x150)])):await _0x1d923c[_0x47d9f9(0x11f)](markSessionStatus,global[_0x47d9f9(0xde)][0x0],_0x1d923c['FpDJx']);}catch(_0xd36b26){logger[_0x47d9f9(0xca)](_0x47d9f9(0x10a)+_0xd36b26);}global['__error_messages__']=[],global[_0x47d9f9(0xfd)]=![];if(_0x52077a)try{try{_0x1d923c['tndsc'](shouldProcessEventForTesthub)&&(global[_0x47d9f9(0xde)][0x0]&&await _0x1d923c[_0x47d9f9(0x14c)](sendPlatformDetails,global[_0x47d9f9(0xde)][0x0],this['currentTest']?this[_0x47d9f9(0x15c)][_0x47d9f9(0xe6)]:null));}catch(_0x55d561){logger[_0x47d9f9(0xca)](_0x47d9f9(0x126)+_0x55d561);}await global[_0x47d9f9(0xde)][0x0][_0x47d9f9(0x156)]();}catch(_0x1591b8){logger[_0x47d9f9(0xca)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x1591b8);}};},{'platform':_0x4887d3[_0x119ffe(0x16a)](nestedKeyValue,global[_0x119ffe(0x159)],[_0x4887d3[_0x119ffe(0x128)]]),'hookType':_0x4887d3[_0x119ffe(0x15f)]})();},'beforeEach'(_0x2e1eba){const _0x12f532=a36_0x441966,_0x288051={'aQfSN':function(_0x41e29d){return _0x41e29d();},'LbuTp':function(_0x190c88,_0x5dbab4){return _0x190c88>_0x5dbab4;},'oGODC':function(_0x57fb77,_0x1a6531){return _0x57fb77>_0x1a6531;},'CHXOs':_0x12f532(0xd2),'IHitN':function(_0x53c475,_0x5bc516,_0x4b8f91){return _0x53c475(_0x5bc516,_0x4b8f91);},'TWfaP':_0x12f532(0xb2),'PlPid':function(_0xb21715){return _0xb21715();},'nfrhe':function(_0x5e17c3,_0x369322){return _0x5e17c3>_0x369322;},'SBdDE':_0x12f532(0xb8),'XdkIr':function(_0x5176f2,_0x58cf53){return _0x5176f2===_0x58cf53;},'VLaRd':'http:','gbPEo':'https:','vNohJ':_0x12f532(0x170),'uUlZV':_0x12f532(0x13f),'CBVwS':function(_0x32a488){return _0x32a488();},'MuHaT':_0x12f532(0xbb),'LIgUS':function(_0x56e906,_0x27ab66,_0x29ca46){return _0x56e906(_0x27ab66,_0x29ca46);},'xulnd':_0x12f532(0xbf),'FKbLY':_0x12f532(0xba)};globals[_0x12f532(0x10b)](_0x288051['MuHaT'],this[_0x12f532(0x15c)][_0x12f532(0x163)]()['join'](_0x288051[_0x12f532(0x125)])),PerformanceTester[_0x12f532(0xe1)](PerformanceSdkEvents[_0x12f532(0x14a)],()=>{const _0x3337af=_0x12f532,_0x38c2b6={'OWgtJ':function(_0x3d9830,_0x171872){return _0x288051['LbuTp'](_0x3d9830,_0x171872);},'UpUVW':function(_0x5414e2,_0x57fbb4){return _0x288051['oGODC'](_0x5414e2,_0x57fbb4);},'RskUk':_0x288051[_0x3337af(0x125)],'IXuTB':function(_0x29845b,_0x23e797,_0x3b9b31){return _0x288051['IHitN'](_0x29845b,_0x23e797,_0x3b9b31);},'BFGuX':_0x288051[_0x3337af(0xec)],'mBCLx':function(_0x2644ec){const _0x475355=_0x3337af;return _0x288051[_0x475355(0xf3)](_0x2644ec);},'iUcRo':function(_0x3a47a0,_0x3e2352){return _0x288051['nfrhe'](_0x3a47a0,_0x3e2352);},'UugLE':_0x288051[_0x3337af(0xfe)],'KUoiD':function(_0x37fd11,_0x5df669){const _0x5d2acc=_0x3337af;return _0x288051[_0x5d2acc(0x12f)](_0x37fd11,_0x5df669);},'KLTkv':_0x288051[_0x3337af(0x13d)],'daYCa':function(_0x4f0162,_0xf27c4){return _0x288051['XdkIr'](_0x4f0162,_0xf27c4);},'MECDl':_0x288051[_0x3337af(0xe8)],'yEJas':_0x288051[_0x3337af(0x10f)],'bRNHL':_0x288051['uUlZV'],'SvJPx':function(_0x444c52){return _0x288051['CBVwS'](_0x444c52);}},_0x1fbdfb='browserstack internal helper hook';new Promise(async _0xb78733=>{const _0x125363=_0x3337af;let _0x1ed7aa=!![];try{_0x38c2b6[_0x125363(0x116)](global[_0x125363(0xde)][_0x125363(0x114)],0x1)&&(await global[_0x125363(0x165)](),global[_0x125363(0xde)]['shift']()),_0x38c2b6[_0x125363(0x130)](global[_0x125363(0xde)][0x0]['quitCount_'],0x0)&&(_0x1ed7aa=![],await global['driverCleanup']());}catch(_0x534572){logger[_0x125363(0xca)](_0x125363(0xb1)+_0x534572);}try{Array[_0x125363(0x127)](global['__drivers'])&&global[_0x125363(0xde)][0x0]&&(global['__drivers'][0x0]['browserstackSessionName']=this[_0x125363(0x15c)]['titlePath']()[_0x125363(0x16f)](_0x38c2b6[_0x125363(0xd9)])),global[_0x125363(0x16b)]=this[_0x125363(0x15c)]['titlePath']()['join'](_0x38c2b6[_0x125363(0xd9)]);}catch(_0x44a373){logger[_0x125363(0xca)](_0x125363(0x101)+_0x44a373);}this[_0x125363(0x15c)][_0x125363(0xe9)]=_0x38c2b6[_0x125363(0x142)](shouldScanTestForAccessibility,this[_0x125363(0x15c)][_0x125363(0x163)](),!![]),globals[_0x125363(0x10b)](_0x38c2b6[_0x125363(0x110)],this[_0x125363(0x15c)][_0x125363(0xe9)]),this[_0x125363(0x15c)][_0x125363(0xc1)]=!![];if(_0x38c2b6[_0x125363(0xcf)](isAccessibilityAutomationSession)&&_0x1ed7aa&&Array['isArray'](global[_0x125363(0xde)])&&_0x38c2b6['iUcRo'](global['__drivers'][_0x125363(0x114)],0x0)&&globals[_0x125363(0x109)](_0x38c2b6[_0x125363(0xef)]))try{const _0xf81de8=await global[_0x125363(0xde)][0x0][_0x125363(0xed)];if(_0xf81de8){let _0x36f00a=!![];const _0x3750aa=await global['__drivers'][0x0][_0x125363(0x12d)]();let _0xa004b6;try{_0xa004b6=new URL(_0x3750aa);}catch(_0x8e6146){_0x36f00a=![];}_0x36f00a=_0x38c2b6[_0x125363(0x135)](_0xa004b6[_0x125363(0xff)],_0x38c2b6[_0x125363(0x14e)])||_0x38c2b6[_0x125363(0x167)](_0xa004b6[_0x125363(0xff)],_0x38c2b6['MECDl']),_0x36f00a&&(this['currentTest'][_0x125363(0xe9)]&&logger[_0x125363(0xfc)](_0x38c2b6[_0x125363(0xc9)])),this[_0x125363(0x15c)][_0x125363(0xc1)]=this[_0x125363(0x15c)][_0x125363(0xe9)],this['currentTest'][_0x125363(0xe9)]&&logger[_0x125363(0xfc)](_0x38c2b6[_0x125363(0xcd)]);}}catch(_0x10b954){logger[_0x125363(0xe7)](_0x125363(0xee)+util[_0x125363(0xb7)](_0x10b954));}_0x38c2b6['SvJPx'](_0xb78733);})[_0x3337af(0x11a)](()=>{const _0x32e517=_0x3337af;_0x288051[_0x32e517(0x111)](_0x2e1eba);});},{'platform':_0x288051[_0x12f532(0x153)](nestedKeyValue,global[_0x12f532(0x159)],[_0x288051['xulnd']]),'hookType':_0x288051[_0x12f532(0x118)]})();},'afterEach'(_0x175cfd){const _0x34ea=a36_0x441966,_0x1da045={'VMjLu':'\x20-\x20','GxHdf':function(_0x1e4701,_0x1885a0){return _0x1e4701>_0x1885a0;},'fXFxH':function(_0x17818f,_0xc82b03){return _0x17818f===_0xc82b03;},'zNaoO':_0x34ea(0x131),'HBzyr':_0x34ea(0xc3),'ZRrdL':function(_0x1da06e,_0x443f57,_0x4bbdca,_0x18c985){return _0x1da06e(_0x443f57,_0x4bbdca,_0x18c985);},'TaACw':'isAccessibilityPlatform','wRmtS':'bstackA11yShouldScan','ncPgK':_0x34ea(0xc7),'AtuEv':_0x34ea(0xf2),'RGfYv':_0x34ea(0xfa),'GBnKR':_0x34ea(0x137),'bHZct':_0x34ea(0x123),'NqzlV':'Accessibility\x20results\x20saved\x20successfully','vgPgj':_0x34ea(0x169),'UJWKk':_0x34ea(0xd4),'SKfsC':function(_0x30c2df){return _0x30c2df();},'zWKfK':function(_0x5e44bc,_0xbead1f,_0x5b5daa){return _0x5e44bc(_0xbead1f,_0x5b5daa);},'sfkSU':function(_0x4b6570){return _0x4b6570();},'iEVXN':function(_0x2b95c9,_0x2dc062,_0x3da72d){return _0x2b95c9(_0x2dc062,_0x3da72d);},'TLUoG':_0x34ea(0xca),'ewDut':function(_0x662629,_0x448e2f){return _0x662629>_0x448e2f;},'dzJnc':function(_0x16d998){return _0x16d998();},'YiRjv':function(_0x585b5e){return _0x585b5e();},'bYYtE':function(_0x4c25c4,_0x1b9e57){return _0x4c25c4!==_0x1b9e57;},'aYKYC':_0x34ea(0x139),'AhLgB':function(_0x4ecae6,_0x284d3e){return _0x4ecae6+_0x284d3e;},'YIZKq':'Failed:\x20','GjFqu':_0x34ea(0xe7),'qlNvT':_0x34ea(0xda),'VYLoi':_0x34ea(0xfc),'nnoWg':_0x34ea(0xea),'lNMSL':function(_0x14c197,_0x235291,_0x57cc07){return _0x14c197(_0x235291,_0x57cc07);},'qjLne':_0x34ea(0xbf),'PlMIQ':_0x34ea(0x115)},_0x20cde9='browserstack internal helper hook';this[_0x34ea(0x117)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x1da045[_0x34ea(0xc8)]]),global[_0x34ea(0xcb)]=this['currentTest'][_0x34ea(0x163)]()[_0x34ea(0x16f)](_0x1da045[_0x34ea(0x15b)]),PerformanceTester[_0x34ea(0xe1)](PerformanceSdkEvents[_0x34ea(0x14a)],()=>{const _0x12411c=_0x34ea,_0x3360fa={'iVOtF':function(_0x4224d2,_0x195eee){return _0x1da045['bYYtE'](_0x4224d2,_0x195eee);},'XaJyb':_0x1da045['aYKYC'],'ceflj':function(_0xb2aa1a,_0x37a886,_0x2c198b){return _0x1da045['zWKfK'](_0xb2aa1a,_0x37a886,_0x2c198b);},'KTvFq':function(_0x2c8776,_0x2b8eca){const _0xd86e80=a36_0x1b74;return _0x1da045[_0xd86e80(0xb4)](_0x2c8776,_0x2b8eca);},'cYVKR':_0x1da045[_0x12411c(0x124)],'fIxov':_0x1da045[_0x12411c(0xdd)],'aLnuP':function(_0x5e4030,_0x41d86d,_0x21e24e){return _0x1da045['zWKfK'](_0x5e4030,_0x41d86d,_0x21e24e);},'eflOY':_0x1da045[_0x12411c(0x10e)],'bhTpY':_0x1da045[_0x12411c(0x162)]},_0x561acf=async(_0x4eb0bd,_0x33f591)=>{const _0x20e897=_0x12411c;await global[_0x20e897(0xde)][0x0][_0x20e897(0xe5)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x4eb0bd+_0x20e897(0x133)+_0x33f591+'\x22}}');};new Promise(async _0x4a3e63=>{const _0x53b42c=_0x12411c,_0x38dfd2={};_0x38dfd2[_0x53b42c(0xeb)]=_0x1da045['VMjLu'];const _0x55deb4=_0x38dfd2;try{_0x1da045[_0x53b42c(0xce)](global[_0x53b42c(0xde)][_0x53b42c(0x114)],0x1)&&(await global[_0x53b42c(0x165)](),global[_0x53b42c(0xde)]['shift'](),global[_0x53b42c(0x10c)]=[],global[_0x53b42c(0xfd)]=![]);try{if(global[_0x53b42c(0x12c)]&&_0x1da045['fXFxH'](global[_0x53b42c(0xc6)],_0x1da045[_0x53b42c(0xdc)])&&global['__drivers'][0x0]){const _0x334738=_0x1da045[_0x53b42c(0xce)](global[_0x53b42c(0x11c)][_0x53b42c(0x114)],0x0)?!!global[_0x53b42c(0x11c)][0x0][_0x53b42c(0x138)]||!!global[_0x53b42c(0x11c)][0x0][_0x1da045['HBzyr']]:![],_0x3cbfad={};_0x3cbfad[_0x53b42c(0x138)]=_0x334738,await _0x1da045[_0x53b42c(0x15e)](percyAutoCapture,global[_0x53b42c(0xde)][0x0],_0x1da045['zNaoO'],_0x3cbfad);}}catch(_0x48f80e){logger[_0x53b42c(0xca)](_0x53b42c(0x12e)+_0x48f80e);}!global[_0x53b42c(0x120)]&&(await PerformanceTester[_0x53b42c(0xe1)](PerformanceAutEvents[_0x53b42c(0x154)],async()=>{const _0x366749=_0x53b42c;await global[_0x366749(0xde)][0x0][_0x366749(0xe5)](_0x366749(0x108)+JSON[_0x366749(0x146)](this[_0x366749(0x15c)][_0x366749(0x163)]()[_0x366749(0x16f)](_0x55deb4[_0x366749(0xeb)]))+'}}');})(),global[_0x53b42c(0xde)][0x0][_0x53b42c(0x112)]=!![]),await PerformanceTester[_0x53b42c(0xe1)](PerformanceAutEvents[_0x53b42c(0x164)],async()=>{const _0x4f485a=_0x53b42c,_0x5598fb=_0x3360fa[_0x4f485a(0x151)](this[_0x4f485a(0x15c)][_0x4f485a(0x141)],_0x3360fa[_0x4f485a(0x102)]);_0x5598fb?(global[_0x4f485a(0xfd)]=!![],global[_0x4f485a(0x10c)]['push'](this[_0x4f485a(0x15c)][_0x4f485a(0xc5)][_0x4f485a(0x13c)]),await _0x3360fa[_0x4f485a(0x11d)](_0x561acf,JSON[_0x4f485a(0x146)](_0x3360fa[_0x4f485a(0x16d)](_0x3360fa[_0x4f485a(0x149)],this[_0x4f485a(0x15c)][_0x4f485a(0xc5)]['message'])),_0x3360fa[_0x4f485a(0xd1)])):await _0x3360fa['aLnuP'](_0x561acf,JSON['stringify'](_0x3360fa[_0x4f485a(0x12a)]),_0x3360fa[_0x4f485a(0xd0)]);})();}catch(_0x13b9c8){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x13b9c8);}try{if(this[_0x53b42c(0x15c)]['accessibilityScanStarted']&&globals[_0x53b42c(0x109)](_0x1da045[_0x53b42c(0x14d)])&&globals['getGlobal'](_0x1da045[_0x53b42c(0x157)])){logger[_0x53b42c(0xfc)](_0x1da045[_0x53b42c(0x15a)]);const _0x3a8198={};_0x3a8198[_0x53b42c(0x16e)]=this[_0x53b42c(0x15c)][_0x53b42c(0xe6)],_0x3a8198['thBuildUuid']=process['env'][testHubConstants[_0x53b42c(0xcc)][_0x53b42c(0x158)]],_0x3a8198[_0x53b42c(0xe0)]=process[_0x53b42c(0xbc)][testHubConstants[_0x53b42c(0xcc)]['BROWSERSTACK_TESTHUB_JWT']];const _0x5d0fd0=_0x3a8198;logger['debug'](_0x53b42c(0x103)+JSON['stringify'](_0x5d0fd0)),logger['debug'](_0x1da045['AtuEv']);const _0x3d6dd9={};_0x3d6dd9[_0x53b42c(0x16c)]=_0x1da045[_0x53b42c(0xd8)];const _0x3203ed=await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x392ae1=_0x53b42c;return await accessibilityRetryHelper['performScanWithRetry'](global[_0x392ae1(0xde)][0x0],global['browserstackSessionName']);},_0x3d6dd9)();_0x3203ed?logger[_0x53b42c(0xca)](_0x1da045[_0x53b42c(0x152)]):logger['warn'](_0x1da045[_0x53b42c(0x11b)]);const _0x231ef7=await PerformanceTester[_0x53b42c(0xe1)](PerformanceA11yEvents[_0x53b42c(0xb9)],async()=>{const _0x2d8dee=_0x53b42c;return await accessibilityRetryHelper['saveAccessibilityResultsWithRetry'](global[_0x2d8dee(0xde)][0x0],_0x5d0fd0);})();_0x231ef7?logger['debug'](_0x1da045[_0x53b42c(0xd6)]):logger[_0x53b42c(0xd5)](_0x1da045[_0x53b42c(0x113)]),logger['info'](_0x1da045[_0x53b42c(0x100)]);}}catch(_0x2bb7be){logger[_0x53b42c(0xe7)](_0x53b42c(0xc0)+this[_0x53b42c(0x15c)][_0x53b42c(0x163)]()+'.\x20Error\x20:',_0x2bb7be);}try{try{if(_0x1da045['SKfsC'](shouldProcessEventForTesthub)){global[_0x53b42c(0xde)][0x0]&&await _0x1da045[_0x53b42c(0x143)](sendPlatformDetails,global[_0x53b42c(0xde)][0x0],this[_0x53b42c(0x15c)]?this['currentTest'][_0x53b42c(0xe6)]:null);if(_0x1da045[_0x53b42c(0xb6)](isBrowserstackInfra)){PerformanceTester[_0x53b42c(0xb5)](PerformanceO11yEvents[_0x53b42c(0xb3)]);const _0x9db53b=_0x53b42c(0x160)+Date[_0x53b42c(0xb0)]();await _0x1da045[_0x53b42c(0x147)](_0x561acf,JSON[_0x53b42c(0x146)](_0x9db53b),_0x1da045[_0x53b42c(0xbd)]),PerformanceTester[_0x53b42c(0xe2)](PerformanceO11yEvents[_0x53b42c(0xb3)]);}}}catch(_0x256ca6){logger[_0x53b42c(0xca)]('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x256ca6),PerformanceTester['end'](PerformanceO11yEvents[_0x53b42c(0xb3)],![],_0x256ca6);}_0x1da045[_0x53b42c(0x105)](global[_0x53b42c(0xde)][0x0]['quitCount_'],0x0)&&await global[_0x53b42c(0x165)]();}catch(_0x45a170){logger[_0x53b42c(0xca)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x45a170);}_0x1da045[_0x53b42c(0xf9)](_0x4a3e63);})['then'](()=>{_0x1da045['YiRjv'](_0x175cfd);});},{'platform':_0x1da045[_0x34ea(0x145)](nestedKeyValue,global['__platformCaps'],[_0x1da045[_0x34ea(0x121)]]),'hookType':_0x1da045[_0x34ea(0x11e)]})();},'afterAll'(_0x486d6b){const _0x9410b1=a36_0x441966,_0x3871d3={'XRYck':function(_0x4b47a6){return _0x4b47a6();},'jZOwf':_0x9410b1(0xea),'YYEqT':function(_0x3f11b2,_0x142c41,_0x2b3693){return _0x3f11b2(_0x142c41,_0x2b3693);},'JPBqf':'index','JTWpv':_0x9410b1(0xd3)},_0x45597c='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x3871d3[_0x9410b1(0xbe)]]),PerformanceTester[_0x9410b1(0xe1)](PerformanceSdkEvents[_0x9410b1(0x14a)],()=>{const _0x56072c=_0x9410b1,_0x335682={'VuMMK':function(_0x3f031a){const _0x3e4f6b=a36_0x1b74;return _0x3871d3[_0x3e4f6b(0x161)](_0x3f031a);},'grCrD':function(_0x324b46){const _0x3cced9=a36_0x1b74;return _0x3871d3[_0x3cced9(0x161)](_0x324b46);}};new Promise(async _0x102ab3=>{const _0x5b589e=a36_0x1b74;await global[_0x5b589e(0x165)](),_0x335682[_0x5b589e(0xe3)](_0x102ab3);})['then']()[_0x56072c(0xf6)](()=>{_0x335682['grCrD'](_0x486d6b);});},{'platform':_0x3871d3['YYEqT'](nestedKeyValue,global[_0x9410b1(0x159)],[_0x3871d3[_0x9410b1(0xc4)]]),'hookType':_0x3871d3[_0x9410b1(0xdb)]})();}};
|
|
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,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';function a37_0x277e(_0x199981,_0x3b485e){const _0xe254d=a37_0xe254();return a37_0x277e=function(_0x277e23,_0x47137a){_0x277e23=_0x277e23-0x183;let _0x5a3ea5=_0xe254d[_0x277e23];return _0x5a3ea5;},a37_0x277e(_0x199981,_0x3b485e);}const a37_0x20cf8f=a37_0x277e;(function(_0x36c4bf,_0x470b58){const _0x4e68c2=a37_0x277e,_0x3de44c=_0x36c4bf();while(!![]){try{const _0x401c72=parseInt(_0x4e68c2(0x185))/0x1*(parseInt(_0x4e68c2(0x191))/0x2)+parseInt(_0x4e68c2(0x187))/0x3+-parseInt(_0x4e68c2(0x1ae))/0x4*(-parseInt(_0x4e68c2(0x1c3))/0x5)+-parseInt(_0x4e68c2(0x18e))/0x6*(parseInt(_0x4e68c2(0x18d))/0x7)+-parseInt(_0x4e68c2(0x19a))/0x8+-parseInt(_0x4e68c2(0x1a3))/0x9*(parseInt(_0x4e68c2(0x1cf))/0xa)+parseInt(_0x4e68c2(0x189))/0xb*(parseInt(_0x4e68c2(0x1bf))/0xc);if(_0x401c72===_0x470b58)break;else _0x3de44c['push'](_0x3de44c['shift']());}catch(_0x27938f){_0x3de44c['push'](_0x3de44c['shift']());}}}(a37_0xe254,0x4fd67));function a37_0xe254(){const _0x47982a=['Cwzwx','nightwatch.json','KaPfe','nightwatch','trim','splice','BmlFr','XTOQQ','39249caARJc','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','rNcgL','split','start_process','child_process','zxXWb','rDszG','test_settings','slice','GqzAI','229332iaPXEM','join','bxkag','winstonLogger','config','child\x20process\x20exited\x20with\x20code\x20','ttOcZ','SBZor','selenium','env','desiredCapabilities','length','info','modifyBrowserStackW3CCaps','findIndex','port','test','384JWmFxT','hub.browserstack.com','cwd','forEach','5GicaRB','getPlatformName','--env','nightwatch.conf.js','Getting\x20your\x20nightwatch\x20configs\x20from\x20','HyOxA','useW3C','Hdrfq','existsSync','inherit','writeFileSync','debug','1320RvqAmS','platform','yLvtj','oymXx','../../helpers/logger','mergeDeep','1oXSljo','SfAFa','898668epeytG','../../helpers/helper','301191uZQKeA','filter','platforms','zSqpA','176386tTtQMz','126emSuvX','close','path','637190OHaycg','EVnQu','XvzQh','push','../../helpers/BrowserStackSetup','Deleting\x20','unlinkSync','--config','stringify','958808uinZMB'];a37_0xe254=function(){return _0x47982a;};return a37_0xe254();}const fs=require('fs'),path=require(a37_0x20cf8f(0x190)),{spawn}=require(a37_0x20cf8f(0x1a8)),logger=require(a37_0x20cf8f(0x183))[a37_0x20cf8f(0x1b1)],{default:BrowserStackSetup}=require(a37_0x20cf8f(0x195)),helper=require(a37_0x20cf8f(0x188)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x5f51fc,_0xb10217)=>{const _0x335233=a37_0x20cf8f,_0x412e4e={'Hdrfq':_0x335233(0x1c6),'oymXx':_0x335233(0x19c),'EVnQu':function(_0x5922d2,_0x227084){return _0x5922d2(_0x227084);},'rDszG':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x2f624f=null,_0x37668f={};const _0x33041a=_0xb10217[_0x335233(0x1bc)](_0x229ca5=>_0x229ca5===_0x335233(0x198));if(!helper['isUndefined'](_0x5f51fc['config'])&&fs[_0x335233(0x1cb)](path['join'](process[_0x335233(0x1c1)](),_0x5f51fc[_0x335233(0x1b2)])))_0x2f624f=path['join'](process[_0x335233(0x1c1)](),_0x5f51fc['config']),_0xb10217[_0x335233(0x1a0)](_0x33041a,0x2);else{if(fs[_0x335233(0x1cb)](path[_0x335233(0x1af)](process['cwd'](),_0x412e4e[_0x335233(0x1ca)])))_0x2f624f=path['join'](process[_0x335233(0x1c1)](),_0x412e4e[_0x335233(0x1ca)]);else fs[_0x335233(0x1cb)](path[_0x335233(0x1af)](process[_0x335233(0x1c1)](),_0x412e4e[_0x335233(0x1d2)]))&&(_0x2f624f=path[_0x335233(0x1af)](process[_0x335233(0x1c1)](),_0x412e4e['oymXx']));}return _0x2f624f?(logger[_0x335233(0x1ba)](_0x335233(0x1c7)+_0x2f624f),_0x37668f=_0x412e4e[_0x335233(0x192)](require,_0x2f624f)):logger[_0x335233(0x1ba)](_0x412e4e[_0x335233(0x1aa)]),_0x37668f;},removeExistingEnvs=_0x474be8=>{const _0xbed8b2=a37_0x20cf8f,_0x5253ff={};_0x5253ff[_0xbed8b2(0x1b4)]=function(_0xc9d709,_0x26beb6){return _0xc9d709>_0x26beb6;},_0x5253ff['XTOQQ']=function(_0xdd4efe,_0x2068c2){return _0xdd4efe>_0x2068c2;};const _0x5c20ac=_0x5253ff;let _0x3bdccc=_0x474be8[_0xbed8b2(0x1bc)](_0x57f560=>_0x57f560===_0xbed8b2(0x1c5));_0x5c20ac['ttOcZ'](_0x3bdccc,-0x1)&&_0x474be8['splice'](_0x3bdccc,0x2),_0x3bdccc=_0x474be8['findIndex'](_0xaeec0c=>_0xaeec0c==='-e'),_0x5c20ac[_0xbed8b2(0x1a2)](_0x3bdccc,-0x1)&&_0x474be8[_0xbed8b2(0x1a0)](_0x3bdccc,0x2);};function run(_0x250edc,_0x879a9d,_0x5a5059){const _0x321814=a37_0x20cf8f,_0x326848={'zSqpA':_0x321814(0x19e),'rNcgL':function(_0x2f8e3b,_0x2eb76c){return _0x2f8e3b+_0x2eb76c;},'BmlFr':_0x321814(0x1ab),'clHfg':function(_0x3a9e4e,_0x1c9c38,_0x366bb5){return _0x3a9e4e(_0x1c9c38,_0x366bb5);},'Yskbi':_0x321814(0x1c0),'KaPfe':_0x321814(0x1a4),'PoiFX':function(_0x5c4779,_0x41cbfc){return _0x5c4779===_0x41cbfc;},'Cwzwx':'nightwatch-browserstack.json','SfAFa':function(_0x43613a,_0x2c9f14){return _0x43613a(_0x2c9f14);},'HyOxA':function(_0xaec3fb,_0x32fe02,_0x265a73,_0x492cc6){return _0xaec3fb(_0x32fe02,_0x265a73,_0x492cc6);},'bxkag':'nightwatch.cmd','zxXWb':_0x321814(0x198),'oIwmQ':_0x321814(0x1c5),'yLvtj':_0x321814(0x1cc),'GqzAI':_0x321814(0x18f)};if(!_0x5a5059[_0x321814(0x1b2)])return;const _0x499ab5=_0x326848['clHfg'](getUserNightwatchConfigs,_0x250edc,_0x879a9d),_0x450797={};_0x450797[_0x321814(0x1a7)]=![];const _0x8c92df={};_0x8c92df['host']=_0x326848['Yskbi'],_0x8c92df[_0x321814(0x1bd)]=0x1bb;const _0x13d734={};_0x13d734['webdriver']=_0x450797,_0x13d734[_0x321814(0x1b6)]=_0x8c92df;const _0x153c55=_0x13d734;logger[_0x321814(0x1ba)](_0x326848[_0x321814(0x19d)]);const _0x2bf187={..._0x499ab5},_0x1d86cd=_0x2bf187,_0x51be88=helper[_0x321814(0x1c9)](_0x5a5059[_0x321814(0x1b2)]),_0x5d77e0=[];_0x5a5059['config'][_0x321814(0x18b)][_0x321814(0x1c2)]((_0x10c856,_0x33cd49)=>{const _0x52e432=_0x321814;_0x51be88?_0x5d77e0[_0x52e432(0x194)](helper[_0x52e432(0x1bb)](_0x5a5059[_0x52e432(0x1b2)],_0x326848[_0x52e432(0x18c)],_0x33cd49)):_0x5d77e0[_0x52e432(0x194)](helper['modifyBrowserStackCaps'](_0x5a5059[_0x52e432(0x1b2)],_0x326848['zSqpA'],_0x33cd49));});const _0x22d482={},_0x5adf9d=[];_0x250edc[_0x321814(0x1b7)]=_0x250edc[_0x321814(0x1b7)]||_0x250edc['e'];const _0xb1f2b6=_0x250edc[_0x321814(0x1b7)]?_0x250edc[_0x321814(0x1b7)][_0x321814(0x19f)]()[_0x321814(0x1a6)](',')['map'](_0x1c59a9=>_0x1c59a9[_0x321814(0x19f)]())[_0x321814(0x18a)](_0x28ab9b=>_0x28ab9b!==''):[''];_0x326848['PoiFX'](_0xb1f2b6[_0x321814(0x1b9)],0x0)&&_0xb1f2b6[_0x321814(0x194)]('');_0xb1f2b6[_0x321814(0x1c2)](_0x54c364=>{const _0x4abeba=_0x321814,_0x5e4e8e={'SBZor':function(_0x36e09c,_0x11b9ea){const _0x846472=a37_0x277e;return _0x326848[_0x846472(0x1a5)](_0x36e09c,_0x11b9ea);},'XvzQh':_0x326848[_0x4abeba(0x1a1)]};_0x5d77e0[_0x4abeba(0x1c2)](_0x59cfa6=>{const _0x54f000=_0x4abeba;let _0x38b5de=_0x5e4e8e[_0x54f000(0x1b5)](helper[_0x54f000(0x1c4)](_0x59cfa6,'_'),'_'+Date['now']());_0x54c364&&(_0x38b5de+='_'+_0x54c364);if(_0x54c364&&(!_0x499ab5[_0x5e4e8e[_0x54f000(0x193)]]||!_0x499ab5[_0x5e4e8e['XvzQh']][_0x54c364]))return;const _0x1b3ccd={..._0x153c55};_0x1b3ccd[_0x54f000(0x1b8)]=_0x59cfa6;const _0x3a5b41=_0x1b3ccd;_0x22d482[_0x38b5de]=_0x54c364?helper[_0x54f000(0x184)](_0x499ab5[_0x5e4e8e['XvzQh']][_0x54c364],_0x3a5b41):_0x3a5b41,_0x5adf9d[_0x54f000(0x194)](_0x38b5de);});});!_0x1d86cd['test_settings']&&(_0x1d86cd['test_settings']={});_0x1d86cd[_0x321814(0x1ab)]={..._0x1d86cd[_0x321814(0x1ab)],..._0x22d482};const _0x3af1db=path[_0x321814(0x1af)](__dirname,_0x326848[_0x321814(0x19b)]);fs[_0x321814(0x1cd)](_0x3af1db,JSON[_0x321814(0x199)](_0x1d86cd)),_0x326848[_0x321814(0x186)](removeExistingEnvs,_0x879a9d);const _0x17bbe3=_0x326848[_0x321814(0x1c8)](spawn,/^win/[_0x321814(0x1be)](process[_0x321814(0x1d0)])?_0x326848[_0x321814(0x1b0)]:_0x326848[_0x321814(0x18c)],[_0x326848[_0x321814(0x1a9)],_0x3af1db,..._0x879a9d[_0x321814(0x1ac)](0x1),_0x326848['oIwmQ'],_0x5adf9d[_0x321814(0x1af)](',')],{'stdio':_0x326848[_0x321814(0x1d1)]});_0x17bbe3['on'](_0x326848[_0x321814(0x1ad)],async _0x2a605b=>{const _0x3f119a=_0x321814;logger[_0x3f119a(0x1ce)](_0x3f119a(0x1b3)+_0x2a605b),logger[_0x3f119a(0x1ba)](_0x3f119a(0x196)+_0x3af1db),fs[_0x3f119a(0x197)](_0x3af1db);});}module['exports']=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x2095c2=a38_0x2f40;(function(_0x2b61b9,_0x3236d5){const _0x15a9c9=a38_0x2f40,_0x34324a=_0x2b61b9();while(!![]){try{const _0x2468e2=-parseInt(_0x15a9c9(0xd3))/0x1+parseInt(_0x15a9c9(0xa6))/0x2*(parseInt(_0x15a9c9(0xcb))/0x3)+parseInt(_0x15a9c9(0xc2))/0x4*(parseInt(_0x15a9c9(0xc8))/0x5)+parseInt(_0x15a9c9(0xc6))/0x6*(parseInt(_0x15a9c9(0xf7))/0x7)+parseInt(_0x15a9c9(0x9f))/0x8+parseInt(_0x15a9c9(0xe8))/0x9+-parseInt(_0x15a9c9(0xc7))/0xa*(parseInt(_0x15a9c9(0x10d))/0xb);if(_0x2468e2===_0x3236d5)break;else _0x34324a['push'](_0x34324a['shift']());}catch(_0x1c9597){_0x34324a['push'](_0x34324a['shift']());}}}(a38_0x2350,0x23982));function a38_0x2f40(_0xbe0916,_0x1fea2f){const _0x2350af=a38_0x2350();return a38_0x2f40=function(_0x2f4043,_0x257982){_0x2f4043=_0x2f4043-0x8c;let _0x2e2358=_0x2350af[_0x2f4043];return _0x2e2358;},a38_0x2f40(_0xbe0916,_0x1fea2f);}const util=require(a38_0x2095c2(0x9d)),logger=require(a38_0x2095c2(0x98))[a38_0x2095c2(0xfa)],{automationLogger}=require(a38_0x2095c2(0x98)),{isAccessibilityAutomationSession}=require(a38_0x2095c2(0x10e)),{isUndefined,isBrowserstackInfra}=require(a38_0x2095c2(0xab)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a38_0x2095c2(0xec)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x2095c2(0xde)),{AUTOMATION_LOG_COMMANDS}=require('../utils/constants');exports[a38_0x2095c2(0xbf)]=async(_0x156ebf,_0x1b7666,_0x547a3e={})=>{const _0x418ebf=a38_0x2095c2,_0x340d2d={};_0x340d2d[_0x418ebf(0xa9)]=_0x418ebf(0xb2),_0x340d2d[_0x418ebf(0xf3)]=function(_0x4224a1,_0x1608f2){return _0x4224a1===_0x1608f2;},_0x340d2d[_0x418ebf(0xba)]=_0x418ebf(0xb6);const _0x37803a=_0x340d2d,_0x4f5a5e=await _0x156ebf['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'+_0x1b7666[_0x418ebf(0xa4)](/arguments/g,_0x37803a[_0x418ebf(0xa9)])+_0x418ebf(0xcd)+JSON['stringify'](_0x547a3e)+')');try{if(_0x1b7666&&_0x37803a['KIJvv'](typeof _0x1b7666,_0x37803a[_0x418ebf(0xba)])){const _0x3d229d=AUTOMATION_LOG_COMMANDS[_0x418ebf(0xb1)](_0x9b2ee5=>_0x1b7666[_0x418ebf(0x8c)](_0x9b2ee5));if(_0x3d229d){const _0x247f18={};_0x247f18[_0x418ebf(0x110)]=_0x3d229d,_0x247f18[_0x418ebf(0xaf)]=[_0x547a3e];const _0x1476ac={};_0x1476ac[_0x418ebf(0xa7)]=_0x4f5a5e;const _0xe44d48={};_0xe44d48['request']=_0x247f18,_0xe44d48['response']=_0x1476ac,automationLogger[_0x418ebf(0xb7)]('['+new Date()[_0x418ebf(0xb5)]()+_0x418ebf(0x95)+JSON[_0x418ebf(0xe7)](_0xe44d48));}}}catch(_0xda2217){logger[_0x418ebf(0x91)](_0x418ebf(0xad)+_0xda2217['message']);}return _0x4f5a5e;},exports['browserStackExecuteDriver']=async(_0x5b465a,_0x59009a,_0x2116da={})=>{const _0x33eebb=a38_0x2095c2,_0x488bfd={};_0x488bfd[_0x33eebb(0xed)]=function(_0x15f09e,_0x5790b9){return _0x15f09e===_0x5790b9;},_0x488bfd[_0x33eebb(0x106)]=_0x33eebb(0xee),_0x488bfd[_0x33eebb(0xdb)]=_0x33eebb(0xd5),_0x488bfd[_0x33eebb(0xa0)]=_0x33eebb(0xb2);const _0x3e40ac=_0x488bfd;if(_0x3e40ac[_0x33eebb(0xed)](_0x5b465a[_0x33eebb(0xbd)][_0x33eebb(0xdf)],_0x3e40ac[_0x33eebb(0x106)]))return await _0x5b465a[_0x33eebb(0x99)](_0x59009a,_0x2116da);else{if(_0x3e40ac[_0x33eebb(0xed)](_0x5b465a[_0x33eebb(0xbd)][_0x33eebb(0xdf)],_0x3e40ac[_0x33eebb(0xdb)]))return await _0x5b465a['executeScript'](_0x33eebb(0x96)+_0x59009a[_0x33eebb(0xa4)](/arguments/g,_0x3e40ac[_0x33eebb(0xa0)])+_0x33eebb(0x105)+JSON[_0x33eebb(0xe7)](_0x2116da)+')');}},exports[a38_0x2095c2(0xda)]=async _0x3b2e83=>{const _0x38af73=a38_0x2095c2,_0x1ffc32={};_0x1ffc32[_0x38af73(0xeb)]=_0x38af73(0xdd),_0x1ffc32[_0x38af73(0x10b)]='accessibilityOptions.scannerProcessingTimeout',_0x1ffc32[_0x38af73(0xd4)]=_0x38af73(0xb0),_0x1ffc32[_0x38af73(0x9c)]=_0x38af73(0xc3),_0x1ffc32[_0x38af73(0xd6)]=_0x38af73(0xa3),_0x1ffc32['ZvYQc']=_0x38af73(0xca);const _0x5253bb=_0x1ffc32;_0x3b2e83[_0x38af73(0xe2)]&&(_0x3b2e83['accessibilityOptions'][_0x38af73(0xf8)]&&(_0x3b2e83[_0x5253bb[_0x38af73(0xeb)]]=_0x3b2e83[_0x38af73(0xe2)][_0x38af73(0xf8)]),_0x3b2e83[_0x38af73(0xe2)][_0x38af73(0xe3)]&&(_0x3b2e83[_0x5253bb[_0x38af73(0x10b)]]=_0x3b2e83[_0x38af73(0xe2)]['scannerProcessingTimeout']),_0x3b2e83[_0x38af73(0xe2)][_0x38af73(0x8d)]&&(_0x3b2e83[_0x5253bb[_0x38af73(0xd4)]]=_0x3b2e83[_0x38af73(0xe2)][_0x38af73(0x8d)][_0x38af73(0xbe)],_0x3b2e83[_0x5253bb[_0x38af73(0x9c)]]=_0x3b2e83[_0x38af73(0xe2)][_0x38af73(0x8d)][_0x38af73(0xe4)]));const _0x412ea9=JSON[_0x38af73(0xef)](process[_0x38af73(0xb3)][_0x38af73(0x102)])['scannerVersion'];_0x3b2e83[_0x5253bb[_0x38af73(0xd6)]]=process[_0x38af73(0xb3)][_0x38af73(0xf1)],_0x3b2e83[_0x5253bb[_0x38af73(0x10f)]]=_0x412ea9,delete _0x3b2e83[_0x38af73(0xe2)];},exports[a38_0x2095c2(0xb9)]=async _0x4ad23a=>{const _0x39621b=a38_0x2095c2,_0x50f945={};_0x50f945['fJEII']=_0x39621b(0xc1),_0x50f945[_0x39621b(0xd8)]=_0x39621b(0xc4);const _0x264357=_0x50f945;if(global['accessibilityPlatform'])try{const details={'url':await _0x4ad23a.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(_0x4ad23a,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x4ad23a,scripts.getResults);},{...details})();return res;}catch{return logger[_0x39621b(0x9b)](_0x264357[_0x39621b(0xe1)]),[];}else return logger[_0x39621b(0xfd)](_0x264357['YUDdi']),[];},exports[a38_0x2095c2(0xe0)]=async(_0x3ded74,_0x20caef='')=>{const _0x4a93f2=a38_0x2095c2;logger['debug'](_0x4a93f2(0xa8)+_0x20caef+_0x4a93f2(0xcc)+_0x3ded74);const _0x4729a0={'url':await _0x3ded74['url'](),'testhub_btcer_uuid':global[_0x4a93f2(0xc0)]?.[_0x4a93f2(0xb8)]?.['id']};if(global[_0x4a93f2(0xf5)])return await PerformanceTester[_0x4a93f2(0xd2)](PerformanceA11yEvents[_0x4a93f2(0xfc)],async()=>{const _0x2874bb=_0x4a93f2,_0x20dbf6={};_0x20dbf6[_0x2874bb(0x110)]=_0x20caef;const _0xccea6b=await exports['browserStackEvaluate'](_0x3ded74,scripts[_0x2874bb(0xe0)],_0x20dbf6);return _0xccea6b;},{'command':_0x20caef,..._0x4729a0})();},exports[a38_0x2095c2(0x104)]=async _0x271ae5=>{const _0x427532=a38_0x2095c2,_0xfe8a={};_0xfe8a[_0x427532(0xf9)]='No\x20summaryResults\x20found.',_0xfe8a[_0x427532(0xf6)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.';const _0x5df436=_0xfe8a;if(global['accessibilityPlatform'])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x271ae5,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x271ae5,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x427532(0x91)](_0x5df436[_0x427532(0xf9)]),{};}else return logger['warn'](_0x5df436[_0x427532(0xf6)]),{};},exports[a38_0x2095c2(0xd7)]=async _0x45e9c4=>{const _0x4d6d50=a38_0x2095c2,_0x3ea946={'oEudn':function(_0x252265,_0x2164c0){return _0x252265!==_0x2164c0;},'ufIjC':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','DkDOj':_0x4d6d50(0x90),'XsOUs':_0x4d6d50(0xb4),'PeGkZ':_0x4d6d50(0x8f),'ORSKt':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','AFmfL':function(_0x428ca3,_0x454f88){return _0x428ca3(_0x454f88);},'QJiFW':function(_0xc130fa){return _0xc130fa();},'GYqlI':function(_0x19a764,_0x1eca6b){return _0x19a764<_0x1eca6b;},'GBvXI':_0x4d6d50(0x94),'IBhlQ':function(_0x15c78b,_0x5053cb){return _0x15c78b===_0x5053cb;},'UyFJW':'latest','Wodbt':function(_0x347a15,_0x32daf0){return _0x347a15>_0x32daf0;},'pogGy':_0x4d6d50(0xea)};try{if(!_0x3ea946[_0x4d6d50(0xd0)](_0x45e9c4[_0x4d6d50(0x97)],''))return logger[_0x4d6d50(0xfd)](_0x3ea946['ufIjC']),![];const _0x427a0b=_0x45e9c4[_0x4d6d50(0x103)];if(![_0x3ea946['DkDOj'],_0x3ea946[_0x4d6d50(0xa1)],_0x3ea946['PeGkZ']]['includes'](_0x427a0b))return logger[_0x4d6d50(0xfd)](_0x3ea946['ORSKt']),![];const _0x34840d=_0x3ea946[_0x4d6d50(0xa2)](parseInt,_0x45e9c4[_0x4d6d50(0xbc)]);!_0x3ea946[_0x4d6d50(0x8e)](isBrowserstackInfra)&&(!_0x3ea946['GYqlI'](_0x34840d,0x64)&&logger['warn'](_0x3ea946[_0x4d6d50(0xfe)]));if(!(_0x3ea946[_0x4d6d50(0x107)](_0x34840d,_0x3ea946['UyFJW'])||_0x3ea946[_0x4d6d50(0xe9)](_0x34840d,0x5e)))return logger[_0x4d6d50(0xfd)](_0x3ea946[_0x4d6d50(0xe6)]),![];}catch(_0xf6876a){logger[_0x4d6d50(0x91)](_0x4d6d50(0xf2)+util[_0x4d6d50(0x10a)](_0xf6876a));}return!![];},exports[a38_0x2095c2(0x101)]=(_0x4c66ac,_0xe64980,_0x22e18b)=>{const _0x155d04=a38_0x2095c2,_0x328393={'blaiL':function(_0x53998f){return _0x53998f();},'WpjXK':_0x155d04(0x10c),'mlnrC':function(_0x38690,_0x54f0db){return _0x38690===_0x54f0db;},'NsMLU':'chrome','iIZOL':function(_0x384876,_0x2ae088){return _0x384876===_0x2ae088;},'sRIge':'playwright-chromium','clDka':function(_0x11dbe4,_0x3215c8){return _0x11dbe4===_0x3215c8;},'jjFVf':_0x155d04(0xe5),'WlLKq':function(_0x429535,_0x3da955){return _0x429535>_0x3da955;},'BqREj':_0x155d04(0x94),'srWNv':function(_0x43d24e,_0x3bc105){return _0x43d24e===_0x3bc105;},'qPXKa':_0x155d04(0xa5),'GbaNq':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','mLDpr':function(_0x4bf86f,_0x452730){return _0x4bf86f(_0x452730);},'xTEFH':_0x155d04(0x92),'nzjtc':function(_0x369dfa,_0x3eedf0){return _0x369dfa+_0x3eedf0;}};try{if(_0x328393[_0x155d04(0xdc)](isAccessibilityAutomationSession)){global['accessibilityPlatform']=!![];!_0x4c66ac[_0x328393[_0x155d04(0xaa)]]&&(global['accessibilityPlatform']=![]);!(_0x328393[_0x155d04(0xc9)](_0x4c66ac['browserName'],_0x328393[_0x155d04(0x108)])||_0x328393['iIZOL'](_0x4c66ac['browserName'],_0x328393[_0x155d04(0x100)])||_0x328393['iIZOL'](_0x4c66ac[_0x155d04(0x103)],_0x328393[_0x155d04(0x108)])||_0x328393[_0x155d04(0x9e)](_0x4c66ac[_0x155d04(0x103)],_0x328393[_0x155d04(0x100)]))&&(logger[_0x155d04(0xfd)](_0x328393[_0x155d04(0xfb)]),global['accessibilityPlatform']=![]);!_0x328393[_0x155d04(0xdc)](isBrowserstackInfra)&&(!_0x328393[_0x155d04(0xac)](_0x4c66ac[_0x155d04(0xbc)],0x64)&&logger['warn'](_0x328393['BqREj']));!(_0x328393[_0x155d04(0x93)](_0x4c66ac[_0x155d04(0xbc)],_0x328393[_0x155d04(0x9a)])||_0x328393[_0x155d04(0xac)](_0x4c66ac['browser_version'],0x5e))&&(logger['warn'](_0x328393[_0x155d04(0xce)]),global[_0x155d04(0xf5)]=![]);!_0x328393[_0x155d04(0xd9)](isUndefined,_0x4c66ac[_0x155d04(0x97)])&&(logger[_0x155d04(0xfd)](_0x328393[_0x155d04(0xbb)]),global[_0x155d04(0xf5)]=![]);if(!global[_0x155d04(0xf5)]){_0x4c66ac[_0x328393[_0x155d04(0xaa)]]=![];const _0x3f5536=_0x328393[_0x155d04(0xc5)](_0xe64980,_0x328393[_0x155d04(0xd9)](encodeURIComponent,JSON[_0x155d04(0xe7)](_0x4c66ac)));_0x22e18b&&(_0x22e18b[_0x155d04(0xb8)][_0x155d04(0xf0)][_0x155d04(0xcf)][_0x155d04(0xff)][_0x155d04(0xae)]['wsEndpoint']=_0x3f5536,_0x22e18b[_0x155d04(0xd1)][_0x155d04(0xcf)][_0x155d04(0xff)][_0x155d04(0xae)][_0x155d04(0x109)]=_0x3f5536);}}else global[_0x155d04(0xf5)]=![];}catch(_0x2f7645){logger[_0x155d04(0x91)](_0x155d04(0xf4)+util['format'](_0x2f7645));}};function a38_0x2350(){const _0x49ee08=['bstackSdkArgs','env','playwright-chromium','toISOString','string','silly','currentTest','getAccessibilityResults','xcGAD','xTEFH','browser_version','constructor','bestPractice','browserStackEvaluate','__workerDetails','No\x20accessibility\x20results\x20were\x20found.','16948aPVoXr','accessibilityOptions.includeIssueType.needsReview','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','nzjtc','6nwggCA','1320710ppATwA','65JYbHjg','mlnrC','accessibilityOptions.scannerVersion','633666ZXuHCe','\x20page:\x20','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','GbaNq','project','oEudn','workerInfo','measureWrapper','112765OvsaiY','nRAYy','Playwright','EiQuf','platformValidation','YUDdi','mLDpr','setAccessibilityCapabilities','TLbJk','blaiL','accessibilityOptions.wcagVersion','../../helpers/performance/constants','name','performScan','fJEII','accessibilityOptions','scannerProcessingTimeout','needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','pogGy','stringify','1207962TBUtTd','Wodbt','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','HdrLX','../../helpers/performance/performance-tester','ODWra','WebDriver','parse','testInfo','BS_A11Y_JWT','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','KIJvv','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','accessibilityPlatform','yDfMS','274603rPbyZU','wcagVersion','nspBI','winstonLogger','jjFVf','PERFORM_SCAN','warn','GBvXI','use','sRIge','processAccessibilityCaps','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','browser','getAccessibilityResultsSummary','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Fzzkq','IBhlQ','NsMLU','wsEndpoint','format','ApAzu','browserstack.accessibility','33knHPmh','../../helpers/accessibility-automation/helper','ZvYQc','command','includes','includeIssueType','QJiFW','chromium','chrome','debug','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','srWNv','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','][\x20SDK-AUTOMATION\x20]\x20','(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','deviceName','../../helpers/logger','executeAsyncScript','qPXKa','error','fkAfp','util','clDka','1720176bNrLYv','MuraA','XsOUs','AFmfL','accessibilityOptions.authToken','replace','latest','2FMNRSn','body','Performing\x20scan\x20with\x20method:\x20','tZtID','WpjXK','../../helpers/helper','WlLKq','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','connectOptions','parameters','accessibilityOptions.includeIssueType.bestPractice','find'];a38_0x2350=function(){return _0x49ee08;};return a38_0x2350();}
|
|
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,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a39_0x244616=a39_0x583c;function a39_0x10dd(){const _0x41894f=['initialize','assign','246835CGwnmK','../../helpers/performance/performance-tester','yarn','measureWrapper','win32','BROWSERSTACK_SETUP_CONFIG_PATH','.browserstack','PNPzs','FWbWr','isYarnPnP','isRunning','WnqAP','env','Deleting\x20','has','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','BROWSERSTACK_TEST_ACCESSIBILITY_YML','nZIZt','BOjHD','43490YyJXbC','setFrameworkDetail','existsSync','PXDJy','end','readdirSync','startsWith','Error\x20in\x20closing\x20playwright','getNoProxy','USER_CONFIG_DETAILS_PATH','concat','BROWSERSTACK_TEST_OBSERVABILITY','../../helpers/testhub/testhubHandler','stringify','--grep','XVPne','../../helpers/accessibility-automation/helper','./reporter/pwUtils','cByoa','unlinkSync','aGyGE','playwright','splice','BHCsU','XmbLZ','../../helpers/utilities','getConfig','../../helpers/logger','889401NuPFKC','xwECa','testObservability','testContextOptions','constants','join','PqYiP','SDK_POST_INITIALIZE','--config=','resolvedConfigFile','UJikE','\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();','homedir','reportDotBrowserStackFolderNotAccessibleIssue','kBFzW','BROWSERSTACK_RERUN_TESTS','isUndefined','FRldX','debug','true','indexOf','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','accessSync','child_process','exitCode','ARruH','dDqlQ','48trzEkV','NTgcx','egUkd','PACKAGE_TYPE','exports','get','MODULE','../../helpers/helper','playwright-browserstack-sdk.config.js','uRHgF','automation','isTypescriptProject','length','--disable-browserstack-automation','3230096PDVZtj','./accessibility-helper','inherit','readFileSync','cliConfig','cwd','1414gBbMzU','Error\x20in\x20deleting\x20playwright\x20results','EwIae','xVyaG','dirname','tcqeZ','cKhgv','filter','launchBuild','getConfigPath','1156545rehYTb','test','close','sAzjm','2MesspD','INTERNALLY_USED_ENV_VARS','serializeToYamlString','isFalse','tohaY','clearTempPWConfig','finalExecution','vrAAh','981JgDGBk','YFIRH','W_OK','BfYeV','info','writeFileSync','accessibility','\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','getInstance','../../helpers/test-observability/utils','requirePWModule','playwright-browserstack-sdk.config.cjs','map','../v2/cliUtils','--config','23696yVFTaz','sZYdr','fkoHH','KVrEq','trim','QXbOO','rAXNI','skipSessionStatus','sPeDM','npx','path','DdCth','BLFPS','slice','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','../v2/TestInfo','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','start','EVENTS','Playwright\x20process\x20exited\x20with\x20code\x20','SWxTN','false','cGhKr','error','BROWSERSTACK_PW_CONFIG_DIR','mfxMu','ltTHo','rqIRO','apply','Proxy\x20url\x20:\x20','logLevel','SDK_CLEANUP','isTrue','config','accessibilityOptions','platform','forEach','browserstackAutomation','NcCNI','stop','validateRerunTestList','errorMessage','Updated\x20config\x20file\x20name\x20to\x20-\x20','browserstackSetupConfig.json','ITpBx','HJWwI','OLlZt','push','Error\x20in\x20getting\x20funnel\x20data\x20results','SDK_PRE_INITIALIZE','split','BROWSERSTACK_AUTOMATION','RJWec','getProxyUrl','PLAYWRIGHT','BrowserStack\x20config\x20file\x20not\x20found.','AMgWM','--disable-test-observability','Ejnar','prEzL','parse','5377460WTxIFg'];a39_0x10dd=function(){return _0x41894f;};return a39_0x10dd();}(function(_0x4a3c84,_0x14b032){const _0x218c90=a39_0x583c,_0x53d569=_0x4a3c84();while(!![]){try{const _0x361d5f=-parseInt(_0x218c90(0xd8))/0x1*(parseInt(_0x218c90(0x115))/0x2)+-parseInt(_0x218c90(0x111))/0x3+parseInt(_0x218c90(0x101))/0x4+-parseInt(_0x218c90(0xa9))/0x5*(-parseInt(_0x218c90(0xf3))/0x6)+-parseInt(_0x218c90(0x107))/0x7*(-parseInt(_0x218c90(0x69))/0x8)+parseInt(_0x218c90(0x11d))/0x9*(parseInt(_0x218c90(0xbc))/0xa)+-parseInt(_0x218c90(0xa6))/0xb;if(_0x361d5f===_0x14b032)break;else _0x53d569['push'](_0x53d569['shift']());}catch(_0x2afb32){_0x53d569['push'](_0x53d569['shift']());}}}(a39_0x10dd,0x7cc49));function a39_0x583c(_0x230d74,_0x334aef){const _0x10dd0d=a39_0x10dd();return a39_0x583c=function(_0x583c3b,_0xd7dfa2){_0x583c3b=_0x583c3b-0x64;let _0x39bb0c=_0x10dd0d[_0x583c3b];return _0x39bb0c;},a39_0x583c(_0x230d74,_0x334aef);}const fs=require('fs'),path=require('path'),{spawn}=require(a39_0x244616(0xef)),{format}=require('util'),logger=require(a39_0x244616(0xd7))['winstonLogger'],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a39_0x244616(0xfa)),utilities=require(a39_0x244616(0xd5)),constants=require('../utils/constants'),{FRAMEWORKS}=require('../../helpers/test-observability/constants'),{getConfigLoaderPath}=require(a39_0x244616(0xcd)),{checkAccessibilityPlatformConfig}=require(a39_0x244616(0xcc)),{setAccessibilityCapabilities}=require(a39_0x244616(0x102)),{printBuildLink}=require(a39_0x244616(0x126)),TestDetails=require('./reporter/test-details'),TestHubHandler=require(a39_0x244616(0xc8)),PerformanceTester=require(a39_0x244616(0xaa)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require('../../helpers/performance/constants')[a39_0x244616(0x7b)],CLIUtils=require(a39_0x244616(0x67)),TestInfo=require(a39_0x244616(0x78)),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x3c1def,_0x24a2b4)=>{const _0x151837=a39_0x244616,_0x2fcced={'laxMo':function(_0x2d8246){return _0x2d8246();},'aGyGE':function(_0x55f606){return _0x55f606();},'FWbWr':function(_0x55372a,_0x1a6823){return _0x55372a(_0x1a6823);},'VchBN':_0x151837(0xe1),'AMgWM':_0x151837(0xe0)},_0x338c0a=!helper[_0x151837(0xe8)](_0x3c1def[_0x151837(0x8a)]),_0x3a3e76=_0x338c0a?path['resolve'](process[_0x151837(0x106)](),_0x3c1def[_0x151837(0x8a)]):process['cwd'](),{resolveConfigFile:_0x5a2150,resolveConfigLocation:_0x280209}=helper[_0x151837(0xb2)]()?helper['requireConfigLoaderYarnPnP'](..._0x2fcced['laxMo'](getConfigLoaderPath)):helper[_0x151837(0x64)][_0x151837(0x85)](null,_0x2fcced[_0x151837(0xd0)](getConfigLoaderPath)),_0x30fd2d=_0x5a2150?_0x2fcced[_0x151837(0xb1)](_0x5a2150,_0x3a3e76):helper['nestedKeyValue'](_0x2fcced[_0x151837(0xb1)](_0x280209,_0x3a3e76),[_0x2fcced['VchBN']]),_0x103962={};if(_0x338c0a){const _0x238106=_0x24a2b4['findIndex'](_0x556923=>_0x556923===_0x151837(0x68)||_0x556923==='-c'||_0x556923[_0x151837(0xc2)](_0x151837(0xe0)));_0x24a2b4[_0x151837(0xd2)](_0x238106,_0x24a2b4[_0x238106][_0x151837(0xc2)](_0x2fcced[_0x151837(0xa1)])?0x1:0x2);}const _0x12627f={};return _0x12627f['path']=_0x30fd2d,_0x12627f[_0x151837(0x8a)]=_0x103962,_0x12627f;},handleO11yRerun=_0x5e4f7a=>{const _0x2e7e1a=a39_0x244616,_0xa8d706={};_0xa8d706[_0x2e7e1a(0x97)]=_0x2e7e1a(0xca);const _0x578fe1=_0xa8d706,_0x3be21c=helper[_0x2e7e1a(0x89)](process['env']['BROWSERSTACK_RERUN']);if(_0x3be21c){const _0x173f89=process[_0x2e7e1a(0xb5)][_0x2e7e1a(0xe7)],_0x3901b7=[];if(helper[_0x2e7e1a(0x91)](_0x173f89)&&!helper[_0x2e7e1a(0xe8)](_0x173f89)){_0x173f89[_0x2e7e1a(0x9b)](',')[_0x2e7e1a(0x66)](_0x55e446=>{const _0x2c994a=_0x2e7e1a;_0x3901b7['push']('('+_0x55e446[_0x2c994a(0x6d)]()+')');});const _0x276184='^'+_0x3901b7['join']('|')+'$';_0x5e4f7a[_0x2e7e1a(0x98)](_0x578fe1['OLlZt'],_0x276184);}}},spawnOriginalProcess=_0x33c6ab=>{const _0x1dc9a6=a39_0x244616,_0x1d6c16={'uRHgF':function(_0x2b31a3,_0x582ffe,_0xe4b85a,_0x2e5f8a){return _0x2b31a3(_0x582ffe,_0xe4b85a,_0x2e5f8a);},'mAJPD':_0x1dc9a6(0xab),'SWxTN':_0x1dc9a6(0x72),'BLFPS':_0x1dc9a6(0xd1),'zgIyN':function(_0x195c43,_0x2141e5){return _0x195c43===_0x2141e5;},'ltTHo':'win32','Ejnar':'inherit'};_0x1d6c16[_0x1dc9a6(0xfc)](spawn,helper['isYarnPnP']()?_0x1d6c16['mAJPD']:_0x1d6c16[_0x1dc9a6(0x7d)],[_0x1d6c16[_0x1dc9a6(0x75)],..._0x33c6ab[_0x1dc9a6(0x76)](0x1)],{'shell':_0x1d6c16['zgIyN'](process[_0x1dc9a6(0x8c)],_0x1d6c16[_0x1dc9a6(0x83)]),'stdio':_0x1d6c16[_0x1dc9a6(0xa3)],'cwd':process[_0x1dc9a6(0x106)]()});},isTestCommand=(_0x4d4a5a,_0x47e467)=>{const _0x22320c=a39_0x244616,_0x57d241={};_0x57d241[_0x22320c(0x120)]=function(_0x566031,_0x52ca0f){return _0x566031>_0x52ca0f;},_0x57d241[_0x22320c(0x84)]=function(_0x49a096,_0x24bb02){return _0x49a096===_0x24bb02;},_0x57d241[_0x22320c(0xbf)]='test';const _0x5ecf7e=_0x57d241;if(_0x5ecf7e[_0x22320c(0x120)](_0x47e467[_0x22320c(0xff)],0x1)&&_0x5ecf7e[_0x22320c(0x84)](_0x47e467[0x1],_0x5ecf7e[_0x22320c(0xbf)]))return!![];return![];};async function run(_0x486870,_0x268143,_0x22c139){const _0xd0cd7c=a39_0x244616,_0x2eb3ab={'BHCsU':function(_0x12c3a4,_0x341d5f){return _0x12c3a4(_0x341d5f);},'fkoHH':_0xd0cd7c(0xaf),'EwIae':'pw_result.json','RJWec':function(_0x36c638,_0x11d3c1){return _0x36c638+_0x11d3c1;},'sAzjm':_0xd0cd7c(0x99),'UJikE':function(_0x4353d0){return _0x4353d0();},'prEzL':_0xd0cd7c(0xc3),'KVrEq':_0xd0cd7c(0xa0),'FRldX':function(_0x419ffa,_0x442577){return _0x419ffa<_0x442577;},'PNPzs':function(_0x147976,_0x2dee2d){return _0x147976===_0x2dee2d;},'cGhKr':_0xd0cd7c(0x7e),'NTgcx':_0xd0cd7c(0xa2),'YFIRH':function(_0x4d6b74,_0x3f8778){return _0x4d6b74>=_0x3f8778;},'xVyaG':function(_0x38d166,_0x3ebd58){return _0x38d166===_0x3ebd58;},'ARruH':_0xd0cd7c(0xfd),'zdNoy':function(_0x57bba6,_0x57a2de){return _0x57bba6!=_0x57a2de;},'sPeDM':function(_0x40f704,_0x20e5df,_0xf99977){return _0x40f704(_0x20e5df,_0xf99977);},'XVPne':function(_0x46043b,_0xd561ff){return _0x46043b(_0xd561ff);},'tohaY':function(_0x45f9c2,_0xf1ffaa){return _0x45f9c2===_0xf1ffaa;},'kBFzW':_0xd0cd7c(0xeb),'rAXNI':_0xd0cd7c(0x94),'RfNVy':_0xd0cd7c(0x65),'mfxMu':_0xd0cd7c(0xfb),'dDqlQ':function(_0x5cc287,_0x3ea5c5){return _0x5cc287-_0x3ea5c5;},'egUkd':function(_0x33eccf,_0x2aba9b){return _0x33eccf+_0x2aba9b;},'GHxUz':_0xd0cd7c(0x93),'BOjHD':function(_0x17863b,_0x42e572){return _0x17863b>_0x42e572;},'sZYdr':function(_0x44aabb,_0x33831c,_0x4d3015,_0x1f310f){return _0x44aabb(_0x33831c,_0x4d3015,_0x1f310f);},'pBDXE':_0xd0cd7c(0xab),'cKhgv':_0xd0cd7c(0x72),'nZIZt':_0xd0cd7c(0xd1),'Rrkzo':_0xd0cd7c(0x112),'WnqAP':_0xd0cd7c(0x68),'HaxGV':function(_0x405bda,_0x4d9243){return _0x405bda===_0x4d9243;},'QXbOO':_0xd0cd7c(0xad),'xtnkl':_0xd0cd7c(0x103),'DevAq':_0xd0cd7c(0x113),'DdCth':function(_0x4b6fa6,_0x2625f4){return _0x4b6fa6|_0x2625f4;},'GBHHm':function(_0x18b3dd,_0x4908b4){return _0x18b3dd+_0x4908b4;},'ITpBx':_0xd0cd7c(0xed),'HJWwI':function(_0x320cda,_0x4ff925){return _0x320cda+_0x4ff925;},'NcCNI':_0xd0cd7c(0x108),'GnWuB':function(_0x57ddbf,_0xd7cdc8){return _0x57ddbf(_0xd7cdc8);}};try{const _0xdbb3cc=path[_0xd0cd7c(0xdd)](helper['homedir'](),_0x2eb3ab[_0xd0cd7c(0x6b)]);try{fs[_0xd0cd7c(0xee)](_0xdbb3cc,_0x2eb3ab[_0xd0cd7c(0x74)](fs[_0xd0cd7c(0xdc)]['R_OK'],fs[_0xd0cd7c(0xdc)][_0xd0cd7c(0x11f)]));}catch(_0x5cc489){ClientTroubleShootingService[_0xd0cd7c(0xe5)]();}}catch(_0x19b72f){logger[_0xd0cd7c(0xea)](_0x2eb3ab['GBHHm'](_0x2eb3ab[_0xd0cd7c(0x95)],_0x19b72f));}try{const _0x531d79=path[_0xd0cd7c(0xdd)](helper[_0xd0cd7c(0xe4)](),_0x2eb3ab['fkoHH'],_0x2eb3ab[_0xd0cd7c(0x109)]);fs['existsSync'](_0x531d79)&&fs['unlinkSync'](_0x531d79);}catch(_0x5e3ce5){logger[_0xd0cd7c(0xea)](_0x2eb3ab[_0xd0cd7c(0x96)](_0x2eb3ab[_0xd0cd7c(0x8f)],_0x5e3ce5));}if(!_0x2eb3ab[_0xd0cd7c(0x71)](isTestCommand,_0x486870,_0x268143)){_0x2eb3ab['GnWuB'](spawnOriginalProcess,_0x268143);return;}await PerformanceTester['measureWrapper'](PerformanceEvents[_0xd0cd7c(0x9a)],async()=>{const _0x2d5910=_0xd0cd7c,_0x3d495a={'vrAAh':function(_0x1a4635,_0x40eb49){return _0x2eb3ab['BHCsU'](_0x1a4635,_0x40eb49);},'xwECa':_0x2eb3ab[_0x2d5910(0x6b)],'HLYBf':_0x2eb3ab[_0x2d5910(0x109)],'XmbLZ':function(_0x1253c5,_0x130561){const _0x41928a=_0x2d5910;return _0x2eb3ab[_0x41928a(0x9d)](_0x1253c5,_0x130561);},'PqYiP':_0x2eb3ab[_0x2d5910(0x114)],'tcqeZ':function(_0x30138f){return _0x2eb3ab['UJikE'](_0x30138f);},'TOhwC':function(_0x569ff6){const _0x48a508=_0x2d5910;return _0x2eb3ab[_0x48a508(0xe2)](_0x569ff6);},'cByoa':_0x2eb3ab[_0x2d5910(0xa4)]};if(!_0x22c139['config']){logger[_0x2d5910(0x80)](_0x2eb3ab[_0x2d5910(0x6c)]);return;}await _0x22c139[_0x2d5910(0xa7)](_0x486870),CLIUtils[_0x2d5910(0xbd)](FRAMEWORKS[_0x2d5910(0x9f)],FRAMEWORKS[_0x2d5910(0x9f)]),BrowserstackCLI[_0x2d5910(0x125)]()['setBrowserstackConfig'](_0x22c139['config'],_0x22c139['configPath'],_0x22c139[_0x2d5910(0x105)]),await BrowserstackCLI[_0x2d5910(0x125)]()['bootstrap']();for(var _0x387841=0x0;_0x2eb3ab[_0x2d5910(0xe9)](_0x387841,constants['INTERNALLY_USED_ENV_VARS'][_0x2d5910(0xff)]);_0x387841++){var _0x271887=constants[_0x2d5910(0x116)][_0x387841];process['env'][_0x271887]&&await ClientTroubleShootingService['reportConflictingEnvVarIssue'](_0x271887);}const _0x36f8ef=BrowserstackCLI[_0x2d5910(0x125)]()[_0x2d5910(0xd6)]();!helper[_0x2d5910(0x118)](_0x36f8ef['browserstackAutomation'])&&(process[_0x2d5910(0xb5)][_0x2d5910(0x9c)]=!![]);_0x2eb3ab['PNPzs'](_0x36f8ef[_0x2d5910(0x8e)],![])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x2eb3ab[_0x2d5910(0x7f)],_0x268143=_0x268143[_0x2d5910(0x10e)](_0x3d6eb5=>_0x3d6eb5!==_0x2d5910(0x100)));const _0xb2f0f2=_0x268143[_0x2d5910(0xec)](_0x2eb3ab[_0x2d5910(0xf4)]);(_0x2eb3ab[_0x2d5910(0x11e)](_0xb2f0f2,0x0)||_0x2eb3ab[_0x2d5910(0x10a)](_0x36f8ef['testObservability'],![]))&&(process[_0x2d5910(0xb5)][_0x2d5910(0xc7)]=_0x2eb3ab['cGhKr'],_0x268143=_0x268143['filter'](_0x3c8f93=>_0x3c8f93!==_0x2d5910(0xa2)));!helper[_0x2d5910(0xe8)](_0x22c139[_0x2d5910(0x105)])&&_0x22c139[_0x2d5910(0x105)][_0x2d5910(0xb7)](_0x2eb3ab[_0x2d5910(0xf1)])&&(process[_0x2d5910(0xb5)][_0x2d5910(0x9c)]=_0x22c139[_0x2d5910(0x105)][_0x2d5910(0xf8)](_0x2eb3ab[_0x2d5910(0xf1)])||!![]);_0x2eb3ab['zdNoy'](_0x22c139['config']['testObservability'],null)&&!helper[_0x2d5910(0x89)](process['env'][_0x2d5910(0xc7)])&&(process['env'][_0x2d5910(0xc7)]=process[_0x2d5910(0xb5)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x22c139[_0x2d5910(0x8a)][_0x2d5910(0xda)]);const _0x595668=!helper[_0x2d5910(0x118)](process[_0x2d5910(0xb5)][_0x2d5910(0xc7)]);_0x22c139[_0x2d5910(0x8a)][_0x2d5910(0x8b)]&&(process[_0x2d5910(0xb5)]['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON[_0x2d5910(0xc9)](_0x22c139[_0x2d5910(0x8a)][_0x2d5910(0x8b)]));let _0x24d49d=![];_0x22c139[_0x2d5910(0x8a)][_0x2d5910(0x123)]&&(_0x24d49d=!![],process[_0x2d5910(0xb5)][_0x2d5910(0xb9)]=_0x22c139[_0x2d5910(0x8a)]['accessibility']);const _0x3a0d7b=_0x268143[_0x2d5910(0xc6)](),_0x472271=await _0x2eb3ab[_0x2d5910(0x71)](getUserPlaywrightConfig,_0x486870,_0x268143);if(helper['isUndefined'](_0x472271)){_0x2eb3ab['XVPne'](spawnOriginalProcess,_0x3a0d7b);return;}const _0x5f393d=_0x472271[_0x2d5910(0x73)]?path[_0x2d5910(0x10b)](_0x472271[_0x2d5910(0x73)]):process['cwd']();process[_0x2d5910(0xb5)][_0x2d5910(0x81)]=_0x5f393d,await PerformanceTester[_0x2d5910(0xac)](PerformanceEvents[_0x2d5910(0xdf)],async()=>{const _0x22b7f8=_0x2d5910;!BrowserstackCLI[_0x22b7f8(0x125)]()[_0x22b7f8(0xb3)]()&&await TestHubHandler[_0x22b7f8(0x10f)](FRAMEWORKS[_0x22b7f8(0x9f)],_0x22c139),_0x595668&&_0x3d495a[_0x22b7f8(0x11c)](handleO11yRerun,_0x268143);})();if(!BrowserstackCLI[_0x2d5910(0x125)]()[_0x2d5910(0xb3)]()){let _0x4a3e70=_0x2eb3ab[_0x2d5910(0x119)](process[_0x2d5910(0xb5)][_0x2d5910(0xb9)],_0x2eb3ab[_0x2d5910(0xe6)]);_0x4a3e70=_0x4a3e70||_0x2eb3ab[_0x2d5910(0xd3)](checkAccessibilityPlatformConfig,_0x22c139[_0x2d5910(0x8a)]),process[_0x2d5910(0xb5)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x4a3e70,_0x4a3e70&&_0x2eb3ab[_0x2d5910(0xcb)](setAccessibilityCapabilities,_0x22c139[_0x2d5910(0x8a)]);}const _0x39d310=path[_0x2d5910(0xdd)](_0x472271[_0x2d5910(0x73)]?path[_0x2d5910(0x10b)](_0x472271[_0x2d5910(0x73)]):process[_0x2d5910(0x106)](),_0x2eb3ab[_0x2d5910(0x6f)]);fs[_0x2d5910(0x122)](_0x39d310,helper[_0x2d5910(0x117)](_0x22c139['config'])),process[_0x2d5910(0xb5)][_0x2d5910(0xae)]=_0x39d310,helper[_0x2d5910(0x11a)]();let _0x10d7c8='';_0x2eb3ab[_0x2d5910(0xb0)](helper['getPackageType'](),constants[_0x2d5910(0xf6)][_0x2d5910(0xf9)])?_0x10d7c8=_0x2eb3ab['RfNVy']:_0x10d7c8=_0x2eb3ab[_0x2d5910(0x82)];let _0x59903f='';if(helper[_0x2d5910(0xfe)](_0x472271[_0x2d5910(0x73)])){_0x59903f=_0x2d5910(0x77);const _0x546c5c=_0x10d7c8[_0x2d5910(0x9b)]('.');_0x546c5c[_0x2eb3ab[_0x2d5910(0xf2)](_0x546c5c['length'],0x1)]='ts',_0x10d7c8=_0x546c5c[_0x2d5910(0xdd)]('.'),logger[_0x2d5910(0xea)](_0x2eb3ab[_0x2d5910(0xf5)](_0x2eb3ab['GHxUz'],_0x10d7c8));}else _0x59903f=_0x2d5910(0x79);const _0x3eb6fd=path[_0x2d5910(0xdd)](_0x472271[_0x2d5910(0x73)]?path[_0x2d5910(0x10b)](_0x472271['path']):process[_0x2d5910(0x106)](),_0x10d7c8);let _0x14c98b=_0x472271['path']?_0x472271['path']:'';_0x14c98b=_0x2eb3ab[_0x2d5910(0xbb)](_0x14c98b['length'],0x0)?path['resolve'](_0x14c98b):'',process[_0x2d5910(0xb5)][_0x2d5910(0xc5)]=_0x14c98b;const _0x8271e6=helper[_0x2d5910(0x9e)](_0x22c139[_0x2d5910(0x8a)]),_0x50fda4=helper[_0x2d5910(0xc4)](_0x22c139['config']);logger['debug'](_0x2d5910(0x86)+_0x8271e6),logger[_0x2d5910(0xea)]('No\x20Proxy\x20:\x20'+_0x50fda4);_0x8271e6&&(_0x59903f=_0x2eb3ab['egUkd'](_0x2d5910(0xb8)+_0x8271e6+_0x2d5910(0x124)+_0x50fda4+_0x2d5910(0xe3),_0x59903f));helper['filterBrowserstackArgs']({},_0x268143),fs['writeFileSync'](_0x3eb6fd,_0x59903f),PerformanceTester[_0x2d5910(0xc0)](PerformanceEvents['SDK_SETUP']);const _0x33f40c=_0x2eb3ab[_0x2d5910(0x6a)](spawn,helper['isYarnPnP']()?_0x2eb3ab['pBDXE']:_0x2eb3ab[_0x2d5910(0x10d)],[_0x2eb3ab[_0x2d5910(0xba)],_0x2eb3ab['Rrkzo'],_0x2eb3ab[_0x2d5910(0xb4)],_0x2eb3ab['HaxGV'](process[_0x2d5910(0x8c)],_0x2eb3ab['QXbOO'])?'\x22'+_0x3eb6fd+'\x22':_0x3eb6fd,..._0x268143['slice'](0x2)],{'shell':_0x2eb3ab[_0x2d5910(0x119)](process[_0x2d5910(0x8c)],_0x2eb3ab[_0x2d5910(0x6e)]),'stdio':_0x2eb3ab['xtnkl'],'cwd':process[_0x2d5910(0x106)](),'env':Object[_0x2d5910(0xa8)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2d5910(0x110)](_0x486870),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x22c139[_0x2d5910(0x8a)][_0x2d5910(0xdb)][_0x2d5910(0x70)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x22c139[_0x2d5910(0x8a)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x22c139['config'][_0x2d5910(0x87)]})}),_0x50a529=()=>{const _0x40c56e=_0x2d5910;try{const _0x4d16b1=path[_0x40c56e(0xdd)](helper['homedir'](),_0x3d495a[_0x40c56e(0xd9)],_0x3d495a['HLYBf']);if(fs[_0x40c56e(0xbe)](_0x4d16b1)){let _0x16adc9=fs[_0x40c56e(0x104)](_0x4d16b1);_0x16adc9=JSON[_0x40c56e(0xa5)](_0x16adc9),_0x22c139[_0x40c56e(0x92)]=_0x16adc9,fs[_0x40c56e(0xcf)](_0x4d16b1);}}catch(_0x3fcf15){logger[_0x40c56e(0xea)](_0x3d495a[_0x40c56e(0xd4)](_0x3d495a[_0x40c56e(0xde)],_0x3fcf15));}};_0x33f40c['on'](_0x2eb3ab['DevAq'],async _0x5c4e65=>{const _0x1c87f1=_0x2d5910;try{PerformanceTester[_0x1c87f1(0x7a)](PerformanceEvents[_0x1c87f1(0x88)]),_0x3d495a[_0x1c87f1(0x10c)](_0x50a529),await TestHubHandler[_0x1c87f1(0x90)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x15e4a5=BrowserstackCLI['isCLIEnabled']();await BrowserstackCLI['getInstance']()['stop'](),TestDetails['shutdown'](),_0x3d495a['TOhwC'](printBuildLink),await utilities[_0x1c87f1(0x11b)](_0x22c139,_0x15e4a5),process[_0x1c87f1(0xf0)]=_0x5c4e65,logger[_0x1c87f1(0xea)](_0x1c87f1(0x7c)+_0x5c4e65),logger[_0x1c87f1(0x121)](_0x1c87f1(0xb6)+_0x3eb6fd),fs[_0x1c87f1(0xcf)](_0x3eb6fd);fs[_0x1c87f1(0xbe)](_0x39d310)&&(logger['debug'](_0x1c87f1(0xb6)+_0x39d310),fs['unlinkSync'](_0x39d310));const _0x15c3bc=fs[_0x1c87f1(0xc1)](path[_0x1c87f1(0xdd)](helper[_0x1c87f1(0xe4)](),_0x3d495a[_0x1c87f1(0xd9)]))[_0x1c87f1(0x10e)](_0x1e0cb7=>_0x1e0cb7['startsWith']('trace_'));_0x15c3bc[_0x1c87f1(0x8d)](_0x195b57=>{const _0x26a380=_0x1c87f1;fs['unlinkSync'](path['join'](helper[_0x26a380(0xe4)](),_0x3d495a[_0x26a380(0xd9)],_0x195b57));});}catch(_0x49ba6a){logger[_0x1c87f1(0xea)](_0x3d495a[_0x1c87f1(0xd4)](_0x3d495a[_0x1c87f1(0xce)],_0x49ba6a));}});})();}module[a39_0x244616(0xf7)]=run;
|
|
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;
|