browserstack-node-sdk 1.48.0 → 1.48.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_0x4e2fad=a33_0x2399;(function(_0x376bb3,_0x2194fd){const _0x56dcae=a33_0x2399,_0x393cba=_0x376bb3();while(!![]){try{const _0x303270=parseInt(_0x56dcae(0xe2))/0x1*(parseInt(_0x56dcae(0xb3))/0x2)+-parseInt(_0x56dcae(0xd1))/0x3+parseInt(_0x56dcae(0xad))/0x4*(-parseInt(_0x56dcae(0xdf))/0x5)+parseInt(_0x56dcae(0x7e))/0x6+parseInt(_0x56dcae(0xd2))/0x7*(-parseInt(_0x56dcae(0xc6))/0x8)+parseInt(_0x56dcae(0xe1))/0x9*(parseInt(_0x56dcae(0xd8))/0xa)+-parseInt(_0x56dcae(0xbf))/0xb*(parseInt(_0x56dcae(0xba))/0xc);if(_0x303270===_0x2194fd)break;else _0x393cba['push'](_0x393cba['shift']());}catch(_0x24dc0b){_0x393cba['push'](_0x393cba['shift']());}}}(a33_0x57dc,0x72437));const logger=require(a33_0x4e2fad(0x83))[a33_0x4e2fad(0xea)],helper=require(a33_0x4e2fad(0xc2)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a33_0x4e2fad(0xcf)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x4e2fad(0xa5)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x4e2fad(0xa7)),globals=require(a33_0x4e2fad(0xe4)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x106d5e,_0xf6a357=null,_0x3ca339=![])=>{const _0x194214=a33_0x4e2fad,_0x80c4bd={'CfMcg':function(_0x455422,_0x4fe86c){return _0x455422!==_0x4fe86c;},'nZBbU':_0x194214(0x8b),'YcuUl':function(_0x673e51,_0x408d8f){return _0x673e51+_0x408d8f;},'eFJkB':_0x194214(0xf4),'Icjzg':_0x194214(0x93),'LDsQu':_0x194214(0xed),'plUzs':_0x194214(0xce),'CiDZo':_0x194214(0xf5),'yWBDx':'edgeOptions','mXrQU':_0x194214(0xee),'yYBkM':_0x194214(0x9d),'GTPaY':_0x194214(0x85),'CJZKA':_0x194214(0xdd),'lutsd':'ieOptions','QgaTF':function(_0x4e9f1a,_0x5217be){return _0x4e9f1a===_0x5217be;},'AroLJ':_0x194214(0xc5),'MAmgB':_0x194214(0xb7),'zgFKd':_0x194214(0xb2),'aRiIq':_0x194214(0x8c),'vTNdr':function(_0x1ace02,_0xa7ca72,_0x1eaaae){return _0x1ace02(_0xa7ca72,_0x1eaaae);},'CsCFc':function(_0x45b571,_0x231a77,_0x4dcc5d){return _0x45b571(_0x231a77,_0x4dcc5d);},'vKPKe':function(_0x473d48,_0x2d16d2){return _0x473d48(_0x2d16d2);},'GnwTV':function(_0x4de841,_0x1bbc03,_0x4542f9){return _0x4de841(_0x1bbc03,_0x4542f9);},'Fxwvf':_0x194214(0xdc),'GlEhB':_0x194214(0xc4),'ZUAGQ':function(_0x4752f9){return _0x4752f9();},'apzes':_0x194214(0xd5),'XoHos':function(_0x4ccb6d,_0x171cde){return _0x4ccb6d(_0x171cde);},'MTNkd':function(_0x34cd5c,_0x32a6ac){return _0x34cd5c!==_0x32a6ac;},'goonz':function(_0x33cc07,_0x461289){return _0x33cc07!==_0x461289;},'MQBfC':_0x194214(0x8f),'UFnWc':'Modifying\x20webdriver\x20builder'},_0x3125c4=helper[_0x194214(0xef)]();let _0x25b8c9;try{_0x25b8c9=helper[_0x194214(0xc3)](),_0x25b8c9[_0x194214(0xd9)]&&(_0x25b8c9[_0x194214(0xda)]=_0x25b8c9[_0x194214(0xd9)]);}catch(_0x13b6b8){return;}if(helper[_0x194214(0xbe)]()){const _0x4ad29e={};_0x4ad29e['logLevel']=_0x106d5e[_0x194214(0xab)],helper[_0x194214(0xca)](_0x4ad29e,new Map(),new Map()),logger[_0x194214(0xc7)](_0x80c4bd[_0x194214(0xb6)]),logger[_0x194214(0x90)](_0x80c4bd['UFnWc']);}class _0x3e7754 extends _0x3125c4[_0x194214(0xa1)]{[_0x194214(0xb5)](_0x57917a){const _0xa8a599=_0x194214;if(_0x80c4bd['CfMcg'](_0x57917a[_0xa8a599(0x9f)],_0x80c4bd[_0xa8a599(0xcb)])&&_0x80c4bd['CfMcg'](global[_0xa8a599(0xd4)],''))try{global[_0xa8a599(0xd4)]=_0x80c4bd[_0xa8a599(0x7f)](_0x80c4bd[_0xa8a599(0x7f)](_0x80c4bd[_0xa8a599(0xc8)],global['newHubUrl']),_0x80c4bd[_0xa8a599(0x96)]),this[_0xa8a599(0xd6)]=hubAllocator[_0xa8a599(0xdb)](global[_0xa8a599(0xd4)]),logger[_0xa8a599(0x90)]('New\x20hub\x20url\x20set\x20to\x20'+global[_0xa8a599(0xd4)]),global[_0xa8a599(0xd4)]='';}catch(_0x4e9b88){logger[_0xa8a599(0xb9)](_0x4e9b88);}return super[_0xa8a599(0xb5)](_0x57917a);}}class _0x4c6746 extends _0x25b8c9[_0x194214(0xda)]{['setServer'](){const _0x2f5229=_0x194214;return this['url_']=helper[_0x2f5229(0xb4)](_0x106d5e),logger['debug'](_0x2f5229(0xe6)+this[_0x2f5229(0xf0)]),this;}[_0x194214(0xb8)](_0x595867){const _0x295b49=_0x194214;let _0x1b836d={};for(const _0x37c626 in _0x595867){switch(_0x37c626){case _0x80c4bd[_0x295b49(0x8d)]:case _0x80c4bd['plUzs']:this[_0x295b49(0x87)]&&(_0x1b836d=this[_0x295b49(0x87)][_0x295b49(0xb0)](this[_0x295b49(0x87)][_0x295b49(0xde)])||{},this[_0x295b49(0x87)][_0x295b49(0xae)](this[_0x295b49(0x87)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x1b836d,_0x595867[_0x37c626])));break;case _0x80c4bd[_0x295b49(0x9b)]:case _0x80c4bd[_0x295b49(0xe8)]:this[_0x295b49(0xe5)]&&(_0x1b836d=this['edgeOptions_'][_0x295b49(0xb0)](this[_0x295b49(0xe5)][_0x295b49(0xde)])||{},this['edgeOptions_']['set'](this['edgeOptions_'][_0x295b49(0xde)],helper[_0x295b49(0xbb)](_0x1b836d,_0x595867[_0x37c626])));break;case _0x80c4bd[_0x295b49(0x99)]:case _0x80c4bd[_0x295b49(0xd7)]:this[_0x295b49(0xf1)]&&(_0x1b836d=this[_0x295b49(0xf1)]['get'](this[_0x295b49(0xf1)][_0x295b49(0xde)])||{},this[_0x295b49(0xf1)][_0x295b49(0xae)](this[_0x295b49(0xf1)][_0x295b49(0xde)],helper[_0x295b49(0xbb)](_0x1b836d,_0x595867[_0x37c626])));break;case _0x80c4bd['GTPaY']:this[_0x295b49(0x8a)]&&(_0x1b836d=this[_0x295b49(0x8a)][_0x295b49(0xb0)](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x295b49(0x8a)]['set'](this['safariOptions_'][_0x295b49(0xde)],helper[_0x295b49(0xbb)](_0x1b836d,_0x595867[_0x37c626])));break;case _0x80c4bd[_0x295b49(0xaa)]:case _0x80c4bd[_0x295b49(0xc0)]:this[_0x295b49(0xec)]&&(_0x1b836d=this[_0x295b49(0xec)]['get'](this['ieOptions_'][_0x295b49(0xde)])||{},this[_0x295b49(0xec)]['set'](this[_0x295b49(0xec)][_0x295b49(0xde)],helper['mergeDeep'](_0x1b836d,_0x595867[_0x37c626])));break;}}}[_0x194214(0xe7)](){const _0x539f6e=_0x194214;return logger[_0x539f6e(0x90)](_0x80c4bd[_0x539f6e(0x89)]),this['__setBrowserOptions'](_0x106d5e[_0x539f6e(0xc1)]),Object[_0x539f6e(0xa3)](_0x106d5e[_0x539f6e(0xc1)])[_0x539f6e(0x7c)](_0x167013=>{const _0x2bdef7=_0x539f6e,_0x31c20f=this[_0x2bdef7(0x81)][_0x2bdef7(0xb0)](_0x167013);_0x80c4bd[_0x2bdef7(0x82)](typeof _0x31c20f,_0x80c4bd[_0x2bdef7(0xc9)])?this[_0x2bdef7(0x81)]['set'](_0x167013,helper['mergeDeep'](_0x31c20f,_0x106d5e[_0x2bdef7(0xc1)][_0x167013])):this[_0x2bdef7(0x81)][_0x2bdef7(0xae)](_0x167013,_0x106d5e[_0x2bdef7(0xc1)][_0x167013]);}),this;}[_0x194214(0x7d)](){const _0x2c5407=_0x194214,_0x837673={'xvOfr':function(_0x4da9b8,_0x3c6915,_0x5513c8){const _0x51b15c=a33_0x2399;return _0x80c4bd[_0x51b15c(0x92)](_0x4da9b8,_0x3c6915,_0x5513c8);}};if(helper[_0x2c5407(0xbe)]()){const _0x2ff6d3=_0x80c4bd[_0x2c5407(0xcd)][_0x2c5407(0x8e)]('|');let _0x32fc80=0x0;while(!![]){switch(_0x2ff6d3[_0x32fc80++]){case'0':this['setServer']();continue;case'1':logger['debug'](_0x80c4bd[_0x2c5407(0x9e)]);continue;case'2':_0x80c4bd['ZUAGQ'](isAccessibilityAutomationSession)&&_0x80c4bd['vKPKe'](setAccessibilityCapabilities,_0x106d5e);continue;case'3':if(helper[_0x2c5407(0x9c)](_0x106d5e[_0x2c5407(0xa2)][_0x2c5407(0xa4)]))this[_0x2c5407(0x86)]=helper['getHttpAgent'](_0x106d5e[_0x2c5407(0xa2)][_0x2c5407(0xa4)]);else _0x106d5e[_0x2c5407(0xa2)]['proxyUrl']&&(this[_0x2c5407(0xf6)]=_0x106d5e[_0x2c5407(0xa2)][_0x2c5407(0xa4)],logger['debug'](_0x2c5407(0x84)+this['proxy_']));continue;case'4':this['setCapabilities']();continue;case'5':globals['getGlobal'](_0x80c4bd[_0x2c5407(0xe3)])&&(!_0x80c4bd[_0x2c5407(0x91)](setExtension,this,_0x106d5e)&&globals[_0x2c5407(0x95)](_0x80c4bd[_0x2c5407(0xe3)],![]));continue;}break;}}const _0x13fa6a=super[_0x2c5407(0x7d)]();return _0x13fa6a[_0x2c5407(0x94)][_0x2c5407(0x88)](_0x2d6e83=>{const _0x4cc920=_0x2c5407;try{const _0x415826=_0x2d6e83[_0x4cc920(0x98)][_0x4cc920(0xb0)](_0x80c4bd[_0x4cc920(0xa9)]);_0x415826?(logger[_0x4cc920(0x90)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x415826),hubAllocator[_0x4cc920(0xbd)](_0x415826),helper[_0x4cc920(0xa6)](_0x415826)):logger[_0x4cc920(0x90)](_0x80c4bd[_0x4cc920(0xa8)]);}catch(_0x1def6f){logger[_0x4cc920(0x90)](_0x4cc920(0x80)+_0x1def6f);}}),_0x13fa6a[_0x2c5407(0xac)]=0x0,_0x13fa6a[_0x2c5407(0x88)]&&_0x13fa6a['then'](_0x576ea8=>{const _0x2da3c4=_0x2c5407,_0x55109d={'supgd':function(_0x54b4c4,_0x3f474c,_0x3bfa83){const _0x3ff9e5=a33_0x2399;return _0x80c4bd[_0x3ff9e5(0xe9)](_0x54b4c4,_0x3f474c,_0x3bfa83);}};_0x80c4bd['CsCFc'](overrideQuit,_0x576ea8,_0x13fa6a),_0x80c4bd[_0x2da3c4(0xcc)](overrideTakeScreenshot,_0x576ea8),helper[_0x2da3c4(0xaf)](_0x576ea8,_0x106d5e),_0x80c4bd[_0x2da3c4(0x92)](overrideExecute,_0x576ea8,_0x106d5e),_0x576ea8[_0x2da3c4(0xf3)]=async()=>{const _0x4231e6=_0x2da3c4;return await _0x837673[_0x4231e6(0xe0)](getAccessibilityResultsSummary,_0x576ea8,global);},_0x576ea8[_0x2da3c4(0xbc)]=async()=>{return await _0x55109d['supgd'](getAccessibilityResults,_0x576ea8,global);};}),_0x13fa6a[_0x2c5407(0xf3)]=async()=>{const _0x241ba5=_0x2c5407;return await _0x80c4bd[_0x241ba5(0xe9)](getAccessibilityResultsSummary,_0x13fa6a,global);},_0x13fa6a[_0x2c5407(0xbc)]=async()=>{return await _0x80c4bd['GnwTV'](getAccessibilityResults,_0x13fa6a,global);},_0x80c4bd[_0x2c5407(0xcc)](overrideTakeScreenshot,_0x13fa6a),_0x80c4bd['XoHos'](overrideQuit,_0x13fa6a),helper[_0x2c5407(0xaf)](_0x13fa6a,_0x106d5e),_0x80c4bd[_0x2c5407(0x92)](overrideExecute,_0x13fa6a,_0x106d5e),helper[_0x2c5407(0xf2)](global[_0x2c5407(0xd3)])&&(global['__driversArray']=[]),helper[_0x2c5407(0xf2)](global['__drivers'])&&(global['__drivers']=[]),global['__driversArray'][_0x2c5407(0xd0)](_0x13fa6a),global[_0x2c5407(0x9a)]=_0x13fa6a,_0x80c4bd[_0x2c5407(0xeb)](global['__drivers'],undefined)&&global[_0x2c5407(0xa0)][_0x2c5407(0xd0)](_0x13fa6a),_0xf6a357&&helper['isUndefined'](_0xf6a357['global'][_0x2c5407(0xd3)])&&(_0xf6a357[_0x2c5407(0x97)][_0x2c5407(0xd3)]=[]),_0xf6a357&&_0x80c4bd['goonz'](_0xf6a357[_0x2c5407(0x97)][_0x2c5407(0xa0)],undefined)&&(_0xf6a357['global'][_0x2c5407(0xa0)][_0x2c5407(0xd0)](_0x13fa6a),_0xf6a357[_0x2c5407(0x97)]['__driversArray'][_0x2c5407(0xd0)](_0x13fa6a)),_0x13fa6a;}}return _0x25b8c9[_0x194214(0xd9)]=_0x25b8c9[_0x194214(0xda)],_0x25b8c9[_0x194214(0xda)]=_0x4c6746,_0x3125c4[_0x194214(0xa1)]=_0x3e7754,_0x25b8c9;};function a33_0x2399(_0x5b8449,_0x8a3095){const _0x57dcdb=a33_0x57dc();return a33_0x2399=function(_0x2399d8,_0x35a8c4){_0x2399d8=_0x2399d8-0x7c;let _0xa87d9f=_0x57dcdb[_0x2399d8];return _0xa87d9f;},a33_0x2399(_0x5b8449,_0x8a3095);}module[a33_0x4e2fad(0xb1)]['browserstackAgentObservability']=modify;function a33_0x57dc(){const _0x4b329b=['Hub\x20url\x20set\x20to\x20','setCapabilities','yWBDx','vTNdr','winstonLogger','MTNkd','ieOptions_','goog:chromeOptions','moz:firefoxOptions','requireHttpClient','url_','firefoxOptions_','isUndefined','getAccessibilityResultsSummary','https://','ms:edgeOptions','proxy_','forEach','build','4561110cucJlb','YcuUl','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','capabilities_','QgaTF','../../../helpers/logger','Proxy\x20set\x20to\x20','safari.options','agent_','chromeOptions_','then','MAmgB','safariOptions_','/session','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','LDsQu','split','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','debug','GnwTV','CsCFc','/wd/hub','session_','setGlobal','Icjzg','global','caps_','mXrQU','__driver','CiDZo','isPacProxy','firefoxOptions','GlEhB','path','__drivers','HttpClient','proxySettings','keys','proxyUrl','../../../helpers/patchHelpers','storeOptimalHubUrl','../../../helpers/accessibility-automation/helper','aRiIq','zgFKd','CJZKA','browserStackLogLevel','quitCount_','12cJLYCE','set','overrideGet','get','exports','optimalHubUrl','604RmkITt','getHubUrl','send','MQBfC','Setting\x20Browserstack\x20capabilities','__setBrowserOptions','error','475548xCETaB','mergeDeep','getAccessibilityResults','updateHubUrl','isBrowserstackInfra','231wgewIY','lutsd','capability','../../../helpers/helper','requireSeleniumWebdriver','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','object','637016iBqBXE','info','eFJkB','AroLJ','setLogLevel','nZBbU','vKPKe','Fxwvf','chromeOptions','../../../hubAllocationMethods','push','236976joIQFN','21YajhJv','__driversArray','newHubUrl','isAccessibilityPlatform','options_','yYBkM','10qIgHGy','originalBuilder','Builder','getRequestOptions','2|0|4|3|5|1','se:ieOptions','CAPABILITY_KEY','775755Uctuhx','xvOfr','3536199khmffb','3081rtTEJi','apzes','../../../helpers/globals','edgeOptions_'];a33_0x57dc=function(){return _0x4b329b;};return a33_0x57dc();}
|
|
1
|
+
function a33_0x5e33(){const _0x59ef6c=['GrSfL','url_','New\x20hub\x20url\x20set\x20to\x20','__driversArray','ECajS','BQxSI','build','ieOptions','HttpClient','options_','./helpers/patchHelper','storeOptimalHubUrl','firefoxOptions','BTuuV','isPacProxy','ktoiI','OkvXP','global','proxyUrl','getAccessibilityResultsSummary','tXtRS','newHubUrl','CuQlz','agent_','then','quitCount_','5781030OrzGbs','bmpFJ','15EgCfuR','275962BaPZqA','8JAtwxl','requireHttpClient','Modifying\x20webdriver\x20builder','TaoUf','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','proxy_','split','setGlobal','../../../helpers/patchHelpers','3|4|1|2|0|5','PEmvX','overrideGet','tObPC','BUMey','../../../helpers/accessibility-automation/helper','capabilities_','safari.options','uLnwB','proxySettings','2514140WtUGOz','__drivers','set','getGlobal','Setting\x20Browserstack\x20capabilities','firefoxOptions_','ms:edgeOptions','setCapabilities','3595420MFvAqF','LGYjQ','agPod','isAccessibilityPlatform','getAccessibilityResults','UTSip','pIakx','get','__driver','mbsWP','XqVZR','forEach','originalBuilder','keys','se:ieOptions','setServer','exports','chromeOptions','PVqJr','capability','moz:firefoxOptions','error','jnrTK','chromeOptions_','RnZUH','../../../hubAllocationMethods','ieOptions_','../../../bin/utils/constants','uDIyD','winstonLogger','7343766YGgIoR','debug','../accessibility-automation/helper','push','JNjNh','/wd/hub','gJcej','mHVeh','hOTGZ','2|0|4|3|5|1','7450440ckhyDe','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','772383cfPLqP','Builder','CAPABILITY_KEY','DoNls','vGYTg','object','omBKN','7NcWsnj','browserstackAgentObservability','xXRyf','isBrowserstackInfra','xDrot','browserStackLogLevel','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','updateHubUrl','isUndefined','setLogLevel','epfdI','Nlinj','edgeOptions_','safariOptions_','__setBrowserOptions','send','mergeDeep'];a33_0x5e33=function(){return _0x59ef6c;};return a33_0x5e33();}const a33_0x3820b5=a33_0x5016;(function(_0x8b6c21,_0x5ecee0){const _0x50a7e5=a33_0x5016,_0x4388fe=_0x8b6c21();while(!![]){try{const _0x188b91=parseInt(_0x50a7e5(0xe8))/0x1+-parseInt(_0x50a7e5(0x11d))/0x2*(parseInt(_0x50a7e5(0x11c))/0x3)+parseInt(_0x50a7e5(0x11e))/0x4*(-parseInt(_0x50a7e5(0x131))/0x5)+parseInt(_0x50a7e5(0x11a))/0x6+-parseInt(_0x50a7e5(0xef))/0x7*(-parseInt(_0x50a7e5(0xe6))/0x8)+-parseInt(_0x50a7e5(0xdc))/0x9+parseInt(_0x50a7e5(0x139))/0xa;if(_0x188b91===_0x5ecee0)break;else _0x4388fe['push'](_0x4388fe['shift']());}catch(_0x29545f){_0x4388fe['push'](_0x4388fe['shift']());}}}(a33_0x5e33,0x7dc80));const logger=require('../../../helpers/logger')[a33_0x3820b5(0xdb)],helper=require('../../../helpers/helper'),constants=require(a33_0x3820b5(0xd9)),hubAllocator=require(a33_0x3820b5(0xd7)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x3820b5(0x126)),{setAccessibilityCapabilities,setExtension}=require(a33_0x3820b5(0xde)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x3820b5(0x12c)),globals=require('../../../helpers/globals'),{overrideExecute}=require(a33_0x3820b5(0x10a)),modify=(_0x228b7a,_0x3f42b3=null,_0x13c8f5=![])=>{const _0x1bfb20=a33_0x3820b5,_0x14d70c={'agPod':function(_0x372ca3,_0x3998a5){return _0x372ca3!==_0x3998a5;},'gpzDS':'/session','tSJrc':function(_0x227904,_0x194d42){return _0x227904+_0x194d42;},'ktoiI':function(_0x8013ba,_0x421eb5){return _0x8013ba+_0x421eb5;},'xDrot':'https://','BQxSI':_0x1bfb20(0xe1),'CuQlz':'goog:chromeOptions','TaoUf':_0x1bfb20(0x14a),'mbsWP':_0x1bfb20(0x137),'Nlinj':'edgeOptions','XqVZR':_0x1bfb20(0xd2),'pIakx':_0x1bfb20(0x10c),'OkvXP':_0x1bfb20(0x12e),'GrSfL':_0x1bfb20(0x147),'VUgXr':_0x1bfb20(0x107),'uDIyD':function(_0xebdc79,_0x1b00b3){return _0xebdc79===_0x1b00b3;},'UTSip':_0x1bfb20(0xed),'gJcej':_0x1bfb20(0x135),'bmpFJ':_0x1bfb20(0x127),'epfdI':function(_0x1d4664,_0x626d15,_0x2f603d){return _0x1d4664(_0x626d15,_0x2f603d);},'PEmvX':function(_0x505c7d,_0x5c65ad,_0x26183f){return _0x505c7d(_0x5c65ad,_0x26183f);},'uLnwB':function(_0x51d6e6,_0x482408){return _0x51d6e6(_0x482408);},'tObPC':'optimalHubUrl','SwHKe':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','xXRyf':function(_0x3785b7,_0x407ecb,_0x5886d6){return _0x3785b7(_0x407ecb,_0x5886d6);},'LGYjQ':function(_0x492d0b,_0x4590a5,_0x1d452a){return _0x492d0b(_0x4590a5,_0x1d452a);},'DoNls':_0x1bfb20(0xe5),'ECajS':_0x1bfb20(0xf5),'vGYTg':function(_0x412a5a){return _0x412a5a();},'hOTGZ':function(_0x208487,_0xe435f7){return _0x208487(_0xe435f7);},'mHVeh':_0x1bfb20(0x13c),'PVqJr':function(_0xf7d758,_0x4ee3c1){return _0xf7d758(_0x4ee3c1);},'omBKN':function(_0x5b7a6b,_0x55fea5,_0x16248d){return _0x5b7a6b(_0x55fea5,_0x16248d);},'JNjNh':function(_0x3ecd7c,_0x12b036){return _0x3ecd7c!==_0x12b036;},'XbLHv':function(_0x5d1eb4,_0x158a35){return _0x5d1eb4!==_0x158a35;},'BUMey':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','BTuuV':_0x1bfb20(0x120)},_0x59abc7=helper[_0x1bfb20(0x11f)]();let _0x18cad5;try{_0x18cad5=helper['requireSeleniumWebdriver'](),_0x18cad5[_0x1bfb20(0x145)]&&(_0x18cad5[_0x1bfb20(0xe9)]=_0x18cad5[_0x1bfb20(0x145)]);}catch(_0xef1a16){return;}if(helper[_0x1bfb20(0xf2)]()){const _0x10f360={};_0x10f360['logLevel']=_0x228b7a[_0x1bfb20(0xf4)],helper[_0x1bfb20(0xf8)](_0x10f360,new Map(),new Map()),logger['info'](_0x14d70c[_0x1bfb20(0x12b)]),logger['debug'](_0x14d70c[_0x1bfb20(0x10d)]);}class _0x12eb6 extends _0x59abc7['HttpClient']{['send'](_0x5b1e34){const _0x11a8d7=_0x1bfb20;if(_0x14d70c[_0x11a8d7(0x13b)](_0x5b1e34['path'],_0x14d70c['gpzDS'])&&_0x14d70c[_0x11a8d7(0x13b)](global[_0x11a8d7(0x115)],''))try{global[_0x11a8d7(0x115)]=_0x14d70c['tSJrc'](_0x14d70c[_0x11a8d7(0x10f)](_0x14d70c[_0x11a8d7(0xf3)],global['newHubUrl']),_0x14d70c[_0x11a8d7(0x105)]),this[_0x11a8d7(0x109)]=hubAllocator['getRequestOptions'](global['newHubUrl']),logger[_0x11a8d7(0xdd)](_0x11a8d7(0x102)+global[_0x11a8d7(0x115)]),global[_0x11a8d7(0x115)]='';}catch(_0x296e10){logger[_0x11a8d7(0xd3)](_0x296e10);}return super[_0x11a8d7(0xfe)](_0x5b1e34);}}class _0xbee6ba extends _0x18cad5[_0x1bfb20(0xe9)]{['setServer'](){const _0x50dd1b=_0x1bfb20;return this[_0x50dd1b(0x101)]=helper['getHubUrl'](_0x228b7a),logger['debug']('Hub\x20url\x20set\x20to\x20'+this[_0x50dd1b(0x101)]),this;}[_0x1bfb20(0xfd)](_0xa048cc){const _0x1b29c=_0x1bfb20;let _0xcdc38a={};for(const _0x1449ad in _0xa048cc){switch(_0x1449ad){case _0x14d70c[_0x1b29c(0x116)]:case _0x14d70c[_0x1b29c(0x121)]:this[_0x1b29c(0xd5)]&&(_0xcdc38a=this[_0x1b29c(0xd5)][_0x1b29c(0x140)](this[_0x1b29c(0xd5)][_0x1b29c(0xea)])||{},this[_0x1b29c(0xd5)][_0x1b29c(0x133)](this[_0x1b29c(0xd5)][_0x1b29c(0xea)],helper[_0x1b29c(0xff)](_0xcdc38a,_0xa048cc[_0x1449ad])));break;case _0x14d70c[_0x1b29c(0x142)]:case _0x14d70c[_0x1b29c(0xfa)]:this[_0x1b29c(0xfb)]&&(_0xcdc38a=this[_0x1b29c(0xfb)]['get'](this[_0x1b29c(0xfb)][_0x1b29c(0xea)])||{},this[_0x1b29c(0xfb)]['set'](this['edgeOptions_'][_0x1b29c(0xea)],helper[_0x1b29c(0xff)](_0xcdc38a,_0xa048cc[_0x1449ad])));break;case _0x14d70c[_0x1b29c(0x143)]:case _0x14d70c[_0x1b29c(0x13f)]:this[_0x1b29c(0x136)]&&(_0xcdc38a=this[_0x1b29c(0x136)][_0x1b29c(0x140)](this[_0x1b29c(0x136)][_0x1b29c(0xea)])||{},this[_0x1b29c(0x136)][_0x1b29c(0x133)](this[_0x1b29c(0x136)][_0x1b29c(0xea)],helper[_0x1b29c(0xff)](_0xcdc38a,_0xa048cc[_0x1449ad])));break;case _0x14d70c[_0x1b29c(0x110)]:this[_0x1b29c(0xfc)]&&(_0xcdc38a=this[_0x1b29c(0xfc)][_0x1b29c(0x140)](this['safariOptions_'][_0x1b29c(0xea)])||{},this[_0x1b29c(0xfc)][_0x1b29c(0x133)](this[_0x1b29c(0xfc)][_0x1b29c(0xea)],helper[_0x1b29c(0xff)](_0xcdc38a,_0xa048cc[_0x1449ad])));break;case _0x14d70c[_0x1b29c(0x100)]:case _0x14d70c['VUgXr']:this[_0x1b29c(0xd8)]&&(_0xcdc38a=this['ieOptions_'][_0x1b29c(0x140)](this[_0x1b29c(0xd8)][_0x1b29c(0xea)])||{},this[_0x1b29c(0xd8)][_0x1b29c(0x133)](this['ieOptions_'][_0x1b29c(0xea)],helper['mergeDeep'](_0xcdc38a,_0xa048cc[_0x1449ad])));break;}}}[_0x1bfb20(0x138)](){const _0x705c38=_0x1bfb20;return logger[_0x705c38(0xdd)](_0x14d70c[_0x705c38(0xe2)]),this[_0x705c38(0xfd)](_0x228b7a[_0x705c38(0x14c)]),Object[_0x705c38(0x146)](_0x228b7a['capability'])[_0x705c38(0x144)](_0x402a32=>{const _0x294ea3=_0x705c38,_0x235f58=this['capabilities_']['get'](_0x402a32);_0x14d70c[_0x294ea3(0xda)](typeof _0x235f58,_0x14d70c[_0x294ea3(0x13e)])?this[_0x294ea3(0x12d)][_0x294ea3(0x133)](_0x402a32,helper['mergeDeep'](_0x235f58,_0x228b7a[_0x294ea3(0x14c)][_0x402a32])):this['capabilities_'][_0x294ea3(0x133)](_0x402a32,_0x228b7a[_0x294ea3(0x14c)][_0x402a32]);}),this;}[_0x1bfb20(0x106)](){const _0xa14d04=_0x1bfb20,_0x9759e2={'tXtRS':_0x14d70c[_0xa14d04(0x12a)],'KBouO':_0x14d70c['SwHKe'],'RnZUH':function(_0x3390a8,_0x5d8990,_0x53c07a){const _0x52ee74=_0xa14d04;return _0x14d70c[_0x52ee74(0xf1)](_0x3390a8,_0x5d8990,_0x53c07a);},'jnrTK':function(_0x2df734,_0x51134e,_0x3e1c0d){const _0x1f0d72=_0xa14d04;return _0x14d70c[_0x1f0d72(0x13a)](_0x2df734,_0x51134e,_0x3e1c0d);}};if(helper['isBrowserstackInfra']()){const _0x3c5371=_0x14d70c[_0xa14d04(0xeb)]['split']('|');let _0x59c3e3=0x0;while(!![]){switch(_0x3c5371[_0x59c3e3++]){case'0':this[_0xa14d04(0x148)]();continue;case'1':logger[_0xa14d04(0xdd)](_0x14d70c[_0xa14d04(0x104)]);continue;case'2':_0x14d70c[_0xa14d04(0xec)](isAccessibilityAutomationSession)&&_0x14d70c[_0xa14d04(0xe4)](setAccessibilityCapabilities,_0x228b7a);continue;case'3':if(helper[_0xa14d04(0x10e)](_0x228b7a[_0xa14d04(0x130)][_0xa14d04(0x112)]))this[_0xa14d04(0x117)]=helper['getHttpAgent'](_0x228b7a[_0xa14d04(0x130)][_0xa14d04(0x112)]);else _0x228b7a[_0xa14d04(0x130)][_0xa14d04(0x112)]&&(this['proxy_']=_0x228b7a[_0xa14d04(0x130)][_0xa14d04(0x112)],logger['debug']('Proxy\x20set\x20to\x20'+this[_0xa14d04(0x123)]));continue;case'4':this['setCapabilities']();continue;case'5':globals[_0xa14d04(0x134)](_0x14d70c[_0xa14d04(0xe3)])&&(!_0x14d70c['xXRyf'](setExtension,this,_0x228b7a)&&globals[_0xa14d04(0x125)](_0x14d70c[_0xa14d04(0xe3)],![]));continue;}break;}}const _0x2cdbb8=super[_0xa14d04(0x106)]();return _0x2cdbb8['session_'][_0xa14d04(0x118)](_0x2e3e30=>{const _0x2e7970=_0xa14d04;try{const _0x4243cd=_0x2e3e30['caps_']['get'](_0x9759e2[_0x2e7970(0x114)]);_0x4243cd?(logger[_0x2e7970(0xdd)](_0x2e7970(0xe7)+_0x4243cd),hubAllocator[_0x2e7970(0xf6)](_0x4243cd),helper[_0x2e7970(0x10b)](_0x4243cd)):logger[_0x2e7970(0xdd)](_0x9759e2['KBouO']);}catch(_0x49b578){logger['debug'](_0x2e7970(0x122)+_0x49b578);}}),_0x2cdbb8[_0xa14d04(0x119)]=0x0,_0x2cdbb8[_0xa14d04(0x118)]&&_0x2cdbb8[_0xa14d04(0x118)](_0x465a58=>{const _0x4bf091=_0xa14d04,_0x239b14=_0x14d70c[_0x4bf091(0x11b)][_0x4bf091(0x124)]('|');let _0x1a82d6=0x0;while(!![]){switch(_0x239b14[_0x1a82d6++]){case'0':_0x465a58[_0x4bf091(0x113)]=async()=>{const _0x49398e=_0x4bf091;return await _0x9759e2[_0x49398e(0xd6)](getAccessibilityResultsSummary,_0x465a58,global);};continue;case'1':helper['overrideGet'](_0x465a58,_0x228b7a);continue;case'2':_0x14d70c[_0x4bf091(0xf9)](overrideExecute,_0x465a58,_0x228b7a);continue;case'3':_0x14d70c[_0x4bf091(0x128)](overrideQuit,_0x465a58,_0x2cdbb8);continue;case'4':_0x14d70c[_0x4bf091(0x12f)](overrideTakeScreenshot,_0x465a58);continue;case'5':_0x465a58[_0x4bf091(0x13d)]=async()=>{const _0x4fc983=_0x4bf091;return await _0x9759e2[_0x4fc983(0xd4)](getAccessibilityResults,_0x465a58,global);};continue;}break;}}),_0x2cdbb8[_0xa14d04(0x113)]=async()=>{const _0x267d76=_0xa14d04;return await _0x14d70c[_0x267d76(0xf9)](getAccessibilityResultsSummary,_0x2cdbb8,global);},_0x2cdbb8[_0xa14d04(0x13d)]=async()=>{const _0x2ee2d6=_0xa14d04;return await _0x14d70c[_0x2ee2d6(0xf9)](getAccessibilityResults,_0x2cdbb8,global);},_0x14d70c[_0xa14d04(0x14b)](overrideTakeScreenshot,_0x2cdbb8),_0x14d70c[_0xa14d04(0x12f)](overrideQuit,_0x2cdbb8),helper[_0xa14d04(0x129)](_0x2cdbb8,_0x228b7a),_0x14d70c[_0xa14d04(0xee)](overrideExecute,_0x2cdbb8,_0x228b7a),helper[_0xa14d04(0xf7)](global[_0xa14d04(0x103)])&&(global[_0xa14d04(0x103)]=[]),helper['isUndefined'](global['__drivers'])&&(global[_0xa14d04(0x132)]=[]),global['__driversArray'][_0xa14d04(0xdf)](_0x2cdbb8),global[_0xa14d04(0x141)]=_0x2cdbb8,_0x14d70c[_0xa14d04(0xe0)](global['__drivers'],undefined)&&global[_0xa14d04(0x132)][_0xa14d04(0xdf)](_0x2cdbb8),_0x3f42b3&&helper['isUndefined'](_0x3f42b3[_0xa14d04(0x111)]['__driversArray'])&&(_0x3f42b3['global'][_0xa14d04(0x103)]=[]),_0x3f42b3&&_0x14d70c['XbLHv'](_0x3f42b3[_0xa14d04(0x111)]['__drivers'],undefined)&&(_0x3f42b3[_0xa14d04(0x111)][_0xa14d04(0x132)][_0xa14d04(0xdf)](_0x2cdbb8),_0x3f42b3['global'][_0xa14d04(0x103)][_0xa14d04(0xdf)](_0x2cdbb8)),_0x2cdbb8;}}return _0x18cad5[_0x1bfb20(0x145)]=_0x18cad5[_0x1bfb20(0xe9)],_0x18cad5[_0x1bfb20(0xe9)]=_0xbee6ba,_0x59abc7[_0x1bfb20(0x108)]=_0x12eb6,_0x18cad5;};function a33_0x5016(_0x32e8bc,_0x416789){const _0x5e33d0=a33_0x5e33();return a33_0x5016=function(_0x501683,_0x5a6d76){_0x501683=_0x501683-0xd2;let _0x1f895d=_0x5e33d0[_0x501683];return _0x1f895d;},a33_0x5016(_0x32e8bc,_0x416789);}module[a33_0x3820b5(0x149)][a33_0x3820b5(0xf0)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a34_0x33ec07=a34_0x5e94;(function(_0x6126bb,_0x1e2905){const _0x3e0ddd=a34_0x5e94,_0x3e902f=_0x6126bb();while(!![]){try{const _0x397888=parseInt(_0x3e0ddd(0x14f))/0x1*(-parseInt(_0x3e0ddd(0x154))/0x2)+parseInt(_0x3e0ddd(0x14a))/0x3+-parseInt(_0x3e0ddd(0x14d))/0x4+-parseInt(_0x3e0ddd(0x152))/0x5+parseInt(_0x3e0ddd(0x155))/0x6+-parseInt(_0x3e0ddd(0x14c))/0x7+-parseInt(_0x3e0ddd(0x14b))/0x8*(-parseInt(_0x3e0ddd(0x151))/0x9);if(_0x397888===_0x1e2905)break;else _0x3e902f['push'](_0x3e902f['shift']());}catch(_0xa054af){_0x3e902f['push'](_0x3e902f['shift']());}}}(a34_0x4d1b,0x38975));function a34_0x4d1b(){const _0x2ba189=['993552mttzon','4827560YRcWzM','1957284sLeJAI','1629864nSxzbo','dMnqj','20597SUBmJG','../../../helpers/test-observability/utils','9fyQuJR','1648300mMlIQb','mochaHooks','8aTNean','2377764GSHfCQ','../../../helpers/request-spy'];a34_0x4d1b=function(){return _0x2ba189;};return a34_0x4d1b();}const requestSpy=require(a34_0x33ec07(0x149)),constants=require('../../../bin/utils/constants'),{addRequestSpy}=require(a34_0x33ec07(0x150));function a34_0x5e94(_0x286be2,_0x1689f4){const _0x4d1b21=a34_0x4d1b();return a34_0x5e94=function(_0x5e94a4,_0x4054c0){_0x5e94a4=_0x5e94a4-0x149;let _0x37b156=_0x4d1b21[_0x5e94a4];return _0x37b156;},a34_0x5e94(_0x286be2,_0x1689f4);}exports[a34_0x33ec07(0x153)]={'beforeAll'(){const _0x275e2b=a34_0x33ec07,_0x4e6508={'dMnqj':function(_0x41165f){return _0x41165f();}},_0x391fab='browserstack internal helper hook';_0x4e6508[_0x275e2b(0x14e)](addRequestSpy);},'afterAll'(){const _0x215b27='browserstack internal helper hook';this['timeout'](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a35_0x12d0(_0x19cb72,_0x11ebc5){const _0x2effa1=a35_0x2eff();return a35_0x12d0=function(_0x12d083,_0x4645f1){_0x12d083=_0x12d083-0x1ba;let _0x43c04d=_0x2effa1[_0x12d083];return _0x43c04d;},a35_0x12d0(_0x19cb72,_0x11ebc5);}function a35_0x2eff(){const _0x334fd2=['emit','cBaho','toJSON','grwbk','pid','PJaEw','mapTestHooks','782800BMFTXO','hookAnalyticsId','getHookDetails','GEXEY','fromEntries','passed','gQFbG','getBrowserName','state','jvKbm','yKDtA','../../../helpers/helper','markedStatus','toISOString','551308VioxXO','split','PWvhL','QWgKW','concat','557110tSWoNn','bNsvV','forEach','getPlatform','77VyyDut','zLcPa','uWlDE','afRQJ','_beforeEach','AhCfm','string','_afterEach','_afterAll','104298EavuGT','parent','wOzbv','_beforeAll','frdeC','type','lodash','TjGBA','cWgNl','failed','substring','get','../../../helpers/test-observability/utils','19703tGpUsR','getBrowserVersion','hTSfn','LYSVS','SMwuf','481059acwroF','bs:addPlatformDetails:','hook:','IoCZS','getCapabilities','../../../helpers/testhub/utils','getHookSkippedTests','tests','hook','NUCyL','browserstack','1730845cGrDGX','uuid','platformVersion','bsiuU','JIVwD','QdZZe','XfLtR','soTiI','js-','slice','unknown_grid','3RWYkiF','filter','getSession','__cloud_provider___','JyuPX','fsfUa','../../../helpers/test-observability/constants','indexOf','RbiPR','map_'];a35_0x2eff=function(){return _0x334fd2;};return a35_0x2eff();}const a35_0x2b36d0=a35_0x12d0;(function(_0x134f39,_0x536d37){const _0x4f2fbd=a35_0x12d0,_0x31c036=_0x134f39();while(!![]){try{const _0x154366=parseInt(_0x4f2fbd(0x1ea))/0x1+parseInt(_0x4f2fbd(0x1d0))/0x2*(-parseInt(_0x4f2fbd(0x205))/0x3)+-parseInt(_0x4f2fbd(0x1cb))/0x4+parseInt(_0x4f2fbd(0x1fa))/0x5+parseInt(_0x4f2fbd(0x1dd))/0x6*(parseInt(_0x4f2fbd(0x1d4))/0x7)+parseInt(_0x4f2fbd(0x1bd))/0x8+-parseInt(_0x4f2fbd(0x1ef))/0x9;if(_0x154366===_0x536d37)break;else _0x31c036['push'](_0x31c036['shift']());}catch(_0x445d3d){_0x31c036['push'](_0x31c036['shift']());}}}(a35_0x2eff,0x2d30e));const {v4:uuidv4}=require(a35_0x2b36d0(0x1fb)),{name,version}=require('../../../../package.json'),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a35_0x2b36d0(0x1e9)),{consoleHolder}=require(a35_0x2b36d0(0x20b)),{getPlatformVersion}=require(a35_0x2b36d0(0x1c8)),{shouldProcessEventForTesthub}=require(a35_0x2b36d0(0x1f4)),{isFunction}=require(a35_0x2b36d0(0x1e3)),{patchConsoleLogger}=require(a35_0x2b36d0(0x1e9));patchConsoleLogger(),exports['getTestEnv']=()=>{const _0x2982ce=a35_0x2b36d0,_0x1cb3c3={'hTSfn':'generic','XfLtR':function(_0x341126){return _0x341126();}};return{'ci':_0x1cb3c3[_0x2982ce(0x1ec)],'key':_0x1cb3c3[_0x2982ce(0x200)](uuidv4),'version':version,'collector':_0x2982ce(0x202)+name};},exports[a35_0x2b36d0(0x1bf)]=_0x438bab=>{const _0x231b64=a35_0x2b36d0,_0x36b55a={};_0x36b55a[_0x231b64(0x1d5)]=function(_0x1a1d40,_0x21d4e5){return _0x1a1d40!==_0x21d4e5;},_0x36b55a[_0x231b64(0x1ff)]=_0x231b64(0x1da),_0x36b55a[_0x231b64(0x1d9)]=_0x231b64(0x1f1),_0x36b55a[_0x231b64(0x20a)]=function(_0x59b662,_0xa3980d){return _0x59b662!==_0xa3980d;},_0x36b55a[_0x231b64(0x201)]=_0x231b64(0x1f7);const _0x1b8d54=_0x36b55a;if(!_0x438bab||_0x1b8d54[_0x231b64(0x1d5)](typeof _0x438bab,_0x1b8d54['QdZZe']))return[null,null];if(_0x1b8d54[_0x231b64(0x1d5)](_0x438bab[_0x231b64(0x20c)](_0x1b8d54[_0x231b64(0x1d9)]),-0x1)){const _0x49323b=_0x438bab[_0x231b64(0x1cc)](_0x1b8d54[_0x231b64(0x1d9)]);return[_0x49323b[0x0][_0x231b64(0x203)](0x0,-0x1)[_0x231b64(0x1cc)]('\x22')[0x1],_0x49323b[0x1][_0x231b64(0x1e7)](0x1)];}else{if(_0x1b8d54['fsfUa'](_0x438bab[_0x231b64(0x20c)](_0x1b8d54[_0x231b64(0x201)]),-0x1)){const _0x5362e9=_0x438bab[_0x231b64(0x1cc)](_0x1b8d54[_0x231b64(0x201)]);return[_0x5362e9[0x0][_0x231b64(0x203)](0x0,-0x1)[_0x231b64(0x1cc)]('\x22')[0x1],_0x438bab];}}return[null,null];},exports['getHooksForTest']=_0x4dd90a=>{const _0x4673ce=a35_0x2b36d0,_0x43fabf={'AjzWY':function(_0x5aa8a6,_0x2724e4){return _0x5aa8a6(_0x2724e4);},'PWvhL':'_beforeAll','jCtun':'_afterAll','gQFbG':_0x4673ce(0x1d8),'NUCyL':_0x4673ce(0x1db)};if(!_0x4dd90a||!_0x4dd90a[_0x4673ce(0x1de)])return[];const _0x4d080a=[];return[_0x43fabf[_0x4673ce(0x1cd)],_0x43fabf['jCtun'],_0x43fabf[_0x4673ce(0x1c3)],_0x43fabf[_0x4673ce(0x1f8)]][_0x4673ce(0x1d2)](_0x4e705e=>{const _0x154424=_0x4673ce,_0x2d08e1={'FKUBR':function(_0x29ed78,_0x4a3a1c){return _0x43fabf['AjzWY'](_0x29ed78,_0x4a3a1c);}},_0x1989e2=_0x4dd90a[_0x154424(0x1de)][_0x4e705e]||[];_0x1989e2['forEach'](_0x2582b0=>{const _0x1a3b7f=_0x154424;_0x2582b0[_0x1a3b7f(0x1be)]&&!_0x2d08e1['FKUBR'](isInternalHook,_0x2582b0['fn'])&&_0x4d080a['push'](_0x2582b0[_0x1a3b7f(0x1be)]);});}),[..._0x4d080a,...exports['getHooksForTest'](_0x4dd90a[_0x4673ce(0x1de)])];},exports[a35_0x2b36d0(0x1bc)]=_0x172f70=>{const _0x1db8e5=a35_0x2b36d0,_0x2741b6={'cBaho':function(_0x48bc4f){return _0x48bc4f();},'yKDtA':function(_0x3c7b51,_0x38265e){return _0x3c7b51===_0x38265e;},'afRQJ':_0x1db8e5(0x1db),'uWlDE':function(_0x1c14bc){return _0x1c14bc();},'GEXEY':_0x1db8e5(0x1e0),'qotrL':_0x1db8e5(0x1dc),'jvKbm':_0x1db8e5(0x1d8)};if(!_0x172f70||!_0x172f70[_0x1db8e5(0x1de)])return;[_0x2741b6[_0x1db8e5(0x1c0)],_0x2741b6['qotrL'],_0x2741b6[_0x1db8e5(0x1c6)],_0x2741b6[_0x1db8e5(0x1d7)]][_0x1db8e5(0x1d2)](_0x46928b=>{const _0x2fb523=_0x1db8e5,_0x3af825={'cWgNl':function(_0x3f2213){const _0x2c4ea7=a35_0x12d0;return _0x2741b6[_0x2c4ea7(0x210)](_0x3f2213);},'SMaod':function(_0x18824f,_0x4dfc22){const _0x3c5f7c=a35_0x12d0;return _0x2741b6[_0x3c5f7c(0x1c7)](_0x18824f,_0x4dfc22);},'LYSVS':_0x2741b6[_0x2fb523(0x1d7)],'QWgKW':function(_0xef6ab0){const _0x1ddc60=_0x2fb523;return _0x2741b6[_0x1ddc60(0x1d6)](_0xef6ab0);}},_0xcf9540=_0x172f70[_0x2fb523(0x1de)][_0x46928b]||[];_0xcf9540[_0x2fb523(0x1d2)](_0x301dc7=>{const _0x150a8d=_0x2fb523;if(!_0x301dc7[_0x150a8d(0x1be)])_0x301dc7[_0x150a8d(0x1be)]=_0x3af825[_0x150a8d(0x1e5)](uuidv4);else _0x301dc7['markedStatus']&&_0x3af825['SMaod'](_0x46928b,_0x3af825[_0x150a8d(0x1ed)])&&(_0x301dc7[_0x150a8d(0x1be)]=_0x3af825[_0x150a8d(0x1ce)](uuidv4),delete _0x301dc7[_0x150a8d(0x1c9)]);});}),exports[_0x1db8e5(0x1bc)](_0x172f70['parent']);},exports['sendPlatformDetails']=async(_0x570161,_0x4e7b3a)=>{const _0x10bb03=a35_0x2b36d0,_0x5e60e6={'JyuPX':function(_0x2528d5){return _0x2528d5();},'bZMTj':function(_0xd501a1,_0x541a53){return _0xd501a1(_0x541a53);},'frdeC':_0x10bb03(0x1fc),'SMwuf':function(_0x288cde,_0x4d61fc){return _0x288cde(_0x4d61fc);},'wOzbv':function(_0x403818,_0x84c25f){return _0x403818===_0x84c25f;},'TjGBA':_0x10bb03(0x1f9),'IoCZS':_0x10bb03(0x204),'RbiPR':'TEST_PLATFORM','bsiuU':function(_0x2a085d,_0x58acb5){return _0x2a085d(_0x58acb5);}};try{if(!_0x5e60e6[_0x10bb03(0x209)](shouldProcessEventForTesthub))return;const _0x18bd62=await _0x570161[_0x10bb03(0x1f3)](),_0x188c19=await _0x570161[_0x10bb03(0x207)](),_0x36eed7={},_0x2efb41=Object[_0x10bb03(0x1c1)](_0x188c19[_0x10bb03(0x1f3)]()[_0x10bb03(0x20e)]),_0x2a2558={'product':_0x5e60e6['bZMTj'](getObservabilityLinkedProductName,_0x2efb41),'capabilities':_0x2efb41,'platform':_0x18bd62[_0x10bb03(0x1d3)](),'platform_version':_0x18bd62[_0x10bb03(0x1e8)](_0x5e60e6[_0x10bb03(0x1e1)])?_0x18bd62[_0x10bb03(0x1e8)](_0x5e60e6['frdeC']):_0x5e60e6[_0x10bb03(0x1ee)](getPlatformVersion,_0x5e60e6[_0x10bb03(0x1df)](global[_0x10bb03(0x208)],_0x5e60e6[_0x10bb03(0x1e4)])),'browser':_0x18bd62[_0x10bb03(0x1c4)](),'browser_version':_0x18bd62[_0x10bb03(0x1eb)](),'session_id':_0x188c19[_0x10bb03(0x211)]()};global['__cloud_provider___']?_0x36eed7[global[_0x10bb03(0x208)]]=_0x2a2558:_0x36eed7[_0x5e60e6[_0x10bb03(0x1f2)]]=_0x2a2558,process[_0x10bb03(0x20f)](_0x10bb03(0x1f0)+process[_0x10bb03(0x1ba)],{'timestamp':new Date()[_0x10bb03(0x1ca)](),'level':null,'message':null,'kind':_0x5e60e6[_0x10bb03(0x20d)],'http_response':_0x36eed7,'uuid':_0x4e7b3a});}catch(_0x3f8fb3){_0x5e60e6[_0x10bb03(0x1fd)](debug,'Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20'+_0x3f8fb3);}},exports[a35_0x2b36d0(0x1f5)]=_0x24e9ba=>{const _0x28c604=a35_0x2b36d0,_0x41aa9f={};_0x41aa9f[_0x28c604(0x1fe)]=function(_0x290410,_0x3d297b){return _0x290410!==_0x3d297b;},_0x41aa9f[_0x28c604(0x212)]='hook',_0x41aa9f[_0x28c604(0x1d1)]=_0x28c604(0x1c2),_0x41aa9f[_0x28c604(0x1bb)]=_0x28c604(0x1e6);const _0x1dd1b5=_0x41aa9f,_0x13f8da=_0x24e9ba['suites']['reduce']((_0xae437d,_0xc6b1a5)=>{const _0xced087=_0x28c604,_0x23c8da=exports[_0xced087(0x1f5)](_0xc6b1a5);return _0x23c8da&&(_0xae437d=_0xae437d[_0xced087(0x1cf)](_0x23c8da)),_0xae437d;},[]),_0x2845be=_0x24e9ba[_0x28c604(0x1f6)][_0x28c604(0x206)](_0x71e497=>{const _0x8b3b6b=_0x28c604,_0x2ac767=_0x1dd1b5[_0x8b3b6b(0x1fe)](_0x71e497[_0x8b3b6b(0x1e2)],_0x1dd1b5['grwbk'])&&!_0x71e497[_0x8b3b6b(0x1c9)]&&_0x1dd1b5[_0x8b3b6b(0x1fe)](_0x71e497[_0x8b3b6b(0x1c5)],_0x1dd1b5['bNsvV'])&&_0x1dd1b5['JIVwD'](_0x71e497[_0x8b3b6b(0x1c5)],_0x1dd1b5[_0x8b3b6b(0x1bb)])&&!_0x71e497['pending'];return _0x2ac767;});return _0x2845be[_0x28c604(0x1cf)](_0x13f8da);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a36_0x5a90(_0x459387,_0xf45bb7){const _0x5bf6fb=a36_0x5bf6();return a36_0x5a90=function(_0x5a9048,_0x2ae03a){_0x5a9048=_0x5a9048-0x167;let _0x25ebf4=_0x5bf6fb[_0x5a9048];return _0x25ebf4;},a36_0x5a90(_0x459387,_0xf45bb7);}const a36_0x2db1cd=a36_0x5a90;(function(_0x4d45ef,_0x361972){const _0x4d03f9=a36_0x5a90,_0x4482c6=_0x4d45ef();while(!![]){try{const _0x5b92d9=-parseInt(_0x4d03f9(0x16c))/0x1+-parseInt(_0x4d03f9(0x20e))/0x2+parseInt(_0x4d03f9(0x1b9))/0x3*(parseInt(_0x4d03f9(0x209))/0x4)+parseInt(_0x4d03f9(0x204))/0x5+parseInt(_0x4d03f9(0x1d4))/0x6*(-parseInt(_0x4d03f9(0x1e9))/0x7)+parseInt(_0x4d03f9(0x1cb))/0x8*(parseInt(_0x4d03f9(0x1ed))/0x9)+-parseInt(_0x4d03f9(0x20b))/0xa;if(_0x5b92d9===_0x361972)break;else _0x4482c6['push'](_0x4482c6['shift']());}catch(_0x242c04){_0x4482c6['push'](_0x4482c6['shift']());}}}(a36_0x5bf6,0x1f9dd));const util=require(a36_0x2db1cd(0x183)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x2db1cd(0x1ae)),accessibilityRetryHelper=require(a36_0x2db1cd(0x1db)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x2db1cd(0x1b0)),{percyAutoCapture}=require(a36_0x2db1cd(0x193)),{sendPlatformDetails}=require(a36_0x2db1cd(0x1cf)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x2db1cd(0x19d)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x2db1cd(0x1fb)),globals=require(a36_0x2db1cd(0x1b2)),logger=require(a36_0x2db1cd(0x1a6))['winstonLogger'],{shouldProcessEventForTesthub}=require(a36_0x2db1cd(0x17f)),testHubConstants=require(a36_0x2db1cd(0x1c5));exports[a36_0x2db1cd(0x17a)]={'beforeAll'(){const _0x2d7062=a36_0x2db1cd,_0xdcdebd={'icTkY':function(_0x5090d7,_0x1c0b08,_0x208020,_0x42d186){return _0x5090d7(_0x1c0b08,_0x208020,_0x42d186);},'evTKf':'failed','CCTnm':'\x20|\x20','oMFGK':function(_0x27c01c,_0x12d427,_0x2cd826){return _0x27c01c(_0x12d427,_0x2cd826);},'qezSy':_0x2d7062(0x208),'ZQuMP':function(_0x14bc4b){return _0x14bc4b();},'kSWyb':_0x2d7062(0x1da),'PudvM':_0x2d7062(0x1dd)};PerformanceTester[_0x2d7062(0x1d8)]();const _0x442f13='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x2d7062(0x188)],()=>{const _0x54e514=_0x2d7062;global['__error_messages__']=[],global[_0x54e514(0x1af)]=![],global[_0x54e514(0x1e5)]=async()=>{const _0x26b59d=_0x54e514;let _0x2f2079=![];try{await global[_0x26b59d(0x215)][0x0][_0x26b59d(0x19e)],_0x2f2079=!![],global[_0x26b59d(0x1af)]?await _0xdcdebd[_0x26b59d(0x219)](markSessionStatus,global[_0x26b59d(0x215)][0x0],_0xdcdebd['evTKf'],global['__error_messages__'][_0x26b59d(0x1e7)](_0xdcdebd[_0x26b59d(0x1bf)])):await _0xdcdebd[_0x26b59d(0x1c0)](markSessionStatus,global[_0x26b59d(0x215)][0x0],_0xdcdebd['qezSy']);}catch(_0x4ee75a){logger['debug'](_0x26b59d(0x177)+_0x4ee75a);}global[_0x26b59d(0x1f9)]=[],global[_0x26b59d(0x1af)]=![];if(_0x2f2079)try{try{_0xdcdebd['ZQuMP'](shouldProcessEventForTesthub)&&(global[_0x26b59d(0x215)][0x0]&&await _0xdcdebd[_0x26b59d(0x1c0)](sendPlatformDetails,global[_0x26b59d(0x215)][0x0],this[_0x26b59d(0x20f)]?this[_0x26b59d(0x20f)]['testAnalyticsId']:null));}catch(_0x347a25){logger[_0x26b59d(0x1cd)](_0x26b59d(0x1ca)+_0x347a25);}await global[_0x26b59d(0x215)][0x0][_0x26b59d(0x218)]();}catch(_0x38d87e){logger[_0x26b59d(0x1cd)](_0x26b59d(0x195)+_0x38d87e);}};},{'platform':_0xdcdebd['oMFGK'](nestedKeyValue,global[_0x2d7062(0x1f1)],[_0xdcdebd[_0x2d7062(0x171)]]),'hookType':_0xdcdebd['PudvM']})();},'beforeEach'(_0x5152f5){const _0x5d46a5=a36_0x2db1cd,_0x22212a={'ujZUG':function(_0x3465fa,_0x54ba29){return _0x3465fa>_0x54ba29;},'tZLfq':function(_0x7119f9,_0x33bd89){return _0x7119f9>_0x33bd89;},'Ygvcz':'\x20-\x20','lbRDF':function(_0x5c675d,_0x292ed8,_0x252bc3){return _0x5c675d(_0x292ed8,_0x252bc3);},'EzArR':_0x5d46a5(0x1eb),'iuswr':function(_0x50215c){return _0x50215c();},'KjcNT':function(_0x2ab086,_0x17d91a){return _0x2ab086>_0x17d91a;},'FjBuv':_0x5d46a5(0x211),'RwwYl':function(_0x28cccc,_0x25f808){return _0x28cccc===_0x25f808;},'AVQiq':_0x5d46a5(0x16d),'dytzZ':function(_0x40c283,_0x55643f){return _0x40c283===_0x55643f;},'SwVPI':_0x5d46a5(0x1e6),'htRGc':_0x5d46a5(0x179),'rvByt':'Automate\x20test\x20case\x20execution\x20has\x20started.','QbFfC':_0x5d46a5(0x1a0),'aCkkv':function(_0x385e24,_0x6cab99,_0x371c41){return _0x385e24(_0x6cab99,_0x371c41);},'KHFzT':_0x5d46a5(0x1da),'SkmGs':'beforeEach'};globals['setGlobal'](_0x22212a[_0x5d46a5(0x1f4)],this[_0x5d46a5(0x20f)][_0x5d46a5(0x1b4)]()[_0x5d46a5(0x1e7)](_0x22212a['Ygvcz'])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x5d46a5(0x188)],()=>{const _0x42fede={'elfNU':function(_0x512510){return _0x22212a['iuswr'](_0x512510);}},_0x955c9a='browserstack internal helper hook';new Promise(async _0x3aee88=>{const _0x274818=a36_0x5a90;let _0x3e3d95=!![];try{_0x22212a[_0x274818(0x1a1)](global[_0x274818(0x215)][_0x274818(0x1ab)],0x1)&&(await global[_0x274818(0x1e5)](),global[_0x274818(0x215)][_0x274818(0x1e3)]()),_0x22212a[_0x274818(0x212)](global[_0x274818(0x215)][0x0]['quitCount_'],0x0)&&(_0x3e3d95=![],await global[_0x274818(0x1e5)]());}catch(_0x3f2214){logger[_0x274818(0x1cd)](_0x274818(0x195)+_0x3f2214);}try{Array[_0x274818(0x17e)](global[_0x274818(0x215)])&&global[_0x274818(0x215)][0x0]&&(global[_0x274818(0x215)][0x0][_0x274818(0x21a)]=this['currentTest']['titlePath']()[_0x274818(0x1e7)](_0x22212a[_0x274818(0x181)])),global[_0x274818(0x21a)]=this[_0x274818(0x20f)]['titlePath']()[_0x274818(0x1e7)](_0x22212a[_0x274818(0x181)]);}catch(_0x14e46f){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x14e46f);}this['currentTest'][_0x274818(0x1b7)]=_0x22212a[_0x274818(0x1f6)](shouldScanTestForAccessibility,this['currentTest'][_0x274818(0x1b4)](),!![]),globals[_0x274818(0x1b6)](_0x22212a[_0x274818(0x1b5)],this['currentTest'][_0x274818(0x1b7)]),this[_0x274818(0x20f)][_0x274818(0x197)]=!![];if(_0x22212a[_0x274818(0x213)](isAccessibilityAutomationSession)&&_0x3e3d95&&Array[_0x274818(0x17e)](global[_0x274818(0x215)])&&_0x22212a[_0x274818(0x184)](global[_0x274818(0x215)][_0x274818(0x1ab)],0x0)&&globals[_0x274818(0x1ba)](_0x22212a[_0x274818(0x1a3)]))try{const _0x31edc4=await global[_0x274818(0x215)][0x0][_0x274818(0x19e)];if(_0x31edc4){let _0x5f597c=!![];const _0x4ecd10=await global['__drivers'][0x0][_0x274818(0x20c)]();let _0x38d2e9;try{_0x38d2e9=new URL(_0x4ecd10);}catch(_0x41a81c){_0x5f597c=![];}_0x5f597c=_0x22212a[_0x274818(0x173)](_0x38d2e9[_0x274818(0x1a4)],_0x22212a['AVQiq'])||_0x22212a[_0x274818(0x1f7)](_0x38d2e9[_0x274818(0x1a4)],_0x22212a['SwVPI']),_0x5f597c&&(this['currentTest'][_0x274818(0x1b7)]&&logger[_0x274818(0x1c9)](_0x22212a['htRGc'])),this['currentTest'][_0x274818(0x197)]=this[_0x274818(0x20f)][_0x274818(0x1b7)],this[_0x274818(0x20f)]['shouldScanTestForAccessibility']&&logger[_0x274818(0x1c9)](_0x22212a[_0x274818(0x210)]);}}catch(_0xc50815){logger[_0x274818(0x1f3)](_0x274818(0x16a)+util[_0x274818(0x1d0)](_0xc50815));}_0x22212a[_0x274818(0x213)](_0x3aee88);})['then'](()=>{const _0x63716e=a36_0x5a90;_0x42fede[_0x63716e(0x17d)](_0x5152f5);});},{'platform':_0x22212a[_0x5d46a5(0x1df)](nestedKeyValue,global[_0x5d46a5(0x1f1)],[_0x22212a['KHFzT']]),'hookType':_0x22212a[_0x5d46a5(0x1ce)]})();},'afterEach'(_0x4855b9){const _0x4ad50b=a36_0x2db1cd,_0x593f28={'PFWZo':function(_0x111758,_0x3e1ecb){return _0x111758!==_0x3e1ecb;},'rdKLZ':'passed','ZvMir':function(_0x4d4857,_0x3e9b0f,_0x427d87){return _0x4d4857(_0x3e9b0f,_0x427d87);},'bLyHn':function(_0x4a0d3b,_0x565df1){return _0x4a0d3b+_0x565df1;},'klKpP':'Failed:\x20','EndpM':_0x4ad50b(0x1f3),'Opypy':'Passed','QZaPA':_0x4ad50b(0x1c9),'BzzES':_0x4ad50b(0x1ec),'rxqWZ':function(_0x612de1,_0x3c67b8){return _0x612de1>_0x3c67b8;},'MnNys':function(_0x713f12,_0x58cb5e){return _0x713f12===_0x58cb5e;},'AsfDY':_0x4ad50b(0x196),'yllBO':_0x4ad50b(0x1ef),'NrwCL':function(_0x31b058,_0x9ac685,_0x447195,_0x420da3){return _0x31b058(_0x9ac685,_0x447195,_0x420da3);},'PQwdH':_0x4ad50b(0x211),'DiRWc':_0x4ad50b(0x1eb),'pSAWX':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','DrILO':_0x4ad50b(0x1c1),'hrIAs':'afterTest','joAIX':_0x4ad50b(0x1fa),'lYlWP':_0x4ad50b(0x167),'GwaLl':_0x4ad50b(0x1d9),'EisWP':_0x4ad50b(0x1a2),'rjHMz':_0x4ad50b(0x189),'ErWnL':function(_0x45bc5d){return _0x45bc5d();},'PpCTw':function(_0x3ca4b7,_0x54caef,_0x32b5a0){return _0x3ca4b7(_0x54caef,_0x32b5a0);},'ZbEZp':_0x4ad50b(0x1cd),'rfEzI':function(_0x2f5b9d){return _0x2f5b9d();},'pBlKN':'Mocha','zkCNH':_0x4ad50b(0x1da),'OvJnC':_0x4ad50b(0x182)},_0x80e09e='browserstack internal helper hook';this[_0x4ad50b(0x1be)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x593f28['pBlKN']]),global[_0x4ad50b(0x170)]=this['currentTest']['titlePath']()[_0x4ad50b(0x1e7)](_0x593f28[_0x4ad50b(0x205)]),PerformanceTester[_0x4ad50b(0x1e8)](PerformanceSdkEvents[_0x4ad50b(0x188)],()=>{const _0x4a568c=_0x4ad50b,_0x47392a={'ddDgj':function(_0x127aa3,_0x2bf919){const _0x47a1ba=a36_0x5a90;return _0x593f28[_0x47a1ba(0x1e0)](_0x127aa3,_0x2bf919);},'PLXKE':_0x593f28[_0x4a568c(0x192)],'KQaTC':function(_0x1855d0,_0x346f7b,_0x480847){const _0x2981af=_0x4a568c;return _0x593f28[_0x2981af(0x187)](_0x1855d0,_0x346f7b,_0x480847);},'GrDeV':function(_0x1b0e68,_0x8bdf1c){return _0x593f28['bLyHn'](_0x1b0e68,_0x8bdf1c);},'HlgzD':_0x593f28['klKpP'],'qxfRs':_0x593f28[_0x4a568c(0x217)],'oJQWb':function(_0x55cd88,_0x318cfc,_0x14b8ad){return _0x593f28['ZvMir'](_0x55cd88,_0x318cfc,_0x14b8ad);},'IiZDO':_0x593f28['Opypy'],'LlJYC':_0x593f28[_0x4a568c(0x20d)],'GTgPB':_0x593f28[_0x4a568c(0x205)],'NWMQS':function(_0x375e56,_0x59b631){const _0x45c4de=_0x4a568c;return _0x593f28[_0x45c4de(0x1f8)](_0x375e56,_0x59b631);},'BDleN':function(_0x177a75,_0x418cc2){return _0x593f28['MnNys'](_0x177a75,_0x418cc2);},'xBaaT':_0x593f28[_0x4a568c(0x202)],'OKceR':function(_0x38d54c,_0x67fb04){return _0x593f28['rxqWZ'](_0x38d54c,_0x67fb04);},'TfBnw':_0x593f28[_0x4a568c(0x1f2)],'VQJJj':function(_0x355cf9,_0x4d1aa2,_0x5c2f29,_0x197c38){const _0x3c1e78=_0x4a568c;return _0x593f28[_0x3c1e78(0x174)](_0x355cf9,_0x4d1aa2,_0x5c2f29,_0x197c38);},'vjHBB':_0x593f28['PQwdH'],'oBaQw':_0x593f28[_0x4a568c(0x1ff)],'WtITp':_0x593f28[_0x4a568c(0x186)],'KjSIo':_0x593f28['DrILO'],'AZADG':_0x593f28[_0x4a568c(0x19b)],'mXhsX':_0x593f28[_0x4a568c(0x1b8)],'qXQoD':_0x593f28[_0x4a568c(0x1fe)],'XHnNW':_0x593f28[_0x4a568c(0x1d2)],'hHaPk':_0x593f28[_0x4a568c(0x1c4)],'kDwZN':_0x593f28['rjHMz'],'ZVOKP':function(_0xfec68a){const _0x11e007=_0x4a568c;return _0x593f28[_0x11e007(0x1b3)](_0xfec68a);},'nSajx':function(_0x87bb5e,_0x40b8f4,_0x54611b){const _0xa7829e=_0x4a568c;return _0x593f28[_0xa7829e(0x191)](_0x87bb5e,_0x40b8f4,_0x54611b);},'mXCmk':_0x593f28[_0x4a568c(0x1c3)],'qHzbk':function(_0x4bafbd){const _0x1bc982=_0x4a568c;return _0x593f28[_0x1bc982(0x1cc)](_0x4bafbd);},'mgDrY':function(_0x52b583){const _0x50caad=_0x4a568c;return _0x593f28[_0x50caad(0x1cc)](_0x52b583);}},_0x5a4abd=async(_0x32ccd1,_0x152b86)=>{const _0x5ebcb2=_0x4a568c;await global[_0x5ebcb2(0x215)][0x0][_0x5ebcb2(0x207)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x32ccd1+_0x5ebcb2(0x18d)+_0x152b86+_0x5ebcb2(0x20a));};new Promise(async _0x203b4=>{const _0x57da98=_0x4a568c,_0x340a0e={};_0x340a0e[_0x57da98(0x1a9)]=_0x47392a[_0x57da98(0x168)];const _0x38a0da=_0x340a0e;try{_0x47392a[_0x57da98(0x1ad)](global[_0x57da98(0x215)]['length'],0x1)&&(await global[_0x57da98(0x1e5)](),global[_0x57da98(0x215)][_0x57da98(0x1e3)](),global[_0x57da98(0x1f9)]=[],global[_0x57da98(0x1af)]=![]);try{if(global['percy']&&_0x47392a[_0x57da98(0x1f0)](global[_0x57da98(0x214)],_0x47392a['xBaaT'])&&global[_0x57da98(0x215)][0x0]){const _0x20fd2f=_0x47392a[_0x57da98(0x18f)](global[_0x57da98(0x1e2)][_0x57da98(0x1ab)],0x0)?!!global['capabilities'][0x0]['app']||!!global['capabilities'][0x0][_0x47392a[_0x57da98(0x1d5)]]:![],_0x3950c4={};_0x3950c4['app']=_0x20fd2f,await _0x47392a['VQJJj'](percyAutoCapture,global[_0x57da98(0x215)][0x0],_0x47392a[_0x57da98(0x190)],_0x3950c4);}}catch(_0x36997b){logger[_0x57da98(0x1cd)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x36997b);}!global[_0x57da98(0x176)]&&(await PerformanceTester[_0x57da98(0x1e8)](PerformanceAutEvents[_0x57da98(0x1fd)],async()=>{const _0x142d54=_0x57da98;await global[_0x142d54(0x215)][0x0][_0x142d54(0x207)]('browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20'+JSON[_0x142d54(0x1bb)](this[_0x142d54(0x20f)][_0x142d54(0x1b4)]()[_0x142d54(0x1e7)](_0x38a0da['auKIl']))+'}}');})(),global[_0x57da98(0x215)][0x0][_0x57da98(0x1c2)]=!![]),await PerformanceTester[_0x57da98(0x1e8)](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x497ee6=_0x57da98,_0x164f67=_0x47392a[_0x497ee6(0x216)](this[_0x497ee6(0x20f)][_0x497ee6(0x1d1)],_0x47392a['PLXKE']);_0x164f67?(global[_0x497ee6(0x1af)]=!![],global[_0x497ee6(0x1f9)][_0x497ee6(0x1d7)](this[_0x497ee6(0x20f)]['err'][_0x497ee6(0x1aa)]),await _0x47392a[_0x497ee6(0x203)](_0x5a4abd,JSON[_0x497ee6(0x1bb)](_0x47392a[_0x497ee6(0x1bc)](_0x47392a['HlgzD'],this[_0x497ee6(0x20f)][_0x497ee6(0x1ea)][_0x497ee6(0x1aa)])),_0x47392a['qxfRs'])):await _0x47392a['oJQWb'](_0x5a4abd,JSON[_0x497ee6(0x1bb)](_0x47392a['IiZDO']),_0x47392a[_0x497ee6(0x1c6)]);})();}catch(_0x1bb685){logger[_0x57da98(0x1cd)](_0x57da98(0x1d6)+_0x1bb685);}try{if(this[_0x57da98(0x20f)][_0x57da98(0x197)]&&globals['getGlobal'](_0x47392a[_0x57da98(0x1fc)])&&globals[_0x57da98(0x1ba)](_0x47392a['oBaQw'])){logger['info'](_0x47392a['WtITp']);const _0x5884a3={};_0x5884a3[_0x57da98(0x1f5)]=this[_0x57da98(0x20f)]['testAnalyticsId'],_0x5884a3['thBuildUuid']=process[_0x57da98(0x1bd)][testHubConstants[_0x57da98(0x1ac)][_0x57da98(0x1a5)]],_0x5884a3[_0x57da98(0x1ee)]=process[_0x57da98(0x1bd)][testHubConstants[_0x57da98(0x1ac)][_0x57da98(0x18c)]];const _0x1e740d=_0x5884a3;logger[_0x57da98(0x1cd)](_0x57da98(0x198)+JSON[_0x57da98(0x1bb)](_0x1e740d)),logger['debug'](_0x47392a['KjSIo']);const _0x179ec5={};_0x179ec5[_0x57da98(0x18b)]=_0x47392a[_0x57da98(0x1a8)];const _0x2e7b35=await PerformanceTester[_0x57da98(0x1e8)](PerformanceA11yEvents[_0x57da98(0x18e)],async()=>{const _0x28d13e=_0x57da98;return await accessibilityRetryHelper[_0x28d13e(0x1b1)](global[_0x28d13e(0x215)][0x0],global['browserstackSessionName']);},_0x179ec5)();_0x2e7b35?logger[_0x57da98(0x1cd)](_0x47392a[_0x57da98(0x1c8)]):logger[_0x57da98(0x19f)](_0x47392a[_0x57da98(0x16b)]);const _0x553b94=await PerformanceTester[_0x57da98(0x1e8)](PerformanceA11yEvents[_0x57da98(0x185)],async()=>{const _0x5774e7=_0x57da98;return await accessibilityRetryHelper[_0x5774e7(0x17c)](global[_0x5774e7(0x215)][0x0],_0x1e740d);})();_0x553b94?logger[_0x57da98(0x1cd)](_0x47392a['XHnNW']):logger[_0x57da98(0x19f)](_0x47392a[_0x57da98(0x194)]),logger[_0x57da98(0x1c9)](_0x47392a[_0x57da98(0x1c7)]);}}catch(_0xb4c94b){logger[_0x57da98(0x1f3)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this['currentTest'][_0x57da98(0x1b4)]()+'.\x20Error\x20:',_0xb4c94b);}try{try{if(_0x47392a[_0x57da98(0x17b)](shouldProcessEventForTesthub)){global[_0x57da98(0x215)][0x0]&&await _0x47392a[_0x57da98(0x169)](sendPlatformDetails,global[_0x57da98(0x215)][0x0],this[_0x57da98(0x20f)]?this[_0x57da98(0x20f)][_0x57da98(0x1e1)]:null);if(_0x47392a['ZVOKP'](isBrowserstackInfra)){PerformanceTester[_0x57da98(0x206)](PerformanceO11yEvents[_0x57da98(0x18a)]);const _0x22cdf3=_0x57da98(0x175)+Date[_0x57da98(0x19a)]();await _0x47392a[_0x57da98(0x180)](_0x5a4abd,JSON[_0x57da98(0x1bb)](_0x22cdf3),_0x47392a[_0x57da98(0x1de)]),PerformanceTester[_0x57da98(0x16e)](PerformanceO11yEvents[_0x57da98(0x18a)]);}}}catch(_0x1ccee0){logger['debug']('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x1ccee0),PerformanceTester[_0x57da98(0x16e)](PerformanceO11yEvents[_0x57da98(0x18a)],![],_0x1ccee0);}_0x47392a['NWMQS'](global[_0x57da98(0x215)][0x0][_0x57da98(0x178)],0x0)&&await global[_0x57da98(0x1e5)]();}catch(_0x11a8ac){logger['debug'](_0x57da98(0x195)+_0x11a8ac);}_0x47392a[_0x57da98(0x1e4)](_0x203b4);})[_0x4a568c(0x1a7)](()=>{const _0x4e68ae=_0x4a568c;_0x47392a[_0x4e68ae(0x1d3)](_0x4855b9);});},{'platform':_0x593f28['PpCTw'](nestedKeyValue,global[_0x4ad50b(0x1f1)],[_0x593f28['zkCNH']]),'hookType':_0x593f28[_0x4ad50b(0x172)]})();},'afterAll'(_0x50cb77){const _0x34113d=a36_0x2db1cd,_0xf14435={'qelwf':function(_0x4b3d14){return _0x4b3d14();},'AXHCb':function(_0x402b46){return _0x402b46();},'PBkYs':'Mocha','NdJZZ':function(_0x1f73bf,_0x3794aa,_0x3b1880){return _0x1f73bf(_0x3794aa,_0x3b1880);},'FRFuy':_0x34113d(0x1da),'hrrRF':_0x34113d(0x200)},_0x272cf9='browserstack internal helper hook';this[_0x34113d(0x1be)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xf14435[_0x34113d(0x16f)]]),PerformanceTester[_0x34113d(0x1e8)](PerformanceSdkEvents[_0x34113d(0x188)],()=>{const _0x4748b7=_0x34113d,_0x210343={'oSGJw':function(_0x545cda){return _0xf14435['AXHCb'](_0x545cda);}};new Promise(async _0x5c200d=>{const _0x760184=a36_0x5a90;await global[_0x760184(0x1e5)](),_0x210343['oSGJw'](_0x5c200d);})[_0x4748b7(0x1a7)]()[_0x4748b7(0x1dc)](()=>{const _0x494ceb=_0x4748b7;_0xf14435[_0x494ceb(0x19c)](_0x50cb77);});},{'platform':_0xf14435[_0x34113d(0x201)](nestedKeyValue,global[_0x34113d(0x1f1)],[_0xf14435['FRFuy']]),'hookType':_0xf14435[_0x34113d(0x199)]})();}};function a36_0x5bf6(){const _0x416581=['mgDrY','18jEowhX','TfBnw','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','push','startMonitoring','Accessibility\x20results\x20saved\x20successfully','index','../../helpers/accessibility-automation/accessibilityRetryHelper','finally','beforeAll','mXCmk','aCkkv','PFWZo','testAnalyticsId','capabilities','shift','qHzbk','driverCleanup','https:','join','measureWrapper','548919kbOobj','err','bstackA11yShouldScan','\x20-\x20','657yzZRYI','thJwtToken','appium:app','BDleN','__platformCaps','yllBO','error','QbFfC','thTestRunUuid','lbRDF','dytzZ','rxqWZ','__error_messages__','Accessibility\x20scan\x20completed\x20successfully','../../helpers/performance/constants','vjHBB','SESSION_NAME','lYlWP','DiRWc','afterAll','NdJZZ','AsfDY','KQaTC','1186140ZKNvHz','BzzES','start','executeScript','passed','8RPfxOt','\x22}}','865700UvTGtm','getCurrentUrl','QZaPA','173338fFqlUZ','currentTest','rvByt','isAccessibilityPlatform','tZLfq','iuswr','percyCaptureMode','__drivers','ddDgj','EndpM','initQuit','icTkY','browserstackSessionName','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','GTgPB','oJQWb','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','qXQoD','159747hyWwxs','http:','end','PBkYs','sessionName','kSWyb','OvJnC','RwwYl','NrwCL','ObservabilitySync:','__skipSessionName','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','quitCount_','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','mochaHooks','ZVOKP','saveAccessibilityResultsWithRetry','elfNU','isArray','../../helpers/testhub/utils','nSajx','Ygvcz','afterEach','util','KjcNT','SAVE_RESULTS','pSAWX','ZvMir','SDK_HOOK','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','SYNC','command','BROWSERSTACK_TESTHUB_JWT',',\x22level\x22:\x20\x22','PERFORM_SCAN','OKceR','xBaaT','PpCTw','rdKLZ','../../helpers/percy/utils','hHaPk','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','testcase','accessibilityScanStarted','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','hrrRF','now','hrIAs','qelwf','../../helpers/performance/performance-tester','session_','warn','browserstackTestName','ujZUG','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','FjBuv','protocol','BROWSERSTACK_TESTHUB_UUID','../../helpers/logger','then','AZADG','auKIl','message','length','ENV_VAR','NWMQS','../../helpers/accessibility-automation/helper','__sessionFailed','../utils/constants','performScanWithRetry','../../helpers/globals','ErWnL','titlePath','EzArR','setGlobal','shouldScanTestForAccessibility','joAIX','329634SweCEt','getGlobal','stringify','GrDeV','env','timeout','CCTnm','oMFGK','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','sessionNameSet__','ZbEZp','EisWP','../../helpers/testhub/constants','LlJYC','kDwZN','mXhsX','info','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','26384iRQMZs','rfEzI','debug','SkmGs','./test-observability/mochaUtils','format','state','GwaLl'];a36_0x5bf6=function(){return _0x416581;};return a36_0x5bf6();}
|
|
1
|
+
function a36_0x34fb(){const _0x254c81=['FBqRP','then','../utils/constants','yQQck','start','4036797uqqeml','timeout','getCurrentUrl','XAqTZ','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','__skipSessionName','YUfIS','Accessibility\x20scan\x20completed\x20successfully','HdEBa','../../helpers/accessibility-automation/helper','testAnalyticsId','gBdZg','Shxsy','60890pllYMe','hddKv','\x22}}','SAVE_RESULTS','UpcNQ','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','PERFORM_SCAN','util','appium:app','dAvuf','length','performScanWithRetry','http:','Accessibility\x20results\x20saved\x20successfully','err','vtbYc','dbQlp','winstonLogger','__drivers','1169247GygIXd','SBHXr','MLqjP','beforeEach','HjXfH','GyCih','sessionNameSet__','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','VpdNW','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','executeScript',',\x22level\x22:\x20\x22','../../helpers/performance/performance-tester','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','AybMq','QVXZB','kyrfv','oBfVz','CdZkl','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','bstackA11yShouldScan','quitCount_','afterTest','../../helpers/performance/constants','../../helpers/logger','fKyRP','measureWrapper','driverCleanup','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','state','__error_messages__','currentTest','isArray','stringify','ObservabilitySync:','end','40FaEYJx','shift','Yqaqx','sessionName','\x20-\x20','xozkW','now','initQuit','__sessionFailed','testcase','index','protocol','WQeeV','TJlhW','../../helpers/testhub/constants','xRGuJ','thTestRunUuid','hEFxQ','Failed\x20to\x20store\x20session\x20name:\x20','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','rrlhp','../../helpers/accessibility-automation/accessibilityRetryHelper','GbiIe','84PskquN','4WFvHgc','format','percyCaptureMode','../../helpers/testhub/utils','mochaHooks','join','SDK_HOOK','warn','nGLnM','LWABf','XSPHM','7glrMyv','../../helpers/globals','accessibilityScanStarted','SYNC','1246135UNFlvT','startMonitoring','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','getGlobal','TdbQa','afterEach','isAccessibilityPlatform','SLavJ','finally','setGlobal','440924oKnnCa','YzbxS','354480SJeszz','failed','RJnni','SESSION_NAME','error','pQOBV','kSezj','CQtEO','fzQTd','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','percy','2642872mjnsTx','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','env','pgPJR','__platformCaps','passed','qUwCb','../../helpers/percy/utils','Failed:\x20','debug','info','afterAll','Mocha','titlePath','VIfou','hnvTi','shouldScanTestForAccessibility','TJZIz','qrQJO','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','push','jDVPg','yqtih','session_','message','./test-observability/mochaUtils','Automate\x20test\x20case\x20execution\x20has\x20started.','mfBFU','pswKG','capabilities','browserstackTestName','browserstackSessionName'];a36_0x34fb=function(){return _0x254c81;};return a36_0x34fb();}const a36_0x1a44e5=a36_0x58cc;(function(_0x1174bf,_0x264e72){const _0x23fc7c=a36_0x58cc,_0x472ec4=_0x1174bf();while(!![]){try{const _0x38269b=parseInt(_0x23fc7c(0x22d))/0x1+-parseInt(_0x23fc7c(0x22b))/0x2+parseInt(_0x23fc7c(0x1d5))/0x3*(-parseInt(_0x23fc7c(0x211))/0x4)+parseInt(_0x23fc7c(0x26a))/0x5*(parseInt(_0x23fc7c(0x210))/0x6)+-parseInt(_0x23fc7c(0x21c))/0x7*(-parseInt(_0x23fc7c(0x238))/0x8)+parseInt(_0x23fc7c(0x25d))/0x9+-parseInt(_0x23fc7c(0x1f9))/0xa*(parseInt(_0x23fc7c(0x220))/0xb);if(_0x38269b===_0x264e72)break;else _0x472ec4['push'](_0x472ec4['shift']());}catch(_0x4e77bb){_0x472ec4['push'](_0x472ec4['shift']());}}}(a36_0x34fb,0x3ab81));function a36_0x58cc(_0xfadf1c,_0x30fa6c){const _0x34fbb0=a36_0x34fb();return a36_0x58cc=function(_0x58ccad,_0x3dce8a){_0x58ccad=_0x58ccad-0x1c9;let _0x2a02a3=_0x34fbb0[_0x58ccad];return _0x2a02a3;},a36_0x58cc(_0xfadf1c,_0x30fa6c);}const util=require(a36_0x1a44e5(0x1c9)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x1a44e5(0x266)),accessibilityRetryHelper=require(a36_0x1a44e5(0x20e)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x1a44e5(0x25a)),{percyAutoCapture}=require(a36_0x1a44e5(0x23f)),{sendPlatformDetails}=require(a36_0x1a44e5(0x251)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x1a44e5(0x1e1)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x1a44e5(0x1ec)),globals=require(a36_0x1a44e5(0x21d)),logger=require(a36_0x1a44e5(0x1ed))[a36_0x1a44e5(0x1d3)],{shouldProcessEventForTesthub}=require(a36_0x1a44e5(0x214)),testHubConstants=require(a36_0x1a44e5(0x207));exports[a36_0x1a44e5(0x215)]={'beforeAll'(){const _0x3d26b6=a36_0x1a44e5,_0x47e785={'VpdNW':function(_0x2e96bd,_0x4afc05,_0x2d2a33,_0x3d825c){return _0x2e96bd(_0x4afc05,_0x2d2a33,_0x3d825c);},'xRGuJ':_0x3d26b6(0x22e),'hEFxQ':'\x20|\x20','YzbxS':function(_0x2cc670,_0x1e68c3,_0x111ca4){return _0x2cc670(_0x1e68c3,_0x111ca4);},'dbQlp':_0x3d26b6(0x23d),'dAvuf':function(_0x576f0a){return _0x576f0a();},'HdEBa':function(_0x436f8d,_0x20dfd0,_0x338922){return _0x436f8d(_0x20dfd0,_0x338922);},'yQQck':_0x3d26b6(0x203),'RJnni':'beforeAll'};PerformanceTester[_0x3d26b6(0x221)]();const _0x41e550='browserstack internal helper hook';PerformanceTester[_0x3d26b6(0x1ef)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x465464=_0x3d26b6;global[_0x465464(0x1f3)]=[],global[_0x465464(0x201)]=![],global[_0x465464(0x1f0)]=async()=>{const _0x1193f0=_0x465464;let _0xd5c174=![];try{await global[_0x1193f0(0x1d4)][0x0][_0x1193f0(0x24f)],_0xd5c174=!![],global['__sessionFailed']?await _0x47e785[_0x1193f0(0x1dd)](markSessionStatus,global[_0x1193f0(0x1d4)][0x0],_0x47e785[_0x1193f0(0x208)],global[_0x1193f0(0x1f3)]['join'](_0x47e785[_0x1193f0(0x20a)])):await _0x47e785[_0x1193f0(0x22c)](markSessionStatus,global[_0x1193f0(0x1d4)][0x0],_0x47e785[_0x1193f0(0x1d2)]);}catch(_0x505830){logger['debug'](_0x1193f0(0x1e2)+_0x505830);}global[_0x1193f0(0x1f3)]=[],global[_0x1193f0(0x201)]=![];if(_0xd5c174)try{try{_0x47e785[_0x1193f0(0x1cb)](shouldProcessEventForTesthub)&&(global[_0x1193f0(0x1d4)][0x0]&&await _0x47e785[_0x1193f0(0x22c)](sendPlatformDetails,global[_0x1193f0(0x1d4)][0x0],this[_0x1193f0(0x1f4)]?this['currentTest'][_0x1193f0(0x267)]:null));}catch(_0x32376d){logger['debug'](_0x1193f0(0x20c)+_0x32376d);}await global['__drivers'][0x0][_0x1193f0(0x200)]();}catch(_0x1237cb){logger[_0x1193f0(0x241)](_0x1193f0(0x222)+_0x1237cb);}};},{'platform':_0x47e785[_0x3d26b6(0x265)](nestedKeyValue,global[_0x3d26b6(0x23c)],[_0x47e785[_0x3d26b6(0x25b)]]),'hookType':_0x47e785[_0x3d26b6(0x22f)]})();},'beforeEach'(_0x5b420b){const _0x37c86e=a36_0x1a44e5,_0x494d20={'qUwCb':function(_0xf3d274,_0xee9c0c){return _0xf3d274>_0xee9c0c;},'UpcNQ':_0x37c86e(0x1fd),'pgPJR':function(_0x4dac0d,_0x1709c4,_0x33f529){return _0x4dac0d(_0x1709c4,_0x33f529);},'CQtEO':_0x37c86e(0x1e9),'SLavJ':function(_0x32c242){return _0x32c242();},'rrlhp':'isAccessibilityPlatform','hBfQL':function(_0x55ca96,_0x30349f){return _0x55ca96===_0x30349f;},'ogzlR':_0x37c86e(0x1ce),'rvMvT':'https:','ZBKje':_0x37c86e(0x239),'ttSYH':_0x37c86e(0x252),'WQeeV':_0x37c86e(0x256),'kzUqP':_0x37c86e(0x203),'hnvTi':_0x37c86e(0x1d8)};globals[_0x37c86e(0x22a)](_0x494d20[_0x37c86e(0x205)],this[_0x37c86e(0x1f4)]['titlePath']()[_0x37c86e(0x216)](_0x494d20[_0x37c86e(0x26e)])),PerformanceTester[_0x37c86e(0x1ef)](PerformanceSdkEvents[_0x37c86e(0x217)],()=>{const _0x3609f2=_0x37c86e,_0x24edb6={'VIfou':function(_0x20d253){const _0x3d92e6=a36_0x58cc;return _0x494d20[_0x3d92e6(0x228)](_0x20d253);}},_0x503a88='browserstack internal helper hook';new Promise(async _0x30b450=>{const _0x3d1487=a36_0x58cc;let _0x4493fb=!![];try{_0x494d20['qUwCb'](global['__drivers'][_0x3d1487(0x1cc)],0x1)&&(await global[_0x3d1487(0x1f0)](),global[_0x3d1487(0x1d4)][_0x3d1487(0x1fa)]()),_0x494d20[_0x3d1487(0x23e)](global['__drivers'][0x0][_0x3d1487(0x1ea)],0x0)&&(_0x4493fb=![],await global[_0x3d1487(0x1f0)]());}catch(_0xd7c9b9){logger['debug'](_0x3d1487(0x222)+_0xd7c9b9);}try{Array[_0x3d1487(0x1f5)](global[_0x3d1487(0x1d4)])&&global[_0x3d1487(0x1d4)][0x0]&&(global[_0x3d1487(0x1d4)][0x0][_0x3d1487(0x257)]=this[_0x3d1487(0x1f4)]['titlePath']()['join'](_0x494d20[_0x3d1487(0x26e)])),global['browserstackSessionName']=this[_0x3d1487(0x1f4)][_0x3d1487(0x245)]()[_0x3d1487(0x216)](_0x494d20[_0x3d1487(0x26e)]);}catch(_0x439db1){logger[_0x3d1487(0x241)](_0x3d1487(0x20b)+_0x439db1);}this[_0x3d1487(0x1f4)][_0x3d1487(0x248)]=_0x494d20[_0x3d1487(0x23b)](shouldScanTestForAccessibility,this[_0x3d1487(0x1f4)]['titlePath'](),!![]),globals[_0x3d1487(0x22a)](_0x494d20[_0x3d1487(0x234)],this[_0x3d1487(0x1f4)][_0x3d1487(0x248)]),this['currentTest'][_0x3d1487(0x21e)]=!![];if(_0x494d20[_0x3d1487(0x228)](isAccessibilityAutomationSession)&&_0x4493fb&&Array[_0x3d1487(0x1f5)](global[_0x3d1487(0x1d4)])&&_0x494d20['qUwCb'](global[_0x3d1487(0x1d4)][_0x3d1487(0x1cc)],0x0)&&globals[_0x3d1487(0x224)](_0x494d20[_0x3d1487(0x20d)]))try{const _0x3b42ad=await global[_0x3d1487(0x1d4)][0x0]['session_'];if(_0x3b42ad){let _0x4c087a=!![];const _0x59bcf2=await global[_0x3d1487(0x1d4)][0x0][_0x3d1487(0x25f)]();let _0x59af24;try{_0x59af24=new URL(_0x59bcf2);}catch(_0x5b25e6){_0x4c087a=![];}_0x4c087a=_0x494d20['hBfQL'](_0x59af24['protocol'],_0x494d20['ogzlR'])||_0x494d20['hBfQL'](_0x59af24[_0x3d1487(0x204)],_0x494d20['rvMvT']),_0x4c087a&&(this[_0x3d1487(0x1f4)]['shouldScanTestForAccessibility']&&logger[_0x3d1487(0x242)](_0x494d20['ZBKje'])),this['currentTest'][_0x3d1487(0x21e)]=this[_0x3d1487(0x1f4)][_0x3d1487(0x248)],this[_0x3d1487(0x1f4)]['shouldScanTestForAccessibility']&&logger[_0x3d1487(0x242)](_0x494d20['ttSYH']);}}catch(_0x968acb){logger[_0x3d1487(0x231)](_0x3d1487(0x236)+util[_0x3d1487(0x212)](_0x968acb));}_0x494d20[_0x3d1487(0x228)](_0x30b450);})[_0x3609f2(0x259)](()=>{const _0xaab5ef=_0x3609f2;_0x24edb6[_0xaab5ef(0x246)](_0x5b420b);});},{'platform':_0x494d20[_0x37c86e(0x23b)](nestedKeyValue,global[_0x37c86e(0x23c)],[_0x494d20['kzUqP']]),'hookType':_0x494d20[_0x37c86e(0x247)]})();},'afterEach'(_0x5ab2e7){const _0xe1b942=a36_0x1a44e5,_0xce19d1={'nGLnM':_0xe1b942(0x1fd),'fKyRP':function(_0x196b8c,_0x143ac5){return _0x196b8c>_0x143ac5;},'GbiIe':function(_0x9261b0,_0x4f849a){return _0x9261b0===_0x4f849a;},'fzQTd':_0xe1b942(0x202),'vtbYc':function(_0x5853c5,_0x51ace7){return _0x5853c5>_0x51ace7;},'pMfXn':_0xe1b942(0x1ca),'Shxsy':function(_0x4a6a23,_0x4ccfc9,_0x3473ec,_0x288dd3){return _0x4a6a23(_0x4ccfc9,_0x3473ec,_0x288dd3);},'Wmbqo':_0xe1b942(0x227),'oBfVz':'bstackA11yShouldScan','ljylP':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','YUfIS':'Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','mjCYa':_0xe1b942(0x1eb),'yqtih':_0xe1b942(0x264),'GZMFn':_0xe1b942(0x1f1),'HjXfH':_0xe1b942(0x1cf),'ZyjjH':_0xe1b942(0x26f),'jDVPg':_0xe1b942(0x261),'qrQJO':function(_0x162de9){return _0x162de9();},'kyrfv':function(_0x29b14b,_0x51a050,_0x45361e){return _0x29b14b(_0x51a050,_0x45361e);},'Yqaqx':function(_0xe7dfca){return _0xe7dfca();},'wxSYV':'debug','MLqjP':function(_0x2fbbef){return _0x2fbbef();},'TJlhW':function(_0x2bd9e0,_0x5b0f0d){return _0x2bd9e0!==_0x5b0f0d;},'nrQUD':'passed','KelPl':function(_0x405b1d,_0x35af5b){return _0x405b1d+_0x35af5b;},'BWNvj':_0xe1b942(0x240),'DMxeD':_0xe1b942(0x231),'HIVLj':'Passed','QVXZB':_0xe1b942(0x242),'hddKv':_0xe1b942(0x244),'pQOBV':function(_0x336261,_0x330b0c,_0x1dca17){return _0x336261(_0x330b0c,_0x1dca17);},'LCTlm':_0xe1b942(0x203),'cBZTj':_0xe1b942(0x226)},_0x55719a='browserstack internal helper hook';this[_0xe1b942(0x25e)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xce19d1[_0xe1b942(0x26b)]]),global[_0xe1b942(0x1fc)]=this[_0xe1b942(0x1f4)][_0xe1b942(0x245)]()['join'](_0xce19d1['nGLnM']),PerformanceTester[_0xe1b942(0x1ef)](PerformanceSdkEvents[_0xe1b942(0x217)],()=>{const _0x831221=_0xe1b942,_0x2f0e15={'GyCih':function(_0x4c4b21,_0x4a402c){const _0x10dcff=a36_0x58cc;return _0xce19d1[_0x10dcff(0x206)](_0x4c4b21,_0x4a402c);},'mfBFU':_0xce19d1['nrQUD'],'XAqTZ':function(_0xad909b,_0x324a31,_0x319a9a){return _0xce19d1['kyrfv'](_0xad909b,_0x324a31,_0x319a9a);},'TJZIz':function(_0x56b33d,_0x45ef70){return _0xce19d1['KelPl'](_0x56b33d,_0x45ef70);},'pswKG':_0xce19d1['BWNvj'],'SBHXr':_0xce19d1['DMxeD'],'CdZkl':function(_0x424b03,_0x425a26,_0x5dd8bd){return _0xce19d1['kyrfv'](_0x424b03,_0x425a26,_0x5dd8bd);},'kSezj':_0xce19d1['HIVLj'],'FBqRP':_0xce19d1[_0x831221(0x1e4)],'xozkW':function(_0x58e85d){const _0x506fc1=_0x831221;return _0xce19d1[_0x506fc1(0x24a)](_0x58e85d);}},_0xf94112=async(_0x554e95,_0x4b327f)=>{const _0x3cb6e6=_0x831221;await global[_0x3cb6e6(0x1d4)][0x0]['executeScript'](_0x3cb6e6(0x1dc)+_0x554e95+_0x3cb6e6(0x1e0)+_0x4b327f+_0x3cb6e6(0x26c));};new Promise(async _0x507d7b=>{const _0x519ddd=_0x831221,_0x43cab0={};_0x43cab0[_0x519ddd(0x21b)]=_0xce19d1[_0x519ddd(0x219)];const _0x28c21c=_0x43cab0;try{_0xce19d1[_0x519ddd(0x1ee)](global['__drivers']['length'],0x1)&&(await global[_0x519ddd(0x1f0)](),global[_0x519ddd(0x1d4)][_0x519ddd(0x1fa)](),global[_0x519ddd(0x1f3)]=[],global[_0x519ddd(0x201)]=![]);try{if(global[_0x519ddd(0x237)]&&_0xce19d1[_0x519ddd(0x20f)](global[_0x519ddd(0x213)],_0xce19d1[_0x519ddd(0x235)])&&global[_0x519ddd(0x1d4)][0x0]){const _0x3fe366=_0xce19d1['vtbYc'](global[_0x519ddd(0x255)][_0x519ddd(0x1cc)],0x0)?!!global[_0x519ddd(0x255)][0x0]['app']||!!global['capabilities'][0x0][_0xce19d1['pMfXn']]:![],_0x2c6590={};_0x2c6590['app']=_0x3fe366,await _0xce19d1[_0x519ddd(0x269)](percyAutoCapture,global['__drivers'][0x0],_0xce19d1[_0x519ddd(0x235)],_0x2c6590);}}catch(_0x216d05){logger[_0x519ddd(0x241)](_0x519ddd(0x1de)+_0x216d05);}!global[_0x519ddd(0x262)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x519ddd(0x230)],async()=>{const _0x9c66c3=_0x519ddd;await global['__drivers'][0x0][_0x9c66c3(0x1df)](_0x9c66c3(0x1e8)+JSON['stringify'](this['currentTest'][_0x9c66c3(0x245)]()[_0x9c66c3(0x216)](_0x28c21c['XSPHM']))+'}}');})(),global[_0x519ddd(0x1d4)][0x0][_0x519ddd(0x1db)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x5d5be6=_0x519ddd,_0xea8489=_0x2f0e15[_0x5d5be6(0x1da)](this[_0x5d5be6(0x1f4)][_0x5d5be6(0x1f2)],_0x2f0e15[_0x5d5be6(0x253)]);_0xea8489?(global[_0x5d5be6(0x201)]=!![],global['__error_messages__'][_0x5d5be6(0x24c)](this[_0x5d5be6(0x1f4)][_0x5d5be6(0x1d0)][_0x5d5be6(0x250)]),await _0x2f0e15[_0x5d5be6(0x260)](_0xf94112,JSON[_0x5d5be6(0x1f6)](_0x2f0e15[_0x5d5be6(0x249)](_0x2f0e15[_0x5d5be6(0x254)],this[_0x5d5be6(0x1f4)]['err'][_0x5d5be6(0x250)])),_0x2f0e15[_0x5d5be6(0x1d6)])):await _0x2f0e15[_0x5d5be6(0x1e7)](_0xf94112,JSON['stringify'](_0x2f0e15[_0x5d5be6(0x233)]),_0x2f0e15[_0x5d5be6(0x258)]);})();}catch(_0x16dd77){logger['debug']('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x16dd77);}try{if(this[_0x519ddd(0x1f4)][_0x519ddd(0x21e)]&&globals[_0x519ddd(0x224)](_0xce19d1['Wmbqo'])&&globals[_0x519ddd(0x224)](_0xce19d1[_0x519ddd(0x1e6)])){logger['info'](_0xce19d1['ljylP']);const _0x1f6050={};_0x1f6050[_0x519ddd(0x209)]=this[_0x519ddd(0x1f4)][_0x519ddd(0x267)],_0x1f6050['thBuildUuid']=process[_0x519ddd(0x23a)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_UUID']],_0x1f6050['thJwtToken']=process[_0x519ddd(0x23a)][testHubConstants['ENV_VAR']['BROWSERSTACK_TESTHUB_JWT']];const _0x4203b8=_0x1f6050;logger[_0x519ddd(0x241)](_0x519ddd(0x24b)+JSON[_0x519ddd(0x1f6)](_0x4203b8)),logger[_0x519ddd(0x241)](_0xce19d1[_0x519ddd(0x263)]);const _0x1783a1={};_0x1783a1['command']=_0xce19d1['mjCYa'];const _0xac8595=await PerformanceTester[_0x519ddd(0x1ef)](PerformanceA11yEvents[_0x519ddd(0x270)],async()=>{const _0x5acfad=_0x519ddd;return await accessibilityRetryHelper[_0x5acfad(0x1cd)](global[_0x5acfad(0x1d4)][0x0],global[_0x5acfad(0x257)]);},_0x1783a1)();_0xac8595?logger[_0x519ddd(0x241)](_0xce19d1[_0x519ddd(0x24e)]):logger[_0x519ddd(0x218)](_0xce19d1['GZMFn']);const _0x46e48e=await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x519ddd(0x26d)],async()=>{const _0x2ee788=_0x519ddd;return await accessibilityRetryHelper['saveAccessibilityResultsWithRetry'](global[_0x2ee788(0x1d4)][0x0],_0x4203b8);})();_0x46e48e?logger[_0x519ddd(0x241)](_0xce19d1[_0x519ddd(0x1d9)]):logger['warn'](_0xce19d1['ZyjjH']),logger[_0x519ddd(0x242)](_0xce19d1[_0x519ddd(0x24d)]);}}catch(_0x1f0e93){logger[_0x519ddd(0x231)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this['currentTest'][_0x519ddd(0x245)]()+'.\x20Error\x20:',_0x1f0e93);}try{try{if(_0xce19d1[_0x519ddd(0x24a)](shouldProcessEventForTesthub)){global[_0x519ddd(0x1d4)][0x0]&&await _0xce19d1[_0x519ddd(0x1e5)](sendPlatformDetails,global['__drivers'][0x0],this[_0x519ddd(0x1f4)]?this[_0x519ddd(0x1f4)]['testAnalyticsId']:null);if(_0xce19d1[_0x519ddd(0x1fb)](isBrowserstackInfra)){PerformanceTester[_0x519ddd(0x25c)](PerformanceO11yEvents[_0x519ddd(0x21f)]);const _0x527051=_0x519ddd(0x1f7)+Date[_0x519ddd(0x1ff)]();await _0xce19d1[_0x519ddd(0x1e5)](_0xf94112,JSON[_0x519ddd(0x1f6)](_0x527051),_0xce19d1['wxSYV']),PerformanceTester[_0x519ddd(0x1f8)](PerformanceO11yEvents['SYNC']);}}}catch(_0x3e8d62){logger[_0x519ddd(0x241)](_0x519ddd(0x223)+_0x3e8d62),PerformanceTester[_0x519ddd(0x1f8)](PerformanceO11yEvents['SYNC'],![],_0x3e8d62);}_0xce19d1[_0x519ddd(0x1d1)](global[_0x519ddd(0x1d4)][0x0]['quitCount_'],0x0)&&await global[_0x519ddd(0x1f0)]();}catch(_0x5393a6){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x5393a6);}_0xce19d1[_0x519ddd(0x1d7)](_0x507d7b);})['then'](()=>{const _0x52178f=_0x831221;_0x2f0e15[_0x52178f(0x1fe)](_0x5ab2e7);});},{'platform':_0xce19d1[_0xe1b942(0x232)](nestedKeyValue,global[_0xe1b942(0x23c)],[_0xce19d1['LCTlm']]),'hookType':_0xce19d1['cBZTj']})();},'afterAll'(_0x35c6c3){const _0x3760e5=a36_0x1a44e5,_0x58848f={'tgomg':function(_0x43ca0d){return _0x43ca0d();},'LWABf':function(_0x1d2823){return _0x1d2823();},'TdbQa':'Mocha','SJAKh':function(_0x1639b1,_0x495cfb,_0x497afc){return _0x1639b1(_0x495cfb,_0x497afc);},'gBdZg':_0x3760e5(0x203),'AybMq':_0x3760e5(0x243)},_0x4e65f0='browserstack internal helper hook';this[_0x3760e5(0x25e)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x58848f[_0x3760e5(0x225)]]),PerformanceTester[_0x3760e5(0x1ef)](PerformanceSdkEvents[_0x3760e5(0x217)],()=>{const _0x1fb128=_0x3760e5,_0x1d9c21={'pihDR':function(_0x216adc){const _0x568fa6=a36_0x58cc;return _0x58848f[_0x568fa6(0x21a)](_0x216adc);}};new Promise(async _0x217636=>{await global['driverCleanup'](),_0x58848f['tgomg'](_0x217636);})[_0x1fb128(0x259)]()[_0x1fb128(0x229)](()=>{_0x1d9c21['pihDR'](_0x35c6c3);});},{'platform':_0x58848f['SJAKh'](nestedKeyValue,global[_0x3760e5(0x23c)],[_0x58848f[_0x3760e5(0x268)]]),'hookType':_0x58848f[_0x3760e5(0x1e3)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a37_0x3eaa26=a37_0x1ee5;(function(_0x2b4990,_0x5269d0){const _0x818483=a37_0x1ee5,_0x456834=_0x2b4990();while(!![]){try{const _0x6d0b57=-parseInt(_0x818483(0x118))/0x1+parseInt(_0x818483(0xef))/0x2+-parseInt(_0x818483(0x116))/0x3*(parseInt(_0x818483(0x110))/0x4)+-parseInt(_0x818483(0x111))/0x5*(parseInt(_0x818483(0x117))/0x6)+parseInt(_0x818483(0x115))/0x7+parseInt(_0x818483(0xe7))/0x8+parseInt(_0x818483(0x105))/0x9;if(_0x6d0b57===_0x5269d0)break;else _0x456834['push'](_0x456834['shift']());}catch(_0x474377){_0x456834['push'](_0x456834['shift']());}}}(a37_0x3c00,0x43cb3));function a37_0x1ee5(_0xe541aa,_0x47ddc1){const _0x3c00f9=a37_0x3c00();return a37_0x1ee5=function(_0x1ee515,_0x4422f2){_0x1ee515=_0x1ee515-0xe1;let _0x4b3be1=_0x3c00f9[_0x1ee515];return _0x4b3be1;},a37_0x1ee5(_0xe541aa,_0x47ddc1);}const fs=require('fs'),path=require(a37_0x3eaa26(0xf8)),{spawn}=require(a37_0x3eaa26(0xfa)),logger=require(a37_0x3eaa26(0x11b))[a37_0x3eaa26(0xe6)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require('../../helpers/helper'),constants=require(a37_0x3eaa26(0x125)),getUserNightwatchConfigs=(_0x1af122,_0x1b7039)=>{const _0x3a0f8d=a37_0x3eaa26,_0x2302f2={'TCjeq':_0x3a0f8d(0x100),'NAZhd':_0x3a0f8d(0xe2),'HJnkO':function(_0x35bb92,_0xdb16be){return _0x35bb92(_0xdb16be);},'paKPT':_0x3a0f8d(0xf2)};let _0xb32b60=null,_0x39b161={};const _0x4b4f10=_0x1b7039[_0x3a0f8d(0x10a)](_0x26033a=>_0x26033a===_0x3a0f8d(0x11a));if(!helper['isUndefined'](_0x1af122[_0x3a0f8d(0xfb)])&&fs[_0x3a0f8d(0x10f)](path[_0x3a0f8d(0x11d)](process['cwd'](),_0x1af122[_0x3a0f8d(0xfb)])))_0xb32b60=path[_0x3a0f8d(0x11d)](process[_0x3a0f8d(0xea)](),_0x1af122[_0x3a0f8d(0xfb)]),_0x1b7039['splice'](_0x4b4f10,0x2);else{if(fs['existsSync'](path[_0x3a0f8d(0x11d)](process[_0x3a0f8d(0xea)](),_0x2302f2[_0x3a0f8d(0xeb)])))_0xb32b60=path['join'](process[_0x3a0f8d(0xea)](),_0x2302f2[_0x3a0f8d(0xeb)]);else fs[_0x3a0f8d(0x10f)](path[_0x3a0f8d(0x11d)](process['cwd'](),_0x2302f2['NAZhd']))&&(_0xb32b60=path[_0x3a0f8d(0x11d)](process['cwd'](),_0x2302f2[_0x3a0f8d(0xfc)]));}return _0xb32b60?(logger['info'](_0x3a0f8d(0xe8)+_0xb32b60),_0x39b161=_0x2302f2[_0x3a0f8d(0x108)](require,_0xb32b60)):logger[_0x3a0f8d(0x11c)](_0x2302f2[_0x3a0f8d(0x10e)]),_0x39b161;},removeExistingEnvs=_0x3f0af9=>{const _0x2a4ddc=a37_0x3eaa26,_0x26643d={};_0x26643d['iANig']=function(_0x7a6d10,_0x34eb85){return _0x7a6d10>_0x34eb85;},_0x26643d['mGUFs']=function(_0x5ad045,_0x5cb98a){return _0x5ad045>_0x5cb98a;};const _0x346abf=_0x26643d;let _0x3e99db=_0x3f0af9[_0x2a4ddc(0x10a)](_0x49ed97=>_0x49ed97===_0x2a4ddc(0xfe));_0x346abf[_0x2a4ddc(0x113)](_0x3e99db,-0x1)&&_0x3f0af9[_0x2a4ddc(0xe3)](_0x3e99db,0x2),_0x3e99db=_0x3f0af9[_0x2a4ddc(0x10a)](_0x313e95=>_0x313e95==='-e'),_0x346abf['mGUFs'](_0x3e99db,-0x1)&&_0x3f0af9[_0x2a4ddc(0xe3)](_0x3e99db,0x2);};function a37_0x3c00(){const _0x3f86fd=['nightwatch','platforms','HJnkO','mRfxC','findIndex','XCgGm','getPlatformName','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','paKPT','existsSync','33692TLfzQP','722135VvxDqx','platform','iANig','exports','1572060KGYyBo','27Qdlwkg','6fsDHYF','96030SwqNSz','vMyAs','--config','../../helpers/logger','info','join','map','inherit','close','forEach','stringify','host','mergeDeep','../utils/constants','QdXOu','nightwatch.json','splice','vryBh','xZGGs','winstonLogger','551520LtEbVn','Getting\x20your\x20nightwatch\x20configs\x20from\x20','slice','cwd','TCjeq','env','filter','uTDCq','39204QtVDGB','push','UunuQ','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','xmpYC','qhdIL','length','nightwatch-browserstack.json','child\x20process\x20exited\x20with\x20code\x20','path','useW3C','child_process','config','NAZhd','webdriver','--env','Deleting\x20','nightwatch.conf.js','debug','BRmzO','selenium','test_settings','2527425kuWFWC'];a37_0x3c00=function(){return _0x3f86fd;};return a37_0x3c00();}function run(_0x3eb71e,_0xfb5f82,_0xd91580){const _0x459104=a37_0x3eaa26,_0x3d2491={'xZGGs':_0x459104(0x106),'FGHsF':function(_0x35575b,_0x10cf9b){return _0x35575b+_0x10cf9b;},'XCgGm':_0x459104(0x104),'eYYDa':function(_0xaa55d,_0x4fccd3,_0x1653aa){return _0xaa55d(_0x4fccd3,_0x1653aa);},'qhdIL':'hub.browserstack.com','UunuQ':_0x459104(0x10d),'vryBh':function(_0x4fca26,_0x30499f){return _0x4fca26===_0x30499f;},'vMyAs':_0x459104(0xf6),'QdXOu':function(_0x9f4176,_0x543a2b){return _0x9f4176(_0x543a2b);},'xmpYC':function(_0x528e71,_0x221a7a,_0x6fadfa,_0x11d844){return _0x528e71(_0x221a7a,_0x6fadfa,_0x11d844);},'BRmzO':'nightwatch.cmd','uTDCq':_0x459104(0x11a),'ZbESG':_0x459104(0xfe),'mRfxC':_0x459104(0x11f),'uWRTW':_0x459104(0x120)};if(!_0xd91580[_0x459104(0xfb)])return;const _0x449b30=_0x3d2491['eYYDa'](getUserNightwatchConfigs,_0x3eb71e,_0xfb5f82),_0x42f46c={};_0x42f46c['start_process']=![];const _0x84f1d2={};_0x84f1d2[_0x459104(0x123)]=_0x3d2491[_0x459104(0xf4)],_0x84f1d2['port']=0x1bb;const _0x59afa3={};_0x59afa3[_0x459104(0xfd)]=_0x42f46c,_0x59afa3[_0x459104(0x103)]=_0x84f1d2;const _0x162468=_0x59afa3;logger[_0x459104(0x11c)](_0x3d2491[_0x459104(0xf1)]);const _0x43aadb={..._0x449b30},_0x58ada3=_0x43aadb,_0x521216=helper[_0x459104(0xf9)](_0xd91580[_0x459104(0xfb)]),_0x4b9ad1=[];_0xd91580[_0x459104(0xfb)][_0x459104(0x107)][_0x459104(0x121)]((_0x2ce363,_0x5b3089)=>{const _0x30bb27=_0x459104;_0x521216?_0x4b9ad1[_0x30bb27(0xf0)](helper['modifyBrowserStackW3CCaps'](_0xd91580['config'],_0x3d2491[_0x30bb27(0xe5)],_0x5b3089)):_0x4b9ad1['push'](helper['modifyBrowserStackCaps'](_0xd91580['config'],_0x3d2491[_0x30bb27(0xe5)],_0x5b3089));});const _0x5199e8={},_0x5a09b6=[];_0x3eb71e['env']=_0x3eb71e['env']||_0x3eb71e['e'];const _0x576a43=_0x3eb71e['env']?_0x3eb71e[_0x459104(0xec)]['trim']()['split'](',')[_0x459104(0x11e)](_0x22e942=>_0x22e942['trim']())[_0x459104(0xed)](_0x59c595=>_0x59c595!==''):[''];_0x3d2491[_0x459104(0xe4)](_0x576a43[_0x459104(0xf5)],0x0)&&_0x576a43['push']('');_0x576a43[_0x459104(0x121)](_0x3d6baf=>{const _0xe1296a=_0x459104;_0x4b9ad1[_0xe1296a(0x121)](_0x1b2df8=>{const _0x4ab17e=_0xe1296a;let _0x127ab2=_0x3d2491['FGHsF'](helper[_0x4ab17e(0x10c)](_0x1b2df8,'_'),'_'+Date['now']());_0x3d6baf&&(_0x127ab2+='_'+_0x3d6baf);if(_0x3d6baf&&(!_0x449b30[_0x3d2491[_0x4ab17e(0x10b)]]||!_0x449b30[_0x3d2491[_0x4ab17e(0x10b)]][_0x3d6baf]))return;const _0x1b6b3a={..._0x162468};_0x1b6b3a['desiredCapabilities']=_0x1b2df8;const _0x4fbf9c=_0x1b6b3a;_0x5199e8[_0x127ab2]=_0x3d6baf?helper[_0x4ab17e(0x124)](_0x449b30[_0x3d2491[_0x4ab17e(0x10b)]][_0x3d6baf],_0x4fbf9c):_0x4fbf9c,_0x5a09b6[_0x4ab17e(0xf0)](_0x127ab2);});});!_0x58ada3[_0x459104(0x104)]&&(_0x58ada3['test_settings']={});_0x58ada3[_0x459104(0x104)]={..._0x58ada3[_0x459104(0x104)],..._0x5199e8};const _0x1fdded=path[_0x459104(0x11d)](__dirname,_0x3d2491[_0x459104(0x119)]);fs['writeFileSync'](_0x1fdded,JSON[_0x459104(0x122)](_0x58ada3)),_0x3d2491[_0x459104(0xe1)](removeExistingEnvs,_0xfb5f82);const _0x1f1768=_0x3d2491[_0x459104(0xf3)](spawn,/^win/['test'](process[_0x459104(0x112)])?_0x3d2491[_0x459104(0x102)]:_0x3d2491[_0x459104(0xe5)],[_0x3d2491[_0x459104(0xee)],_0x1fdded,..._0xfb5f82[_0x459104(0xe9)](0x1),_0x3d2491['ZbESG'],_0x5a09b6['join'](',')],{'stdio':_0x3d2491[_0x459104(0x109)]});_0x1f1768['on'](_0x3d2491['uWRTW'],async _0xc06cb5=>{const _0x18a788=_0x459104;logger[_0x18a788(0x101)](_0x18a788(0xf7)+_0xc06cb5),logger[_0x18a788(0x11c)](_0x18a788(0xff)+_0x1fdded),fs['unlinkSync'](_0x1fdded);});}module[a37_0x3eaa26(0x114)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x1cafba=a38_0x16e8;function a38_0x16e8(_0x374b2b,_0x1c82be){const _0x56a550=a38_0x56a5();return a38_0x16e8=function(_0x16e894,_0x23d807){_0x16e894=_0x16e894-0x14b;let _0x564873=_0x56a550[_0x16e894];return _0x564873;},a38_0x16e8(_0x374b2b,_0x1c82be);}(function(_0x357e34,_0x42c3b1){const _0x115cf9=a38_0x16e8,_0x19c42e=_0x357e34();while(!![]){try{const _0x3b7e87=-parseInt(_0x115cf9(0x1af))/0x1*(parseInt(_0x115cf9(0x1a8))/0x2)+parseInt(_0x115cf9(0x170))/0x3+parseInt(_0x115cf9(0x1a3))/0x4*(-parseInt(_0x115cf9(0x188))/0x5)+parseInt(_0x115cf9(0x1aa))/0x6+-parseInt(_0x115cf9(0x154))/0x7*(-parseInt(_0x115cf9(0x169))/0x8)+-parseInt(_0x115cf9(0x177))/0x9*(-parseInt(_0x115cf9(0x1a7))/0xa)+-parseInt(_0x115cf9(0x185))/0xb;if(_0x3b7e87===_0x42c3b1)break;else _0x19c42e['push'](_0x19c42e['shift']());}catch(_0x2fd5b8){_0x19c42e['push'](_0x19c42e['shift']());}}}(a38_0x56a5,0x942ed));function a38_0x56a5(){const _0x913af0=['accessibilityOptions.scannerProcessingTimeout','DEwUO','297549SDgMLI','performScan','RdsNp','\x20page:\x20','accessibilityOptions.authToken','accessibilityOptions.includeIssueType.bestPractice','chromium','browser_version','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','Playwright','wcagVersion','lTEWK','includeIssueType','accessibilityOptions.scannerVersion','14479091Tvmagp','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','executeAsyncScript','35zzFnNV','browser','MWiZP','chrome','../../helpers/performance/performance-tester','lfTYU','getAccessibilityResultsSummary','name','processAccessibilityCaps','warn','evaluate','EJkNx','gHkLT','yxhNo','BS_A11Y_JWT','ohIcS','format','liZGa','aVomb','TGPOL','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','../../helpers/helper','zJiVb','WebDriver','../../helpers/accessibility-automation/helper','latest','bWePG','349088TohCql','url','cqxyd','bestPractice','230kjjzUL','10wmRjrs','bstackSdkArgs','3917556tEvfxV','util','accessibilityOptions','xwbXD','WaBba','20351BnZArn','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','UPode','needsReview','scannerVersion','kWdaV','workerInfo','(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','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','qkGMk','accessibilityPlatform','measureWrapper','PERFORM_SCAN','scannerProcessingTimeout','PEJiE','uFOYH','TUbNF','../../helpers/accessibility-automation/scripts','No\x20summaryResults\x20found.','connectOptions','use','gTnIL','WhrVM','currentTest','playwright-chromium','1803515AbpoVV','YWbEn','JXRrW','browserStackEvaluate','CKSck','debug','accessibilityOptions.includeIssueType.needsReview','getAccessibilityResults','winstonLogger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','fNJLc','browserName','command','wsEndpoint','deviceName','(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','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','fiwHz','KOyfU','pvXJk','vZudE','32CREalU','iheya','No\x20accessibility\x20results\x20were\x20found.','stringify','PTZsd','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','__workerDetails','575964wJcbEy','includes','ZbsgQ','../../helpers/logger','IvzCa'];a38_0x56a5=function(){return _0x913af0;};return a38_0x56a5();}const util=require(a38_0x1cafba(0x1ab)),logger=require(a38_0x1cafba(0x173))[a38_0x1cafba(0x15c)],{isAccessibilityAutomationSession}=require(a38_0x1cafba(0x1a0)),{isUndefined,isBrowserstackInfra}=require(a38_0x1cafba(0x19d)),scripts=require(a38_0x1cafba(0x14c)),PerformanceTester=require(a38_0x1cafba(0x18c)),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants');exports['browserStackEvaluate']=async(_0x5e0a4f,_0x2a0cdc,_0x5cc217={})=>{const _0x32008a=a38_0x1cafba,_0x1c7929={};_0x1c7929[_0x32008a(0x172)]=_0x32008a(0x1a9);const _0x4d58b1=_0x1c7929;return await _0x5e0a4f[_0x32008a(0x192)](_0x32008a(0x163)+_0x2a0cdc['replace'](/arguments/g,_0x4d58b1[_0x32008a(0x172)])+_0x32008a(0x19c)+JSON['stringify'](_0x5cc217)+')');},exports['browserStackExecuteDriver']=async(_0x218c4d,_0x1487b4,_0x1deb68={})=>{const _0x14aa8c=a38_0x1cafba,_0xf1d192={};_0xf1d192[_0x14aa8c(0x174)]=function(_0x298641,_0xe89783){return _0x298641===_0xe89783;},_0xf1d192[_0x14aa8c(0x194)]=_0x14aa8c(0x19f),_0xf1d192[_0x14aa8c(0x1be)]=_0x14aa8c(0x180),_0xf1d192[_0x14aa8c(0x199)]='bstackSdkArgs';const _0x519b12=_0xf1d192;if(_0x519b12[_0x14aa8c(0x174)](_0x218c4d['constructor']['name'],_0x519b12['gHkLT']))return await _0x218c4d[_0x14aa8c(0x187)](_0x1487b4,_0x1deb68);else{if(_0x519b12[_0x14aa8c(0x174)](_0x218c4d['constructor'][_0x14aa8c(0x18f)],_0x519b12[_0x14aa8c(0x1be)]))return await _0x218c4d['executeScript'](_0x14aa8c(0x1b6)+_0x1487b4['replace'](/arguments/g,_0x519b12['liZGa'])+_0x14aa8c(0x17f)+JSON['stringify'](_0x1deb68)+')');}},exports['setAccessibilityCapabilities']=async _0x2a0c4e=>{const _0x895f7=a38_0x1cafba,_0x479413={};_0x479413['pvXJk']='accessibilityOptions.wcagVersion',_0x479413[_0x895f7(0x158)]=_0x895f7(0x175),_0x479413[_0x895f7(0x14b)]=_0x895f7(0x17c),_0x479413['lfTYU']=_0x895f7(0x15a),_0x479413[_0x895f7(0x156)]=_0x895f7(0x17b),_0x479413[_0x895f7(0x18a)]=_0x895f7(0x184);const _0x30d36c=_0x479413;_0x2a0c4e[_0x895f7(0x1ac)]&&(_0x2a0c4e[_0x895f7(0x1ac)][_0x895f7(0x181)]&&(_0x2a0c4e[_0x30d36c[_0x895f7(0x167)]]=_0x2a0c4e[_0x895f7(0x1ac)][_0x895f7(0x181)]),_0x2a0c4e[_0x895f7(0x1ac)][_0x895f7(0x1bd)]&&(_0x2a0c4e[_0x30d36c[_0x895f7(0x158)]]=_0x2a0c4e[_0x895f7(0x1ac)][_0x895f7(0x1bd)]),_0x2a0c4e[_0x895f7(0x1ac)]['includeIssueType']&&(_0x2a0c4e[_0x30d36c[_0x895f7(0x14b)]]=_0x2a0c4e[_0x895f7(0x1ac)][_0x895f7(0x183)][_0x895f7(0x1a6)],_0x2a0c4e[_0x30d36c[_0x895f7(0x18d)]]=_0x2a0c4e[_0x895f7(0x1ac)][_0x895f7(0x183)][_0x895f7(0x1b2)]));const _0x2cbcf1=JSON['parse'](process['env'][_0x895f7(0x1b7)])[_0x895f7(0x1b3)];_0x2a0c4e[_0x30d36c[_0x895f7(0x156)]]=process['env'][_0x895f7(0x196)],_0x2a0c4e[_0x30d36c['MWiZP']]=_0x2cbcf1,delete _0x2a0c4e[_0x895f7(0x1ac)];},exports[a38_0x1cafba(0x15b)]=async _0x54623b=>{const _0x174f83=a38_0x1cafba,_0x55dc82={};_0x55dc82[_0x174f83(0x179)]=_0x174f83(0x16b),_0x55dc82['CdMeS']='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x3947bd=_0x55dc82;if(global['accessibilityPlatform'])try{const details={'url':await _0x54623b.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(_0x54623b,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x54623b,scripts.getResults);},{...details})();return res;}catch{return logger['error'](_0x3947bd[_0x174f83(0x179)]),[];}else return logger[_0x174f83(0x191)](_0x3947bd['CdMeS']),[];},exports[a38_0x1cafba(0x178)]=async(_0x5accb7,_0x4c14ad='')=>{const _0x3d47ba=a38_0x1cafba;logger['debug']('Performing\x20scan\x20with\x20method:\x20'+_0x4c14ad+_0x3d47ba(0x17a)+_0x5accb7);const _0x464c20={'url':await _0x5accb7[_0x3d47ba(0x1a4)](),'testhub_btcer_uuid':global[_0x3d47ba(0x16f)]?.['currentTest']?.['id']};if(global[_0x3d47ba(0x1ba)])return await PerformanceTester[_0x3d47ba(0x1bb)](PerformanceA11yEvents[_0x3d47ba(0x1bc)],async()=>{const _0x1a2103=_0x3d47ba,_0x3741bb={};_0x3741bb[_0x1a2103(0x160)]=_0x4c14ad;const _0x296055=await exports[_0x1a2103(0x157)](_0x5accb7,scripts[_0x1a2103(0x178)],_0x3741bb);return _0x296055;},{'command':_0x4c14ad,..._0x464c20})();},exports[a38_0x1cafba(0x18e)]=async _0x1407da=>{const _0x230d49=a38_0x1cafba,_0x546c7d={};_0x546c7d[_0x230d49(0x1a2)]=_0x230d49(0x14d),_0x546c7d[_0x230d49(0x166)]=_0x230d49(0x164);const _0x1111a5=_0x546c7d;if(global[_0x230d49(0x1ba)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1407da,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1407da,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x230d49(0x159)](_0x1111a5['bWePG']),{};}else return logger[_0x230d49(0x191)](_0x1111a5['KOyfU']),{};},exports['platformValidation']=async _0x33b34f=>{const _0x2114de=a38_0x1cafba,_0x32c5cc={'fNJLc':function(_0x392928,_0x303f72){return _0x392928!==_0x303f72;},'OYLeC':_0x2114de(0x186),'vZudE':_0x2114de(0x18b),'WhrVM':_0x2114de(0x153),'EJkNx':_0x2114de(0x17d),'gTnIL':_0x2114de(0x16e),'fiwHz':function(_0x1f9ebd,_0x471b42){return _0x1f9ebd(_0x471b42);},'iheya':function(_0x4cfde8){return _0x4cfde8();},'HLHFa':function(_0x3570c0,_0x229ac1){return _0x3570c0<_0x229ac1;},'lnTJh':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','yxhNo':function(_0x456295,_0x19482d){return _0x456295===_0x19482d;},'rwzZv':_0x2114de(0x1a1),'UPode':function(_0x4de238,_0x21b97d){return _0x4de238>_0x21b97d;},'iWHAn':_0x2114de(0x1b8)};try{if(!_0x32c5cc[_0x2114de(0x15e)](_0x33b34f[_0x2114de(0x162)],''))return logger['warn'](_0x32c5cc['OYLeC']),![];const _0x5f1c6b=_0x33b34f[_0x2114de(0x189)];if(![_0x32c5cc[_0x2114de(0x168)],_0x32c5cc[_0x2114de(0x151)],_0x32c5cc[_0x2114de(0x193)]][_0x2114de(0x171)](_0x5f1c6b))return logger[_0x2114de(0x191)](_0x32c5cc[_0x2114de(0x150)]),![];const _0x23c160=_0x32c5cc[_0x2114de(0x165)](parseInt,_0x33b34f[_0x2114de(0x17e)]);!_0x32c5cc[_0x2114de(0x16a)](isBrowserstackInfra)&&(!_0x32c5cc['HLHFa'](_0x23c160,0x64)&&logger[_0x2114de(0x191)](_0x32c5cc['lnTJh']));if(!(_0x32c5cc[_0x2114de(0x195)](_0x23c160,_0x32c5cc['rwzZv'])||_0x32c5cc[_0x2114de(0x1b1)](_0x23c160,0x5e)))return logger[_0x2114de(0x191)](_0x32c5cc['iWHAn']),![];}catch(_0x21c97d){logger[_0x2114de(0x159)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x2114de(0x198)](_0x21c97d));}return!![];},exports[a38_0x1cafba(0x190)]=(_0x49c377,_0xec507b,_0xc8888a)=>{const _0x151121=a38_0x1cafba,_0x11254c={'cqxyd':function(_0xead124){return _0xead124();},'WaBba':'browserstack.accessibility','aVomb':function(_0xccf307,_0x4b458e){return _0xccf307===_0x4b458e;},'DEwUO':_0x151121(0x18b),'lTEWK':function(_0x4d9f40,_0x5dc48f){return _0x4d9f40===_0x5dc48f;},'YWbEn':_0x151121(0x153),'TGPOL':function(_0x996df,_0x361df4){return _0x996df===_0x361df4;},'xwbXD':_0x151121(0x16e),'wvHgY':function(_0x42117b,_0x236ca6){return _0x42117b>_0x236ca6;},'uFOYH':_0x151121(0x15d),'zJiVb':_0x151121(0x1a1),'ohIcS':function(_0x43da3f,_0x385e5b){return _0x43da3f>_0x385e5b;},'qkGMk':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','PTZsd':function(_0x2e0ee4,_0x5bf55d){return _0x2e0ee4(_0x5bf55d);},'kWdaV':_0x151121(0x186),'bTYFh':function(_0x244a4a,_0x4f26ad){return _0x244a4a+_0x4f26ad;}};try{if(_0x11254c[_0x151121(0x1a5)](isAccessibilityAutomationSession)){global[_0x151121(0x1ba)]=!![];!_0x49c377[_0x11254c[_0x151121(0x1ae)]]&&(global['accessibilityPlatform']=![]);!(_0x11254c['aVomb'](_0x49c377[_0x151121(0x15f)],_0x11254c['DEwUO'])||_0x11254c[_0x151121(0x182)](_0x49c377['browserName'],_0x11254c[_0x151121(0x155)])||_0x11254c[_0x151121(0x19a)](_0x49c377[_0x151121(0x189)],_0x11254c[_0x151121(0x176)])||_0x11254c['TGPOL'](_0x49c377['browser'],_0x11254c[_0x151121(0x155)]))&&(logger[_0x151121(0x191)](_0x11254c[_0x151121(0x1ad)]),global[_0x151121(0x1ba)]=![]);!_0x11254c['cqxyd'](isBrowserstackInfra)&&(!_0x11254c['wvHgY'](_0x49c377[_0x151121(0x17e)],0x64)&&logger[_0x151121(0x191)](_0x11254c[_0x151121(0x1bf)]));!(_0x11254c[_0x151121(0x19b)](_0x49c377[_0x151121(0x17e)],_0x11254c[_0x151121(0x19e)])||_0x11254c[_0x151121(0x197)](_0x49c377[_0x151121(0x17e)],0x5e))&&(logger[_0x151121(0x191)](_0x11254c[_0x151121(0x1b9)]),global[_0x151121(0x1ba)]=![]);!_0x11254c[_0x151121(0x16d)](isUndefined,_0x49c377[_0x151121(0x162)])&&(logger[_0x151121(0x191)](_0x11254c[_0x151121(0x1b4)]),global[_0x151121(0x1ba)]=![]);if(!global['accessibilityPlatform']){_0x49c377[_0x11254c[_0x151121(0x1ae)]]=![];const _0xfbf4d2=_0x11254c['bTYFh'](_0xec507b,_0x11254c['PTZsd'](encodeURIComponent,JSON[_0x151121(0x16c)](_0x49c377)));_0xc8888a&&(_0xc8888a[_0x151121(0x152)]['testInfo']['project'][_0x151121(0x14f)][_0x151121(0x14e)]['wsEndpoint']=_0xfbf4d2,_0xc8888a[_0x151121(0x1b5)]['project'][_0x151121(0x14f)][_0x151121(0x14e)][_0x151121(0x161)]=_0xfbf4d2);}}else global[_0x151121(0x1ba)]=![];}catch(_0x41f41f){logger[_0x151121(0x159)](_0x151121(0x1b0)+util[_0x151121(0x198)](_0x41f41f));}};
|
|
1
|
+
const a38_0x532014=a38_0x56df;(function(_0x4f2386,_0x3d7b34){const _0x4b36c0=a38_0x56df,_0x4bf256=_0x4f2386();while(!![]){try{const _0x272b0b=-parseInt(_0x4b36c0(0x208))/0x1+-parseInt(_0x4b36c0(0x1d2))/0x2*(-parseInt(_0x4b36c0(0x1e5))/0x3)+parseInt(_0x4b36c0(0x20c))/0x4*(-parseInt(_0x4b36c0(0x1dd))/0x5)+-parseInt(_0x4b36c0(0x1db))/0x6*(-parseInt(_0x4b36c0(0x20a))/0x7)+-parseInt(_0x4b36c0(0x1fc))/0x8+parseInt(_0x4b36c0(0x1c3))/0x9+parseInt(_0x4b36c0(0x1d0))/0xa;if(_0x272b0b===_0x3d7b34)break;else _0x4bf256['push'](_0x4bf256['shift']());}catch(_0x28e799){_0x4bf256['push'](_0x4bf256['shift']());}}}(a38_0x5b64,0x51cdc));const util=require(a38_0x532014(0x1b8)),logger=require('../../helpers/logger')[a38_0x532014(0x1d6)],{isAccessibilityAutomationSession}=require(a38_0x532014(0x1d1)),{isUndefined,isBrowserstackInfra}=require(a38_0x532014(0x1ea)),scripts=require(a38_0x532014(0x1bc)),PerformanceTester=require(a38_0x532014(0x1b7)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x532014(0x1c6));function a38_0x56df(_0x342d57,_0x1b4a26){const _0x5b6403=a38_0x5b64();return a38_0x56df=function(_0x56dfdc,_0x4a48b7){_0x56dfdc=_0x56dfdc-0x199;let _0x210d22=_0x5b6403[_0x56dfdc];return _0x210d22;},a38_0x56df(_0x342d57,_0x1b4a26);}function a38_0x5b64(){const _0x4b5d86=['peHmG','tuWxi','playwright-chromium','wsEndpoint','accessibilityOptions','dMUvm','evaluate','browser_version','608942yuGUKf','AHtoe','364532KDJQEB','sDYfy','1028vxOUDY','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','setAccessibilityCapabilities','connectOptions','(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','dkAGX','env','NeRhW','BgfAE','BS_A11Y_JWT','BDLPr','replace','MOWSo','KwcLv','platformValidation','format','FVESf','hhjkH','includeIssueType','vUCYb','jyftX','PvXhe','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','JFCbG','accessibilityPlatform','diNEy','name','getAccessibilityResultsSummary','chrome','stringify','command','FYRnU','__workerDetails','warn','testInfo','../../helpers/performance/performance-tester','util','qRxgE','YxzEm','workerInfo','../../helpers/accessibility-automation/scripts','SGPUx','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','browserStackEvaluate','accessibilityOptions.includeIssueType.bestPractice','qhkDq','project','5535981vTIGxx','hocTR','debug','../../helpers/performance/constants','accessibilityOptions.scannerProcessingTimeout','url','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','executeScript','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','jsHDC','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','accessibilityOptions.includeIssueType.needsReview','deviceName','6094870mhDCvY','../../helpers/accessibility-automation/helper','162696Xrcvrz','ZaWPO','browserName','accessibilityOptions.wcagVersion','winstonLogger','Playwright','OfDMo','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','Tbwkm','42BLoOxd','currentTest','10680HwRtZt','hPvAt','use','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','PERFORM_SCAN','wcagVersion','IggjI','OqMyu','3YtIgPR','scannerProcessingTimeout','measureWrapper','sLqkA','QXXiA','../../helpers/helper','constructor','browserstack.accessibility','browser','mZbJd','Performing\x20scan\x20with\x20method:\x20','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','mWhsk','latest','illHp','pCSWO','wWiCa','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','accessibilityOptions.authToken','performScan','error','LIevi','1420112PDEELP','bstackSdkArgs','mpGts','\x20page:\x20'];a38_0x5b64=function(){return _0x4b5d86;};return a38_0x5b64();}exports[a38_0x532014(0x1bf)]=async(_0x3c45df,_0x9894e9,_0x541d3e={})=>{const _0x4ffc59=a38_0x532014,_0x99b917={};_0x99b917[_0x4ffc59(0x19b)]=_0x4ffc59(0x1fd);const _0x37560a=_0x99b917;return await _0x3c45df[_0x4ffc59(0x206)]('(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'+_0x9894e9['replace'](/arguments/g,_0x37560a['NeRhW'])+_0x4ffc59(0x1c9)+JSON[_0x4ffc59(0x1b1)](_0x541d3e)+')');},exports['browserStackExecuteDriver']=async(_0x23c736,_0x2485f1,_0x45d7e8={})=>{const _0xadc6bb=a38_0x532014,_0x18c77b={};_0x18c77b[_0xadc6bb(0x1a5)]=function(_0x5125bb,_0x461779){return _0x5125bb===_0x461779;},_0x18c77b[_0xadc6bb(0x1c1)]='WebDriver',_0x18c77b[_0xadc6bb(0x1b3)]=_0xadc6bb(0x1d7),_0x18c77b['AHtoe']='bstackSdkArgs';const _0x30dba8=_0x18c77b;if(_0x30dba8[_0xadc6bb(0x1a5)](_0x23c736[_0xadc6bb(0x1eb)][_0xadc6bb(0x1ae)],_0x30dba8[_0xadc6bb(0x1c1)]))return await _0x23c736['executeAsyncScript'](_0x2485f1,_0x45d7e8);else{if(_0x30dba8['hhjkH'](_0x23c736['constructor'][_0xadc6bb(0x1ae)],_0x30dba8['FYRnU']))return await _0x23c736[_0xadc6bb(0x1ca)](_0xadc6bb(0x210)+_0x2485f1[_0xadc6bb(0x19f)](/arguments/g,_0x30dba8[_0xadc6bb(0x209)])+_0xadc6bb(0x1e0)+JSON['stringify'](_0x45d7e8)+')');}},exports[a38_0x532014(0x20e)]=async _0x3889aa=>{const _0x5adc10=a38_0x532014,_0x3fb450={};_0x3fb450[_0x5adc10(0x1a0)]=_0x5adc10(0x1d5),_0x3fb450[_0x5adc10(0x1fe)]=_0x5adc10(0x1c7),_0x3fb450['hocTR']=_0x5adc10(0x1c0),_0x3fb450[_0x5adc10(0x1d3)]=_0x5adc10(0x1ce),_0x3fb450['JFCbG']=_0x5adc10(0x1f8),_0x3fb450[_0x5adc10(0x1e9)]='accessibilityOptions.scannerVersion';const _0x2def89=_0x3fb450;_0x3889aa[_0x5adc10(0x204)]&&(_0x3889aa[_0x5adc10(0x204)][_0x5adc10(0x1e2)]&&(_0x3889aa[_0x2def89[_0x5adc10(0x1a0)]]=_0x3889aa[_0x5adc10(0x204)][_0x5adc10(0x1e2)]),_0x3889aa['accessibilityOptions'][_0x5adc10(0x1e6)]&&(_0x3889aa[_0x2def89[_0x5adc10(0x1fe)]]=_0x3889aa[_0x5adc10(0x204)]['scannerProcessingTimeout']),_0x3889aa['accessibilityOptions'][_0x5adc10(0x1a6)]&&(_0x3889aa[_0x2def89[_0x5adc10(0x1c4)]]=_0x3889aa['accessibilityOptions']['includeIssueType']['bestPractice'],_0x3889aa[_0x2def89[_0x5adc10(0x1d3)]]=_0x3889aa[_0x5adc10(0x204)]['includeIssueType']['needsReview']));const _0x54ac4e=JSON['parse'](process['env'][_0x5adc10(0x1cb)])['scannerVersion'];_0x3889aa[_0x2def89[_0x5adc10(0x1ab)]]=process[_0x5adc10(0x19a)][_0x5adc10(0x19d)],_0x3889aa[_0x2def89['QXXiA']]=_0x54ac4e,delete _0x3889aa[_0x5adc10(0x204)];},exports['getAccessibilityResults']=async _0x5e2743=>{const _0x222fcb=a38_0x532014,_0x42f97c={};_0x42f97c['YxzEm']='No\x20accessibility\x20results\x20were\x20found.',_0x42f97c['illHp']=_0x222fcb(0x1cd);const _0x441822=_0x42f97c;if(global[_0x222fcb(0x1ac)])try{const details={'url':await _0x5e2743.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(_0x5e2743,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x5e2743,scripts.getResults);},{...details})();return res;}catch{return logger[_0x222fcb(0x1fa)](_0x441822[_0x222fcb(0x1ba)]),[];}else return logger[_0x222fcb(0x1b5)](_0x441822[_0x222fcb(0x1f3)]),[];},exports[a38_0x532014(0x1f9)]=async(_0x2fd59f,_0x35d569='')=>{const _0x304e58=a38_0x532014;logger[_0x304e58(0x1c5)](_0x304e58(0x1ef)+_0x35d569+_0x304e58(0x1ff)+_0x2fd59f);const _0x3fb3a0={'url':await _0x2fd59f[_0x304e58(0x1c8)](),'testhub_btcer_uuid':global[_0x304e58(0x1b4)]?.['currentTest']?.['id']};if(global[_0x304e58(0x1ac)])return await PerformanceTester[_0x304e58(0x1e7)](PerformanceA11yEvents[_0x304e58(0x1e1)],async()=>{const _0xc1eace=_0x304e58,_0x3af497={};_0x3af497[_0xc1eace(0x1b2)]=_0x35d569;const _0x4da946=await exports['browserStackEvaluate'](_0x2fd59f,scripts[_0xc1eace(0x1f9)],_0x3af497);return _0x4da946;},{'command':_0x35d569,..._0x3fb3a0})();},exports[a38_0x532014(0x1af)]=async _0x356c70=>{const _0x5721c9=a38_0x532014,_0x2470cb={};_0x2470cb[_0x5721c9(0x1fb)]='No\x20summaryResults\x20found.',_0x2470cb['tuWxi']=_0x5721c9(0x1aa);const _0x4b1a0c=_0x2470cb;if(global[_0x5721c9(0x1ac)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x356c70,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x356c70,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x5721c9(0x1c5)](_0x4b1a0c[_0x5721c9(0x1fb)]),{};}else return logger[_0x5721c9(0x1b5)](_0x4b1a0c[_0x5721c9(0x201)]),{};},exports[a38_0x532014(0x1a2)]=async _0x28c917=>{const _0x2fba39=a38_0x532014,_0x31af61={'KwcLv':function(_0x2d4892,_0x5bdfe3){return _0x2d4892!==_0x5bdfe3;},'diNEy':_0x2fba39(0x1f7),'peHmG':_0x2fba39(0x1b0),'Tbwkm':_0x2fba39(0x202),'PvXhe':'chromium','sLqkA':_0x2fba39(0x1f6),'jsHDC':function(_0xb483fd,_0xc2b326){return _0xb483fd(_0xc2b326);},'mWhsk':function(_0x5ce224){return _0x5ce224();},'OfDMo':function(_0x5386b8,_0x526e6d){return _0x5386b8<_0x526e6d;},'BDAPO':_0x2fba39(0x20d),'SGPUx':function(_0x5ccf1b,_0x2200a6){return _0x5ccf1b===_0x2200a6;},'HpUoA':'latest','OqMyu':function(_0x341bd9,_0x210d62){return _0x341bd9>_0x210d62;},'nVmds':_0x2fba39(0x1d9)};try{if(!_0x31af61[_0x2fba39(0x1a1)](_0x28c917[_0x2fba39(0x1cf)],''))return logger['warn'](_0x31af61[_0x2fba39(0x1ad)]),![];const _0x36479b=_0x28c917[_0x2fba39(0x1ed)];if(![_0x31af61[_0x2fba39(0x200)],_0x31af61[_0x2fba39(0x1da)],_0x31af61[_0x2fba39(0x1a9)]]['includes'](_0x36479b))return logger[_0x2fba39(0x1b5)](_0x31af61[_0x2fba39(0x1e8)]),![];const _0x56c719=_0x31af61[_0x2fba39(0x1cc)](parseInt,_0x28c917[_0x2fba39(0x207)]);!_0x31af61[_0x2fba39(0x1f1)](isBrowserstackInfra)&&(!_0x31af61[_0x2fba39(0x1d8)](_0x56c719,0x64)&&logger[_0x2fba39(0x1b5)](_0x31af61['BDAPO']));if(!(_0x31af61[_0x2fba39(0x1bd)](_0x56c719,_0x31af61['HpUoA'])||_0x31af61[_0x2fba39(0x1e4)](_0x56c719,0x5e)))return logger['warn'](_0x31af61['nVmds']),![];}catch(_0x173fb6){logger[_0x2fba39(0x1c5)](_0x2fba39(0x1be)+util[_0x2fba39(0x1a3)](_0x173fb6));}return!![];},exports['processAccessibilityCaps']=(_0x1e03c7,_0x44a60b,_0x4f5e74)=>{const _0x47de1e=a38_0x532014,_0x5b3178={'dkAGX':function(_0x241b46){return _0x241b46();},'ZcaKU':_0x47de1e(0x1ec),'dMUvm':function(_0x26ccdd,_0x5d6026){return _0x26ccdd===_0x5d6026;},'qRxgE':_0x47de1e(0x1b0),'pCSWO':_0x47de1e(0x202),'sDYfy':function(_0x56696d,_0x57037b){return _0x56696d===_0x57037b;},'krKlV':function(_0x3663cb,_0x1f4e40){return _0x3663cb===_0x1f4e40;},'hPvAt':_0x47de1e(0x1f6),'BgfAE':function(_0x525247,_0x2f8edd){return _0x525247>_0x2f8edd;},'jyftX':_0x47de1e(0x20d),'wWiCa':function(_0x376fbc,_0x258ff1){return _0x376fbc===_0x258ff1;},'BDLPr':_0x47de1e(0x1f2),'mZbJd':function(_0x5f29ba,_0x11efac){return _0x5f29ba>_0x11efac;},'vUCYb':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','tJzji':function(_0x1544fe,_0x4e2d0b){return _0x1544fe(_0x4e2d0b);},'FVESf':_0x47de1e(0x1f7),'TaAHs':function(_0x2fdda1,_0x243967){return _0x2fdda1+_0x243967;},'IggjI':function(_0x40c974,_0x2a7f58){return _0x40c974(_0x2a7f58);}};try{if(_0x5b3178[_0x47de1e(0x199)](isAccessibilityAutomationSession)){global[_0x47de1e(0x1ac)]=!![];!_0x1e03c7[_0x5b3178['ZcaKU']]&&(global['accessibilityPlatform']=![]);!(_0x5b3178[_0x47de1e(0x205)](_0x1e03c7[_0x47de1e(0x1d4)],_0x5b3178['qRxgE'])||_0x5b3178['dMUvm'](_0x1e03c7[_0x47de1e(0x1d4)],_0x5b3178[_0x47de1e(0x1f4)])||_0x5b3178[_0x47de1e(0x20b)](_0x1e03c7['browser'],_0x5b3178[_0x47de1e(0x1b9)])||_0x5b3178['krKlV'](_0x1e03c7['browser'],_0x5b3178[_0x47de1e(0x1f4)]))&&(logger[_0x47de1e(0x1b5)](_0x5b3178[_0x47de1e(0x1de)]),global[_0x47de1e(0x1ac)]=![]);!_0x5b3178[_0x47de1e(0x199)](isBrowserstackInfra)&&(!_0x5b3178[_0x47de1e(0x19c)](_0x1e03c7[_0x47de1e(0x207)],0x64)&&logger['warn'](_0x5b3178[_0x47de1e(0x1a8)]));!(_0x5b3178[_0x47de1e(0x1f5)](_0x1e03c7['browser_version'],_0x5b3178[_0x47de1e(0x19e)])||_0x5b3178[_0x47de1e(0x1ee)](_0x1e03c7['browser_version'],0x5e))&&(logger[_0x47de1e(0x1b5)](_0x5b3178[_0x47de1e(0x1a7)]),global[_0x47de1e(0x1ac)]=![]);!_0x5b3178['tJzji'](isUndefined,_0x1e03c7['deviceName'])&&(logger[_0x47de1e(0x1b5)](_0x5b3178[_0x47de1e(0x1a4)]),global['accessibilityPlatform']=![]);if(!global[_0x47de1e(0x1ac)]){_0x1e03c7[_0x5b3178['ZcaKU']]=![];const _0x5ed8d2=_0x5b3178['TaAHs'](_0x44a60b,_0x5b3178[_0x47de1e(0x1e3)](encodeURIComponent,JSON[_0x47de1e(0x1b1)](_0x1e03c7)));_0x4f5e74&&(_0x4f5e74[_0x47de1e(0x1dc)][_0x47de1e(0x1b6)][_0x47de1e(0x1c2)][_0x47de1e(0x1df)][_0x47de1e(0x20f)][_0x47de1e(0x203)]=_0x5ed8d2,_0x4f5e74[_0x47de1e(0x1bb)][_0x47de1e(0x1c2)]['use'][_0x47de1e(0x20f)][_0x47de1e(0x203)]=_0x5ed8d2);}}else global[_0x47de1e(0x1ac)]=![];}catch(_0x2d6a80){logger[_0x47de1e(0x1c5)](_0x47de1e(0x1f0)+util[_0x47de1e(0x1a3)](_0x2d6a80));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a39_0x228b(_0x3b70d3,_0x309a5e){const _0x4ba63d=a39_0x4ba6();return a39_0x228b=function(_0x228b56,_0x506332){_0x228b56=_0x228b56-0x124;let _0x2e763e=_0x4ba63d[_0x228b56];return _0x2e763e;},a39_0x228b(_0x3b70d3,_0x309a5e);}function a39_0x4ba6(){const _0x2861f6=['jAvla','playwright-browserstack-sdk.config.cjs','SQbWj','writeFileSync','SDK_PRE_INITIALIZE','browserstackAutomation','close','test','aJTeO','SDK_POST_INITIALIZE','playwright','BrowserStack\x20config\x20file\x20not\x20found.','Playwright\x20process\x20exited\x20with\x20code\x20','CybWV','getPackageType','4NMOEiy','env','BROWSERSTACK_TEST_OBSERVABILITY','isFalse','debug','22190XlcVED','gGZhE','dirname','BROWSERSTACK_RERUN_TESTS','isRunning','config','launchBuild','./reporter/pwUtils','fOrNG','GoRFP','KVgSG','RLABn','EluaV','../utils/constants','USER_CONFIG_DETAILS_PATH','ugPfp','AdvID','\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','cliConfig','./reporter/test-details','IvRhF','start','bOpaX','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','1322EaWvuI','length','bootstrap','automation','shutdown','getInstance','PLAYWRIGHT','get','BROWSERSTACK_PW_CONFIG_DIR','wbPZt','cYehR','getNoProxy','XjaJh','serializeToYamlString','--disable-test-observability','../../helpers/logger','util','child_process','unlinkSync','winstonLogger','Updated\x20config\x20file\x20name\x20to\x20-\x20','startsWith','getProxyUrl','exports','--config','MIZyS','existsSync','measureWrapper','ROVJu','LMmxd','exitCode','SDK_SETUP','uYlgk','lgtao','3761510Teqpsp','forEach','browserstackSetupConfig.json','push','vMSDG','isTypescriptProject','configPath','accessSync','cwd','TiuRR','map','resolve','isTrue','KMLbq','concat','assign','platform','win32','EVENTS','1332jWBodD','rZHeW','../../helpers/test-observability/constants','clearTempPWConfig','split','EzGIG','../v2/browserstackCLI','iROZj','../../helpers/testhub/testhubHandler','BROWSERSTACK_TEST_ACCESSIBILITY_YML','WDzPg','splice','trim','join','reportFinalDetectionState','2886aJKeeR','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','dOtrk','../utils/clientTroubleshootingService','indexOf','R_OK','setFrameworkDetail','5761000MfvmiF','bNidx','Twgig','skipSessionName','filter','accessibility','end','skipSessionStatus','xNKyu','errorMessage','QlInW','initialize','false','12088epdLIo','trace_','accessibilityOptions','oGfDV','1242QmTTaK','--config=','../../helpers/utilities','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','sdAOy','testContextOptions','stop','Error\x20in\x20closing\x20playwright','\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();','slice','testObservability','MODULE','BROWSERSTACK_AUTOMATION','jZcbP','198414MMZJhp','parse','inherit','Tfmgl','BROWSERSTACK_RERUN','./accessibility-helper','requirePWModule','getConfig','SDK_CLEANUP','homedir','frrrG','dHkEo','No\x20Proxy\x20:\x20','path','vGKtn','../v2/TestInfo','reportConflictingEnvVarIssue','../v2/cliUtils','../../helpers/performance/constants','constants','has','Proxy\x20url\x20:\x20','apply','fnwWg','info','ilxnH','Error\x20in\x20getting\x20funnel\x20data\x20results','--disable-browserstack-automation','8385498ePGpcl','TbeBx','isUndefined','resolvedConfigFile','../../helpers/helper','yWSdL','error','Error\x20in\x20deleting\x20playwright\x20results'];a39_0x4ba6=function(){return _0x2861f6;};return a39_0x4ba6();}const a39_0xaf0e2d=a39_0x228b;(function(_0x61a90b,_0x25ce01){const _0x910c1f=a39_0x228b,_0x41b9ec=_0x61a90b();while(!![]){try{const _0x83435d=parseInt(_0x910c1f(0x195))/0x1+-parseInt(_0x910c1f(0x12b))/0x2*(-parseInt(_0x910c1f(0x16f))/0x3)+-parseInt(_0x910c1f(0x1c8))/0x4*(parseInt(_0x910c1f(0x14d))/0x5)+-parseInt(_0x910c1f(0x160))/0x6*(-parseInt(_0x910c1f(0x1cd))/0x7)+-parseInt(_0x910c1f(0x183))/0x8*(parseInt(_0x910c1f(0x187))/0x9)+parseInt(_0x910c1f(0x176))/0xa+-parseInt(_0x910c1f(0x1b1))/0xb;if(_0x83435d===_0x25ce01)break;else _0x41b9ec['push'](_0x41b9ec['shift']());}catch(_0x1d46ea){_0x41b9ec['push'](_0x41b9ec['shift']());}}}(a39_0x4ba6,0x5f756));const fs=require('fs'),path=require(a39_0xaf0e2d(0x1a2)),{spawn}=require(a39_0xaf0e2d(0x13c)),{format}=require(a39_0xaf0e2d(0x13b)),logger=require(a39_0xaf0e2d(0x13a))[a39_0xaf0e2d(0x13e)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a39_0xaf0e2d(0x1b5)),utilities=require(a39_0xaf0e2d(0x189)),constants=require(a39_0xaf0e2d(0x1da)),{FRAMEWORKS}=require(a39_0xaf0e2d(0x162)),{getConfigLoaderPath}=require(a39_0xaf0e2d(0x1d4)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a39_0xaf0e2d(0x19a)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0xaf0e2d(0x126)),TestHubHandler=require(a39_0xaf0e2d(0x168)),PerformanceTester=require('../../helpers/performance/performance-tester'),BrowserstackCLI=require(a39_0xaf0e2d(0x166)),PerformanceEvents=require(a39_0xaf0e2d(0x1a7))[a39_0xaf0e2d(0x15f)],CLIUtils=require(a39_0xaf0e2d(0x1a6)),TestInfo=require(a39_0xaf0e2d(0x1a4)),ClientTroubleShootingService=require(a39_0xaf0e2d(0x172)),getUserPlaywrightConfig=async(_0xec85c1,_0x41e526)=>{const _0xeb94ad=a39_0xaf0e2d,_0x15977d={'Tfmgl':function(_0x351e9a){return _0x351e9a();},'uYlgk':function(_0xdfb619,_0x81d7a0){return _0xdfb619(_0x81d7a0);},'frrrG':_0xeb94ad(0x1b4),'vGKtn':'--config='},_0x12334a=!helper[_0xeb94ad(0x1b3)](_0xec85c1[_0xeb94ad(0x1d2)]),_0x327ed8=_0x12334a?path[_0xeb94ad(0x158)](process[_0xeb94ad(0x155)](),_0xec85c1[_0xeb94ad(0x1d2)]):process[_0xeb94ad(0x155)](),{resolveConfigFile:_0x112ed1,resolveConfigLocation:_0xf835ad}=helper[_0xeb94ad(0x19b)][_0xeb94ad(0x1ab)](null,_0x15977d[_0xeb94ad(0x198)](getConfigLoaderPath)),_0x22da5a=_0x112ed1?_0x15977d['uYlgk'](_0x112ed1,_0x327ed8):helper['nestedKeyValue'](_0x15977d[_0xeb94ad(0x14b)](_0xf835ad,_0x327ed8),[_0x15977d[_0xeb94ad(0x19f)]]),_0x3e93d9={};if(_0x12334a){const _0x390b7b=_0x41e526['findIndex'](_0x43dbd5=>_0x43dbd5===_0xeb94ad(0x143)||_0x43dbd5==='-c'||_0x43dbd5[_0xeb94ad(0x140)](_0xeb94ad(0x188)));_0x41e526[_0xeb94ad(0x16b)](_0x390b7b,_0x41e526[_0x390b7b][_0xeb94ad(0x140)](_0x15977d[_0xeb94ad(0x1a3)])?0x1:0x2);}const _0x266645={};return _0x266645[_0xeb94ad(0x1a2)]=_0x22da5a,_0x266645[_0xeb94ad(0x1d2)]=_0x3e93d9,_0x266645;},handleO11yRerun=_0x12f9bc=>{const _0x1546e3=a39_0xaf0e2d,_0x132eb6={};_0x132eb6[_0x1546e3(0x177)]='--grep';const _0x10dd80=_0x132eb6,_0x5ab7c0=helper['isTrue'](process[_0x1546e3(0x1c9)][_0x1546e3(0x199)]);if(_0x5ab7c0){const _0x4038be=process['env'][_0x1546e3(0x1d0)],_0x2d77fc=[];if(helper['validateRerunTestList'](_0x4038be)&&!helper[_0x1546e3(0x1b3)](_0x4038be)){_0x4038be[_0x1546e3(0x164)](',')[_0x1546e3(0x157)](_0x45bf04=>{const _0x11e778=_0x1546e3;_0x2d77fc['push']('('+_0x45bf04[_0x11e778(0x16c)]()+')');});const _0x553491='^'+_0x2d77fc[_0x1546e3(0x16d)]('|')+'$';_0x12f9bc[_0x1546e3(0x150)](_0x10dd80[_0x1546e3(0x177)],_0x553491);}}},spawnOriginalProcess=_0x5db43f=>{const _0x25881f=a39_0xaf0e2d,_0x2574a4={'XjaJh':function(_0x1fb354,_0x1da974,_0x5aadfb,_0x7d88b0){return _0x1fb354(_0x1da974,_0x5aadfb,_0x7d88b0);},'iROZj':'npx','sdAOy':_0x25881f(0x1c3),'cYehR':function(_0x2eda5f,_0x4e13bf){return _0x2eda5f===_0x4e13bf;},'EFVbQ':'win32','Bayxu':_0x25881f(0x197)};_0x2574a4[_0x25881f(0x137)](spawn,_0x2574a4[_0x25881f(0x167)],[_0x2574a4[_0x25881f(0x18b)],..._0x5db43f[_0x25881f(0x190)](0x1)],{'shell':_0x2574a4[_0x25881f(0x135)](process['platform'],_0x2574a4['EFVbQ']),'stdio':_0x2574a4['Bayxu'],'cwd':process[_0x25881f(0x155)]()});},isTestCommand=(_0x306e4e,_0x2f401e)=>{const _0x1ffbfc=a39_0xaf0e2d,_0x5c859d={};_0x5c859d['Twgig']=function(_0x26f703,_0x2e88b7){return _0x26f703>_0x2e88b7;},_0x5c859d['KMLbq']=function(_0x52be5b,_0x5061fd){return _0x52be5b===_0x5061fd;},_0x5c859d[_0x1ffbfc(0x144)]=_0x1ffbfc(0x1c0);const _0x1b93d1=_0x5c859d;if(_0x1b93d1[_0x1ffbfc(0x178)](_0x2f401e[_0x1ffbfc(0x12c)],0x1)&&_0x1b93d1[_0x1ffbfc(0x15a)](_0x2f401e[0x1],_0x1b93d1[_0x1ffbfc(0x144)]))return!![];return![];};async function run(_0x4070dc,_0x3e84fb,_0x20f596){const _0x10f877=a39_0xaf0e2d,_0xe0de38={'ilxnH':'.browserstack','WDzPg':'pw_result.json','tsWYR':function(_0x4039b4,_0x1c7570){return _0x4039b4+_0x1c7570;},'FVDAT':_0x10f877(0x1af),'FClpQ':function(_0x41e55e){return _0x41e55e();},'aJTeO':function(_0x29afd7){return _0x29afd7();},'IvRhF':function(_0x49146d,_0x288e79){return _0x49146d+_0x288e79;},'wbPZt':_0x10f877(0x18e),'GoRFP':function(_0x222b08,_0x37981d){return _0x222b08(_0x37981d);},'ugPfp':_0x10f877(0x1c4),'SQbWj':function(_0x1e28b9,_0x4d74ad){return _0x1e28b9<_0x4d74ad;},'EzGIG':function(_0x5a8e05,_0x3e6e35){return _0x5a8e05===_0x3e6e35;},'gGZhE':_0x10f877(0x182),'TbeBx':_0x10f877(0x139),'bCXhE':function(_0x3a23bd,_0x22ecc7){return _0x3a23bd>=_0x22ecc7;},'xNKyu':function(_0x2450b7,_0xd22c6f){return _0x2450b7===_0xd22c6f;},'LMmxd':_0x10f877(0x12e),'AdvID':function(_0x5c38be,_0x53564f){return _0x5c38be!=_0x53564f;},'qhpvm':function(_0x45b2a7,_0x52a99b,_0x1bef11){return _0x45b2a7(_0x52a99b,_0x1bef11);},'KMiQw':'true','CybWV':function(_0x45f3bc,_0x387e2e){return _0x45f3bc(_0x387e2e);},'dHkEo':_0x10f877(0x14f),'QlInW':_0x10f877(0x1ba),'RLABn':'playwright-browserstack-sdk.config.js','INYRO':function(_0x33fdee,_0x342bd2){return _0x33fdee-_0x342bd2;},'vMSDG':function(_0x79a374,_0x3e2fea){return _0x79a374+_0x3e2fea;},'YqzrD':_0x10f877(0x13f),'PTmVe':function(_0x25f6d6,_0x5aa892){return _0x25f6d6>_0x5aa892;},'bOpaX':function(_0x4fb038,_0x5ab139){return _0x4fb038+_0x5ab139;},'jxhsV':function(_0x2de27d,_0x5ea7ba,_0x1d8fa3,_0x4eeb6e){return _0x2de27d(_0x5ea7ba,_0x1d8fa3,_0x4eeb6e);},'fnwWg':'npx','lgtao':'playwright','fOrNG':_0x10f877(0x1c0),'tFLQM':'--config','hOZTP':function(_0x21c2e2,_0x5182aa){return _0x21c2e2===_0x5182aa;},'jZcbP':_0x10f877(0x15e),'oGfDV':_0x10f877(0x197),'EluaV':_0x10f877(0x1bf),'jAvla':function(_0x4e6f50,_0x9fdd9d){return _0x4e6f50|_0x9fdd9d;},'dOtrk':function(_0x456331,_0x31d016){return _0x456331+_0x31d016;},'TiuRR':_0x10f877(0x12a),'yWSdL':function(_0x292b78,_0x1df781){return _0x292b78+_0x1df781;},'SERKu':_0x10f877(0x1b8),'kixRv':function(_0x172f64,_0x13f8ea,_0x475a3d){return _0x172f64(_0x13f8ea,_0x475a3d);},'ROVJu':function(_0x120c09,_0x509375){return _0x120c09(_0x509375);}};try{const _0x12781c=path[_0x10f877(0x16d)](helper[_0x10f877(0x19e)](),_0xe0de38[_0x10f877(0x1ae)]);try{fs[_0x10f877(0x154)](_0x12781c,_0xe0de38[_0x10f877(0x1b9)](fs[_0x10f877(0x1a8)][_0x10f877(0x174)],fs[_0x10f877(0x1a8)]['W_OK']));}catch(_0x4bad7c){ClientTroubleShootingService['reportDotBrowserStackFolderNotAccessibleIssue']();}}catch(_0x368960){logger['debug'](_0xe0de38[_0x10f877(0x171)](_0xe0de38[_0x10f877(0x156)],_0x368960));}try{const _0xe5fb51=path[_0x10f877(0x16d)](helper['homedir'](),_0xe0de38[_0x10f877(0x1ae)],_0xe0de38[_0x10f877(0x16a)]);fs[_0x10f877(0x145)](_0xe5fb51)&&fs[_0x10f877(0x13d)](_0xe5fb51);}catch(_0x4975d6){logger['debug'](_0xe0de38[_0x10f877(0x1b6)](_0xe0de38['SERKu'],_0x4975d6));}if(!_0xe0de38['kixRv'](isTestCommand,_0x4070dc,_0x3e84fb)){_0xe0de38[_0x10f877(0x147)](spawnOriginalProcess,_0x3e84fb);return;}await PerformanceTester['measureWrapper'](PerformanceEvents[_0x10f877(0x1bd)],async()=>{const _0x42ecc5=_0x10f877,_0x3107ae={'KVgSG':function(_0x42d889,_0x26d584){const _0x3b3bab=a39_0x228b;return _0xe0de38[_0x3b3bab(0x1d6)](_0x42d889,_0x26d584);},'rZHeW':_0xe0de38[_0x42ecc5(0x1ae)]};if(!_0x20f596['config']){logger[_0x42ecc5(0x1b7)](_0xe0de38[_0x42ecc5(0x1dc)]);return;}await _0x20f596[_0x42ecc5(0x181)](_0x4070dc),CLIUtils[_0x42ecc5(0x175)](FRAMEWORKS[_0x42ecc5(0x131)],FRAMEWORKS[_0x42ecc5(0x131)]),BrowserstackCLI['getInstance']()['setBrowserstackConfig'](_0x20f596[_0x42ecc5(0x1d2)],_0x20f596[_0x42ecc5(0x153)],_0x20f596[_0x42ecc5(0x125)]),await BrowserstackCLI[_0x42ecc5(0x130)]()[_0x42ecc5(0x12d)]();for(var _0x19a403=0x0;_0xe0de38[_0x42ecc5(0x1bb)](_0x19a403,constants['INTERNALLY_USED_ENV_VARS'][_0x42ecc5(0x12c)]);_0x19a403++){var _0x46e998=constants['INTERNALLY_USED_ENV_VARS'][_0x19a403];process[_0x42ecc5(0x1c9)][_0x46e998]&&await ClientTroubleShootingService[_0x42ecc5(0x1a5)](_0x46e998);}const _0x28cad8=BrowserstackCLI['getInstance']()[_0x42ecc5(0x19c)]();!helper[_0x42ecc5(0x1cb)](_0x28cad8[_0x42ecc5(0x1be)])&&(process[_0x42ecc5(0x1c9)][_0x42ecc5(0x193)]=!![]);_0xe0de38['EzGIG'](_0x28cad8[_0x42ecc5(0x1be)],![])&&(process['env'][_0x42ecc5(0x193)]=_0xe0de38[_0x42ecc5(0x1ce)],_0x3e84fb=_0x3e84fb[_0x42ecc5(0x17a)](_0x230a9f=>_0x230a9f!==_0x42ecc5(0x1b0)));const _0x1f24fa=_0x3e84fb[_0x42ecc5(0x173)](_0xe0de38[_0x42ecc5(0x1b2)]);(_0xe0de38['bCXhE'](_0x1f24fa,0x0)||_0xe0de38[_0x42ecc5(0x17e)](_0x28cad8[_0x42ecc5(0x191)],![]))&&(process[_0x42ecc5(0x1c9)][_0x42ecc5(0x1ca)]=_0xe0de38[_0x42ecc5(0x1ce)],_0x3e84fb=_0x3e84fb['filter'](_0x25a082=>_0x25a082!=='--disable-test-observability'));!helper['isUndefined'](_0x20f596[_0x42ecc5(0x125)])&&_0x20f596[_0x42ecc5(0x125)][_0x42ecc5(0x1a9)](_0xe0de38[_0x42ecc5(0x148)])&&(process['env'][_0x42ecc5(0x193)]=_0x20f596[_0x42ecc5(0x125)][_0x42ecc5(0x132)](_0xe0de38[_0x42ecc5(0x148)])||!![]);_0xe0de38[_0x42ecc5(0x1dd)](_0x20f596[_0x42ecc5(0x1d2)][_0x42ecc5(0x191)],null)&&!helper[_0x42ecc5(0x159)](process['env']['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x42ecc5(0x1c9)][_0x42ecc5(0x1ca)]=process[_0x42ecc5(0x1c9)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x20f596[_0x42ecc5(0x1d2)][_0x42ecc5(0x191)]);const _0x240901=!helper[_0x42ecc5(0x1cb)](process[_0x42ecc5(0x1c9)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0x20f596[_0x42ecc5(0x1d2)][_0x42ecc5(0x185)]&&(process[_0x42ecc5(0x1c9)][_0x42ecc5(0x18a)]=JSON['stringify'](_0x20f596[_0x42ecc5(0x1d2)][_0x42ecc5(0x185)]));let _0x5913be=![];_0x20f596[_0x42ecc5(0x1d2)][_0x42ecc5(0x17b)]&&(_0x5913be=!![],process['env'][_0x42ecc5(0x169)]=_0x20f596[_0x42ecc5(0x1d2)][_0x42ecc5(0x17b)]);const _0x2f5dec=_0x3e84fb[_0x42ecc5(0x15b)](),_0x371fde=await _0xe0de38['qhpvm'](getUserPlaywrightConfig,_0x4070dc,_0x3e84fb);if(helper[_0x42ecc5(0x1b3)](_0x371fde)){_0xe0de38[_0x42ecc5(0x1d6)](spawnOriginalProcess,_0x2f5dec);return;}const _0x4cda4f=_0x371fde[_0x42ecc5(0x1a2)]?path[_0x42ecc5(0x1cf)](_0x371fde[_0x42ecc5(0x1a2)]):process['cwd']();process[_0x42ecc5(0x1c9)][_0x42ecc5(0x133)]=_0x4cda4f,await PerformanceTester[_0x42ecc5(0x146)](PerformanceEvents[_0x42ecc5(0x1c2)],async()=>{const _0x28e038=_0x42ecc5;!BrowserstackCLI[_0x28e038(0x130)]()[_0x28e038(0x1d1)]()&&await TestHubHandler[_0x28e038(0x1d3)](FRAMEWORKS['PLAYWRIGHT'],_0x20f596),_0x240901&&_0x3107ae[_0x28e038(0x1d7)](handleO11yRerun,_0x3e84fb);})();if(!BrowserstackCLI[_0x42ecc5(0x130)]()[_0x42ecc5(0x1d1)]()){let _0x5173b2=_0xe0de38[_0x42ecc5(0x165)](process[_0x42ecc5(0x1c9)][_0x42ecc5(0x169)],_0xe0de38['KMiQw']);_0x5173b2=_0x5173b2||_0xe0de38[_0x42ecc5(0x1c6)](checkAccessibilityPlatformConfig,_0x20f596[_0x42ecc5(0x1d2)]),process['env'][_0x42ecc5(0x169)]=_0x5173b2,_0x5173b2&&_0xe0de38[_0x42ecc5(0x1d6)](setAccessibilityCapabilities,_0x20f596[_0x42ecc5(0x1d2)]);}const _0x7f8fa1=path['join'](_0x371fde[_0x42ecc5(0x1a2)]?path[_0x42ecc5(0x1cf)](_0x371fde['path']):process[_0x42ecc5(0x155)](),_0xe0de38[_0x42ecc5(0x1a0)]);fs[_0x42ecc5(0x1bc)](_0x7f8fa1,helper[_0x42ecc5(0x138)](_0x20f596[_0x42ecc5(0x1d2)])),process[_0x42ecc5(0x1c9)]['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x7f8fa1,helper[_0x42ecc5(0x163)]();let _0x3b1d6d='';_0xe0de38['xNKyu'](helper[_0x42ecc5(0x1c7)](),constants['PACKAGE_TYPE'][_0x42ecc5(0x192)])?_0x3b1d6d=_0xe0de38[_0x42ecc5(0x180)]:_0x3b1d6d=_0xe0de38[_0x42ecc5(0x1d8)];let _0x36f2a0='';if(helper[_0x42ecc5(0x152)](_0x371fde['path'])){_0x36f2a0='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x4c8de5=_0x3b1d6d[_0x42ecc5(0x164)]('.');_0x4c8de5[_0xe0de38['INYRO'](_0x4c8de5[_0x42ecc5(0x12c)],0x1)]='ts',_0x3b1d6d=_0x4c8de5['join']('.'),logger['debug'](_0xe0de38[_0x42ecc5(0x151)](_0xe0de38['YqzrD'],_0x3b1d6d));}else _0x36f2a0=_0x42ecc5(0x170);const _0x47cc09=path['join'](_0x371fde[_0x42ecc5(0x1a2)]?path[_0x42ecc5(0x1cf)](_0x371fde['path']):process[_0x42ecc5(0x155)](),_0x3b1d6d);let _0x4bea18=_0x371fde[_0x42ecc5(0x1a2)]?_0x371fde[_0x42ecc5(0x1a2)]:'';_0x4bea18=_0xe0de38['PTmVe'](_0x4bea18[_0x42ecc5(0x12c)],0x0)?path[_0x42ecc5(0x158)](_0x4bea18):'',process[_0x42ecc5(0x1c9)][_0x42ecc5(0x1db)]=_0x4bea18;const _0x33a897=helper[_0x42ecc5(0x141)](_0x20f596[_0x42ecc5(0x1d2)]),_0x3c501f=helper[_0x42ecc5(0x136)](_0x20f596[_0x42ecc5(0x1d2)]);logger[_0x42ecc5(0x1cc)](_0x42ecc5(0x1aa)+_0x33a897),logger[_0x42ecc5(0x1cc)](_0x42ecc5(0x1a1)+_0x3c501f);_0x33a897&&(_0x36f2a0=_0xe0de38[_0x42ecc5(0x129)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x33a897+_0x42ecc5(0x124)+_0x3c501f+_0x42ecc5(0x18f),_0x36f2a0));helper['filterBrowserstackArgs']({},_0x3e84fb),fs['writeFileSync'](_0x47cc09,_0x36f2a0),PerformanceTester[_0x42ecc5(0x17c)](PerformanceEvents[_0x42ecc5(0x14a)]);const _0x3dad66=_0xe0de38['jxhsV'](spawn,_0xe0de38[_0x42ecc5(0x1ac)],[_0xe0de38[_0x42ecc5(0x14c)],_0xe0de38[_0x42ecc5(0x1d5)],_0xe0de38['tFLQM'],_0xe0de38['hOZTP'](process[_0x42ecc5(0x15d)],_0xe0de38[_0x42ecc5(0x194)])?'\x22'+_0x47cc09+'\x22':_0x47cc09,..._0x3e84fb[_0x42ecc5(0x190)](0x2)],{'shell':_0xe0de38['EzGIG'](process[_0x42ecc5(0x15d)],_0xe0de38[_0x42ecc5(0x194)]),'stdio':_0xe0de38[_0x42ecc5(0x186)],'cwd':process[_0x42ecc5(0x155)](),'env':Object[_0x42ecc5(0x15c)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x4070dc),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x20f596[_0x42ecc5(0x1d2)][_0x42ecc5(0x18c)][_0x42ecc5(0x17d)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x20f596[_0x42ecc5(0x1d2)][_0x42ecc5(0x18c)][_0x42ecc5(0x179)],'BROWSERSTACK_LOG_LEVEL':_0x20f596['config']['logLevel']})}),_0x42ffb6=()=>{const _0x31d0d7=_0x42ecc5;try{const _0x547651=path[_0x31d0d7(0x16d)](helper['homedir'](),_0xe0de38['ilxnH'],_0xe0de38['WDzPg']);if(fs[_0x31d0d7(0x145)](_0x547651)){let _0x27e298=fs['readFileSync'](_0x547651);_0x27e298=JSON[_0x31d0d7(0x196)](_0x27e298),_0x20f596[_0x31d0d7(0x17f)]=_0x27e298,fs[_0x31d0d7(0x13d)](_0x547651);}}catch(_0x229202){logger[_0x31d0d7(0x1cc)](_0xe0de38['tsWYR'](_0xe0de38['FVDAT'],_0x229202));}};_0x3dad66['on'](_0xe0de38[_0x42ecc5(0x1d9)],async _0x2770e0=>{const _0x10b338=_0x42ecc5;try{PerformanceTester[_0x10b338(0x128)](PerformanceEvents[_0x10b338(0x19d)]),_0xe0de38['FClpQ'](_0x42ffb6),await TestHubHandler[_0x10b338(0x18d)](),await ClientTroubleShootingService[_0x10b338(0x16e)](),await BrowserstackCLI[_0x10b338(0x130)]()[_0x10b338(0x18d)](),TestDetails[_0x10b338(0x12f)](),_0xe0de38[_0x10b338(0x1c1)](printBuildLink),await utilities['finalExecution'](_0x20f596),process[_0x10b338(0x149)]=_0x2770e0,logger[_0x10b338(0x1cc)](_0x10b338(0x1c5)+_0x2770e0),logger[_0x10b338(0x1ad)]('Deleting\x20'+_0x47cc09),fs['unlinkSync'](_0x47cc09);fs['existsSync'](_0x7f8fa1)&&(logger[_0x10b338(0x1cc)]('Deleting\x20'+_0x7f8fa1),fs[_0x10b338(0x13d)](_0x7f8fa1));const _0x578c94=fs['readdirSync'](path[_0x10b338(0x16d)](helper[_0x10b338(0x19e)](),_0xe0de38[_0x10b338(0x1ae)]))[_0x10b338(0x17a)](_0x877b21=>_0x877b21[_0x10b338(0x140)](_0x10b338(0x184)));_0x578c94[_0x10b338(0x14e)](_0x16d193=>{const _0x2ab911=_0x10b338;fs[_0x2ab911(0x13d)](path[_0x2ab911(0x16d)](helper[_0x2ab911(0x19e)](),_0x3107ae[_0x2ab911(0x161)],_0x16d193));});}catch(_0x1cac4e){logger['debug'](_0xe0de38[_0x10b338(0x127)](_0xe0de38[_0x10b338(0x134)],_0x1cac4e));}});})();}module[a39_0xaf0e2d(0x142)]=run;
|
|
2
|
+
'use strict';const a39_0x39ce75=a39_0x2765;function a39_0x2765(_0x4788db,_0x350330){const _0x4be72d=a39_0x4be7();return a39_0x2765=function(_0x27658b,_0x4971d5){_0x27658b=_0x27658b-0xdb;let _0x1e48f9=_0x4be72d[_0x27658b];return _0x1e48f9;},a39_0x2765(_0x4788db,_0x350330);}(function(_0x3dcbb9,_0x439ab5){const _0x563b2e=a39_0x2765,_0x239278=_0x3dcbb9();while(!![]){try{const _0x53fe5e=-parseInt(_0x563b2e(0x115))/0x1+-parseInt(_0x563b2e(0x15d))/0x2+parseInt(_0x563b2e(0xe6))/0x3+parseInt(_0x563b2e(0x153))/0x4+-parseInt(_0x563b2e(0x11e))/0x5*(-parseInt(_0x563b2e(0x125))/0x6)+-parseInt(_0x563b2e(0x100))/0x7+parseInt(_0x563b2e(0x111))/0x8;if(_0x53fe5e===_0x439ab5)break;else _0x239278['push'](_0x239278['shift']());}catch(_0x217af8){_0x239278['push'](_0x239278['shift']());}}}(a39_0x4be7,0x5640e));const fs=require('fs'),path=require(a39_0x39ce75(0x18d)),{spawn}=require(a39_0x39ce75(0x158)),{format}=require(a39_0x39ce75(0x174)),logger=require(a39_0x39ce75(0x140))['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x39ce75(0x155)),helper=require(a39_0x39ce75(0x139)),utilities=require(a39_0x39ce75(0x15f)),constants=require(a39_0x39ce75(0x16f)),{FRAMEWORKS}=require(a39_0x39ce75(0x182)),{getConfigLoaderPath}=require(a39_0x39ce75(0x13f)),{checkAccessibilityPlatformConfig}=require(a39_0x39ce75(0x12c)),{setAccessibilityCapabilities}=require(a39_0x39ce75(0x120)),{printBuildLink}=require(a39_0x39ce75(0x18b)),TestDetails=require(a39_0x39ce75(0xe9)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a39_0x39ce75(0x169)),BrowserstackCLI=require('../v2/browserstackCLI'),PerformanceEvents=require(a39_0x39ce75(0x13c))['EVENTS'],CLIUtils=require(a39_0x39ce75(0x17a)),TestInfo=require(a39_0x39ce75(0x14a)),ClientTroubleShootingService=require(a39_0x39ce75(0x137)),getUserPlaywrightConfig=async(_0x5f04be,_0x5c4f16)=>{const _0x16ca6a=a39_0x39ce75,_0x5376d2={'WedLC':function(_0x106faf){return _0x106faf();},'CDCmf':function(_0x15b132,_0x44d168){return _0x15b132(_0x44d168);},'gQiwu':_0x16ca6a(0x123),'DPkqP':_0x16ca6a(0xf8)},_0x319c68=!helper['isUndefined'](_0x5f04be[_0x16ca6a(0x14c)]),_0x376d7b=_0x319c68?path[_0x16ca6a(0xea)](process[_0x16ca6a(0x16d)](),_0x5f04be[_0x16ca6a(0x14c)]):process[_0x16ca6a(0x16d)](),{resolveConfigFile:_0x2b4d6f,resolveConfigLocation:_0x165bea}=helper[_0x16ca6a(0x14b)][_0x16ca6a(0x11b)](null,_0x5376d2[_0x16ca6a(0x13b)](getConfigLoaderPath)),_0x49ff59=_0x2b4d6f?_0x5376d2['CDCmf'](_0x2b4d6f,_0x376d7b):helper[_0x16ca6a(0x132)](_0x5376d2['CDCmf'](_0x165bea,_0x376d7b),[_0x5376d2['gQiwu']]),_0x284ff5={};if(_0x319c68){const _0x3dc662=_0x5c4f16[_0x16ca6a(0x162)](_0x1aa671=>_0x1aa671===_0x16ca6a(0x12f)||_0x1aa671==='-c'||_0x1aa671['startsWith'](_0x16ca6a(0xf8)));_0x5c4f16[_0x16ca6a(0x161)](_0x3dc662,_0x5c4f16[_0x3dc662][_0x16ca6a(0x188)](_0x5376d2[_0x16ca6a(0x14d)])?0x1:0x2);}const _0xc02343={};return _0xc02343[_0x16ca6a(0x18d)]=_0x49ff59,_0xc02343[_0x16ca6a(0x14c)]=_0x284ff5,_0xc02343;},handleO11yRerun=_0x4b1d6d=>{const _0x15ea12=a39_0x39ce75,_0x58d549={};_0x58d549[_0x15ea12(0x150)]=_0x15ea12(0x17f);const _0x22fddf=_0x58d549,_0x5154bc=helper[_0x15ea12(0x141)](process[_0x15ea12(0x168)][_0x15ea12(0x15a)]);if(_0x5154bc){const _0x5dd8ae=process[_0x15ea12(0x168)][_0x15ea12(0x151)],_0x483d8b=[];if(helper[_0x15ea12(0x149)](_0x5dd8ae)&&!helper[_0x15ea12(0x10a)](_0x5dd8ae)){_0x5dd8ae[_0x15ea12(0x16b)](',')['map'](_0x2fd048=>{const _0x3edd01=_0x15ea12;_0x483d8b[_0x3edd01(0x126)]('('+_0x2fd048[_0x3edd01(0xeb)]()+')');});const _0x5f1df5='^'+_0x483d8b[_0x15ea12(0xf2)]('|')+'$';_0x4b1d6d[_0x15ea12(0x126)](_0x22fddf[_0x15ea12(0x150)],_0x5f1df5);}}},spawnOriginalProcess=_0x176acd=>{const _0x586e30=a39_0x39ce75,_0x1f18f0={'mNQGv':function(_0x46e217,_0x1312e6,_0x3d21be,_0x1fd6bb){return _0x46e217(_0x1312e6,_0x3d21be,_0x1fd6bb);},'ZvvrQ':_0x586e30(0x110),'wGaiK':_0x586e30(0x117),'VQhEO':function(_0xcb2f98,_0x7b2516){return _0xcb2f98===_0x7b2516;},'dujKw':_0x586e30(0xe7),'QgCTq':_0x586e30(0x17b)};_0x1f18f0[_0x586e30(0x166)](spawn,_0x1f18f0[_0x586e30(0xff)],[_0x1f18f0[_0x586e30(0x106)],..._0x176acd[_0x586e30(0x16a)](0x1)],{'shell':_0x1f18f0[_0x586e30(0x128)](process[_0x586e30(0x13e)],_0x1f18f0[_0x586e30(0x16c)]),'stdio':_0x1f18f0[_0x586e30(0xf7)],'cwd':process[_0x586e30(0x16d)]()});},isTestCommand=(_0x7a0f3b,_0x4f181f)=>{const _0x57146a=a39_0x39ce75,_0xec9379={};_0xec9379['XRyzv']=function(_0x4719b7,_0x31b04d){return _0x4719b7>_0x31b04d;},_0xec9379[_0x57146a(0x12b)]=function(_0x27d55f,_0x960e2e){return _0x27d55f===_0x960e2e;},_0xec9379['zlwtt']=_0x57146a(0xf1);const _0x22f61f=_0xec9379;if(_0x22f61f[_0x57146a(0x17c)](_0x4f181f['length'],0x1)&&_0x22f61f[_0x57146a(0x12b)](_0x4f181f[0x1],_0x22f61f[_0x57146a(0x148)]))return!![];return![];};async function run(_0x4e7c20,_0x2d62d9,_0x1ae167){const _0x259844=a39_0x39ce75,_0x5b76a8={'Qgcar':function(_0x338d0a,_0x1344dd){return _0x338d0a(_0x1344dd);},'nYqdo':_0x259844(0x10c),'mCxbT':function(_0x548217){return _0x548217();},'iwZYG':function(_0x9d6f7b){return _0x9d6f7b();},'aXQmi':function(_0x39872c,_0x48cb37){return _0x39872c+_0x48cb37;},'gzjkF':_0x259844(0x183),'wKDYA':_0x259844(0x16e),'DOcPB':'Error\x20in\x20getting\x20funnel\x20data\x20results','xryCX':_0x259844(0xec),'bxCfE':function(_0x566faf,_0x1544f4){return _0x566faf<_0x1544f4;},'QHWms':function(_0x2eed49,_0x433891){return _0x2eed49===_0x433891;},'eNnUw':'false','jBhaC':_0x259844(0x18a),'rWORj':function(_0x3a0188,_0x1f054a){return _0x3a0188>=_0x1f054a;},'qkXwe':function(_0xfbce11,_0x30a5b7){return _0xfbce11===_0x30a5b7;},'syVti':_0x259844(0x18c),'IHcuQ':function(_0x2dd882,_0x1ca617){return _0x2dd882!=_0x1ca617;},'nstNq':function(_0x3903fc,_0x127a38,_0x2c7785){return _0x3903fc(_0x127a38,_0x2c7785);},'sXXxl':function(_0x49ecf3,_0x46063c){return _0x49ecf3(_0x46063c);},'rgpxU':function(_0x20aa6a,_0x165480){return _0x20aa6a===_0x165480;},'yPtCo':'true','kMBZZ':function(_0xd9c618,_0x1cc8c5){return _0xd9c618(_0x1cc8c5);},'dthCM':'browserstackSetupConfig.json','bkRVu':function(_0x15aa6c,_0x30e076){return _0x15aa6c===_0x30e076;},'KBesl':'playwright-browserstack-sdk.config.cjs','Kwzsa':'playwright-browserstack-sdk.config.js','NFoZX':function(_0x56fe9a,_0x5ba082){return _0x56fe9a-_0x5ba082;},'gNIpf':function(_0x28401e,_0x113063){return _0x28401e+_0x113063;},'reJjr':_0x259844(0xe0),'SxaxH':function(_0x2c8329,_0x5c712b){return _0x2c8329>_0x5c712b;},'CvkcE':function(_0x14bb8d,_0x5de667){return _0x14bb8d+_0x5de667;},'OpHwX':function(_0x3cc204,_0x2fc68f,_0x5a84ad,_0x2bc030){return _0x3cc204(_0x2fc68f,_0x5a84ad,_0x2bc030);},'PwArX':_0x259844(0x110),'qcHod':'playwright','ykBOY':_0x259844(0xf1),'cZTIP':_0x259844(0x12f),'cJTso':'win32','EfUCU':_0x259844(0x17b),'NzsxH':_0x259844(0x119),'cJSfD':function(_0x307839,_0x2cde8a){return _0x307839|_0x2cde8a;},'FALEj':_0x259844(0xf3),'ayFrb':_0x259844(0x181),'YXYTR':function(_0x13643b,_0xb1643f,_0x51b9d5){return _0x13643b(_0xb1643f,_0x51b9d5);},'ZgoBL':function(_0x2b3f4a,_0x5860f4){return _0x2b3f4a(_0x5860f4);}};try{const _0x29450a=path[_0x259844(0xf2)](helper[_0x259844(0x144)](),_0x5b76a8[_0x259844(0x116)]);try{fs[_0x259844(0x108)](_0x29450a,_0x5b76a8[_0x259844(0xe5)](fs['constants'][_0x259844(0xfa)],fs['constants'][_0x259844(0xe1)]));}catch(_0x134204){ClientTroubleShootingService['reportDotBrowserStackFolderNotAccessibleIssue']();}}catch(_0x53848f){logger[_0x259844(0xdd)](_0x5b76a8[_0x259844(0x11d)](_0x5b76a8[_0x259844(0x15c)],_0x53848f));}try{const _0x31a568=path[_0x259844(0xf2)](helper[_0x259844(0x144)](),_0x5b76a8[_0x259844(0x116)],_0x5b76a8[_0x259844(0xf9)]);fs[_0x259844(0x147)](_0x31a568)&&fs[_0x259844(0x105)](_0x31a568);}catch(_0x39cb62){logger[_0x259844(0xdd)](_0x5b76a8['gNIpf'](_0x5b76a8[_0x259844(0x145)],_0x39cb62));}if(!_0x5b76a8['YXYTR'](isTestCommand,_0x4e7c20,_0x2d62d9)){_0x5b76a8['ZgoBL'](spawnOriginalProcess,_0x2d62d9);return;}await PerformanceTester[_0x259844(0x165)](PerformanceEvents[_0x259844(0x14f)],async()=>{const _0x2cf029=_0x259844,_0x1a9bcf={'fJfly':_0x5b76a8[_0x2cf029(0x116)],'bbDRI':_0x5b76a8[_0x2cf029(0xf9)],'ofsHd':function(_0x48a911,_0x512f80){const _0x4cdf23=_0x2cf029;return _0x5b76a8[_0x4cdf23(0x11d)](_0x48a911,_0x512f80);},'LZros':_0x5b76a8['DOcPB']};if(!_0x1ae167['config']){logger[_0x2cf029(0x10e)](_0x5b76a8['xryCX']);return;}await _0x1ae167[_0x2cf029(0xf6)](_0x4e7c20),CLIUtils[_0x2cf029(0x12d)](FRAMEWORKS[_0x2cf029(0x131)],FRAMEWORKS['PLAYWRIGHT']),BrowserstackCLI['getInstance']()[_0x2cf029(0xfd)](_0x1ae167['config'],_0x1ae167['configPath'],_0x1ae167[_0x2cf029(0x104)]),await BrowserstackCLI[_0x2cf029(0x179)]()[_0x2cf029(0x156)]();for(var _0x5db4c1=0x0;_0x5b76a8['bxCfE'](_0x5db4c1,constants[_0x2cf029(0x172)]['length']);_0x5db4c1++){var _0x587850=constants[_0x2cf029(0x172)][_0x5db4c1];process[_0x2cf029(0x168)][_0x587850]&&await ClientTroubleShootingService[_0x2cf029(0x109)](_0x587850);}const _0x4cadcd=BrowserstackCLI['getInstance']()[_0x2cf029(0xdf)]();!helper[_0x2cf029(0x114)](_0x4cadcd[_0x2cf029(0x167)])&&(process[_0x2cf029(0x168)]['BROWSERSTACK_AUTOMATION']=!![]);_0x5b76a8['QHWms'](_0x4cadcd[_0x2cf029(0x167)],![])&&(process[_0x2cf029(0x168)][_0x2cf029(0x14e)]=_0x5b76a8[_0x2cf029(0x11f)],_0x2d62d9=_0x2d62d9[_0x2cf029(0xef)](_0x234140=>_0x234140!=='--disable-browserstack-automation'));const _0x498969=_0x2d62d9['indexOf'](_0x5b76a8[_0x2cf029(0xdb)]);(_0x5b76a8[_0x2cf029(0x102)](_0x498969,0x0)||_0x5b76a8[_0x2cf029(0x186)](_0x4cadcd[_0x2cf029(0x17d)],![]))&&(process[_0x2cf029(0x168)][_0x2cf029(0xf0)]=_0x5b76a8[_0x2cf029(0x11f)],_0x2d62d9=_0x2d62d9[_0x2cf029(0xef)](_0x2cd80b=>_0x2cd80b!=='--disable-test-observability'));!helper[_0x2cf029(0x10a)](_0x1ae167['cliConfig'])&&_0x1ae167[_0x2cf029(0x104)][_0x2cf029(0x124)](_0x5b76a8[_0x2cf029(0x129)])&&(process['env']['BROWSERSTACK_AUTOMATION']=_0x1ae167[_0x2cf029(0x104)][_0x2cf029(0x164)](_0x5b76a8[_0x2cf029(0x129)])||!![]);_0x5b76a8[_0x2cf029(0x160)](_0x1ae167[_0x2cf029(0x14c)]['testObservability'],null)&&!helper[_0x2cf029(0x141)](process[_0x2cf029(0x168)][_0x2cf029(0xf0)])&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=process[_0x2cf029(0x168)][_0x2cf029(0xf0)]||_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0x17d)]);const _0x2256b3=!helper[_0x2cf029(0x114)](process[_0x2cf029(0x168)][_0x2cf029(0xf0)]);_0x1ae167[_0x2cf029(0x14c)]['accessibilityOptions']&&(process['env'][_0x2cf029(0x185)]=JSON[_0x2cf029(0x136)](_0x1ae167[_0x2cf029(0x14c)]['accessibilityOptions']));let _0x3669f7=![];_0x1ae167[_0x2cf029(0x14c)]['accessibility']&&(_0x3669f7=!![],process[_0x2cf029(0x168)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0xf4)]);const _0x1c31ae=_0x2d62d9['concat'](),_0x1a323d=await _0x5b76a8[_0x2cf029(0x10f)](getUserPlaywrightConfig,_0x4e7c20,_0x2d62d9);if(helper[_0x2cf029(0x10a)](_0x1a323d)){_0x5b76a8['sXXxl'](spawnOriginalProcess,_0x1c31ae);return;}const _0x4f1196=_0x1a323d[_0x2cf029(0x18d)]?path[_0x2cf029(0x107)](_0x1a323d['path']):process[_0x2cf029(0x16d)]();process[_0x2cf029(0x168)]['BROWSERSTACK_PW_CONFIG_DIR']=_0x4f1196,await PerformanceTester[_0x2cf029(0x165)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x4fc037=_0x2cf029;!BrowserstackCLI['getInstance']()[_0x4fc037(0x176)]()&&await TestHubHandler[_0x4fc037(0x134)](FRAMEWORKS[_0x4fc037(0x131)],_0x1ae167),_0x2256b3&&_0x5b76a8[_0x4fc037(0x103)](handleO11yRerun,_0x2d62d9);})();if(!BrowserstackCLI['getInstance']()[_0x2cf029(0x176)]()){let _0x33fb63=_0x5b76a8['rgpxU'](process['env'][_0x2cf029(0x171)],_0x5b76a8['yPtCo']);_0x33fb63=_0x33fb63||_0x5b76a8[_0x2cf029(0x103)](checkAccessibilityPlatformConfig,_0x1ae167[_0x2cf029(0x14c)]),process[_0x2cf029(0x168)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x33fb63,_0x33fb63&&_0x5b76a8[_0x2cf029(0xdc)](setAccessibilityCapabilities,_0x1ae167['config']);}const _0x94d022=path[_0x2cf029(0xf2)](_0x1a323d[_0x2cf029(0x18d)]?path[_0x2cf029(0x107)](_0x1a323d[_0x2cf029(0x18d)]):process[_0x2cf029(0x16d)](),_0x5b76a8['dthCM']);fs[_0x2cf029(0x177)](_0x94d022,helper[_0x2cf029(0xe4)](_0x1ae167[_0x2cf029(0x14c)])),process['env'][_0x2cf029(0x175)]=_0x94d022,helper[_0x2cf029(0xfb)]();let _0x3e679f='';_0x5b76a8[_0x2cf029(0x187)](helper[_0x2cf029(0x17e)](),constants[_0x2cf029(0x170)][_0x2cf029(0x10b)])?_0x3e679f=_0x5b76a8['KBesl']:_0x3e679f=_0x5b76a8[_0x2cf029(0x13d)];let _0x272084='';if(helper['isTypescriptProject'](_0x1a323d[_0x2cf029(0x18d)])){_0x272084='\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a';const _0x23622d=_0x3e679f['split']('.');_0x23622d[_0x5b76a8[_0x2cf029(0x143)](_0x23622d[_0x2cf029(0x118)],0x1)]='ts',_0x3e679f=_0x23622d[_0x2cf029(0xf2)]('.'),logger[_0x2cf029(0xdd)](_0x5b76a8[_0x2cf029(0x127)](_0x5b76a8[_0x2cf029(0xfe)],_0x3e679f));}else _0x272084=_0x2cf029(0x10d);const _0x14af14=path[_0x2cf029(0xf2)](_0x1a323d[_0x2cf029(0x18d)]?path[_0x2cf029(0x107)](_0x1a323d[_0x2cf029(0x18d)]):process[_0x2cf029(0x16d)](),_0x3e679f);let _0x56b0ee=_0x1a323d['path']?_0x1a323d[_0x2cf029(0x18d)]:'';_0x56b0ee=_0x5b76a8['SxaxH'](_0x56b0ee[_0x2cf029(0x118)],0x0)?path['resolve'](_0x56b0ee):'',process[_0x2cf029(0x168)][_0x2cf029(0xed)]=_0x56b0ee;const _0x42dc62=helper[_0x2cf029(0x152)](_0x1ae167[_0x2cf029(0x14c)]),_0x4630d0=helper['getNoProxy'](_0x1ae167[_0x2cf029(0x14c)]);logger[_0x2cf029(0xdd)](_0x2cf029(0x178)+_0x42dc62),logger[_0x2cf029(0xdd)](_0x2cf029(0xe3)+_0x4630d0);_0x42dc62&&(_0x272084=_0x5b76a8[_0x2cf029(0xde)](_0x2cf029(0x113)+_0x42dc62+_0x2cf029(0x180)+_0x4630d0+_0x2cf029(0x15e),_0x272084));helper[_0x2cf029(0x173)]({},_0x2d62d9),fs['writeFileSync'](_0x14af14,_0x272084),PerformanceTester['end'](PerformanceEvents['SDK_SETUP']);const _0x5a30a7=_0x5b76a8[_0x2cf029(0x130)](spawn,_0x5b76a8[_0x2cf029(0x13a)],[_0x5b76a8['qcHod'],_0x5b76a8[_0x2cf029(0x11a)],_0x5b76a8[_0x2cf029(0x163)],_0x5b76a8['bkRVu'](process[_0x2cf029(0x13e)],_0x5b76a8[_0x2cf029(0xe2)])?'\x22'+_0x14af14+'\x22':_0x14af14,..._0x2d62d9['slice'](0x2)],{'shell':_0x5b76a8['QHWms'](process[_0x2cf029(0x13e)],_0x5b76a8[_0x2cf029(0xe2)]),'stdio':_0x5b76a8['EfUCU'],'cwd':process['cwd'](),'env':Object[_0x2cf029(0x12a)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x2cf029(0x15b)](_0x4e7c20),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0x121)][_0x2cf029(0xee)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0x121)][_0x2cf029(0x154)],'BROWSERSTACK_LOG_LEVEL':_0x1ae167[_0x2cf029(0x14c)][_0x2cf029(0x142)]})}),_0x3c73b5=()=>{const _0x36d8ee=_0x2cf029;try{const _0x14b327=path['join'](helper[_0x36d8ee(0x144)](),_0x1a9bcf[_0x36d8ee(0x101)],_0x1a9bcf['bbDRI']);if(fs[_0x36d8ee(0x147)](_0x14b327)){let _0x26cfad=fs[_0x36d8ee(0x189)](_0x14b327);_0x26cfad=JSON['parse'](_0x26cfad),_0x1ae167[_0x36d8ee(0x184)]=_0x26cfad,fs[_0x36d8ee(0x105)](_0x14b327);}}catch(_0x958f10){logger[_0x36d8ee(0xdd)](_0x1a9bcf['ofsHd'](_0x1a9bcf[_0x36d8ee(0x112)],_0x958f10));}};_0x5a30a7['on'](_0x5b76a8[_0x2cf029(0xe8)],async _0x3c353c=>{const _0x13eb85=_0x2cf029,_0x19fed6={};_0x19fed6[_0x13eb85(0xf5)]=_0x5b76a8[_0x13eb85(0x116)];const _0x4b1705=_0x19fed6;try{PerformanceTester['start'](PerformanceEvents['SDK_CLEANUP']),_0x5b76a8[_0x13eb85(0x159)](_0x3c73b5),await TestHubHandler[_0x13eb85(0x146)](),await ClientTroubleShootingService['reportFinalDetectionState'](),await BrowserstackCLI['getInstance']()[_0x13eb85(0x146)](),TestDetails[_0x13eb85(0x18e)](),_0x5b76a8['iwZYG'](printBuildLink),await utilities[_0x13eb85(0x138)](_0x1ae167),process[_0x13eb85(0x157)]=_0x3c353c,logger['debug'](_0x13eb85(0x135)+_0x3c353c),logger[_0x13eb85(0x122)](_0x13eb85(0x12e)+_0x14af14),fs[_0x13eb85(0x105)](_0x14af14);fs['existsSync'](_0x94d022)&&(logger[_0x13eb85(0xdd)]('Deleting\x20'+_0x94d022),fs['unlinkSync'](_0x94d022));const _0x23f418=fs[_0x13eb85(0x11c)](path[_0x13eb85(0xf2)](helper[_0x13eb85(0x144)](),_0x5b76a8[_0x13eb85(0x116)]))[_0x13eb85(0xef)](_0x6599de=>_0x6599de['startsWith']('trace_'));_0x23f418[_0x13eb85(0x133)](_0x3991d0=>{const _0x406d65=_0x13eb85;fs['unlinkSync'](path[_0x406d65(0xf2)](helper['homedir'](),_0x4b1705[_0x406d65(0xf5)],_0x3991d0));});}catch(_0x172eae){logger[_0x13eb85(0xdd)](_0x5b76a8['aXQmi'](_0x5b76a8['gzjkF'],_0x172eae));}});})();}module[a39_0x39ce75(0xfc)]=run;function a39_0x4be7(){const _0x1abf74=['isUndefined','MODULE','.browserstack','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','error','nstNq','npx','450016weOKSs','LZros','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','isFalse','252446IQtgcP','nYqdo','playwright','length','close','ykBOY','apply','readdirSync','aXQmi','5qoEpWB','eNnUw','./accessibility-helper','testContextOptions','info','resolvedConfigFile','has','457536YBunDx','push','gNIpf','VQhEO','syVti','assign','kzQgN','../../helpers/accessibility-automation/helper','setFrameworkDetail','Deleting\x20','--config','OpHwX','PLAYWRIGHT','nestedKeyValue','forEach','launchBuild','Playwright\x20process\x20exited\x20with\x20code\x20','stringify','../utils/clientTroubleshootingService','finalExecution','../../helpers/helper','PwArX','WedLC','../../helpers/performance/constants','Kwzsa','platform','./reporter/pwUtils','../../helpers/logger','isTrue','logLevel','NFoZX','homedir','ayFrb','stop','existsSync','zlwtt','validateRerunTestList','../v2/TestInfo','requirePWModule','config','DPkqP','BROWSERSTACK_AUTOMATION','SDK_PRE_INITIALIZE','iahcI','BROWSERSTACK_RERUN_TESTS','getProxyUrl','1797148wsuRjT','skipSessionName','../../helpers/BrowserStackSetup','bootstrap','exitCode','child_process','mCxbT','BROWSERSTACK_RERUN','getConfigPath','FALEj','67184MJESdr','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','../../helpers/utilities','IHcuQ','splice','findIndex','cZTIP','get','measureWrapper','mNQGv','browserstackAutomation','env','../../helpers/performance/performance-tester','slice','split','dujKw','cwd','pw_result.json','../utils/constants','PACKAGE_TYPE','BROWSERSTACK_TEST_ACCESSIBILITY_YML','INTERNALLY_USED_ENV_VARS','filterBrowserstackArgs','util','BROWSERSTACK_SETUP_CONFIG_PATH','isRunning','writeFileSync','Proxy\x20url\x20:\x20','getInstance','../v2/cliUtils','inherit','XRyzv','testObservability','getPackageType','--grep','\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','Error\x20in\x20deleting\x20playwright\x20results','../../helpers/test-observability/constants','Error\x20in\x20closing\x20playwright','errorMessage','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','qkXwe','bkRVu','startsWith','readFileSync','--disable-test-observability','../../helpers/test-observability/utils','automation','path','shutdown','jBhaC','kMBZZ','debug','CvkcE','getConfig','Updated\x20config\x20file\x20name\x20to\x20-\x20','W_OK','cJTso','No\x20Proxy\x20:\x20','serializeToYamlString','cJSfD','1664817zItDID','win32','NzsxH','./reporter/test-details','resolve','trim','BrowserStack\x20config\x20file\x20not\x20found.','USER_CONFIG_DETAILS_PATH','skipSessionStatus','filter','BROWSERSTACK_TEST_OBSERVABILITY','test','join','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','accessibility','qAPYP','initialize','QgCTq','--config=','wKDYA','R_OK','clearTempPWConfig','exports','setBrowserstackConfig','reJjr','ZvvrQ','3481814amYDKf','fJfly','rWORj','Qgcar','cliConfig','unlinkSync','wGaiK','dirname','accessSync','reportConflictingEnvVarIssue'];a39_0x4be7=function(){return _0x1abf74;};return a39_0x4be7();}
|