browserstack-node-sdk 1.42.3 → 1.42.4
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/cucumber-sessionDetails.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/playwright-patcher.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_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/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/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/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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/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
|
-
function a34_0x793a(){const _0x1dc908=['setCapabilities','__driversArray','mVsgj','nqZgy','DoFWn','__setBrowserOptions','ABGqG','proxy_','12rQgrbN','NglVj','edgeOptions','qMCvG','quitCount_','logLevel','mAfMn','set','2387732dniIcr','split','nCjpn','CVimq','Proxy\x20set\x20to\x20','setLogLevel','../../../helpers/logger','New\x20hub\x20url\x20set\x20to\x20','ieOptions','pMFzY','firefoxOptions_','FuBWg','KzDJE','getAccessibilityResultsSummary','url_','send','HttpClient','5503715BGMlqo','Setting\x20Browserstack\x20capabilities','__drivers','chromeOptions_','setGlobal','caps_','proxySettings','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','storeOptimalHubUrl','setServer','requireSeleniumWebdriver','zXqGa','PScRt','../../../helpers/helper','getRequestOptions','isPacProxy','wzjSQ','17851750jSCKlM','getHubUrl','1692052NIIBag','originalBuilder','EeItT','edgeOptions_','../../../helpers/globals','itPAe','vxDBO','../../../bin/utils/constants','newHubUrl','584781VeaNvs','overrideGet','options_','GEAzK','liSEo','/session','WEUBn','EBxgn','winstonLogger','288054msmXDX','debug','isBrowserstackInfra','./helpers/patchHelper','optimalHubUrl','capability','Builder','CAPABILITY_KEY','object','NQDZX','ziaqS','getAccessibilityResults','mergeDeep','forEach','dFZql','updateHubUrl','agent_','getGlobal','uLJiI','315680uLUHQU','Hub\x20url\x20set\x20to\x20','KDbdA','build','5|4|2|0|3|1','proxyUrl','jcCMd','global','ms:edgeOptions','capabilities_','NiiUY','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','get','then','info','BKksc','kCXqO','isUndefined','Modifying\x20webdriver\x20builder','ieOptions_','ftbXY','path','goog:chromeOptions','moz:firefoxOptions','error','https://','VFJGl','../../../helpers/patchHelpers','WZfLE','keys','306rwRnaQ','154fbsfoh','push','safariOptions_'];a34_0x793a=function(){return _0x1dc908;};return a34_0x793a();}const a34_0x98ad22=a34_0x5585;(function(_0x11ac1a,_0x2ea09c){const _0x579e0d=a34_0x5585,_0x172354=_0x11ac1a();while(!![]){try{const _0x182121=parseInt(_0x579e0d(0x130))/0x1+parseInt(_0x579e0d(0x103))/0x2+-parseInt(_0x579e0d(0xfb))/0x3*(-parseInt(_0x579e0d(0x127))/0x4)+-parseInt(_0x579e0d(0x114))/0x5+parseInt(_0x579e0d(0x139))/0x6*(-parseInt(_0x579e0d(0x16b))/0x7)+-parseInt(_0x579e0d(0x14c))/0x8*(-parseInt(_0x579e0d(0x16a))/0x9)+-parseInt(_0x579e0d(0x125))/0xa;if(_0x182121===_0x2ea09c)break;else _0x172354['push'](_0x172354['shift']());}catch(_0x2b36ba){_0x172354['push'](_0x172354['shift']());}}}(a34_0x793a,0xd474f));const logger=require(a34_0x98ad22(0x109))[a34_0x98ad22(0x138)],helper=require(a34_0x98ad22(0x121)),constants=require(a34_0x98ad22(0x12e)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a34_0x98ad22(0x167)),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a34_0x98ad22(0x12b)),{overrideExecute}=require(a34_0x98ad22(0x13c)),modify=(_0x2416d1,_0x2d8a9e=null,_0x2bcda1=![])=>{const _0x53c875=a34_0x98ad22,_0x3f261a={'PScRt':function(_0x30884b,_0x4b1e87){return _0x30884b!==_0x4b1e87;},'dFZql':_0x53c875(0x135),'KzDJE':function(_0x5701a9,_0x4a0416){return _0x5701a9+_0x4a0416;},'kCXqO':_0x53c875(0x165),'EBxgn':'/wd/hub','NQDZX':_0x53c875(0x162),'WEUBn':'chromeOptions','gYGsG':_0x53c875(0x154),'FuBWg':_0x53c875(0xfd),'KDbdA':_0x53c875(0x163),'LlfdL':'firefoxOptions','CVimq':'safari.options','VFJGl':'se:ieOptions','liSEo':_0x53c875(0x10b),'vxDBO':function(_0x1be9ac,_0x237cc0){return _0x1be9ac===_0x237cc0;},'qMCvG':_0x53c875(0x141),'pMFzY':_0x53c875(0x115),'nCjpn':_0x53c875(0x13d),'BKksc':_0x53c875(0x11b),'itPAe':function(_0x4f3846,_0x3416d8,_0x31018e){return _0x4f3846(_0x3416d8,_0x31018e);},'jcCMd':function(_0x4c1dfa,_0x342abd,_0x366aa8){return _0x4c1dfa(_0x342abd,_0x366aa8);},'ABGqG':function(_0x157a61,_0x4b6934){return _0x157a61(_0x4b6934);},'uLJiI':_0x53c875(0x150),'NiiUY':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','zXqGa':'isAccessibilityPlatform','DoFWn':function(_0x452629){return _0x452629();},'ftbXY':function(_0xf754f9,_0xf4b608){return _0xf754f9(_0xf4b608);},'NglVj':function(_0x30551c,_0x128303,_0x11bab5){return _0x30551c(_0x128303,_0x11bab5);},'ziaqS':function(_0x42ac57,_0x57dd95){return _0x42ac57!==_0x57dd95;},'WZfLE':'Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','wuZMR':_0x53c875(0x15e)},_0x1e0a60=helper['requireHttpClient']();let _0x2e6589;try{_0x2e6589=helper[_0x53c875(0x11e)](),_0x2e6589[_0x53c875(0x128)]&&(_0x2e6589[_0x53c875(0x13f)]=_0x2e6589[_0x53c875(0x128)]);}catch(_0x138227){return;}if(helper[_0x53c875(0x13b)]()){const _0x24f6fb={};_0x24f6fb[_0x53c875(0x100)]=_0x2416d1['browserStackLogLevel'],helper[_0x53c875(0x108)](_0x24f6fb,new Map(),new Map()),logger[_0x53c875(0x15a)](_0x3f261a[_0x53c875(0x168)]),logger[_0x53c875(0x13a)](_0x3f261a['wuZMR']);}class _0x43c469 extends _0x1e0a60[_0x53c875(0x113)]{[_0x53c875(0x112)](_0x29c287){const _0x1350c7=_0x53c875;if(_0x3f261a[_0x1350c7(0x120)](_0x29c287[_0x1350c7(0x161)],_0x3f261a[_0x1350c7(0x147)])&&_0x3f261a[_0x1350c7(0x120)](global['newHubUrl'],''))try{global[_0x1350c7(0x12f)]=_0x3f261a['KzDJE'](_0x3f261a[_0x1350c7(0x10f)](_0x3f261a[_0x1350c7(0x15c)],global['newHubUrl']),_0x3f261a[_0x1350c7(0x137)]),this[_0x1350c7(0x132)]=hubAllocator[_0x1350c7(0x122)](global[_0x1350c7(0x12f)]),logger[_0x1350c7(0x13a)](_0x1350c7(0x10a)+global[_0x1350c7(0x12f)]),global[_0x1350c7(0x12f)]='';}catch(_0x1bcddc){logger[_0x1350c7(0x164)](_0x1bcddc);}return super[_0x1350c7(0x112)](_0x29c287);}}class _0x4d1be7 extends _0x2e6589[_0x53c875(0x13f)]{[_0x53c875(0x11d)](){const _0x3b0df7=_0x53c875;return this[_0x3b0df7(0x111)]=helper[_0x3b0df7(0x126)](_0x2416d1),logger[_0x3b0df7(0x13a)](_0x3b0df7(0x14d)+this[_0x3b0df7(0x111)]),this;}[_0x53c875(0xf8)](_0x3c4d02){const _0x58ca0b=_0x53c875;let _0x39a4e3={};for(const _0x47672f in _0x3c4d02){switch(_0x47672f){case _0x3f261a[_0x58ca0b(0x142)]:case _0x3f261a[_0x58ca0b(0x136)]:this[_0x58ca0b(0x117)]&&(_0x39a4e3=this[_0x58ca0b(0x117)][_0x58ca0b(0x158)](this[_0x58ca0b(0x117)][_0x58ca0b(0x140)])||{},this[_0x58ca0b(0x117)][_0x58ca0b(0x102)](this['chromeOptions_'][_0x58ca0b(0x140)],helper['mergeDeep'](_0x39a4e3,_0x3c4d02[_0x47672f])));break;case _0x3f261a['gYGsG']:case _0x3f261a[_0x58ca0b(0x10e)]:this[_0x58ca0b(0x12a)]&&(_0x39a4e3=this[_0x58ca0b(0x12a)]['get'](this['edgeOptions_'][_0x58ca0b(0x140)])||{},this['edgeOptions_']['set'](this[_0x58ca0b(0x12a)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x39a4e3,_0x3c4d02[_0x47672f])));break;case _0x3f261a[_0x58ca0b(0x14e)]:case _0x3f261a['LlfdL']:this[_0x58ca0b(0x10d)]&&(_0x39a4e3=this[_0x58ca0b(0x10d)][_0x58ca0b(0x158)](this[_0x58ca0b(0x10d)]['CAPABILITY_KEY'])||{},this['firefoxOptions_'][_0x58ca0b(0x102)](this[_0x58ca0b(0x10d)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x39a4e3,_0x3c4d02[_0x47672f])));break;case _0x3f261a[_0x58ca0b(0x106)]:this[_0x58ca0b(0x16d)]&&(_0x39a4e3=this[_0x58ca0b(0x16d)]['get'](this[_0x58ca0b(0x16d)]['CAPABILITY_KEY'])||{},this[_0x58ca0b(0x16d)][_0x58ca0b(0x102)](this[_0x58ca0b(0x16d)][_0x58ca0b(0x140)],helper[_0x58ca0b(0x145)](_0x39a4e3,_0x3c4d02[_0x47672f])));break;case _0x3f261a[_0x58ca0b(0x166)]:case _0x3f261a[_0x58ca0b(0x134)]:this[_0x58ca0b(0x15f)]&&(_0x39a4e3=this[_0x58ca0b(0x15f)][_0x58ca0b(0x158)](this[_0x58ca0b(0x15f)][_0x58ca0b(0x140)])||{},this[_0x58ca0b(0x15f)]['set'](this['ieOptions_'][_0x58ca0b(0x140)],helper[_0x58ca0b(0x145)](_0x39a4e3,_0x3c4d02[_0x47672f])));break;}}}[_0x53c875(0x16e)](){const _0x30cee0=_0x53c875,_0x2f8a65={'mAfMn':function(_0x4c0313,_0x3f5fbb){const _0x31f03a=a34_0x5585;return _0x3f261a[_0x31f03a(0x12d)](_0x4c0313,_0x3f5fbb);},'nqZgy':_0x3f261a[_0x30cee0(0xfe)]};return logger[_0x30cee0(0x13a)](_0x3f261a[_0x30cee0(0x10c)]),this[_0x30cee0(0xf8)](_0x2416d1[_0x30cee0(0x13e)]),Object[_0x30cee0(0x169)](_0x2416d1['capability'])[_0x30cee0(0x146)](_0x4a4271=>{const _0xa71aa4=_0x30cee0,_0x522c08=this[_0xa71aa4(0x155)][_0xa71aa4(0x158)](_0x4a4271);_0x2f8a65[_0xa71aa4(0x101)](typeof _0x522c08,_0x2f8a65[_0xa71aa4(0x171)])?this[_0xa71aa4(0x155)][_0xa71aa4(0x102)](_0x4a4271,helper[_0xa71aa4(0x145)](_0x522c08,_0x2416d1[_0xa71aa4(0x13e)][_0x4a4271])):this[_0xa71aa4(0x155)][_0xa71aa4(0x102)](_0x4a4271,_0x2416d1['capability'][_0x4a4271]);}),this;}[_0x53c875(0x14f)](){const _0x58a13e=_0x53c875,_0x2c8ac6={'GEAzK':function(_0xe7282f,_0x28532d,_0x5d5250){return _0x3f261a['itPAe'](_0xe7282f,_0x28532d,_0x5d5250);},'EeItT':function(_0x8491a9,_0x5090a0,_0x5ae004){const _0x198d1c=a34_0x5585;return _0x3f261a[_0x198d1c(0x152)](_0x8491a9,_0x5090a0,_0x5ae004);},'wzjSQ':function(_0x5d42b3,_0x27dbeb){const _0x2f0e56=a34_0x5585;return _0x3f261a[_0x2f0e56(0xf9)](_0x5d42b3,_0x27dbeb);}};if(helper[_0x58a13e(0x13b)]()){const _0x47ad51=_0x3f261a[_0x58a13e(0x14b)][_0x58a13e(0x104)]('|');let _0x39b490=0x0;while(!![]){switch(_0x47ad51[_0x39b490++]){case'0':if(helper[_0x58a13e(0x123)](_0x2416d1['proxySettings'][_0x58a13e(0x151)]))this[_0x58a13e(0x149)]=helper['getHttpAgent'](_0x2416d1[_0x58a13e(0x11a)][_0x58a13e(0x151)]);else _0x2416d1[_0x58a13e(0x11a)][_0x58a13e(0x151)]&&(this[_0x58a13e(0xfa)]=_0x2416d1['proxySettings']['proxyUrl'],logger[_0x58a13e(0x13a)](_0x58a13e(0x107)+this['proxy_']));continue;case'1':logger[_0x58a13e(0x13a)](_0x3f261a[_0x58a13e(0x156)]);continue;case'2':this[_0x58a13e(0x16e)]();continue;case'3':globals[_0x58a13e(0x14a)](_0x3f261a[_0x58a13e(0x11f)])&&(!_0x3f261a['jcCMd'](setExtension,this,_0x2416d1)&&globals[_0x58a13e(0x118)](_0x3f261a[_0x58a13e(0x11f)],![]));continue;case'4':this[_0x58a13e(0x11d)]();continue;case'5':_0x3f261a[_0x58a13e(0x172)](isAccessibilityAutomationSession)&&_0x3f261a['ABGqG'](setAccessibilityCapabilities,_0x2416d1);continue;}break;}}const _0xa0b8ef=super[_0x58a13e(0x14f)]();return _0xa0b8ef['session_'][_0x58a13e(0x159)](_0x13e559=>{const _0xebf0ca=_0x58a13e;try{const _0x2506c2=_0x13e559[_0xebf0ca(0x119)][_0xebf0ca(0x158)](_0x3f261a[_0xebf0ca(0x105)]);_0x2506c2?(logger['debug']('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x2506c2),hubAllocator[_0xebf0ca(0x148)](_0x2506c2),helper[_0xebf0ca(0x11c)](_0x2506c2)):logger[_0xebf0ca(0x13a)](_0x3f261a[_0xebf0ca(0x15b)]);}catch(_0x53d008){logger[_0xebf0ca(0x13a)](_0xebf0ca(0x157)+_0x53d008);}}),_0xa0b8ef[_0x58a13e(0xff)]=0x0,_0xa0b8ef[_0x58a13e(0x159)]&&_0xa0b8ef[_0x58a13e(0x159)](_0x302c02=>{const _0x851748=_0x58a13e,_0x2e6f10={'mVsgj':function(_0x439579,_0x28c90e,_0x3d5776){const _0x4ee86e=a34_0x5585;return _0x2c8ac6[_0x4ee86e(0x129)](_0x439579,_0x28c90e,_0x3d5776);}};_0x2c8ac6['GEAzK'](overrideQuit,_0x302c02,_0xa0b8ef),_0x2c8ac6[_0x851748(0x124)](overrideTakeScreenshot,_0x302c02),helper[_0x851748(0x131)](_0x302c02,_0x2416d1),_0x2c8ac6[_0x851748(0x133)](overrideExecute,_0x302c02,_0x2416d1),_0x302c02[_0x851748(0x110)]=async()=>{const _0xe8bf28=_0x851748;return await _0x2c8ac6[_0xe8bf28(0x133)](getAccessibilityResultsSummary,_0x302c02,global);},_0x302c02['getAccessibilityResults']=async()=>{const _0x194f6e=_0x851748;return await _0x2e6f10[_0x194f6e(0x170)](getAccessibilityResults,_0x302c02,global);};}),_0xa0b8ef[_0x58a13e(0x110)]=async()=>{const _0x179557=_0x58a13e;return await _0x2c8ac6[_0x179557(0x133)](getAccessibilityResultsSummary,_0xa0b8ef,global);},_0xa0b8ef[_0x58a13e(0x144)]=async()=>{const _0x5a4ccd=_0x58a13e;return await _0x3f261a[_0x5a4ccd(0x12c)](getAccessibilityResults,_0xa0b8ef,global);},_0x3f261a['ABGqG'](overrideTakeScreenshot,_0xa0b8ef),_0x3f261a[_0x58a13e(0x160)](overrideQuit,_0xa0b8ef),helper[_0x58a13e(0x131)](_0xa0b8ef,_0x2416d1),_0x3f261a[_0x58a13e(0xfc)](overrideExecute,_0xa0b8ef,_0x2416d1),helper[_0x58a13e(0x15d)](global[_0x58a13e(0x16f)])&&(global[_0x58a13e(0x16f)]=[]),helper[_0x58a13e(0x15d)](global[_0x58a13e(0x116)])&&(global[_0x58a13e(0x116)]=[]),global[_0x58a13e(0x16f)][_0x58a13e(0x16c)](_0xa0b8ef),global['__driver']=_0xa0b8ef,_0x3f261a[_0x58a13e(0x120)](global[_0x58a13e(0x116)],undefined)&&global[_0x58a13e(0x116)]['push'](_0xa0b8ef),_0x2d8a9e&&helper[_0x58a13e(0x15d)](_0x2d8a9e[_0x58a13e(0x153)]['__driversArray'])&&(_0x2d8a9e[_0x58a13e(0x153)][_0x58a13e(0x16f)]=[]),_0x2d8a9e&&_0x3f261a[_0x58a13e(0x143)](_0x2d8a9e[_0x58a13e(0x153)][_0x58a13e(0x116)],undefined)&&(_0x2d8a9e[_0x58a13e(0x153)][_0x58a13e(0x116)][_0x58a13e(0x16c)](_0xa0b8ef),_0x2d8a9e[_0x58a13e(0x153)][_0x58a13e(0x16f)]['push'](_0xa0b8ef)),_0xa0b8ef;}}return _0x2e6589[_0x53c875(0x128)]=_0x2e6589[_0x53c875(0x13f)],_0x2e6589[_0x53c875(0x13f)]=_0x4d1be7,_0x1e0a60[_0x53c875(0x113)]=_0x43c469,_0x2e6589;};function a34_0x5585(_0x113373,_0x2ad682){const _0x793a3a=a34_0x793a();return a34_0x5585=function(_0x5585d1,_0x2f1cf3){_0x5585d1=_0x5585d1-0xf8;let _0x479b1d=_0x793a3a[_0x5585d1];return _0x479b1d;},a34_0x5585(_0x113373,_0x2ad682);}module['exports']['browserstackAgentObservability']=modify;
|
|
1
|
+
const a34_0x4c6e3f=a34_0x1237;(function(_0x49eb11,_0x5498ab){const _0x414b64=a34_0x1237,_0x48252e=_0x49eb11();while(!![]){try{const _0x4d5982=parseInt(_0x414b64(0x107))/0x1+parseInt(_0x414b64(0x129))/0x2+-parseInt(_0x414b64(0x123))/0x3*(-parseInt(_0x414b64(0xea))/0x4)+parseInt(_0x414b64(0x120))/0x5+-parseInt(_0x414b64(0x11b))/0x6+parseInt(_0x414b64(0x12d))/0x7*(-parseInt(_0x414b64(0xf5))/0x8)+-parseInt(_0x414b64(0x13a))/0x9*(-parseInt(_0x414b64(0xf1))/0xa);if(_0x4d5982===_0x5498ab)break;else _0x48252e['push'](_0x48252e['shift']());}catch(_0x163e8f){_0x48252e['push'](_0x48252e['shift']());}}}(a34_0x331b,0x96729));function a34_0x331b(){const _0x40891e=['path','DpIyO','proxySettings','/session','proxyUrl','getAccessibilityResults','Lmlgu','EyCkq','goog:chromeOptions','kkotw','isPacProxy','EzCGe','6789120IcEeRV','edgeOptions_','getAccessibilityResultsSummary','info','global','2415600WgqUVq','set','ieOptions_','19545wXwLNf','TQOoL','akxqJ','egjke','__drivers','__setBrowserOptions','2462136jEFSDB','4|1|2|5|3|0','MOmSH','firefoxOptions','7vAtKGJ','qTGfi','get','split','CAPABILITY_KEY','ms:edgeOptions','optimalHubUrl','setServer','NEdmR','mergeDeep','../../../helpers/patchHelpers','DmiGn','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','27zXCCvc','keys','../../../helpers/accessibility-automation/helper','options_','OOVay','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','../accessibility-automation/helper','Hub\x20url\x20set\x20to\x20','requireHttpClient','safariOptions_','Modifying\x20webdriver\x20builder','capabilities_','TeuqF','emCtG','newHubUrl','browserStackLogLevel','__driver','browserstackAgentObservability','firefoxOptions_','WbEqK','Builder','setCapabilities','originalBuilder','../../../bin/utils/constants','safari.options','ieOptions','../../../helpers/globals','exports','isUndefined','zoujq','build','GZFmP','winstonLogger','overrideGet','IWbBN','push','https://','New\x20hub\x20url\x20set\x20to\x20','then','capability','debug','Setting\x20Browserstack\x20capabilities','chromeOptions_','logLevel','188TxpVTk','se:ieOptions','Pmvdc','getGlobal','edgeOptions','RNZeA','url_','970080BRUuLv','proxy_','/wd/hub','moz:firefoxOptions','5579984FUJfaJ','ychpx','chromeOptions','mCcbs','isBrowserstackInfra','send','setLogLevel','OwQee','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','../../../helpers/helper','AjiUU','quitCount_','caps_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','session_','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','getRequestOptions','TdMzv','133834JitFyq','__driversArray','object','vXDlg','../../../helpers/logger','requireSeleniumWebdriver','setGlobal','pamdC'];a34_0x331b=function(){return _0x40891e;};return a34_0x331b();}const logger=require(a34_0x4c6e3f(0x10b))[a34_0x4c6e3f(0xde)],helper=require(a34_0x4c6e3f(0xfe)),constants=require(a34_0x4c6e3f(0xd5)),hubAllocator=require('../../../hubAllocationMethods'),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a34_0x4c6e3f(0x137)),{setAccessibilityCapabilities,setExtension}=require(a34_0x4c6e3f(0x140)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a34_0x4c6e3f(0x13c)),globals=require(a34_0x4c6e3f(0xd8)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x55a7ca,_0x867fc=null,_0x47143f=![])=>{const _0x5e5195=a34_0x4c6e3f,_0x2e5e0d={'AjiUU':function(_0x2810ed,_0x209cbb){return _0x2810ed!==_0x209cbb;},'zoujq':_0x5e5195(0x112),'ychpx':function(_0x2e72cf,_0x144a37){return _0x2e72cf!==_0x144a37;},'DpIyO':function(_0x426ea2,_0x23e0a8){return _0x426ea2+_0x23e0a8;},'VIpiW':function(_0x51cef9,_0x38dafe){return _0x51cef9+_0x38dafe;},'RNZeA':_0x5e5195(0xe2),'NMRZo':_0x5e5195(0xf3),'EzCGe':_0x5e5195(0x117),'Eawmr':_0x5e5195(0xf7),'ZymOv':_0x5e5195(0x132),'IWbBN':_0x5e5195(0xee),'qGpvK':_0x5e5195(0xf4),'MOmSH':_0x5e5195(0x12c),'Hcnvk':_0x5e5195(0xd6),'TQOoL':_0x5e5195(0xeb),'WHFxn':_0x5e5195(0xd7),'qTGfi':function(_0x21fd63,_0x4c453e){return _0x21fd63===_0x4c453e;},'emCtG':_0x5e5195(0x109),'KaeNl':_0x5e5195(0xe7),'pamdC':function(_0x12f5fb,_0x42bc5f,_0x5c06da){return _0x12f5fb(_0x42bc5f,_0x5c06da);},'WbEqK':_0x5e5195(0x133),'egjke':_0x5e5195(0x139),'mCcbs':function(_0x1525a4,_0x3b70e6,_0x33d51e){return _0x1525a4(_0x3b70e6,_0x33d51e);},'akxqJ':function(_0x3af3c3,_0x465edf){return _0x3af3c3(_0x465edf);},'GZFmP':_0x5e5195(0x12a),'QMceQ':_0x5e5195(0x13f),'NEdmR':'isAccessibilityPlatform','TdMzv':function(_0x34a962,_0x2e7add,_0x31fa27){return _0x34a962(_0x2e7add,_0x31fa27);},'OwQee':function(_0x42b358){return _0x42b358();},'DmiGn':function(_0x2093b7,_0x196718){return _0x2093b7(_0x196718);},'bQfHC':function(_0x2c8ad9,_0x2b46cc){return _0x2c8ad9(_0x2b46cc);},'vXDlg':function(_0xf80546,_0x5230a0){return _0xf80546!==_0x5230a0;},'Lmlgu':_0x5e5195(0x102),'YsMGP':_0x5e5195(0xc8)},_0x4a1924=helper[_0x5e5195(0x142)]();let _0x31c88f;try{_0x31c88f=helper[_0x5e5195(0x10c)](),_0x31c88f[_0x5e5195(0xd4)]&&(_0x31c88f[_0x5e5195(0xd2)]=_0x31c88f[_0x5e5195(0xd4)]);}catch(_0x25d462){return;}if(helper[_0x5e5195(0xf9)]()){const _0x2c6d29={};_0x2c6d29[_0x5e5195(0xe9)]=_0x55a7ca[_0x5e5195(0xcd)],helper[_0x5e5195(0xfb)](_0x2c6d29,new Map(),new Map()),logger[_0x5e5195(0x11e)](_0x2e5e0d[_0x5e5195(0x115)]),logger[_0x5e5195(0xe6)](_0x2e5e0d['YsMGP']);}class _0x5ecc1d extends _0x4a1924['HttpClient']{[_0x5e5195(0xfa)](_0x15cff9){const _0x488a5c=_0x5e5195;if(_0x2e5e0d[_0x488a5c(0xff)](_0x15cff9[_0x488a5c(0x10f)],_0x2e5e0d[_0x488a5c(0xdb)])&&_0x2e5e0d[_0x488a5c(0xf6)](global['newHubUrl'],''))try{global[_0x488a5c(0xcc)]=_0x2e5e0d[_0x488a5c(0x110)](_0x2e5e0d['VIpiW'](_0x2e5e0d[_0x488a5c(0xef)],global[_0x488a5c(0xcc)]),_0x2e5e0d['NMRZo']),this[_0x488a5c(0x13d)]=hubAllocator[_0x488a5c(0x105)](global[_0x488a5c(0xcc)]),logger[_0x488a5c(0xe6)](_0x488a5c(0xe3)+global['newHubUrl']),global[_0x488a5c(0xcc)]='';}catch(_0x58327a){logger['error'](_0x58327a);}return super[_0x488a5c(0xfa)](_0x15cff9);}}class _0x29b9a2 extends _0x31c88f[_0x5e5195(0xd2)]{[_0x5e5195(0x134)](){const _0xb0c5a4=_0x5e5195;return this['url_']=helper['getHubUrl'](_0x55a7ca),logger[_0xb0c5a4(0xe6)](_0xb0c5a4(0x141)+this[_0xb0c5a4(0xf0)]),this;}[_0x5e5195(0x128)](_0xd9d388){const _0x56762d=_0x5e5195;let _0x233584={};for(const _0x23ea66 in _0xd9d388){switch(_0x23ea66){case _0x2e5e0d[_0x56762d(0x11a)]:case _0x2e5e0d['Eawmr']:this[_0x56762d(0xe8)]&&(_0x233584=this[_0x56762d(0xe8)][_0x56762d(0x12f)](this[_0x56762d(0xe8)]['CAPABILITY_KEY'])||{},this[_0x56762d(0xe8)][_0x56762d(0x121)](this[_0x56762d(0xe8)][_0x56762d(0x131)],helper['mergeDeep'](_0x233584,_0xd9d388[_0x23ea66])));break;case _0x2e5e0d['ZymOv']:case _0x2e5e0d[_0x56762d(0xe0)]:this['edgeOptions_']&&(_0x233584=this[_0x56762d(0x11c)][_0x56762d(0x12f)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x56762d(0x11c)][_0x56762d(0x121)](this[_0x56762d(0x11c)][_0x56762d(0x131)],helper[_0x56762d(0x136)](_0x233584,_0xd9d388[_0x23ea66])));break;case _0x2e5e0d['qGpvK']:case _0x2e5e0d[_0x56762d(0x12b)]:this['firefoxOptions_']&&(_0x233584=this[_0x56762d(0xd0)]['get'](this[_0x56762d(0xd0)][_0x56762d(0x131)])||{},this[_0x56762d(0xd0)][_0x56762d(0x121)](this[_0x56762d(0xd0)][_0x56762d(0x131)],helper[_0x56762d(0x136)](_0x233584,_0xd9d388[_0x23ea66])));break;case _0x2e5e0d['Hcnvk']:this[_0x56762d(0xc7)]&&(_0x233584=this[_0x56762d(0xc7)][_0x56762d(0x12f)](this[_0x56762d(0xc7)]['CAPABILITY_KEY'])||{},this[_0x56762d(0xc7)][_0x56762d(0x121)](this[_0x56762d(0xc7)][_0x56762d(0x131)],helper[_0x56762d(0x136)](_0x233584,_0xd9d388[_0x23ea66])));break;case _0x2e5e0d[_0x56762d(0x124)]:case _0x2e5e0d['WHFxn']:this[_0x56762d(0x122)]&&(_0x233584=this[_0x56762d(0x122)][_0x56762d(0x12f)](this['ieOptions_'][_0x56762d(0x131)])||{},this[_0x56762d(0x122)][_0x56762d(0x121)](this['ieOptions_'][_0x56762d(0x131)],helper[_0x56762d(0x136)](_0x233584,_0xd9d388[_0x23ea66])));break;}}}[_0x5e5195(0xd3)](){const _0x25624f=_0x5e5195;return logger[_0x25624f(0xe6)](_0x2e5e0d['KaeNl']),this[_0x25624f(0x128)](_0x55a7ca['capability']),Object[_0x25624f(0x13b)](_0x55a7ca[_0x25624f(0xe5)])['forEach'](_0x3a93a1=>{const _0x29be9b=_0x25624f,_0xb7f727=this['capabilities_'][_0x29be9b(0x12f)](_0x3a93a1);_0x2e5e0d[_0x29be9b(0x12e)](typeof _0xb7f727,_0x2e5e0d[_0x29be9b(0xcb)])?this['capabilities_'][_0x29be9b(0x121)](_0x3a93a1,helper[_0x29be9b(0x136)](_0xb7f727,_0x55a7ca['capability'][_0x3a93a1])):this[_0x29be9b(0xc9)][_0x29be9b(0x121)](_0x3a93a1,_0x55a7ca[_0x29be9b(0xe5)][_0x3a93a1]);}),this;}['build'](){const _0x3b48c4=_0x5e5195,_0x5e27a2={'Pmvdc':_0x2e5e0d[_0x3b48c4(0xd1)],'TeuqF':_0x2e5e0d[_0x3b48c4(0x126)],'OOVay':function(_0x369116,_0x2c779e,_0x379ade){const _0x3166b8=_0x3b48c4;return _0x2e5e0d[_0x3166b8(0xf8)](_0x369116,_0x2c779e,_0x379ade);},'EbdSW':function(_0x3eb144,_0x4e3dcb){const _0x4b8e25=_0x3b48c4;return _0x2e5e0d[_0x4b8e25(0x125)](_0x3eb144,_0x4e3dcb);},'EyCkq':function(_0x1439e6,_0x277cd9,_0x10467a){const _0x1db0b6=_0x3b48c4;return _0x2e5e0d[_0x1db0b6(0x10e)](_0x1439e6,_0x277cd9,_0x10467a);}};if(helper[_0x3b48c4(0xf9)]()){const _0x5ee01e=_0x2e5e0d[_0x3b48c4(0xdd)][_0x3b48c4(0x130)]('|');let _0x2fbfed=0x0;while(!![]){switch(_0x5ee01e[_0x2fbfed++]){case'0':logger['debug'](_0x2e5e0d['QMceQ']);continue;case'1':this[_0x3b48c4(0x134)]();continue;case'2':this[_0x3b48c4(0xd3)]();continue;case'3':globals[_0x3b48c4(0xed)](_0x2e5e0d[_0x3b48c4(0x135)])&&(!_0x2e5e0d[_0x3b48c4(0x106)](setExtension,this,_0x55a7ca)&&globals[_0x3b48c4(0x10d)](_0x2e5e0d['NEdmR'],![]));continue;case'4':_0x2e5e0d[_0x3b48c4(0xfc)](isAccessibilityAutomationSession)&&_0x2e5e0d[_0x3b48c4(0x125)](setAccessibilityCapabilities,_0x55a7ca);continue;case'5':if(helper[_0x3b48c4(0x119)](_0x55a7ca[_0x3b48c4(0x111)]['proxyUrl']))this['agent_']=helper['getHttpAgent'](_0x55a7ca[_0x3b48c4(0x111)][_0x3b48c4(0x113)]);else _0x55a7ca[_0x3b48c4(0x111)][_0x3b48c4(0x113)]&&(this[_0x3b48c4(0xf2)]=_0x55a7ca[_0x3b48c4(0x111)][_0x3b48c4(0x113)],logger[_0x3b48c4(0xe6)]('Proxy\x20set\x20to\x20'+this[_0x3b48c4(0xf2)]));continue;}break;}}const _0x54e1d5=super[_0x3b48c4(0xdc)]();return _0x54e1d5[_0x3b48c4(0x103)][_0x3b48c4(0xe4)](_0x24c41e=>{const _0x44902c=_0x3b48c4;try{const _0x3a79dc=_0x24c41e[_0x44902c(0x101)][_0x44902c(0x12f)](_0x5e27a2[_0x44902c(0xec)]);_0x3a79dc?(logger[_0x44902c(0xe6)](_0x44902c(0xfd)+_0x3a79dc),hubAllocator['updateHubUrl'](_0x3a79dc),helper['storeOptimalHubUrl'](_0x3a79dc)):logger[_0x44902c(0xe6)](_0x5e27a2[_0x44902c(0xca)]);}catch(_0x4b4d03){logger['debug'](_0x44902c(0x104)+_0x4b4d03);}}),_0x54e1d5[_0x3b48c4(0x100)]=0x0,_0x54e1d5[_0x3b48c4(0xe4)]&&_0x54e1d5[_0x3b48c4(0xe4)](_0x485631=>{const _0x1f465b=_0x3b48c4,_0x5aae4a={'kkotw':function(_0x2cb12c,_0x263c3d,_0x2a843e){const _0x49dddc=a34_0x1237;return _0x5e27a2[_0x49dddc(0x13e)](_0x2cb12c,_0x263c3d,_0x2a843e);}};_0x5e27a2[_0x1f465b(0x13e)](overrideQuit,_0x485631,_0x54e1d5),_0x5e27a2['EbdSW'](overrideTakeScreenshot,_0x485631),helper['overrideGet'](_0x485631,_0x55a7ca),_0x5e27a2[_0x1f465b(0x116)](overrideExecute,_0x485631,_0x55a7ca),_0x485631[_0x1f465b(0x11d)]=async()=>{const _0x1dc217=_0x1f465b;return await _0x5e27a2[_0x1dc217(0x13e)](getAccessibilityResultsSummary,_0x485631,global);},_0x485631[_0x1f465b(0x114)]=async()=>{const _0x4cd55c=_0x1f465b;return await _0x5aae4a[_0x4cd55c(0x118)](getAccessibilityResults,_0x485631,global);};}),_0x54e1d5[_0x3b48c4(0x11d)]=async()=>{const _0x22c060=_0x3b48c4;return await _0x2e5e0d[_0x22c060(0x10e)](getAccessibilityResultsSummary,_0x54e1d5,global);},_0x54e1d5[_0x3b48c4(0x114)]=async()=>{const _0x17e570=_0x3b48c4;return await _0x2e5e0d[_0x17e570(0x10e)](getAccessibilityResults,_0x54e1d5,global);},_0x2e5e0d[_0x3b48c4(0x138)](overrideTakeScreenshot,_0x54e1d5),_0x2e5e0d['bQfHC'](overrideQuit,_0x54e1d5),helper[_0x3b48c4(0xdf)](_0x54e1d5,_0x55a7ca),_0x2e5e0d[_0x3b48c4(0xf8)](overrideExecute,_0x54e1d5,_0x55a7ca),helper[_0x3b48c4(0xda)](global[_0x3b48c4(0x108)])&&(global[_0x3b48c4(0x108)]=[]),helper[_0x3b48c4(0xda)](global[_0x3b48c4(0x127)])&&(global[_0x3b48c4(0x127)]=[]),global[_0x3b48c4(0x108)][_0x3b48c4(0xe1)](_0x54e1d5),global[_0x3b48c4(0xce)]=_0x54e1d5,_0x2e5e0d['ychpx'](global['__drivers'],undefined)&&global[_0x3b48c4(0x127)]['push'](_0x54e1d5),_0x867fc&&helper[_0x3b48c4(0xda)](_0x867fc[_0x3b48c4(0x11f)][_0x3b48c4(0x108)])&&(_0x867fc['global'][_0x3b48c4(0x108)]=[]),_0x867fc&&_0x2e5e0d[_0x3b48c4(0x10a)](_0x867fc['global'][_0x3b48c4(0x127)],undefined)&&(_0x867fc[_0x3b48c4(0x11f)][_0x3b48c4(0x127)][_0x3b48c4(0xe1)](_0x54e1d5),_0x867fc['global'][_0x3b48c4(0x108)][_0x3b48c4(0xe1)](_0x54e1d5)),_0x54e1d5;}}return _0x31c88f[_0x5e5195(0xd4)]=_0x31c88f[_0x5e5195(0xd2)],_0x31c88f[_0x5e5195(0xd2)]=_0x29b9a2,_0x4a1924['HttpClient']=_0x5ecc1d,_0x31c88f;};function a34_0x1237(_0x26a4d8,_0x17571a){const _0x331b9b=a34_0x331b();return a34_0x1237=function(_0x123723,_0x508f0b){_0x123723=_0x123723-0xc7;let _0xa67557=_0x331b9b[_0x123723];return _0xa67557;},a34_0x1237(_0x26a4d8,_0x17571a);}module[a34_0x4c6e3f(0xd9)][a34_0x4c6e3f(0xcf)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0x2020ef=a35_0x4e0b;function a35_0x4e0b(_0x4c2100,_0x3a0b8c){const _0x39a593=a35_0x39a5();return a35_0x4e0b=function(_0x4e0bd7,_0x2dd2f6){_0x4e0bd7=_0x4e0bd7-0x135;let _0x4008a7=_0x39a593[_0x4e0bd7];return _0x4008a7;},a35_0x4e0b(_0x4c2100,_0x3a0b8c);}(function(_0x404735,_0x376070){const _0x2f8e38=a35_0x4e0b,_0xc6f46e=_0x404735();while(!![]){try{const _0x55e542=parseInt(_0x2f8e38(0x13f))/0x1*(-parseInt(_0x2f8e38(0x143))/0x2)+-parseInt(_0x2f8e38(0x136))/0x3+-parseInt(_0x2f8e38(0x13e))/0x4*(-parseInt(_0x2f8e38(0x13c))/0x5)+-parseInt(_0x2f8e38(0x13a))/0x6*(-parseInt(_0x2f8e38(0x138))/0x7)+-parseInt(_0x2f8e38(0x13b))/0x8+-parseInt(_0x2f8e38(0x142))/0x9*(parseInt(_0x2f8e38(0x139))/0xa)+-parseInt(_0x2f8e38(0x145))/0xb;if(_0x55e542===_0x376070)break;else _0xc6f46e['push'](_0xc6f46e['shift']());}catch(_0x310fd7){_0xc6f46e['push'](_0xc6f46e['shift']());}}}(a35_0x39a5,0x20f41));const requestSpy=require(a35_0x2020ef(0x144)),constants=require(a35_0x2020ef(0x13d)),{addRequestSpy}=require(a35_0x2020ef(0x137));exports[a35_0x2020ef(0x135)]={'beforeAll'(){const _0x21a8e6=a35_0x2020ef,_0x5beb4e={'riTXQ':function(_0x3167a8){return _0x3167a8();}},_0x117777='browserstack internal helper hook';_0x5beb4e[_0x21a8e6(0x141)](addRequestSpy);},'afterAll'(){const _0x367352=a35_0x2020ef,_0xe7aef1='browserstack internal helper hook';this[_0x367352(0x140)](0xea60),requestSpy['restore']();}};function a35_0x39a5(){const _0x49fb0d=['548379xPMQMd','2rPlBIq','../../../helpers/request-spy','655941gQKuKE','mochaHooks','2814NgTbgv','../../../helpers/test-observability/utils','357AIPckM','10OMANQi','28356ehcWUf','627656DASlxz','11715QYtOEt','../../../bin/utils/constants','268FfVBjL','63073jYKuGA','timeout','riTXQ'];a35_0x39a5=function(){return _0x49fb0d;};return a35_0x39a5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x1ed50c=a36_0x9522;(function(_0x3e8dfc,_0x2e5ca9){const _0x1338be=a36_0x9522,_0x4877df=_0x3e8dfc();while(!![]){try{const _0x5d034f=parseInt(_0x1338be(0x1ab))/0x1+parseInt(_0x1338be(0x1a5))/0x2*(parseInt(_0x1338be(0x1c6))/0x3)+parseInt(_0x1338be(0x1ad))/0x4*(-parseInt(_0x1338be(0x1b6))/0x5)+parseInt(_0x1338be(0x18b))/0x6*(parseInt(_0x1338be(0x19f))/0x7)+parseInt(_0x1338be(0x185))/0x8+-parseInt(_0x1338be(0x1b8))/0x9+-parseInt(_0x1338be(0x1a9))/0xa*(parseInt(_0x1338be(0x195))/0xb);if(_0x5d034f===_0x2e5ca9)break;else _0x4877df['push'](_0x4877df['shift']());}catch(_0x597f19){_0x4877df['push'](_0x4877df['shift']());}}}(a36_0x5f4a,0x3354a));const {v4:uuidv4}=require(a36_0x1ed50c(0x184)),{name,version}=require(a36_0x1ed50c(0x190)),logPatcher=require(a36_0x1ed50c(0x1b1)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a36_0x1ed50c(0x1d2)),{getPlatformVersion}=require(a36_0x1ed50c(0x1b9)),{shouldProcessEventForTesthub}=require(a36_0x1ed50c(0x1bf)),{isFunction}=require('lodash'),{patchConsoleLogger}=require('../../../helpers/test-observability/utils');function a36_0x9522(_0x3197e5,_0x5c0b41){const _0x5f4a26=a36_0x5f4a();return a36_0x9522=function(_0x95229e,_0x51c63b){_0x95229e=_0x95229e-0x181;let _0x13a900=_0x5f4a26[_0x95229e];return _0x13a900;},a36_0x9522(_0x3197e5,_0x5c0b41);}patchConsoleLogger(),exports[a36_0x1ed50c(0x1b7)]=()=>{const _0xade5ff=a36_0x1ed50c,_0x29eacd={'XICvh':_0xade5ff(0x1bb),'xkHTO':function(_0x4d3483){return _0x4d3483();}};return{'ci':_0x29eacd[_0xade5ff(0x1ca)],'key':_0x29eacd[_0xade5ff(0x1ba)](uuidv4),'version':version,'collector':'js-'+name};},exports['getHookDetails']=_0x10909a=>{const _0x359227=a36_0x1ed50c,_0x393757={};_0x393757['RRelw']=function(_0x253eae,_0x388dda){return _0x253eae!==_0x388dda;},_0x393757[_0x359227(0x194)]=_0x359227(0x192),_0x393757['MAuQB']=function(_0x2c1ca1,_0x4f2a58){return _0x2c1ca1!==_0x4f2a58;},_0x393757[_0x359227(0x199)]=_0x359227(0x1cf),_0x393757[_0x359227(0x1af)]=_0x359227(0x1b2);const _0x3eb944=_0x393757;if(!_0x10909a||_0x3eb944[_0x359227(0x1c7)](typeof _0x10909a,_0x3eb944[_0x359227(0x194)]))return[null,null];if(_0x3eb944['MAuQB'](_0x10909a[_0x359227(0x1b0)](_0x3eb944[_0x359227(0x199)]),-0x1)){const _0x10b875=_0x10909a[_0x359227(0x1a0)](_0x3eb944['GvThO']);return[_0x10b875[0x0][_0x359227(0x1cc)](0x0,-0x1)[_0x359227(0x1a0)]('\x22')[0x1],_0x10b875[0x1]['substring'](0x1)];}else{if(_0x3eb944[_0x359227(0x18f)](_0x10909a['indexOf'](_0x3eb944[_0x359227(0x1af)]),-0x1)){const _0x53ece5=_0x10909a[_0x359227(0x1a0)](_0x3eb944[_0x359227(0x1af)]);return[_0x53ece5[0x0][_0x359227(0x1cc)](0x0,-0x1)[_0x359227(0x1a0)]('\x22')[0x1],_0x10909a];}}return[null,null];},exports[a36_0x1ed50c(0x187)]=_0x5a4ebb=>{const _0x2dbf9c=a36_0x1ed50c,_0x30aeaf={'tQbFu':function(_0x3daf46,_0x2439c5){return _0x3daf46(_0x2439c5);},'aLzyk':'_beforeAll','KTbwI':_0x2dbf9c(0x19d),'CtoEJ':'_beforeEach','SkKsw':'_afterEach'};if(!_0x5a4ebb||!_0x5a4ebb[_0x2dbf9c(0x1d4)])return[];const _0xf88101=[];return[_0x30aeaf[_0x2dbf9c(0x183)],_0x30aeaf[_0x2dbf9c(0x1c2)],_0x30aeaf[_0x2dbf9c(0x1c0)],_0x30aeaf['SkKsw']][_0x2dbf9c(0x1c1)](_0x3299f3=>{const _0x8e6e34=_0x2dbf9c,_0x57d4e2={'VCQMe':function(_0x3364c4,_0x90e861){const _0x3bf845=a36_0x9522;return _0x30aeaf[_0x3bf845(0x18a)](_0x3364c4,_0x90e861);}},_0x1c5276=_0x5a4ebb[_0x8e6e34(0x1d4)][_0x3299f3]||[];_0x1c5276['forEach'](_0x478f88=>{const _0x9a5170=_0x8e6e34;_0x478f88['hookAnalyticsId']&&!_0x57d4e2[_0x9a5170(0x18c)](isInternalHook,_0x478f88['fn'])&&_0xf88101[_0x9a5170(0x1c4)](_0x478f88[_0x9a5170(0x18d)]);});}),[..._0xf88101,...exports[_0x2dbf9c(0x187)](_0x5a4ebb[_0x2dbf9c(0x1d4)])];},exports[a36_0x1ed50c(0x19e)]=_0x1115d9=>{const _0x5a5172=a36_0x1ed50c,_0x283e66={'RJhcV':function(_0x5ec42f){return _0x5ec42f();},'iypHl':function(_0x50a04c,_0x592d75){return _0x50a04c===_0x592d75;},'TVjxW':_0x5a5172(0x1c9),'mLGGK':'_beforeAll','JaZDS':_0x5a5172(0x19d),'nvNpv':_0x5a5172(0x1bc)};if(!_0x1115d9||!_0x1115d9[_0x5a5172(0x1d4)])return;[_0x283e66['mLGGK'],_0x283e66['JaZDS'],_0x283e66[_0x5a5172(0x196)],_0x283e66['TVjxW']][_0x5a5172(0x1c1)](_0x418bca=>{const _0x2b4006=_0x5a5172,_0x547352=_0x1115d9[_0x2b4006(0x1d4)][_0x418bca]||[];_0x547352[_0x2b4006(0x1c1)](_0x2f7b8d=>{const _0x3afa07=_0x2b4006;if(!_0x2f7b8d[_0x3afa07(0x18d)])_0x2f7b8d[_0x3afa07(0x18d)]=_0x283e66[_0x3afa07(0x1be)](uuidv4);else _0x2f7b8d['markedStatus']&&_0x283e66[_0x3afa07(0x18e)](_0x418bca,_0x283e66[_0x3afa07(0x197)])&&(_0x2f7b8d[_0x3afa07(0x18d)]=_0x283e66['RJhcV'](uuidv4),delete _0x2f7b8d['markedStatus']);});}),exports['mapTestHooks'](_0x1115d9[_0x5a5172(0x1d4)]);},exports[a36_0x1ed50c(0x1ce)]=async(_0x1cc71a,_0x319611)=>{const _0x32fffd=a36_0x1ed50c,_0x2fe2cb={'tjQRh':function(_0x4313a8){return _0x4313a8();},'TimBn':function(_0x4fc2ca,_0x6af070){return _0x4fc2ca(_0x6af070);},'nrrBS':_0x32fffd(0x1b3),'mqqdJ':function(_0x165628,_0x335aab){return _0x165628===_0x335aab;},'bRHGd':'browserstack','oSfoA':'unknown_grid','EnyAb':_0x32fffd(0x1a8),'BKtxc':function(_0x565d9f,_0x44123b){return _0x565d9f(_0x44123b);}};try{if(!_0x2fe2cb[_0x32fffd(0x191)](shouldProcessEventForTesthub))return;const _0x352894=await _0x1cc71a['getCapabilities'](),_0x5a1c5f=await _0x1cc71a[_0x32fffd(0x1d0)](),_0x174993={},_0x3f5d25=Object[_0x32fffd(0x1a7)](_0x5a1c5f[_0x32fffd(0x186)]()['map_']),_0x33dbdb={'product':_0x2fe2cb[_0x32fffd(0x1cb)](getObservabilityLinkedProductName,_0x3f5d25),'capabilities':_0x3f5d25,'platform':_0x352894['getPlatform'](),'platform_version':_0x352894['get'](_0x2fe2cb['nrrBS'])?_0x352894[_0x32fffd(0x1c5)](_0x2fe2cb[_0x32fffd(0x1a6)]):_0x2fe2cb[_0x32fffd(0x1cb)](getPlatformVersion,_0x2fe2cb[_0x32fffd(0x1d6)](global[_0x32fffd(0x1ae)],_0x2fe2cb[_0x32fffd(0x1d1)])),'browser':_0x352894['getBrowserName'](),'browser_version':_0x352894[_0x32fffd(0x1b4)](),'session_id':_0x5a1c5f[_0x32fffd(0x1d5)]()};global[_0x32fffd(0x1ae)]?_0x174993[global[_0x32fffd(0x1ae)]]=_0x33dbdb:_0x174993[_0x2fe2cb['oSfoA']]=_0x33dbdb,process[_0x32fffd(0x1a1)](_0x32fffd(0x1a4)+process[_0x32fffd(0x181)],{'timestamp':new Date()[_0x32fffd(0x1d7)](),'level':null,'message':null,'kind':_0x2fe2cb[_0x32fffd(0x19a)],'http_response':_0x174993,'uuid':_0x319611});}catch(_0x33d972){_0x2fe2cb[_0x32fffd(0x1ac)](debug,_0x32fffd(0x1aa)+_0x33d972);}},exports['getHookSkippedTests']=_0x19dc65=>{const _0x2268c1=a36_0x1ed50c,_0x14abca={};_0x14abca[_0x2268c1(0x1a3)]=function(_0x18f9c8,_0x394fd9){return _0x18f9c8!==_0x394fd9;},_0x14abca[_0x2268c1(0x198)]=_0x2268c1(0x1b2),_0x14abca['mzCuK']=_0x2268c1(0x182),_0x14abca['vaUjc']='failed';const _0x331754=_0x14abca,_0x3f5cf6=_0x19dc65[_0x2268c1(0x1cd)][_0x2268c1(0x19b)]((_0x20beb0,_0x5d73af)=>{const _0x494f35=_0x2268c1,_0x50255a=exports[_0x494f35(0x1b5)](_0x5d73af);return _0x50255a&&(_0x20beb0=_0x20beb0['concat'](_0x50255a)),_0x20beb0;},[]),_0x386935=_0x19dc65[_0x2268c1(0x1c3)][_0x2268c1(0x1d3)](_0xec52f9=>{const _0x4aa393=_0x2268c1,_0x471c20=_0x331754[_0x4aa393(0x1a3)](_0xec52f9[_0x4aa393(0x188)],_0x331754[_0x4aa393(0x198)])&&!_0xec52f9[_0x4aa393(0x193)]&&_0x331754[_0x4aa393(0x1a3)](_0xec52f9['state'],_0x331754[_0x4aa393(0x1bd)])&&_0x331754[_0x4aa393(0x1a3)](_0xec52f9[_0x4aa393(0x189)],_0x331754[_0x4aa393(0x1a2)])&&!_0xec52f9[_0x4aa393(0x1c8)];return _0x471c20;});return _0x386935[_0x2268c1(0x19c)](_0x3f5cf6);};function a36_0x5f4a(){const _0x2f0c94=['_beforeEach','mzCuK','RJhcV','../../../helpers/testhub/utils','CtoEJ','forEach','KTbwI','tests','push','get','3acvGgT','RRelw','pending','_afterEach','XICvh','TimBn','slice','suites','sendPlatformDetails','hook:','getSession','bRHGd','../../../helpers/test-observability/constants','filter','parent','toJSON','mqqdJ','toISOString','pid','passed','aLzyk','uuid','2835696nfcDKC','getCapabilities','getHooksForTest','type','state','tQbFu','143886ibZWKz','VCQMe','hookAnalyticsId','iypHl','MAuQB','../../../../package.json','tjQRh','string','markedStatus','nfytz','5882503aZTYLr','nvNpv','TVjxW','ldxWm','GvThO','EnyAb','reduce','concat','_afterAll','mapTestHooks','42XjJKKe','split','emit','vaUjc','aePXY','bs:addPlatformDetails:','787394TwKysV','nrrBS','fromEntries','TEST_PLATFORM','10xxBHRU','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','273777Chcojv','BKtxc','356WQuuuV','__cloud_provider___','hgqUK','indexOf','../../utils/logPatcher','hook','platformVersion','getBrowserVersion','getHookSkippedTests','10515jyFCaw','getTestEnv','2102688LDPwUS','../../../helpers/helper','xkHTO','generic'];a36_0x5f4a=function(){return _0x2f0c94;};return a36_0x5f4a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a37_0x3057(_0x5d8d26,_0x15c3c1){const _0x2ff004=a37_0x2ff0();return a37_0x3057=function(_0x305754,_0x3aaf7b){_0x305754=_0x305754-0x8d;let _0x5adc04=_0x2ff004[_0x305754];return _0x5adc04;},a37_0x3057(_0x5d8d26,_0x15c3c1);}const a37_0x27f424=a37_0x3057;(function(_0x171f3d,_0x1aeea0){const _0x493cbe=a37_0x3057,_0x589714=_0x171f3d();while(!![]){try{const _0x1388a0=-parseInt(_0x493cbe(0x90))/0x1+parseInt(_0x493cbe(0xf0))/0x2*(parseInt(_0x493cbe(0x92))/0x3)+parseInt(_0x493cbe(0xe8))/0x4+parseInt(_0x493cbe(0xa0))/0x5+-parseInt(_0x493cbe(0x125))/0x6+parseInt(_0x493cbe(0x12c))/0x7+parseInt(_0x493cbe(0x95))/0x8;if(_0x1388a0===_0x1aeea0)break;else _0x589714['push'](_0x589714['shift']());}catch(_0x52e9a3){_0x589714['push'](_0x589714['shift']());}}}(a37_0x2ff0,0x3b4f4));function a37_0x2ff0(){const _0x328bb3=['SESSION_STATUS','RcEVq','vsTni','HbDJR','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','__drivers','winstonLogger','message','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','IvVlA','KAvFG','XVuEn','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','info','measureWrapper','../../helpers/logger','fodhA','uCmii','CFPRa','BYUeC','isArray','bIXgS','eOpfK','Passed','afterEach','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','thTestRunUuid','afterAll','percyCaptureMode','fiOuQ','iNQoj','Zuaua','FaPdU','error','UMwUR','PERFORM_SCAN','executeScript','afterTest','CCMOt','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','LleVr','mochaHooks','../utils/constants','hrmhz','MTzty','TafZZ','DQgip','sessionNameSet__','executeAsyncScript','MTnPG','Performing\x20scan\x20before\x20saving\x20results','../../helpers/globals','nRsUT','length','NQXAX','app','YrweN','vXGkG','.\x20Error\x20:','Failed:\x20','shouldScanTestForAccessibility','start','percy','morxK','ObservabilitySync:','794752YvKAHF','zPDPC','zlJSE','end','aKnlW','KdeUs','util','WCauU','190CciKwY','appium:app','PyyIZ','currentTest','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','jeMTT','state','aEUfO','protocol','GAEkB','OrMki','\x20-\x20','Failed\x20to\x20store\x20session\x20name:\x20','GtQot','shift','BROWSERSTACK_TESTHUB_UUID','ncEvh','then','Mocha','jkZcf','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','../../helpers/percy/utils','LjnNB','WIKyi','iHyBa',',\x22level\x22:\x20\x22','Kobkz','titlePath','GNrEN','Automate\x20test\x20case\x20execution\x20has\x20started.','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','BROWSERSTACK_TESTHUB_JWT','JeqLd','finally','debug','oiAzv','fmsNs','NTyFn','oQOxQ','getGlobal','err','EJaXE','__platformCaps','kvOFy','UVOzH','performScan','env','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','xqLTQ','testAnalyticsId','../../helpers/testhub/utils','__error_messages__','command','1098900UVFUVD','isAccessibilityPlatform','../../helpers/helper','KNEPp','browserstackSessionName','setGlobal','initQuit','1590764dLRjnO','LZWig','https:','rzHkN','LAZAF','wETpq','SYNC','../../helpers/performance/performance-tester','capabilities','./test-observability/mochaUtils','ulFgs','../../helpers/performance/constants','driverCleanup','http:','\x22}}','session_','browserstackTestName','quitCount_','rmoFI','format','471226CyvdXv','SDK_HOOK','1752UbYzvY','accessibilityScanStarted','index','2180424HQDBYp','timeout','sessionName','thBuildUuid','saveTestResults','hwWyZ','__sessionFailed','stringify','push','beforeEach','ZLPxO','716675oezckg','ENV_VAR','QuqWV','lakNW','SDkHG','join'];a37_0x2ff0=function(){return _0x328bb3;};return a37_0x2ff0();}const util=require(a37_0x27f424(0xee)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a37_0x27f424(0xd1)),{percyAutoCapture}=require(a37_0x27f424(0x105)),{sendPlatformDetails}=require(a37_0x27f424(0x135)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a37_0x27f424(0x127)),PerformanceTester=require(a37_0x27f424(0x133)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a37_0x27f424(0x137)),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require(a37_0x27f424(0xda)),logger=require(a37_0x27f424(0xb6))[a37_0x27f424(0xad)],{shouldProcessEventForTesthub}=require(a37_0x27f424(0x122)),testHubConstants=require('../../helpers/testhub/constants');exports[a37_0x27f424(0xd0)]={'beforeAll'(){const _0x2512f5=a37_0x27f424,_0x3379c0={'BYUeC':function(_0xcc1ae2,_0x33826e,_0x26335d,_0x5ec5a7){return _0xcc1ae2(_0x33826e,_0x26335d,_0x5ec5a7);},'ulFgs':'failed','duyZs':'\x20|\x20','aKnlW':function(_0x30264b,_0x4f337b,_0x24c247){return _0x30264b(_0x4f337b,_0x24c247);},'UVOzH':'passed','fmsNs':function(_0x31da69){return _0x31da69();},'KNEPp':function(_0x431da1,_0x44a098,_0x442e68){return _0x431da1(_0x44a098,_0x442e68);},'vsTni':'index','kvOFy':'beforeAll'};PerformanceTester['startMonitoring']();const _0x73fa9e='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x2512f5(0x91)],()=>{const _0x5f4bbb=_0x2512f5;global[_0x5f4bbb(0x123)]=[],global[_0x5f4bbb(0x9b)]=![],global[_0x5f4bbb(0x138)]=async()=>{const _0x14a13a=_0x5f4bbb;let _0x573b72=![];try{await global[_0x14a13a(0xac)][0x0][_0x14a13a(0x13b)],_0x573b72=!![],global[_0x14a13a(0x9b)]?await _0x3379c0[_0x14a13a(0xba)](markSessionStatus,global[_0x14a13a(0xac)][0x0],_0x3379c0[_0x14a13a(0x136)],global[_0x14a13a(0x123)]['join'](_0x3379c0['duyZs'])):await _0x3379c0[_0x14a13a(0xec)](markSessionStatus,global[_0x14a13a(0xac)][0x0],_0x3379c0[_0x14a13a(0x11c)]);}catch(_0x23343c){logger[_0x14a13a(0x112)](_0x14a13a(0x10e)+_0x23343c);}global[_0x14a13a(0x123)]=[],global[_0x14a13a(0x9b)]=![];if(_0x573b72)try{try{_0x3379c0[_0x14a13a(0x114)](shouldProcessEventForTesthub)&&(global[_0x14a13a(0xac)][0x0]&&await _0x3379c0[_0x14a13a(0xec)](sendPlatformDetails,global[_0x14a13a(0xac)][0x0],this[_0x14a13a(0xf3)]?this[_0x14a13a(0xf3)]['testAnalyticsId']:null));}catch(_0x1a4a20){logger[_0x14a13a(0x112)]('Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20'+_0x1a4a20);}await global[_0x14a13a(0xac)][0x0][_0x14a13a(0x12b)]();}catch(_0x3c6375){logger['debug'](_0x14a13a(0xaf)+_0x3c6375);}};},{'platform':_0x3379c0[_0x2512f5(0x128)](nestedKeyValue,global[_0x2512f5(0x11a)],[_0x3379c0[_0x2512f5(0xa8)]]),'hookType':_0x3379c0[_0x2512f5(0x11b)]})();},'beforeEach'(_0x3b4398){const _0x5bb323=a37_0x27f424,_0x3a13a4={'aEUfO':function(_0x17fe53){return _0x17fe53();},'Kobkz':function(_0x48c911,_0x4e968f){return _0x48c911>_0x4e968f;},'ZLPxO':_0x5bb323(0xfb),'iHyBa':function(_0x42202d,_0x4a86e7,_0x34cd33){return _0x42202d(_0x4a86e7,_0x34cd33);},'ncEvh':'bstackA11yShouldScan','hrmhz':function(_0x2588fc){return _0x2588fc();},'jkZcf':_0x5bb323(0x126),'Zuaua':function(_0x4b9b28,_0x8fd46f){return _0x4b9b28===_0x8fd46f;},'BZFgx':_0x5bb323(0x139),'LjnNB':_0x5bb323(0x12e),'MfyXu':_0x5bb323(0x104),'NTyFn':_0x5bb323(0x10d),'HbDJR':function(_0x182b58){return _0x182b58();},'ROEsS':_0x5bb323(0x13c),'vXGkG':function(_0x424b88,_0x41d595,_0x45eb57){return _0x424b88(_0x41d595,_0x45eb57);},'CFPRa':_0x5bb323(0x94),'MTnPG':_0x5bb323(0x9e)};globals[_0x5bb323(0x12a)](_0x3a13a4['ROEsS'],this['currentTest'][_0x5bb323(0x10b)]()[_0x5bb323(0xa5)](_0x3a13a4[_0x5bb323(0x9f)])),PerformanceTester[_0x5bb323(0xb5)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x19dac3=_0x5bb323,_0x24a1d1={'PyyIZ':function(_0x3d62c8,_0x14bc53){const _0x639604=a37_0x3057;return _0x3a13a4[_0x639604(0x10a)](_0x3d62c8,_0x14bc53);},'fodhA':function(_0x122519,_0x4f9777){const _0x531d85=a37_0x3057;return _0x3a13a4[_0x531d85(0x10a)](_0x122519,_0x4f9777);},'LZWig':_0x3a13a4[_0x19dac3(0x9f)],'LleVr':function(_0x551927,_0x3573cf,_0xa8ff5e){const _0xa2d35d=_0x19dac3;return _0x3a13a4[_0xa2d35d(0x108)](_0x551927,_0x3573cf,_0xa8ff5e);},'hRvUG':_0x3a13a4[_0x19dac3(0x100)],'eOpfK':function(_0x4daec1){const _0x1ef14e=_0x19dac3;return _0x3a13a4[_0x1ef14e(0xd2)](_0x4daec1);},'JZJge':_0x3a13a4[_0x19dac3(0x103)],'MTzty':function(_0x1670f6,_0x3aa0bd){const _0x4e2236=_0x19dac3;return _0x3a13a4[_0x4e2236(0xc6)](_0x1670f6,_0x3aa0bd);},'WIKyi':_0x3a13a4['BZFgx'],'okWvB':_0x3a13a4[_0x19dac3(0x106)],'ZrKeN':_0x3a13a4['MfyXu'],'OrMki':_0x3a13a4[_0x19dac3(0x115)],'FaPdU':function(_0x2c2473){const _0x24ea1a=_0x19dac3;return _0x3a13a4[_0x24ea1a(0xa9)](_0x2c2473);}},_0x3dad13='browserstack internal helper hook';new Promise(async _0x3c84d0=>{const _0x5de492=_0x19dac3;let _0x39f997=!![];try{_0x24a1d1[_0x5de492(0xf2)](global[_0x5de492(0xac)][_0x5de492(0xdc)],0x1)&&(await global[_0x5de492(0x138)](),global[_0x5de492(0xac)]['shift']()),_0x24a1d1['fodhA'](global[_0x5de492(0xac)][0x0][_0x5de492(0x8d)],0x0)&&(_0x39f997=![],await global[_0x5de492(0x138)]());}catch(_0x2a00ea){logger['debug'](_0x5de492(0xaf)+_0x2a00ea);}try{Array[_0x5de492(0xbb)](global[_0x5de492(0xac)])&&global[_0x5de492(0xac)][0x0]&&(global[_0x5de492(0xac)][0x0][_0x5de492(0x129)]=this[_0x5de492(0xf3)][_0x5de492(0x10b)]()['join'](_0x24a1d1[_0x5de492(0x12d)])),global[_0x5de492(0x129)]=this[_0x5de492(0xf3)]['titlePath']()['join'](_0x24a1d1[_0x5de492(0x12d)]);}catch(_0x4a2b69){logger[_0x5de492(0x112)](_0x5de492(0xfc)+_0x4a2b69);}this['currentTest'][_0x5de492(0xe3)]=_0x24a1d1[_0x5de492(0xcf)](shouldScanTestForAccessibility,this[_0x5de492(0xf3)][_0x5de492(0x10b)](),!![]),globals[_0x5de492(0x12a)](_0x24a1d1['hRvUG'],this[_0x5de492(0xf3)][_0x5de492(0xe3)]),this[_0x5de492(0xf3)]['accessibilityScanStarted']=!![];if(_0x24a1d1[_0x5de492(0xbd)](isAccessibilityAutomationSession)&&_0x39f997&&Array[_0x5de492(0xbb)](global[_0x5de492(0xac)])&&_0x24a1d1[_0x5de492(0xb7)](global[_0x5de492(0xac)]['length'],0x0)&&globals['getGlobal'](_0x24a1d1['JZJge']))try{const _0x3c3b8d=await global['__drivers'][0x0]['session_'];if(_0x3c3b8d){let _0x44dfa7=!![];const _0x3e954d=await global[_0x5de492(0xac)][0x0]['getCurrentUrl']();let _0x58a3ad;try{_0x58a3ad=new URL(_0x3e954d);}catch(_0x4932ab){_0x44dfa7=![];}_0x44dfa7=_0x24a1d1['MTzty'](_0x58a3ad[_0x5de492(0xf8)],_0x24a1d1[_0x5de492(0x107)])||_0x24a1d1[_0x5de492(0xd3)](_0x58a3ad[_0x5de492(0xf8)],_0x24a1d1['okWvB']),_0x44dfa7&&(this[_0x5de492(0xf3)][_0x5de492(0xe3)]&&logger['info'](_0x24a1d1['ZrKeN'])),this[_0x5de492(0xf3)][_0x5de492(0x93)]=this[_0x5de492(0xf3)][_0x5de492(0xe3)],this[_0x5de492(0xf3)][_0x5de492(0xe3)]&&logger[_0x5de492(0xb4)](_0x24a1d1[_0x5de492(0xfa)]);}}catch(_0x575be3){logger[_0x5de492(0xc8)](_0x5de492(0xf4)+util[_0x5de492(0x8f)](_0x575be3));}_0x24a1d1[_0x5de492(0xc7)](_0x3c84d0);})[_0x19dac3(0x101)](()=>{const _0x5f18b9=_0x19dac3;_0x3a13a4[_0x5f18b9(0xf7)](_0x3b4398);});},{'platform':_0x3a13a4[_0x5bb323(0xe0)](nestedKeyValue,global[_0x5bb323(0x11a)],[_0x3a13a4[_0x5bb323(0xb9)]]),'hookType':_0x3a13a4[_0x5bb323(0xd8)]})();},'afterEach'(_0x3969ee){const _0x2f4af2=a37_0x27f424,_0xbcd95f={'wETpq':'\x20-\x20','RcEVq':function(_0x54ee93,_0x52fe2e){return _0x54ee93!==_0x52fe2e;},'DcYsE':'passed','morxK':function(_0x46a58e,_0x1ba198,_0x4c5e44){return _0x46a58e(_0x1ba198,_0x4c5e44);},'rmoFI':function(_0x4f8820,_0x38ea8e){return _0x4f8820+_0x38ea8e;},'KAvFG':_0x2f4af2(0xe2),'WCauU':_0x2f4af2(0xc8),'JeqLd':_0x2f4af2(0xbe),'CCMOt':_0x2f4af2(0xb4),'oQOxQ':function(_0x3b86f7,_0x378410){return _0x3b86f7>_0x378410;},'eccSb':function(_0x2d77bd,_0x5d9011){return _0x2d77bd===_0x5d9011;},'UMwUR':'testcase','jeMTT':_0x2f4af2(0xf1),'hwWyZ':function(_0x3133d3,_0x218957,_0x1b0fe3,_0x46281f){return _0x3133d3(_0x218957,_0x1b0fe3,_0x46281f);},'GAEkB':_0x2f4af2(0x126),'bIXgS':'bstackA11yShouldScan','oiAzv':_0x2f4af2(0xb3),'lakNW':_0x2f4af2(0xd9),'zpwBy':_0x2f4af2(0xcc),'ZcVfP':_0x2f4af2(0xce),'XVuEn':function(_0x474eaf){return _0x474eaf();},'DQgip':function(_0x323f60,_0x112184,_0x396ed1){return _0x323f60(_0x112184,_0x396ed1);},'GtQot':function(_0x55c0e8,_0x509f82,_0x5038e7){return _0x55c0e8(_0x509f82,_0x5038e7);},'fvmeI':_0x2f4af2(0x112),'QuqWV':function(_0xdcdbc8){return _0xdcdbc8();},'fiOuQ':'Mocha','rzHkN':function(_0x5401f5,_0x34dbec,_0x32aa3d){return _0x5401f5(_0x34dbec,_0x32aa3d);},'EJaXE':_0x2f4af2(0x94),'zlJSE':_0x2f4af2(0xbf)},_0xe2817b='browserstack internal helper hook';this[_0x2f4af2(0x96)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xbcd95f[_0x2f4af2(0xc4)]]),global[_0x2f4af2(0x97)]=this[_0x2f4af2(0xf3)][_0x2f4af2(0x10b)]()[_0x2f4af2(0xa5)](_0xbcd95f[_0x2f4af2(0x131)]),PerformanceTester[_0x2f4af2(0xb5)](PerformanceSdkEvents[_0x2f4af2(0x91)],()=>{const _0x215a60=_0x2f4af2,_0xefebae=async(_0x3a383b,_0x2b5a6c)=>{const _0x5204b0=a37_0x3057;await global[_0x5204b0(0xac)][0x0][_0x5204b0(0xcb)](_0x5204b0(0xc0)+_0x3a383b+_0x5204b0(0x109)+_0x2b5a6c+_0x5204b0(0x13a));};new Promise(async _0x31a133=>{const _0x12ffd8=a37_0x3057,_0x13990b={'RWfGp':_0xbcd95f[_0x12ffd8(0x131)],'iNQoj':function(_0x257b54,_0x553599){const _0x2f2d5d=_0x12ffd8;return _0xbcd95f[_0x2f2d5d(0xa7)](_0x257b54,_0x553599);},'TafZZ':_0xbcd95f['DcYsE'],'IvVlA':function(_0x8b7e90,_0x26c7c6,_0x29be46){const _0x3cf069=_0x12ffd8;return _0xbcd95f[_0x3cf069(0xe6)](_0x8b7e90,_0x26c7c6,_0x29be46);},'KdeUs':function(_0x28c74b,_0x6edcf3){const _0x17cbc0=_0x12ffd8;return _0xbcd95f[_0x17cbc0(0x8e)](_0x28c74b,_0x6edcf3);},'TwoTA':_0xbcd95f[_0x12ffd8(0xb1)],'xqLTQ':_0xbcd95f[_0x12ffd8(0xef)],'nRsUT':_0xbcd95f[_0x12ffd8(0x110)],'LAZAF':_0xbcd95f[_0x12ffd8(0xcd)]};try{_0xbcd95f[_0x12ffd8(0x116)](global['__drivers'][_0x12ffd8(0xdc)],0x1)&&(await global[_0x12ffd8(0x138)](),global[_0x12ffd8(0xac)][_0x12ffd8(0xfe)](),global[_0x12ffd8(0x123)]=[],global[_0x12ffd8(0x9b)]=![]);try{if(global[_0x12ffd8(0xe5)]&&_0xbcd95f['eccSb'](global[_0x12ffd8(0xc3)],_0xbcd95f[_0x12ffd8(0xc9)])&&global[_0x12ffd8(0xac)][0x0]){const _0x38bda7=_0xbcd95f['oQOxQ'](global['capabilities'][_0x12ffd8(0xdc)],0x0)?!!global[_0x12ffd8(0x134)][0x0][_0x12ffd8(0xde)]||!!global[_0x12ffd8(0x134)][0x0][_0xbcd95f[_0x12ffd8(0xf5)]]:![],_0x2dc1ba={};_0x2dc1ba[_0x12ffd8(0xde)]=_0x38bda7,await _0xbcd95f[_0x12ffd8(0x9a)](percyAutoCapture,global['__drivers'][0x0],_0xbcd95f[_0x12ffd8(0xc9)],_0x2dc1ba);}}catch(_0x4bed92){logger['debug']('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x4bed92);}!global['__skipSessionName']&&(await PerformanceTester[_0x12ffd8(0xb5)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x3672c6=_0x12ffd8;await global[_0x3672c6(0xac)][0x0][_0x3672c6(0xcb)](_0x3672c6(0x11f)+JSON[_0x3672c6(0x9c)](this[_0x3672c6(0xf3)][_0x3672c6(0x10b)]()[_0x3672c6(0xa5)](_0x13990b['RWfGp']))+'}}');})(),global['__drivers'][0x0][_0x12ffd8(0xd6)]=!![]),await PerformanceTester[_0x12ffd8(0xb5)](PerformanceAutEvents[_0x12ffd8(0xa6)],async()=>{const _0x253065=_0x12ffd8,_0x2ab47f=_0x13990b[_0x253065(0xc5)](this[_0x253065(0xf3)][_0x253065(0xf6)],_0x13990b[_0x253065(0xd4)]);_0x2ab47f?(global[_0x253065(0x9b)]=!![],global['__error_messages__'][_0x253065(0x9d)](this['currentTest'][_0x253065(0x118)][_0x253065(0xae)]),await _0x13990b['IvVlA'](_0xefebae,JSON[_0x253065(0x9c)](_0x13990b[_0x253065(0xed)](_0x13990b['TwoTA'],this['currentTest'][_0x253065(0x118)][_0x253065(0xae)])),_0x13990b[_0x253065(0x120)])):await _0x13990b[_0x253065(0xb0)](_0xefebae,JSON[_0x253065(0x9c)](_0x13990b[_0x253065(0xdb)]),_0x13990b[_0x253065(0x130)]);})();}catch(_0x45a875){logger[_0x12ffd8(0x112)](_0x12ffd8(0xaa)+_0x45a875);}try{if(this[_0x12ffd8(0xf3)][_0x12ffd8(0x93)]&&globals['getGlobal'](_0xbcd95f[_0x12ffd8(0xf9)])&&globals[_0x12ffd8(0x117)](_0xbcd95f[_0x12ffd8(0xbc)])){logger[_0x12ffd8(0xb4)](_0xbcd95f[_0x12ffd8(0x113)]);const _0x52e5a5={};_0x52e5a5[_0x12ffd8(0xc1)]=this[_0x12ffd8(0xf3)][_0x12ffd8(0x121)],_0x52e5a5[_0x12ffd8(0x98)]=process['env'][testHubConstants[_0x12ffd8(0xa1)][_0x12ffd8(0xff)]],_0x52e5a5['thJwtToken']=process[_0x12ffd8(0x11e)][testHubConstants[_0x12ffd8(0xa1)][_0x12ffd8(0x10f)]];const _0x2dae6e=_0x52e5a5;logger[_0x12ffd8(0x112)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0x12ffd8(0x9c)](_0x2dae6e)),logger[_0x12ffd8(0x112)](_0xbcd95f[_0x12ffd8(0xa3)]);const _0x8a96d7={};_0x8a96d7[_0x12ffd8(0x124)]=_0xbcd95f['zpwBy'],await PerformanceTester[_0x12ffd8(0xb5)](PerformanceA11yEvents[_0x12ffd8(0xca)],async()=>{const _0x445560=_0x12ffd8;logger[_0x445560(0x112)](util[_0x445560(0x8f)](await global[_0x445560(0xac)][0x0][_0x445560(0xd7)](scripts[_0x445560(0x11d)],{'method':global[_0x445560(0x129)]})));},_0x8a96d7)(),await PerformanceTester[_0x12ffd8(0xb5)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x3806f9=_0x12ffd8;await global[_0x3806f9(0xac)][0x0]['executeAsyncScript'](scripts[_0x3806f9(0x99)],_0x2dae6e);})(),logger['info'](_0xbcd95f['ZcVfP']);}}catch(_0x1fcdc7){logger[_0x12ffd8(0xc8)](_0x12ffd8(0xab)+this[_0x12ffd8(0xf3)]['titlePath']()+_0x12ffd8(0xe1),_0x1fcdc7);}try{try{if(_0xbcd95f[_0x12ffd8(0xb2)](shouldProcessEventForTesthub)){global[_0x12ffd8(0xac)][0x0]&&await _0xbcd95f[_0x12ffd8(0xd5)](sendPlatformDetails,global[_0x12ffd8(0xac)][0x0],this['currentTest']?this[_0x12ffd8(0xf3)][_0x12ffd8(0x121)]:null);if(_0xbcd95f[_0x12ffd8(0xb2)](isBrowserstackInfra)){PerformanceTester[_0x12ffd8(0xe4)](PerformanceO11yEvents['SYNC']);const _0x12ff85=_0x12ffd8(0xe7)+Date['now']();await _0xbcd95f[_0x12ffd8(0xfd)](_0xefebae,JSON[_0x12ffd8(0x9c)](_0x12ff85),_0xbcd95f['fvmeI']),PerformanceTester[_0x12ffd8(0xeb)](PerformanceO11yEvents[_0x12ffd8(0x132)]);}}}catch(_0x3a6fbf){logger['debug']('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x3a6fbf),PerformanceTester[_0x12ffd8(0xeb)](PerformanceO11yEvents[_0x12ffd8(0x132)],![],_0x3a6fbf);}_0xbcd95f['oQOxQ'](global[_0x12ffd8(0xac)][0x0][_0x12ffd8(0x8d)],0x0)&&await global[_0x12ffd8(0x138)]();}catch(_0x4dc69d){logger[_0x12ffd8(0x112)](_0x12ffd8(0xaf)+_0x4dc69d);}_0xbcd95f[_0x12ffd8(0xa2)](_0x31a133);})[_0x215a60(0x101)](()=>{const _0x391def=_0x215a60;_0xbcd95f[_0x391def(0xa2)](_0x3969ee);});},{'platform':_0xbcd95f[_0x2f4af2(0x12f)](nestedKeyValue,global[_0x2f4af2(0x11a)],[_0xbcd95f[_0x2f4af2(0x119)]]),'hookType':_0xbcd95f[_0x2f4af2(0xea)]})();},'afterAll'(_0x5e53a2){const _0x480466=a37_0x27f424,_0x5b20d7={'uCmii':function(_0x23f9d6){return _0x23f9d6();},'vUgab':function(_0x5795f1){return _0x5795f1();},'zPDPC':_0x480466(0x102),'YrweN':function(_0x50d3c1,_0x37f265,_0x366e4f){return _0x50d3c1(_0x37f265,_0x366e4f);},'GNrEN':'index','NQXAX':_0x480466(0xc2)},_0x36810d='browserstack internal helper hook';this[_0x480466(0x96)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x5b20d7[_0x480466(0xe9)]]),PerformanceTester[_0x480466(0xb5)](PerformanceSdkEvents[_0x480466(0x91)],()=>{const _0x390ab5=_0x480466,_0x1c803a={'SDkHG':function(_0x3c59b2){return _0x5b20d7['vUgab'](_0x3c59b2);}};new Promise(async _0x33ee70=>{const _0x2a44e4=a37_0x3057;await global[_0x2a44e4(0x138)](),_0x1c803a[_0x2a44e4(0xa4)](_0x33ee70);})['then']()[_0x390ab5(0x111)](()=>{const _0x24e382=_0x390ab5;_0x5b20d7[_0x24e382(0xb8)](_0x5e53a2);});},{'platform':_0x5b20d7[_0x480466(0xdf)](nestedKeyValue,global[_0x480466(0x11a)],[_0x5b20d7[_0x480466(0x10c)]]),'hookType':_0x5b20d7[_0x480466(0xdd)]})();}};
|
|
1
|
+
const a37_0x55547a=a37_0x5551;(function(_0x556bcb,_0x14a4be){const _0x120bd1=a37_0x5551,_0x480084=_0x556bcb();while(!![]){try{const _0x3da35c=parseInt(_0x120bd1(0x1d2))/0x1*(parseInt(_0x120bd1(0x185))/0x2)+parseInt(_0x120bd1(0x168))/0x3*(parseInt(_0x120bd1(0x1a8))/0x4)+parseInt(_0x120bd1(0x1ae))/0x5+-parseInt(_0x120bd1(0x165))/0x6+-parseInt(_0x120bd1(0x1b7))/0x7+-parseInt(_0x120bd1(0x179))/0x8*(parseInt(_0x120bd1(0x14e))/0x9)+parseInt(_0x120bd1(0x15b))/0xa*(-parseInt(_0x120bd1(0x183))/0xb);if(_0x3da35c===_0x14a4be)break;else _0x480084['push'](_0x480084['shift']());}catch(_0x380f5b){_0x480084['push'](_0x480084['shift']());}}}(a37_0x59c3,0xc47ba));const util=require(a37_0x55547a(0x15f)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a37_0x55547a(0x1de)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),{percyAutoCapture}=require(a37_0x55547a(0x190)),{sendPlatformDetails}=require(a37_0x55547a(0x157)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a37_0x55547a(0x166)),PerformanceTester=require('../../helpers/performance/performance-tester'),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),scripts=require('../../helpers/accessibility-automation/scripts'),globals=require('../../helpers/globals'),logger=require(a37_0x55547a(0x144))['winstonLogger'],{shouldProcessEventForTesthub}=require(a37_0x55547a(0x1e0)),testHubConstants=require(a37_0x55547a(0x19a));function a37_0x5551(_0x11576a,_0x1f82cf){const _0x59c3b2=a37_0x59c3();return a37_0x5551=function(_0x555132,_0x55dadd){_0x555132=_0x555132-0x141;let _0x3907df=_0x59c3b2[_0x555132];return _0x3907df;},a37_0x5551(_0x11576a,_0x1f82cf);}exports[a37_0x55547a(0x1af)]={'beforeAll'(){const _0x28b9a2=a37_0x55547a,_0x37151a={'PyPFK':function(_0x40ec13,_0x4e3d5b,_0x280cf7,_0x58f319){return _0x40ec13(_0x4e3d5b,_0x280cf7,_0x58f319);},'vpTtp':_0x28b9a2(0x162),'CrOEu':_0x28b9a2(0x189),'XnFJH':function(_0x4f63db,_0x454be4,_0x579fa5){return _0x4f63db(_0x454be4,_0x579fa5);},'ceMkz':'passed','UbuZq':function(_0x5a0bdf){return _0x5a0bdf();},'hXqgD':_0x28b9a2(0x1c4),'nSmUl':_0x28b9a2(0x178)};PerformanceTester['startMonitoring']();const _0x2766ea='browserstack internal helper hook';PerformanceTester[_0x28b9a2(0x152)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x594c68=_0x28b9a2,_0x2ebd07={'SFzPO':function(_0x12d778,_0x280ca6,_0xf89ea1,_0x3d0153){const _0x9f85c7=a37_0x5551;return _0x37151a[_0x9f85c7(0x14b)](_0x12d778,_0x280ca6,_0xf89ea1,_0x3d0153);},'kfUdM':_0x37151a[_0x594c68(0x1bd)],'JLBgA':_0x37151a[_0x594c68(0x1a9)],'yTuZu':function(_0x388b26,_0x58a6ec,_0x560a3e){const _0x3abbb0=_0x594c68;return _0x37151a[_0x3abbb0(0x193)](_0x388b26,_0x58a6ec,_0x560a3e);},'YAQSy':_0x37151a[_0x594c68(0x1d7)],'DhiYn':function(_0x1377ce){return _0x37151a['UbuZq'](_0x1377ce);},'TIfeN':function(_0x56030a,_0x5dddbb,_0x4d4a75){const _0x3ac773=_0x594c68;return _0x37151a[_0x3ac773(0x193)](_0x56030a,_0x5dddbb,_0x4d4a75);}};global[_0x594c68(0x1dc)]=[],global[_0x594c68(0x1c7)]=![],global[_0x594c68(0x1b2)]=async()=>{const _0x2ce539=_0x594c68;let _0x5a3971=![];try{await global[_0x2ce539(0x169)][0x0][_0x2ce539(0x1e2)],_0x5a3971=!![],global[_0x2ce539(0x1c7)]?await _0x2ebd07[_0x2ce539(0x19d)](markSessionStatus,global[_0x2ce539(0x169)][0x0],_0x2ebd07['kfUdM'],global[_0x2ce539(0x1dc)][_0x2ce539(0x1a1)](_0x2ebd07[_0x2ce539(0x17d)])):await _0x2ebd07[_0x2ce539(0x18c)](markSessionStatus,global[_0x2ce539(0x169)][0x0],_0x2ebd07['YAQSy']);}catch(_0x469baa){logger['debug'](_0x2ce539(0x176)+_0x469baa);}global[_0x2ce539(0x1dc)]=[],global[_0x2ce539(0x1c7)]=![];if(_0x5a3971)try{try{_0x2ebd07['DhiYn'](shouldProcessEventForTesthub)&&(global[_0x2ce539(0x169)][0x0]&&await _0x2ebd07[_0x2ce539(0x1d3)](sendPlatformDetails,global[_0x2ce539(0x169)][0x0],this['currentTest']?this[_0x2ce539(0x188)]['testAnalyticsId']:null));}catch(_0x21c1f8){logger['debug'](_0x2ce539(0x16d)+_0x21c1f8);}await global[_0x2ce539(0x169)][0x0][_0x2ce539(0x15d)]();}catch(_0x301c2d){logger[_0x2ce539(0x194)](_0x2ce539(0x145)+_0x301c2d);}};},{'platform':_0x37151a[_0x28b9a2(0x193)](nestedKeyValue,global[_0x28b9a2(0x161)],[_0x37151a[_0x28b9a2(0x1c6)]]),'hookType':_0x37151a['nSmUl']})();},'beforeEach'(_0x32809e){const _0x20d52a=a37_0x55547a,_0x27e695={'VpkIF':function(_0x49cf2b,_0x273b1a){return _0x49cf2b>_0x273b1a;},'ZPsKI':'\x20-\x20','UZQJx':function(_0xdead9c,_0x39bebd,_0x4979bd){return _0xdead9c(_0x39bebd,_0x4979bd);},'tUYZv':'bstackA11yShouldScan','GzDOW':function(_0x125ca5){return _0x125ca5();},'YRZnE':_0x20d52a(0x197),'QPxiZ':function(_0x3dfc4a,_0x206d2a){return _0x3dfc4a===_0x206d2a;},'spuUb':'http:','MnvKO':function(_0x5f0522,_0x1931e6){return _0x5f0522===_0x1931e6;},'TnLQc':_0x20d52a(0x158),'nHDnW':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','snitX':_0x20d52a(0x1aa),'MKFaN':function(_0x81898e){return _0x81898e();},'NtywC':function(_0x35acba){return _0x35acba();},'YGjvi':_0x20d52a(0x154),'bUAhP':'index','coTai':'beforeEach'};globals[_0x20d52a(0x1a3)](_0x27e695[_0x20d52a(0x1a5)],this[_0x20d52a(0x188)][_0x20d52a(0x181)]()['join'](_0x27e695[_0x20d52a(0x160)])),PerformanceTester[_0x20d52a(0x152)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x2dbc7b={'GSyUd':function(_0x4f1cc0){const _0x2caf46=a37_0x5551;return _0x27e695[_0x2caf46(0x1bf)](_0x4f1cc0);}},_0x3a5681='browserstack internal helper hook';new Promise(async _0x3c7ffe=>{const _0x4e90ce=a37_0x5551;let _0x5ec22d=!![];try{_0x27e695[_0x4e90ce(0x1b9)](global[_0x4e90ce(0x169)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x4e90ce(0x169)]['shift']()),_0x27e695[_0x4e90ce(0x1b9)](global[_0x4e90ce(0x169)][0x0][_0x4e90ce(0x182)],0x0)&&(_0x5ec22d=![],await global[_0x4e90ce(0x1b2)]());}catch(_0x3edcf2){logger['debug']('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x3edcf2);}try{Array[_0x4e90ce(0x19b)](global['__drivers'])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x4e90ce(0x1ce)]=this[_0x4e90ce(0x188)][_0x4e90ce(0x181)]()['join'](_0x27e695[_0x4e90ce(0x160)])),global['browserstackSessionName']=this[_0x4e90ce(0x188)][_0x4e90ce(0x181)]()[_0x4e90ce(0x1a1)](_0x27e695[_0x4e90ce(0x160)]);}catch(_0x3c38bb){logger['debug']('Failed\x20to\x20store\x20session\x20name:\x20'+_0x3c38bb);}this[_0x4e90ce(0x188)][_0x4e90ce(0x156)]=_0x27e695[_0x4e90ce(0x1e1)](shouldScanTestForAccessibility,this[_0x4e90ce(0x188)][_0x4e90ce(0x181)](),!![]),globals['setGlobal'](_0x27e695[_0x4e90ce(0x18b)],this[_0x4e90ce(0x188)][_0x4e90ce(0x156)]),this[_0x4e90ce(0x188)]['accessibilityScanStarted']=!![];if(_0x27e695[_0x4e90ce(0x1c0)](isAccessibilityAutomationSession)&&_0x5ec22d&&Array[_0x4e90ce(0x19b)](global[_0x4e90ce(0x169)])&&_0x27e695[_0x4e90ce(0x1b9)](global[_0x4e90ce(0x169)][_0x4e90ce(0x18f)],0x0)&&globals['getGlobal'](_0x27e695[_0x4e90ce(0x18d)]))try{const _0x5bc343=await global[_0x4e90ce(0x169)][0x0]['session_'];if(_0x5bc343){let _0xf92677=!![];const _0x484f63=await global['__drivers'][0x0][_0x4e90ce(0x1d4)]();let _0x1b490a;try{_0x1b490a=new URL(_0x484f63);}catch(_0x1d7bbe){_0xf92677=![];}_0xf92677=_0x27e695[_0x4e90ce(0x198)](_0x1b490a[_0x4e90ce(0x142)],_0x27e695[_0x4e90ce(0x1c9)])||_0x27e695[_0x4e90ce(0x1ad)](_0x1b490a[_0x4e90ce(0x142)],_0x27e695[_0x4e90ce(0x173)]),_0xf92677&&(this['currentTest'][_0x4e90ce(0x156)]&&logger[_0x4e90ce(0x1ac)](_0x27e695[_0x4e90ce(0x1bc)])),this['currentTest']['accessibilityScanStarted']=this[_0x4e90ce(0x188)][_0x4e90ce(0x156)],this[_0x4e90ce(0x188)][_0x4e90ce(0x156)]&&logger['info'](_0x27e695[_0x4e90ce(0x1b4)]);}}catch(_0x3d519e){logger[_0x4e90ce(0x174)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x4e90ce(0x163)](_0x3d519e));}_0x27e695['MKFaN'](_0x3c7ffe);})['then'](()=>{const _0x19fa61=a37_0x5551;_0x2dbc7b[_0x19fa61(0x1a7)](_0x32809e);});},{'platform':_0x27e695[_0x20d52a(0x1e1)](nestedKeyValue,global[_0x20d52a(0x161)],[_0x27e695[_0x20d52a(0x191)]]),'hookType':_0x27e695[_0x20d52a(0x19f)]})();},'afterEach'(_0x8e731a){const _0x5f15da=a37_0x55547a,_0xab6eb0={'WYQfA':function(_0x48a97b,_0x45e1a6){return _0x48a97b>_0x45e1a6;},'rztqO':function(_0x14f12d,_0xc649a3){return _0x14f12d===_0xc649a3;},'TElTR':_0x5f15da(0x175),'JalDz':function(_0x22dc4a,_0x4c29fa){return _0x22dc4a>_0x4c29fa;},'SSlWS':'appium:app','QtUJo':function(_0x3dadd6,_0x2673b7,_0x3ebcef,_0x2c591c){return _0x3dadd6(_0x2673b7,_0x3ebcef,_0x2c591c);},'xJnLM':'isAccessibilityPlatform','mzfWw':_0x5f15da(0x1b5),'Cmajv':'Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','SDEEk':'Performing\x20scan\x20before\x20saving\x20results','eBVxF':'afterTest','sPSZD':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','AVeTY':function(_0x202a55){return _0x202a55();},'zzGgA':function(_0x23f8da,_0x247d4c,_0x3dd083){return _0x23f8da(_0x247d4c,_0x3dd083);},'EoGdX':function(_0x359785){return _0x359785();},'MIoqr':function(_0x2d6d57,_0x1156e3,_0x567b7c){return _0x2d6d57(_0x1156e3,_0x567b7c);},'Zxufr':_0x5f15da(0x194),'esYLj':function(_0x1645e3){return _0x1645e3();},'pPJzb':_0x5f15da(0x1cf),'WtnAr':function(_0x55f1aa,_0x84c466){return _0x55f1aa!==_0x84c466;},'lgdLs':'passed','PbBHL':function(_0x24a56d,_0x4b2e8b){return _0x24a56d+_0x4b2e8b;},'EWmnY':_0x5f15da(0x14f),'AATCH':'error','TDrfa':function(_0x509934,_0x474e94,_0x33349c){return _0x509934(_0x474e94,_0x33349c);},'KATfE':'Passed','QddaG':'info','jnGoc':'Mocha','jbAXh':function(_0x34f6cf,_0x5681d8,_0x532fde){return _0x34f6cf(_0x5681d8,_0x532fde);},'UbhvP':_0x5f15da(0x1c4),'HFXYh':_0x5f15da(0x187)},_0xc3e3d9='browserstack internal helper hook';this[_0x5f15da(0x159)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xab6eb0['jnGoc']]),global[_0x5f15da(0x1d8)]=this[_0x5f15da(0x188)]['titlePath']()[_0x5f15da(0x1a1)](_0xab6eb0[_0x5f15da(0x1e3)]),PerformanceTester[_0x5f15da(0x152)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x5de956=_0x5f15da,_0x22615f={'zwDrI':_0xab6eb0[_0x5de956(0x1e3)],'zAptR':function(_0x20a937,_0xc21e8d){const _0x47ce3c=_0x5de956;return _0xab6eb0[_0x47ce3c(0x171)](_0x20a937,_0xc21e8d);},'dwQEj':_0xab6eb0['lgdLs'],'iuMjQ':function(_0x1540a6,_0x4d66f8,_0x5567d0){const _0x3d48c4=_0x5de956;return _0xab6eb0[_0x3d48c4(0x1a4)](_0x1540a6,_0x4d66f8,_0x5567d0);},'BqAUH':function(_0x25b3de,_0x4ee306){const _0x1dd2f4=_0x5de956;return _0xab6eb0[_0x1dd2f4(0x15e)](_0x25b3de,_0x4ee306);},'rGQEA':_0xab6eb0[_0x5de956(0x1db)],'yvrwO':_0xab6eb0[_0x5de956(0x16b)],'wSyta':function(_0x3ffd9e,_0x3a78f5,_0x57d637){const _0x3ed55d=_0x5de956;return _0xab6eb0[_0x3ed55d(0x1d6)](_0x3ffd9e,_0x3a78f5,_0x57d637);},'XRcmj':_0xab6eb0['KATfE'],'pLyXU':_0xab6eb0[_0x5de956(0x1a0)]},_0x446b4f=async(_0x397836,_0x2c79b8)=>{const _0x1352d7=_0x5de956;await global['__drivers'][0x0][_0x1352d7(0x143)](_0x1352d7(0x184)+_0x397836+',\x22level\x22:\x20\x22'+_0x2c79b8+_0x1352d7(0x1c3));};new Promise(async _0x6b3eba=>{const _0xd632ac=_0x5de956;try{_0xab6eb0[_0xd632ac(0x148)](global[_0xd632ac(0x169)][_0xd632ac(0x18f)],0x1)&&(await global['driverCleanup'](),global[_0xd632ac(0x169)]['shift'](),global['__error_messages__']=[],global[_0xd632ac(0x1c7)]=![]);try{if(global['percy']&&_0xab6eb0[_0xd632ac(0x146)](global[_0xd632ac(0x1c2)],_0xab6eb0['TElTR'])&&global['__drivers'][0x0]){const _0x11d259=_0xab6eb0['JalDz'](global[_0xd632ac(0x1d9)]['length'],0x0)?!!global['capabilities'][0x0][_0xd632ac(0x180)]||!!global['capabilities'][0x0][_0xab6eb0[_0xd632ac(0x141)]]:![],_0x569a2e={};_0x569a2e[_0xd632ac(0x180)]=_0x11d259,await _0xab6eb0[_0xd632ac(0x192)](percyAutoCapture,global[_0xd632ac(0x169)][0x0],_0xab6eb0[_0xd632ac(0x150)],_0x569a2e);}}catch(_0x501151){logger[_0xd632ac(0x194)](_0xd632ac(0x1a2)+_0x501151);}!global['__skipSessionName']&&(await PerformanceTester[_0xd632ac(0x152)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x4cb2aa=_0xd632ac;await global[_0x4cb2aa(0x169)][0x0][_0x4cb2aa(0x143)](_0x4cb2aa(0x1ba)+JSON[_0x4cb2aa(0x1b8)](this[_0x4cb2aa(0x188)][_0x4cb2aa(0x181)]()[_0x4cb2aa(0x1a1)](_0x22615f[_0x4cb2aa(0x153)]))+'}}');})(),global['__drivers'][0x0][_0xd632ac(0x196)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0xd632ac(0x167)],async()=>{const _0x3b9950=_0xd632ac,_0x441700=_0x22615f[_0x3b9950(0x1d5)](this[_0x3b9950(0x188)]['state'],_0x22615f['dwQEj']);_0x441700?(global[_0x3b9950(0x1c7)]=!![],global[_0x3b9950(0x1dc)]['push'](this[_0x3b9950(0x188)][_0x3b9950(0x18a)][_0x3b9950(0x14c)]),await _0x22615f[_0x3b9950(0x147)](_0x446b4f,JSON[_0x3b9950(0x1b8)](_0x22615f['BqAUH'](_0x22615f[_0x3b9950(0x1da)],this[_0x3b9950(0x188)][_0x3b9950(0x18a)][_0x3b9950(0x14c)])),_0x22615f[_0x3b9950(0x155)])):await _0x22615f['wSyta'](_0x446b4f,JSON[_0x3b9950(0x1b8)](_0x22615f[_0x3b9950(0x14a)]),_0x22615f[_0x3b9950(0x17b)]);})();}catch(_0x4879ef){logger[_0xd632ac(0x194)](_0xd632ac(0x18e)+_0x4879ef);}try{if(this[_0xd632ac(0x188)]['accessibilityScanStarted']&&globals['getGlobal'](_0xab6eb0[_0xd632ac(0x1cb)])&&globals[_0xd632ac(0x164)](_0xab6eb0['mzfWw'])){logger[_0xd632ac(0x1ac)](_0xab6eb0[_0xd632ac(0x1b1)]);const _0x5ac085={};_0x5ac085[_0xd632ac(0x16c)]=this[_0xd632ac(0x188)][_0xd632ac(0x17e)],_0x5ac085[_0xd632ac(0x1c1)]=process[_0xd632ac(0x199)][testHubConstants[_0xd632ac(0x1d1)][_0xd632ac(0x17c)]],_0x5ac085[_0xd632ac(0x1d0)]=process[_0xd632ac(0x199)][testHubConstants['ENV_VAR'][_0xd632ac(0x19c)]];const _0x33fc20=_0x5ac085;logger[_0xd632ac(0x194)]('Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20'+JSON[_0xd632ac(0x1b8)](_0x33fc20)),logger[_0xd632ac(0x194)](_0xab6eb0['SDEEk']);const _0x586c09={};_0x586c09[_0xd632ac(0x1df)]=_0xab6eb0[_0xd632ac(0x1b3)],await PerformanceTester[_0xd632ac(0x152)](PerformanceA11yEvents[_0xd632ac(0x16e)],async()=>{const _0x138ecd=_0xd632ac;logger['debug'](util[_0x138ecd(0x163)](await global['__drivers'][0x0][_0x138ecd(0x1b6)](scripts[_0x138ecd(0x16a)],{'method':global[_0x138ecd(0x1ce)]})));},_0x586c09)(),await PerformanceTester[_0xd632ac(0x152)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x56c7f9=_0xd632ac;await global[_0x56c7f9(0x169)][0x0]['executeAsyncScript'](scripts[_0x56c7f9(0x195)],_0x33fc20);})(),logger[_0xd632ac(0x1ac)](_0xab6eb0[_0xd632ac(0x177)]);}}catch(_0x598889){logger[_0xd632ac(0x174)](_0xd632ac(0x15c)+this[_0xd632ac(0x188)][_0xd632ac(0x181)]()+_0xd632ac(0x1dd),_0x598889);}try{try{if(_0xab6eb0['AVeTY'](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0xab6eb0[_0xd632ac(0x1a4)](sendPlatformDetails,global[_0xd632ac(0x169)][0x0],this['currentTest']?this['currentTest'][_0xd632ac(0x17e)]:null);if(_0xab6eb0[_0xd632ac(0x1cd)](isBrowserstackInfra)){PerformanceTester[_0xd632ac(0x1be)](PerformanceO11yEvents[_0xd632ac(0x1b0)]);const _0x3946cf=_0xd632ac(0x149)+Date[_0xd632ac(0x170)]();await _0xab6eb0['MIoqr'](_0x446b4f,JSON['stringify'](_0x3946cf),_0xab6eb0[_0xd632ac(0x1ab)]),PerformanceTester['end'](PerformanceO11yEvents[_0xd632ac(0x1b0)]);}}}catch(_0x5e1940){logger[_0xd632ac(0x194)](_0xd632ac(0x1cc)+_0x5e1940),PerformanceTester[_0xd632ac(0x172)](PerformanceO11yEvents['SYNC'],![],_0x5e1940);}_0xab6eb0[_0xd632ac(0x1ca)](global[_0xd632ac(0x169)][0x0][_0xd632ac(0x182)],0x0)&&await global[_0xd632ac(0x1b2)]();}catch(_0x31aca4){logger[_0xd632ac(0x194)](_0xd632ac(0x145)+_0x31aca4);}_0xab6eb0[_0xd632ac(0x1c5)](_0x6b3eba);})[_0x5de956(0x186)](()=>{const _0x3d4570=_0x5de956;_0xab6eb0[_0x3d4570(0x1cd)](_0x8e731a);});},{'platform':_0xab6eb0[_0x5f15da(0x1a6)](nestedKeyValue,global['__platformCaps'],[_0xab6eb0[_0x5f15da(0x15a)]]),'hookType':_0xab6eb0[_0x5f15da(0x19e)]})();},'afterAll'(_0x21ec46){const _0x4e7328=a37_0x55547a,_0x4ff8cd={'ReDiy':function(_0x1ffde3){return _0x1ffde3();},'mJAQV':function(_0x567d9e){return _0x567d9e();},'OEvYr':_0x4e7328(0x151),'xkmQK':function(_0x3aaf0d,_0x57b2fe,_0x4f7f65){return _0x3aaf0d(_0x57b2fe,_0x4f7f65);},'VpUVk':'index','AHVka':'afterAll'},_0x55e914='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x4ff8cd[_0x4e7328(0x1bb)]]),PerformanceTester[_0x4e7328(0x152)](PerformanceSdkEvents[_0x4e7328(0x1c8)],()=>{const _0x248c7f=_0x4e7328;new Promise(async _0x11e465=>{const _0x3cbf5f=a37_0x5551;await global['driverCleanup'](),_0x4ff8cd[_0x3cbf5f(0x14d)](_0x11e465);})[_0x248c7f(0x186)]()[_0x248c7f(0x17a)](()=>{const _0xb33c84=_0x248c7f;_0x4ff8cd[_0xb33c84(0x16f)](_0x21ec46);});},{'platform':_0x4ff8cd[_0x4e7328(0x17f)](nestedKeyValue,global[_0x4e7328(0x161)],[_0x4ff8cd['VpUVk']]),'hookType':_0x4ff8cd['AHVka']})();}};function a37_0x59c3(){const _0x9b0b26=['jbAXh','GSyUd','76nrYjZT','CrOEu','Automate\x20test\x20case\x20execution\x20has\x20started.','Zxufr','info','MnvKO','3060520ZuCXku','mochaHooks','SYNC','Cmajv','driverCleanup','eBVxF','snitX','bstackA11yShouldScan','executeAsyncScript','10289160ecuCat','stringify','VpkIF','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','OEvYr','nHDnW','vpTtp','start','NtywC','GzDOW','thBuildUuid','percyCaptureMode','\x22}}','index','esYLj','hXqgD','__sessionFailed','SDK_HOOK','spuUb','JalDz','xJnLM','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','EoGdX','browserstackSessionName','\x20-\x20','thJwtToken','ENV_VAR','349sVpjBN','TIfeN','getCurrentUrl','zAptR','TDrfa','ceMkz','sessionName','capabilities','rGQEA','EWmnY','__error_messages__','.\x20Error\x20:','../../helpers/accessibility-automation/helper','command','../../helpers/testhub/utils','UZQJx','session_','pPJzb','SSlWS','protocol','executeScript','../../helpers/logger','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','rztqO','iuMjQ','WYQfA','ObservabilitySync:','XRcmj','PyPFK','message','ReDiy','63IwOzwb','Failed:\x20','TElTR','Mocha','measureWrapper','zwDrI','browserstackTestName','yvrwO','shouldScanTestForAccessibility','./test-observability/mochaUtils','https:','timeout','UbhvP','496180JGaBJD','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','initQuit','PbBHL','util','ZPsKI','__platformCaps','failed','format','getGlobal','407586nsdyCo','../../helpers/helper','SESSION_STATUS','209823NJIpdc','__drivers','performScan','AATCH','thTestRunUuid','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','PERFORM_SCAN','mJAQV','now','WtnAr','end','TnLQc','error','testcase','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','sPSZD','beforeAll','643432chtfhs','finally','pLyXU','BROWSERSTACK_TESTHUB_UUID','JLBgA','testAnalyticsId','xkmQK','app','titlePath','quitCount_','66tTqYFN','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','7234AlRqnh','then','afterEach','currentTest','\x20|\x20','err','tUYZv','yTuZu','YRZnE','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','length','../../helpers/percy/utils','bUAhP','QtUJo','XnFJH','debug','saveTestResults','sessionNameSet__','isAccessibilityPlatform','QPxiZ','env','../../helpers/testhub/constants','isArray','BROWSERSTACK_TESTHUB_JWT','SFzPO','HFXYh','coTai','QddaG','join','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','setGlobal','zzGgA','YGjvi'];a37_0x59c3=function(){return _0x9b0b26;};return a37_0x59c3();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a38_0x18b0b2=a38_0x4866;(function(_0x381a7c,_0xbc5d88){const _0x350079=a38_0x4866,_0x439894=_0x381a7c();while(!![]){try{const _0x3e00ef=-parseInt(_0x350079(0x17a))/0x1*(parseInt(_0x350079(0x184))/0x2)+parseInt(_0x350079(0x187))/0x3+parseInt(_0x350079(0x16d))/0x4+-parseInt(_0x350079(0x15f))/0x5+parseInt(_0x350079(0x17b))/0x6+-parseInt(_0x350079(0x15b))/0x7+parseInt(_0x350079(0x166))/0x8;if(_0x3e00ef===_0xbc5d88)break;else _0x439894['push'](_0x439894['shift']());}catch(_0x3e48fb){_0x439894['push'](_0x439894['shift']());}}}(a38_0x4ad8,0x71d54));const fs=require('fs'),path=require(a38_0x18b0b2(0x143)),{spawn}=require(a38_0x18b0b2(0x146)),logger=require(a38_0x18b0b2(0x173))[a38_0x18b0b2(0x154)],{default:BrowserStackSetup}=require(a38_0x18b0b2(0x16f)),helper=require(a38_0x18b0b2(0x160)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x8703ba,_0x1e4642)=>{const _0x12457a=a38_0x18b0b2,_0x2484f2={'JiltD':_0x12457a(0x17c),'psegh':_0x12457a(0x17e),'PWlNF':function(_0x389bf7,_0x18097f){return _0x389bf7(_0x18097f);},'GPRmm':_0x12457a(0x156)};let _0xe0f264=null,_0x56b268={};const _0x23d063=_0x1e4642[_0x12457a(0x165)](_0x4c5ee5=>_0x4c5ee5===_0x12457a(0x16b));if(!helper[_0x12457a(0x17d)](_0x8703ba[_0x12457a(0x189)])&&fs[_0x12457a(0x150)](path[_0x12457a(0x157)](process['cwd'](),_0x8703ba[_0x12457a(0x189)])))_0xe0f264=path[_0x12457a(0x157)](process['cwd'](),_0x8703ba[_0x12457a(0x189)]),_0x1e4642['splice'](_0x23d063,0x2);else{if(fs[_0x12457a(0x150)](path[_0x12457a(0x157)](process[_0x12457a(0x179)](),_0x2484f2[_0x12457a(0x148)])))_0xe0f264=path[_0x12457a(0x157)](process[_0x12457a(0x179)](),_0x2484f2[_0x12457a(0x148)]);else fs[_0x12457a(0x150)](path[_0x12457a(0x157)](process[_0x12457a(0x179)](),_0x2484f2['psegh']))&&(_0xe0f264=path[_0x12457a(0x157)](process[_0x12457a(0x179)](),_0x2484f2[_0x12457a(0x15d)]));}return _0xe0f264?(logger[_0x12457a(0x169)](_0x12457a(0x162)+_0xe0f264),_0x56b268=_0x2484f2[_0x12457a(0x177)](require,_0xe0f264)):logger[_0x12457a(0x169)](_0x2484f2['GPRmm']),_0x56b268;},removeExistingEnvs=_0x466144=>{const _0x42a568=a38_0x18b0b2,_0x501665={};_0x501665['arMuL']=function(_0x539563,_0x4bc77c){return _0x539563>_0x4bc77c;},_0x501665['Kptgc']=function(_0x474c1b,_0x1e797f){return _0x474c1b>_0x1e797f;};const _0x15a307=_0x501665;let _0x28f955=_0x466144[_0x42a568(0x165)](_0x23a0f6=>_0x23a0f6===_0x42a568(0x15e));_0x15a307[_0x42a568(0x145)](_0x28f955,-0x1)&&_0x466144[_0x42a568(0x153)](_0x28f955,0x2),_0x28f955=_0x466144[_0x42a568(0x165)](_0x5ec972=>_0x5ec972==='-e'),_0x15a307[_0x42a568(0x14f)](_0x28f955,-0x1)&&_0x466144[_0x42a568(0x153)](_0x28f955,0x2);};function run(_0x3b3321,_0x446cb4,_0x4c0c16){const _0x2d9e93=a38_0x18b0b2,_0x4273c9={'woJPg':_0x2d9e93(0x14c),'JnSGl':function(_0x46fe27,_0x381f98){return _0x46fe27+_0x381f98;},'gYZVX':_0x2d9e93(0x188),'GnmuT':function(_0x23a82e,_0x34e2f2,_0x523533){return _0x23a82e(_0x34e2f2,_0x523533);},'muywL':_0x2d9e93(0x170),'RZcTa':_0x2d9e93(0x186),'mZCQl':function(_0x54c96a,_0x29fa86){return _0x54c96a===_0x29fa86;},'VpObt':_0x2d9e93(0x15c),'yqwXG':function(_0x3526c5,_0x5c6e47){return _0x3526c5(_0x5c6e47);},'UtHXC':function(_0x583ca4,_0x1baaa4,_0x37ada8,_0x1aa9fc){return _0x583ca4(_0x1baaa4,_0x37ada8,_0x1aa9fc);},'AFBrd':_0x2d9e93(0x14e),'qkUsA':_0x2d9e93(0x16b),'LsgOo':'--env','ZOkXV':_0x2d9e93(0x17f),'ocjRg':'close'};if(!_0x4c0c16[_0x2d9e93(0x189)])return;const _0x13b49d=_0x4273c9['GnmuT'](getUserNightwatchConfigs,_0x3b3321,_0x446cb4),_0x1a6f82={};_0x1a6f82[_0x2d9e93(0x178)]=![];const _0x220130={};_0x220130['host']=_0x4273c9['muywL'],_0x220130[_0x2d9e93(0x182)]=0x1bb;const _0x397a46={};_0x397a46[_0x2d9e93(0x16a)]=_0x1a6f82,_0x397a46[_0x2d9e93(0x181)]=_0x220130;const _0x3998ac=_0x397a46;logger[_0x2d9e93(0x169)](_0x4273c9['RZcTa']);const _0x3a4d9e={..._0x13b49d},_0x5dc725=_0x3a4d9e,_0x3b30c2=helper[_0x2d9e93(0x14a)](_0x4c0c16['config']),_0x5a0fe3=[];_0x4c0c16['config'][_0x2d9e93(0x180)][_0x2d9e93(0x175)]((_0x30c585,_0x3af151)=>{const _0x206de8=_0x2d9e93;_0x3b30c2?_0x5a0fe3[_0x206de8(0x18c)](helper[_0x206de8(0x168)](_0x4c0c16['config'],_0x4273c9[_0x206de8(0x172)],_0x3af151)):_0x5a0fe3[_0x206de8(0x18c)](helper[_0x206de8(0x183)](_0x4c0c16[_0x206de8(0x189)],_0x4273c9['woJPg'],_0x3af151));});const _0x10e0e8={},_0x3f5b57=[];_0x3b3321['env']=_0x3b3321['env']||_0x3b3321['e'];const _0x2386c8=_0x3b3321[_0x2d9e93(0x16e)]?_0x3b3321['env'][_0x2d9e93(0x161)]()['split'](',')['map'](_0x4dfab1=>_0x4dfab1['trim']())[_0x2d9e93(0x155)](_0xa6c7cc=>_0xa6c7cc!==''):[''];_0x4273c9[_0x2d9e93(0x159)](_0x2386c8[_0x2d9e93(0x149)],0x0)&&_0x2386c8[_0x2d9e93(0x18c)]('');_0x2386c8[_0x2d9e93(0x175)](_0x47dcac=>{_0x5a0fe3['forEach'](_0xdab292=>{const _0x570785=a38_0x4866;let _0x39d833=_0x4273c9[_0x570785(0x185)](helper[_0x570785(0x171)](_0xdab292,'_'),'_'+Date[_0x570785(0x18a)]());_0x47dcac&&(_0x39d833+='_'+_0x47dcac);if(_0x47dcac&&(!_0x13b49d[_0x4273c9[_0x570785(0x163)]]||!_0x13b49d[_0x4273c9[_0x570785(0x163)]][_0x47dcac]))return;const _0x38ff2e={..._0x3998ac};_0x38ff2e[_0x570785(0x18b)]=_0xdab292;const _0x2f567d=_0x38ff2e;_0x10e0e8[_0x39d833]=_0x47dcac?helper[_0x570785(0x164)](_0x13b49d[_0x4273c9[_0x570785(0x163)]][_0x47dcac],_0x2f567d):_0x2f567d,_0x3f5b57['push'](_0x39d833);});});!_0x5dc725[_0x2d9e93(0x188)]&&(_0x5dc725[_0x2d9e93(0x188)]={});_0x5dc725[_0x2d9e93(0x188)]={..._0x5dc725[_0x2d9e93(0x188)],..._0x10e0e8};const _0x3da51e=path[_0x2d9e93(0x157)](__dirname,_0x4273c9[_0x2d9e93(0x158)]);fs[_0x2d9e93(0x147)](_0x3da51e,JSON[_0x2d9e93(0x16c)](_0x5dc725)),_0x4273c9['yqwXG'](removeExistingEnvs,_0x446cb4);const _0x25ce8f=_0x4273c9[_0x2d9e93(0x151)](spawn,/^win/[_0x2d9e93(0x15a)](process[_0x2d9e93(0x144)])?_0x4273c9['AFBrd']:_0x4273c9[_0x2d9e93(0x172)],[_0x4273c9[_0x2d9e93(0x174)],_0x3da51e,..._0x446cb4['slice'](0x1),_0x4273c9[_0x2d9e93(0x14b)],_0x3f5b57[_0x2d9e93(0x157)](',')],{'stdio':_0x4273c9[_0x2d9e93(0x14d)]});_0x25ce8f['on'](_0x4273c9['ocjRg'],async _0x26be86=>{const _0x48744c=_0x2d9e93;logger[_0x48744c(0x176)](_0x48744c(0x167)+_0x26be86),logger[_0x48744c(0x169)]('Deleting\x20'+_0x3da51e),fs[_0x48744c(0x152)](_0x3da51e);});}function a38_0x4866(_0x530ac7,_0x55210c){const _0x4ad804=a38_0x4ad8();return a38_0x4866=function(_0x4866af,_0x427dfb){_0x4866af=_0x4866af-0x143;let _0x3e137b=_0x4ad804[_0x4866af];return _0x3e137b;},a38_0x4866(_0x530ac7,_0x55210c);}module['exports']=run;function a38_0x4ad8(){const _0x3f75d4=['nightwatch.json','inherit','platforms','selenium','port','modifyBrowserStackCaps','560058XzvYXy','JnSGl','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','734487lPnLgq','test_settings','config','now','desiredCapabilities','push','path','platform','arMuL','child_process','writeFileSync','JiltD','length','useW3C','LsgOo','nightwatch','ZOkXV','nightwatch.cmd','Kptgc','existsSync','UtHXC','unlinkSync','splice','winstonLogger','filter','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','join','VpObt','mZCQl','test','5340881scCHDy','nightwatch-browserstack.json','psegh','--env','1693435GQNZVb','../../helpers/helper','trim','Getting\x20your\x20nightwatch\x20configs\x20from\x20','gYZVX','mergeDeep','findIndex','5753088jFSZHT','child\x20process\x20exited\x20with\x20code\x20','modifyBrowserStackW3CCaps','info','webdriver','--config','stringify','1941272rOBEJV','env','../../helpers/BrowserStackSetup','hub.browserstack.com','getPlatformName','woJPg','../../helpers/logger','qkUsA','forEach','debug','PWlNF','start_process','cwd','1ZXeFxg','2392056uBltpr','nightwatch.conf.js','isUndefined'];a38_0x4ad8=function(){return _0x3f75d4;};return a38_0x4ad8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a39_0x1c0d71=a39_0x20d6;(function(_0x252ada,_0x2b02a1){const _0x30c5a0=a39_0x20d6,_0x298d6c=_0x252ada();while(!![]){try{const _0xc41259=-parseInt(_0x30c5a0(0x23b))/0x1*(parseInt(_0x30c5a0(0x1f7))/0x2)+-parseInt(_0x30c5a0(0x217))/0x3*(-parseInt(_0x30c5a0(0x1ec))/0x4)+parseInt(_0x30c5a0(0x201))/0x5+parseInt(_0x30c5a0(0x248))/0x6*(parseInt(_0x30c5a0(0x1f5))/0x7)+parseInt(_0x30c5a0(0x1ff))/0x8*(parseInt(_0x30c5a0(0x214))/0x9)+-parseInt(_0x30c5a0(0x210))/0xa+-parseInt(_0x30c5a0(0x1ee))/0xb;if(_0xc41259===_0x2b02a1)break;else _0x298d6c['push'](_0x298d6c['shift']());}catch(_0x33eafa){_0x298d6c['push'](_0x298d6c['shift']());}}}(a39_0x24a0,0xc6c19));const util=require('util'),logger=require(a39_0x1c0d71(0x1e9))['winstonLogger'],{isAccessibilityAutomationSession}=require(a39_0x1c0d71(0x208)),{isUndefined,isBrowserstackInfra}=require(a39_0x1c0d71(0x247)),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require(a39_0x1c0d71(0x24c)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a39_0x1c0d71(0x1fc));function a39_0x20d6(_0x124c66,_0x4ab656){const _0x24a075=a39_0x24a0();return a39_0x20d6=function(_0x20d685,_0x393294){_0x20d685=_0x20d685-0x1df;let _0x1075e0=_0x24a075[_0x20d685];return _0x1075e0;},a39_0x20d6(_0x124c66,_0x4ab656);}exports[a39_0x1c0d71(0x1ea)]=async(_0x20029f,_0x12d458,_0x2263b6={})=>{const _0x53b2f6=a39_0x1c0d71,_0x1e2699={};_0x1e2699[_0x53b2f6(0x23a)]=_0x53b2f6(0x1f0);const _0x401494=_0x1e2699;return await _0x20029f[_0x53b2f6(0x213)]('(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'+_0x12d458['replace'](/arguments/g,_0x401494[_0x53b2f6(0x23a)])+_0x53b2f6(0x215)+JSON['stringify'](_0x2263b6)+')');},exports[a39_0x1c0d71(0x234)]=async(_0x140113,_0x26a2b2,_0x1b3447={})=>{const _0x2dd6e5=a39_0x1c0d71,_0x21f26e={};_0x21f26e[_0x2dd6e5(0x236)]=function(_0x4f8a7d,_0x52867a){return _0x4f8a7d===_0x52867a;},_0x21f26e[_0x2dd6e5(0x224)]=_0x2dd6e5(0x22b),_0x21f26e['ttrVN']=function(_0x1212b6,_0x2a631b){return _0x1212b6===_0x2a631b;},_0x21f26e[_0x2dd6e5(0x1f2)]=_0x2dd6e5(0x1f9),_0x21f26e['WJRUt']=_0x2dd6e5(0x1f0);const _0x3ab153=_0x21f26e;if(_0x3ab153[_0x2dd6e5(0x236)](_0x140113[_0x2dd6e5(0x241)][_0x2dd6e5(0x1e6)],_0x3ab153[_0x2dd6e5(0x224)]))return await _0x140113['executeAsyncScript'](_0x26a2b2,_0x1b3447);else{if(_0x3ab153[_0x2dd6e5(0x23d)](_0x140113[_0x2dd6e5(0x241)][_0x2dd6e5(0x1e6)],_0x3ab153[_0x2dd6e5(0x1f2)]))return await _0x140113['executeScript'](_0x2dd6e5(0x245)+_0x26a2b2[_0x2dd6e5(0x21e)](/arguments/g,_0x3ab153[_0x2dd6e5(0x1df)])+_0x2dd6e5(0x235)+JSON['stringify'](_0x1b3447)+')');}},exports[a39_0x1c0d71(0x24f)]=async _0x1e8c7d=>{const _0x4d979f=a39_0x1c0d71,_0xc7379e={};_0xc7379e[_0x4d979f(0x244)]=_0x4d979f(0x22e),_0xc7379e[_0x4d979f(0x220)]=_0x4d979f(0x1e2),_0xc7379e[_0x4d979f(0x20c)]='accessibilityOptions.includeIssueType.bestPractice',_0xc7379e[_0x4d979f(0x237)]=_0x4d979f(0x1ed),_0xc7379e[_0x4d979f(0x1ef)]=_0x4d979f(0x252),_0xc7379e[_0x4d979f(0x227)]='accessibilityOptions.scannerVersion';const _0x2c96f6=_0xc7379e;_0x1e8c7d['accessibilityOptions']&&(_0x1e8c7d[_0x4d979f(0x229)][_0x4d979f(0x24b)]&&(_0x1e8c7d[_0x2c96f6[_0x4d979f(0x244)]]=_0x1e8c7d[_0x4d979f(0x229)]['wcagVersion']),_0x1e8c7d[_0x4d979f(0x229)][_0x4d979f(0x226)]&&(_0x1e8c7d[_0x2c96f6[_0x4d979f(0x220)]]=_0x1e8c7d['accessibilityOptions'][_0x4d979f(0x226)]),_0x1e8c7d[_0x4d979f(0x229)]['includeIssueType']&&(_0x1e8c7d[_0x2c96f6[_0x4d979f(0x20c)]]=_0x1e8c7d['accessibilityOptions'][_0x4d979f(0x222)][_0x4d979f(0x223)],_0x1e8c7d[_0x2c96f6['BgiRj']]=_0x1e8c7d[_0x4d979f(0x229)][_0x4d979f(0x222)][_0x4d979f(0x23c)]));const _0x342d6b=JSON['parse'](process[_0x4d979f(0x21a)][_0x4d979f(0x1eb)])[_0x4d979f(0x20e)];_0x1e8c7d[_0x2c96f6[_0x4d979f(0x1ef)]]=process[_0x4d979f(0x21a)][_0x4d979f(0x22a)],_0x1e8c7d[_0x2c96f6[_0x4d979f(0x227)]]=_0x342d6b,delete _0x1e8c7d[_0x4d979f(0x229)];},exports[a39_0x1c0d71(0x212)]=async _0x13f4a9=>{const _0x4da872=a39_0x1c0d71,_0x5d1bac={};_0x5d1bac[_0x4da872(0x211)]=_0x4da872(0x1e3),_0x5d1bac[_0x4da872(0x202)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x405262=_0x5d1bac;if(global['accessibilityPlatform'])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x13f4a9,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x13f4a9,scripts.getResults);})();return res;}catch{return logger['error'](_0x405262[_0x4da872(0x211)]),[];}else return logger[_0x4da872(0x21b)](_0x405262[_0x4da872(0x202)]),[];},exports[a39_0x1c0d71(0x22c)]=async(_0x531b8c,_0x4e8cb0='')=>{const _0x539de1=a39_0x1c0d71;logger[_0x539de1(0x1f3)]('Performing\x20scan\x20with\x20method:\x20'+_0x4e8cb0+_0x539de1(0x206)+_0x531b8c);if(global[_0x539de1(0x1f8)])return await PerformanceTester[_0x539de1(0x209)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x399e4b=_0x539de1,_0x3d0269={};_0x3d0269[_0x399e4b(0x251)]=_0x4e8cb0,await exports[_0x399e4b(0x1ea)](_0x531b8c,scripts[_0x399e4b(0x22c)],_0x3d0269);},{'command':_0x4e8cb0})();},exports[a39_0x1c0d71(0x207)]=async _0x4421c6=>{const _0x47eae0=a39_0x1c0d71,_0x3dc69c={};_0x3dc69c[_0x47eae0(0x231)]='No\x20summaryResults\x20found.',_0x3dc69c['THkGd']=_0x47eae0(0x1e7);const _0x212232=_0x3dc69c;if(global[_0x47eae0(0x1f8)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4421c6,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4421c6,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x47eae0(0x1f3)](_0x212232[_0x47eae0(0x231)]),{};}else return logger[_0x47eae0(0x21b)](_0x212232['THkGd']),{};},exports[a39_0x1c0d71(0x219)]=async _0x5b9e1e=>{const _0x19eb9a=a39_0x1c0d71,_0x508a79={'QrjVK':function(_0x13b4bd,_0x2dead0){return _0x13b4bd!==_0x2dead0;},'efRms':_0x19eb9a(0x22d),'OmHLA':_0x19eb9a(0x242),'xesTB':_0x19eb9a(0x218),'dUWpn':_0x19eb9a(0x1f4),'nOckt':_0x19eb9a(0x1e0),'RBQhy':function(_0x2d7ec5,_0x176be6){return _0x2d7ec5(_0x176be6);},'kognY':function(_0x5d29c6){return _0x5d29c6();},'fXwsu':function(_0x1ba2e7,_0x1f4f30){return _0x1ba2e7<_0x1f4f30;},'jLhPi':_0x19eb9a(0x20a),'zOpDT':function(_0x5a1845,_0x29b7bb){return _0x5a1845===_0x29b7bb;},'LOTQy':_0x19eb9a(0x24a),'uSesP':function(_0x4c5bc2,_0x36e59b){return _0x4c5bc2>_0x36e59b;},'BiwkD':_0x19eb9a(0x203)};try{if(!_0x508a79['QrjVK'](_0x5b9e1e[_0x19eb9a(0x240)],''))return logger['warn'](_0x508a79['efRms']),![];const _0x56f5a2=_0x5b9e1e['browser'];if(![_0x508a79['OmHLA'],_0x508a79['xesTB'],_0x508a79[_0x19eb9a(0x1e5)]][_0x19eb9a(0x1e1)](_0x56f5a2))return logger['warn'](_0x508a79[_0x19eb9a(0x21d)]),![];const _0x4d23b3=_0x508a79[_0x19eb9a(0x1e4)](parseInt,_0x5b9e1e[_0x19eb9a(0x243)]);!_0x508a79[_0x19eb9a(0x20d)](isBrowserstackInfra)&&(!_0x508a79['fXwsu'](_0x4d23b3,0x64)&&logger[_0x19eb9a(0x21b)](_0x508a79[_0x19eb9a(0x1f1)]));if(!(_0x508a79[_0x19eb9a(0x24d)](_0x4d23b3,_0x508a79[_0x19eb9a(0x23f)])||_0x508a79[_0x19eb9a(0x1fd)](_0x4d23b3,0x5e)))return logger[_0x19eb9a(0x21b)](_0x508a79[_0x19eb9a(0x233)]),![];}catch(_0x58dc12){logger['debug'](_0x19eb9a(0x1fe)+util[_0x19eb9a(0x204)](_0x58dc12));}return!![];},exports[a39_0x1c0d71(0x250)]=(_0x41789c,_0x4aceee,_0x1b0468)=>{const _0x59b6b9=a39_0x1c0d71,_0x254cf7={'GEdbg':function(_0x111a04){return _0x111a04();},'zntuI':_0x59b6b9(0x22f),'SwtGY':function(_0x3d8850,_0x1fa75e){return _0x3d8850===_0x1fa75e;},'aNZnu':_0x59b6b9(0x242),'QEoTr':function(_0x2c338d,_0x384444){return _0x2c338d===_0x384444;},'vdGSh':_0x59b6b9(0x218),'tzcTm':function(_0x536111,_0x2d2995){return _0x536111===_0x2d2995;},'npXzt':_0x59b6b9(0x1e0),'jlfDj':function(_0x15fc67){return _0x15fc67();},'YiEpL':function(_0x194c88,_0x5bd4e8){return _0x194c88>_0x5bd4e8;},'ubBGq':_0x59b6b9(0x20a),'THHrB':function(_0x3660d7,_0xeb6c1d){return _0x3660d7===_0xeb6c1d;},'jLMLv':_0x59b6b9(0x24a),'gixsg':function(_0x3eeaa3,_0x198a52){return _0x3eeaa3>_0x198a52;},'dSXRQ':_0x59b6b9(0x203),'cKdsZ':function(_0x2d6e55,_0x1f09de){return _0x2d6e55(_0x1f09de);},'uomrW':_0x59b6b9(0x22d),'pzRsM':function(_0x24f06e,_0xfffe5){return _0x24f06e+_0xfffe5;},'xnTBK':function(_0x1204ad,_0x48c94d){return _0x1204ad(_0x48c94d);}};try{if(_0x254cf7[_0x59b6b9(0x1fa)](isAccessibilityAutomationSession)){global[_0x59b6b9(0x1f8)]=!![];!_0x41789c[_0x254cf7[_0x59b6b9(0x221)]]&&(global[_0x59b6b9(0x1f8)]=![]);!(_0x254cf7[_0x59b6b9(0x21c)](_0x41789c['browserName'],_0x254cf7[_0x59b6b9(0x205)])||_0x254cf7[_0x59b6b9(0x1fb)](_0x41789c['browserName'],_0x254cf7[_0x59b6b9(0x225)])||_0x254cf7['SwtGY'](_0x41789c[_0x59b6b9(0x20b)],_0x254cf7[_0x59b6b9(0x205)])||_0x254cf7[_0x59b6b9(0x253)](_0x41789c[_0x59b6b9(0x20b)],_0x254cf7[_0x59b6b9(0x225)]))&&(logger['warn'](_0x254cf7[_0x59b6b9(0x200)]),global[_0x59b6b9(0x1f8)]=![]);!_0x254cf7[_0x59b6b9(0x23e)](isBrowserstackInfra)&&(!_0x254cf7[_0x59b6b9(0x1e8)](_0x41789c[_0x59b6b9(0x243)],0x64)&&logger[_0x59b6b9(0x21b)](_0x254cf7[_0x59b6b9(0x239)]));!(_0x254cf7[_0x59b6b9(0x216)](_0x41789c[_0x59b6b9(0x243)],_0x254cf7[_0x59b6b9(0x232)])||_0x254cf7[_0x59b6b9(0x246)](_0x41789c[_0x59b6b9(0x243)],0x5e))&&(logger[_0x59b6b9(0x21b)](_0x254cf7['dSXRQ']),global[_0x59b6b9(0x1f8)]=![]);!_0x254cf7['cKdsZ'](isUndefined,_0x41789c['deviceName'])&&(logger['warn'](_0x254cf7[_0x59b6b9(0x20f)]),global[_0x59b6b9(0x1f8)]=![]);if(!global[_0x59b6b9(0x1f8)]){_0x41789c[_0x254cf7[_0x59b6b9(0x221)]]=![];const _0x11c937=_0x254cf7[_0x59b6b9(0x228)](_0x4aceee,_0x254cf7['xnTBK'](encodeURIComponent,JSON[_0x59b6b9(0x24e)](_0x41789c)));_0x1b0468&&(_0x1b0468[_0x59b6b9(0x1f6)]['testInfo'][_0x59b6b9(0x249)]['use']['connectOptions']['wsEndpoint']=_0x11c937,_0x1b0468['workerInfo'][_0x59b6b9(0x249)][_0x59b6b9(0x21f)][_0x59b6b9(0x238)]['wsEndpoint']=_0x11c937);}}else global['accessibilityPlatform']=![];}catch(_0xbc1f66){logger[_0x59b6b9(0x1f3)](_0x59b6b9(0x230)+util[_0x59b6b9(0x204)](_0xbc1f66));}};function a39_0x24a0(){const _0xc9bd9f=['../../helpers/accessibility-automation/helper','measureWrapper','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','browser','TgzgF','kognY','scannerVersion','uomrW','4970500AhVoig','xwYXs','getAccessibilityResults','evaluate','14266143LYLDWl','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','THHrB','201KSqppn','playwright-chromium','platformValidation','env','warn','SwtGY','nOckt','replace','use','eSgha','zntuI','includeIssueType','bestPractice','ZINBd','vdGSh','scannerProcessingTimeout','cCqgk','pzRsM','accessibilityOptions','BS_A11Y_JWT','WebDriver','performScan','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','accessibilityOptions.wcagVersion','browserstack.accessibility','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','lJrsD','jLMLv','BiwkD','browserStackExecuteDriver','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','wavwk','BgiRj','connectOptions','ubBGq','NswiE','24957GCvwTL','needsReview','ttrVN','jlfDj','LOTQy','deviceName','constructor','chrome','browser_version','nHjCk','(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','gixsg','../../helpers/helper','9546aCyrID','project','latest','wcagVersion','../../helpers/performance/performance-tester','zOpDT','stringify','setAccessibilityCapabilities','processAccessibilityCaps','command','accessibilityOptions.authToken','tzcTm','WJRUt','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','includes','accessibilityOptions.scannerProcessingTimeout','No\x20accessibility\x20results\x20were\x20found.','RBQhy','dUWpn','name','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','YiEpL','../../helpers/logger','browserStackEvaluate','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','20520nKmxbs','accessibilityOptions.includeIssueType.needsReview','26032391aGaAgx','ZJSCI','bstackSdkArgs','jLhPi','ZcbQx','debug','chromium','3829YuXxzx','currentTest','52HNryCa','accessibilityPlatform','Playwright','GEdbg','QEoTr','../../helpers/performance/constants','uSesP','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','8AjYVgY','npXzt','7637520TpzuHX','FwOHv','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','format','aNZnu','\x20page:\x20','getAccessibilityResultsSummary'];a39_0x24a0=function(){return _0xc9bd9f;};return a39_0x24a0();}
|
|
1
|
+
const a39_0x2454a1=a39_0x2bb4;(function(_0x1e77b7,_0x4029df){const _0x27e72b=a39_0x2bb4,_0xc360c0=_0x1e77b7();while(!![]){try{const _0x5102c1=-parseInt(_0x27e72b(0x236))/0x1*(-parseInt(_0x27e72b(0x23f))/0x2)+parseInt(_0x27e72b(0x21f))/0x3*(parseInt(_0x27e72b(0x20d))/0x4)+-parseInt(_0x27e72b(0x213))/0x5+parseInt(_0x27e72b(0x244))/0x6+parseInt(_0x27e72b(0x255))/0x7*(parseInt(_0x27e72b(0x22d))/0x8)+parseInt(_0x27e72b(0x250))/0x9+-parseInt(_0x27e72b(0x218))/0xa*(parseInt(_0x27e72b(0x21e))/0xb);if(_0x5102c1===_0x4029df)break;else _0xc360c0['push'](_0xc360c0['shift']());}catch(_0x5f0e8d){_0xc360c0['push'](_0xc360c0['shift']());}}}(a39_0x18b2,0x99513));const util=require(a39_0x2454a1(0x233)),logger=require(a39_0x2454a1(0x259))[a39_0x2454a1(0x246)],{isAccessibilityAutomationSession}=require(a39_0x2454a1(0x204)),{isUndefined,isBrowserstackInfra}=require('../../helpers/helper'),scripts=require('../../helpers/accessibility-automation/scripts'),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a39_0x2454a1(0x214));function a39_0x18b2(){const _0x1afafc=['../../helpers/accessibility-automation/helper','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','ldjTr','browserStackExecuteDriver','evaluate','executeAsyncScript','wcagVersion','command','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','52aKZuMr','EGxbx','currentTest','accessibilityOptions.scannerVersion','testInfo','MSkQh','5661405zaaJOQ','../../helpers/performance/constants','jLFEF','oweuu','IFZWz','10pcbCvk','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','cgUhz','performScan','accessibilityPlatform','accessibilityOptions.scannerProcessingTimeout','23084402EcRrIa','145602LOYHCT','lFbhG','CViAg','ZtBIu','bestPractice','accessibilityOptions.authToken','BS_A11Y_JWT','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','chrome','YXMvN','igNIN','browser','warn','DuZfB','407688AGLmsJ','Olfah','bstackSdkArgs','MhNNJ','latest','workerInfo','util','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','getAccessibilityResults','116111yxFRWc','qkakS','accessibilityOptions','includes','tnbIU','YMqKC','YCmpP','LdRWq','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','18mSnyhe','browserStackEvaluate','Performing\x20scan\x20with\x20method:\x20','processAccessibilityCaps','debug','5200278XPUyAV','NyiaS','winstonLogger','qMzHt','WebDriver','SYBnn','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','format','parse','env','PERFORM_SCAN','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','9552519pXDQIo','DJipS','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','browserName','iuGzG','35TKAxTE','No\x20summaryResults\x20found.','browser_version','Hivib','../../helpers/logger','VvZRk','connectOptions','wsEndpoint','XqZKR','akhzc','accessibilityOptions.includeIssueType.bestPractice','Umtjx','tFpRI','platformValidation','ItiGJ','xMvAG','Playwright','stringify','setAccessibilityCapabilities','(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','name','constructor','XGaZJ','wyMjc','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','scannerVersion','qmWct','includeIssueType','playwright-chromium','ARRia','zzGyj','sOpAr','fKhnY'];a39_0x18b2=function(){return _0x1afafc;};return a39_0x18b2();}function a39_0x2bb4(_0x1c0f71,_0x2749ee){const _0x18b200=a39_0x18b2();return a39_0x2bb4=function(_0x2bb4f7,_0x55594e){_0x2bb4f7=_0x2bb4f7-0x1e8;let _0x14c716=_0x18b200[_0x2bb4f7];return _0x14c716;},a39_0x2bb4(_0x1c0f71,_0x2749ee);}exports[a39_0x2454a1(0x240)]=async(_0x51e132,_0x563000,_0x41aa5a={})=>{const _0x56fefa=a39_0x2454a1,_0x3b7e81={};_0x3b7e81[_0x56fefa(0x1f1)]=_0x56fefa(0x22f);const _0x4009fd=_0x3b7e81;return await _0x51e132[_0x56fefa(0x208)]('(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'+_0x563000['replace'](/arguments/g,_0x4009fd[_0x56fefa(0x1f1)])+_0x56fefa(0x23e)+JSON['stringify'](_0x41aa5a)+')');},exports[a39_0x2454a1(0x207)]=async(_0x32dc22,_0x5615ff,_0x365518={})=>{const _0x140da4=a39_0x2454a1,_0x44bd31={};_0x44bd31[_0x140da4(0x1ee)]=function(_0x3471c3,_0x4e8f7c){return _0x3471c3===_0x4e8f7c;},_0x44bd31[_0x140da4(0x203)]=_0x140da4(0x248),_0x44bd31[_0x140da4(0x212)]=_0x140da4(0x1f3),_0x44bd31[_0x140da4(0x1fd)]='bstackSdkArgs';const _0x1f3217=_0x44bd31;if(_0x1f3217[_0x140da4(0x1ee)](_0x32dc22[_0x140da4(0x1f8)][_0x140da4(0x1f7)],_0x1f3217[_0x140da4(0x203)]))return await _0x32dc22[_0x140da4(0x209)](_0x5615ff,_0x365518);else{if(_0x1f3217['Umtjx'](_0x32dc22['constructor'][_0x140da4(0x1f7)],_0x1f3217[_0x140da4(0x212)]))return await _0x32dc22['executeScript'](_0x140da4(0x1f6)+_0x5615ff['replace'](/arguments/g,_0x1f3217[_0x140da4(0x1fd)])+_0x140da4(0x252)+JSON[_0x140da4(0x1f4)](_0x365518)+')');}},exports[a39_0x2454a1(0x1f5)]=async _0x142719=>{const _0x2057db=a39_0x2454a1,_0x1b103c={};_0x1b103c[_0x2057db(0x258)]='accessibilityOptions.wcagVersion',_0x1b103c['igNIN']=_0x2057db(0x21d),_0x1b103c['YMqKC']=_0x2057db(0x1ed),_0x1b103c[_0x2057db(0x215)]='accessibilityOptions.includeIssueType.needsReview',_0x1b103c[_0x2057db(0x201)]=_0x2057db(0x224),_0x1b103c[_0x2057db(0x249)]=_0x2057db(0x210);const _0x3d51f3=_0x1b103c;_0x142719['accessibilityOptions']&&(_0x142719[_0x2057db(0x238)][_0x2057db(0x20a)]&&(_0x142719[_0x3d51f3[_0x2057db(0x258)]]=_0x142719[_0x2057db(0x238)][_0x2057db(0x20a)]),_0x142719[_0x2057db(0x238)]['scannerProcessingTimeout']&&(_0x142719[_0x3d51f3[_0x2057db(0x229)]]=_0x142719[_0x2057db(0x238)]['scannerProcessingTimeout']),_0x142719[_0x2057db(0x238)][_0x2057db(0x1fe)]&&(_0x142719[_0x3d51f3[_0x2057db(0x23b)]]=_0x142719[_0x2057db(0x238)][_0x2057db(0x1fe)][_0x2057db(0x223)],_0x142719[_0x3d51f3[_0x2057db(0x215)]]=_0x142719[_0x2057db(0x238)][_0x2057db(0x1fe)]['needsReview']));const _0x513f97=JSON[_0x2057db(0x24c)](process[_0x2057db(0x24d)][_0x2057db(0x234)])[_0x2057db(0x1fc)];_0x142719[_0x3d51f3[_0x2057db(0x201)]]=process[_0x2057db(0x24d)][_0x2057db(0x225)],_0x142719[_0x3d51f3[_0x2057db(0x249)]]=_0x513f97,delete _0x142719[_0x2057db(0x238)];},exports[a39_0x2454a1(0x235)]=async _0x3af946=>{const _0x4cb369=a39_0x2454a1,_0x5f2370={};_0x5f2370[_0x4cb369(0x222)]='No\x20accessibility\x20results\x20were\x20found.',_0x5f2370[_0x4cb369(0x202)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0xb2c25a=_0x5f2370;if(global[_0x4cb369(0x21c)])try{logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x3af946,scripts.performScan)));},{command:'getAccessibilityResults'})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3af946,scripts.getResults);})();return res;}catch{return logger['error'](_0xb2c25a[_0x4cb369(0x222)]),[];}else return logger['warn'](_0xb2c25a[_0x4cb369(0x202)]),[];},exports[a39_0x2454a1(0x21b)]=async(_0x524aec,_0x4ab9ef='')=>{const _0x144952=a39_0x2454a1;logger[_0x144952(0x243)](_0x144952(0x241)+_0x4ab9ef+'\x20page:\x20'+_0x524aec);if(global['accessibilityPlatform'])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x144952(0x24e)],async()=>{const _0x3e184c=_0x144952,_0x42fc82={};_0x42fc82[_0x3e184c(0x20b)]=_0x4ab9ef,await exports[_0x3e184c(0x240)](_0x524aec,scripts['performScan'],_0x42fc82);},{'command':_0x4ab9ef})();},exports['getAccessibilityResultsSummary']=async _0x1559da=>{const _0xd7276b=a39_0x2454a1,_0x158026={};_0x158026[_0xd7276b(0x247)]=_0xd7276b(0x256),_0x158026[_0xd7276b(0x23d)]=_0xd7276b(0x24a);const _0x51c48e=_0x158026;if(global[_0xd7276b(0x21c)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x1559da,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x1559da,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0xd7276b(0x243)](_0x51c48e['qMzHt']),{};}else return logger['warn'](_0x51c48e[_0xd7276b(0x23d)]),{};},exports[a39_0x2454a1(0x1f0)]=async _0x4024e6=>{const _0xd6d090=a39_0x2454a1,_0x5cd959={'VvZRk':function(_0x36242a,_0x3392dd){return _0x36242a!==_0x3392dd;},'xMvAG':_0xd6d090(0x1fb),'ajEMx':_0xd6d090(0x227),'wyMjc':_0xd6d090(0x1ff),'oweuu':'chromium','ldjTr':_0xd6d090(0x219),'Kmowi':function(_0x5b2337,_0x2ebdff){return _0x5b2337(_0x2ebdff);},'akhzc':function(_0x25f4da){return _0x25f4da();},'MhNNJ':function(_0x32e9f7,_0xc3e490){return _0x32e9f7<_0xc3e490;},'CViAg':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','Olfah':function(_0x14e2b4,_0x2299d9){return _0x14e2b4===_0x2299d9;},'iuGzG':_0xd6d090(0x231),'lFbhG':function(_0xa29a45,_0x3bc66f){return _0xa29a45>_0x3bc66f;},'ifFMX':_0xd6d090(0x20c)};try{if(!_0x5cd959[_0xd6d090(0x1e8)](_0x4024e6['deviceName'],''))return logger['warn'](_0x5cd959[_0xd6d090(0x1f2)]),![];const _0xef768b=_0x4024e6[_0xd6d090(0x22a)];if(![_0x5cd959['ajEMx'],_0x5cd959[_0xd6d090(0x1fa)],_0x5cd959[_0xd6d090(0x216)]][_0xd6d090(0x239)](_0xef768b))return logger['warn'](_0x5cd959[_0xd6d090(0x206)]),![];const _0x2a4608=_0x5cd959['Kmowi'](parseInt,_0x4024e6['browser_version']);!_0x5cd959[_0xd6d090(0x1ec)](isBrowserstackInfra)&&(!_0x5cd959[_0xd6d090(0x230)](_0x2a4608,0x64)&&logger[_0xd6d090(0x22b)](_0x5cd959[_0xd6d090(0x221)]));if(!(_0x5cd959[_0xd6d090(0x22e)](_0x2a4608,_0x5cd959[_0xd6d090(0x254)])||_0x5cd959[_0xd6d090(0x220)](_0x2a4608,0x5e)))return logger['warn'](_0x5cd959['ifFMX']),![];}catch(_0x205edb){logger['debug'](_0xd6d090(0x226)+util[_0xd6d090(0x24b)](_0x205edb));}return!![];},exports[a39_0x2454a1(0x242)]=(_0x32243a,_0xc0ba0d,_0x519957)=>{const _0x32581a=a39_0x2454a1,_0x256e14={'DJipS':function(_0x3d43ae){return _0x3d43ae();},'XGaZJ':'browserstack.accessibility','tnbIU':function(_0x123597,_0x595b33){return _0x123597===_0x595b33;},'YXMvN':_0x32581a(0x227),'YCmpP':function(_0x2fde3c,_0x1415d7){return _0x2fde3c===_0x1415d7;},'cgUhz':'playwright-chromium','EGxbx':function(_0x37cca8,_0x168c77){return _0x37cca8===_0x168c77;},'IFZWz':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','DuZfB':function(_0x6d72dd,_0x1d065d){return _0x6d72dd>_0x1d065d;},'VwcRl':_0x32581a(0x24f),'XqZKR':_0x32581a(0x231),'qkakS':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','tFpRI':function(_0x249994,_0x392adf){return _0x249994(_0x392adf);},'ARRia':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','NyiaS':function(_0x542d16,_0x383d62){return _0x542d16+_0x383d62;},'XRlZa':function(_0x366cc1,_0x4881d1){return _0x366cc1(_0x4881d1);}};try{if(_0x256e14[_0x32581a(0x251)](isAccessibilityAutomationSession)){global[_0x32581a(0x21c)]=!![];!_0x32243a[_0x256e14[_0x32581a(0x1f9)]]&&(global[_0x32581a(0x21c)]=![]);!(_0x256e14[_0x32581a(0x23a)](_0x32243a[_0x32581a(0x253)],_0x256e14[_0x32581a(0x228)])||_0x256e14[_0x32581a(0x23c)](_0x32243a[_0x32581a(0x253)],_0x256e14[_0x32581a(0x21a)])||_0x256e14['EGxbx'](_0x32243a[_0x32581a(0x22a)],_0x256e14['YXMvN'])||_0x256e14[_0x32581a(0x20e)](_0x32243a[_0x32581a(0x22a)],_0x256e14['cgUhz']))&&(logger[_0x32581a(0x22b)](_0x256e14[_0x32581a(0x217)]),global['accessibilityPlatform']=![]);!_0x256e14[_0x32581a(0x251)](isBrowserstackInfra)&&(!_0x256e14[_0x32581a(0x22c)](_0x32243a['browser_version'],0x64)&&logger[_0x32581a(0x22b)](_0x256e14['VwcRl']));!(_0x256e14['YCmpP'](_0x32243a[_0x32581a(0x257)],_0x256e14[_0x32581a(0x1eb)])||_0x256e14[_0x32581a(0x22c)](_0x32243a['browser_version'],0x5e))&&(logger['warn'](_0x256e14[_0x32581a(0x237)]),global[_0x32581a(0x21c)]=![]);!_0x256e14[_0x32581a(0x1ef)](isUndefined,_0x32243a['deviceName'])&&(logger[_0x32581a(0x22b)](_0x256e14[_0x32581a(0x200)]),global[_0x32581a(0x21c)]=![]);if(!global['accessibilityPlatform']){_0x32243a[_0x256e14[_0x32581a(0x1f9)]]=![];const _0x3ebf00=_0x256e14[_0x32581a(0x245)](_0xc0ba0d,_0x256e14['XRlZa'](encodeURIComponent,JSON[_0x32581a(0x1f4)](_0x32243a)));_0x519957&&(_0x519957[_0x32581a(0x20f)][_0x32581a(0x211)]['project']['use'][_0x32581a(0x1e9)]['wsEndpoint']=_0x3ebf00,_0x519957[_0x32581a(0x232)]['project']['use']['connectOptions'][_0x32581a(0x1ea)]=_0x3ebf00);}}else global['accessibilityPlatform']=![];}catch(_0x17b7d6){logger[_0x32581a(0x243)](_0x32581a(0x205)+util[_0x32581a(0x24b)](_0x17b7d6));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function a40_0x25f8(_0x100a80,_0x3a2cb3){const _0x398e6f=a40_0x398e();return a40_0x25f8=function(_0x25f87e,_0x461adc){_0x25f87e=_0x25f87e-0x1f0;let _0x57577b=_0x398e6f[_0x25f87e];return _0x57577b;},a40_0x25f8(_0x100a80,_0x3a2cb3);}const a40_0x4e3469=a40_0x25f8;(function(_0x576c6a,_0x1cc8be){const _0xc4df4f=a40_0x25f8,_0x27ae24=_0x576c6a();while(!![]){try{const _0x22de46=parseInt(_0xc4df4f(0x290))/0x1*(-parseInt(_0xc4df4f(0x254))/0x2)+parseInt(_0xc4df4f(0x26b))/0x3+parseInt(_0xc4df4f(0x25b))/0x4*(-parseInt(_0xc4df4f(0x25a))/0x5)+parseInt(_0xc4df4f(0x22f))/0x6+parseInt(_0xc4df4f(0x260))/0x7*(-parseInt(_0xc4df4f(0x23e))/0x8)+parseInt(_0xc4df4f(0x20c))/0x9+-parseInt(_0xc4df4f(0x284))/0xa*(-parseInt(_0xc4df4f(0x24d))/0xb);if(_0x22de46===_0x1cc8be)break;else _0x27ae24['push'](_0x27ae24['shift']());}catch(_0x3f7dd1){_0x27ae24['push'](_0x27ae24['shift']());}}}(a40_0x398e,0x2c6e8));const fs=require('fs'),path=require(a40_0x4e3469(0x298)),{spawn}=require(a40_0x4e3469(0x253)),{format}=require(a40_0x4e3469(0x274)),logger=require(a40_0x4e3469(0x1fe))['winstonLogger'],{default:BrowserStackSetup}=require(a40_0x4e3469(0x294)),helper=require(a40_0x4e3469(0x23b)),utilities=require(a40_0x4e3469(0x1f5)),constants=require('../utils/constants'),{FRAMEWORKS}=require(a40_0x4e3469(0x217)),{getConfigLoaderPath}=require(a40_0x4e3469(0x266)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require(a40_0x4e3469(0x25e)),{printBuildLink}=require(a40_0x4e3469(0x279)),TestDetails=require(a40_0x4e3469(0x282)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a40_0x4e3469(0x236)),BrowserstackCLI=require(a40_0x4e3469(0x200)),PerformanceEvents=require(a40_0x4e3469(0x211))[a40_0x4e3469(0x273)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a40_0x4e3469(0x281)),getUserPlaywrightConfig=async(_0x47e856,_0x2c70ed)=>{const _0x285f2f=a40_0x4e3469,_0xe532fd={'kDdzg':function(_0x5e7d75){return _0x5e7d75();},'YJLFJ':function(_0x5b198f,_0x5943f4){return _0x5b198f(_0x5943f4);},'gbIsO':_0x285f2f(0x226),'mhCUp':_0x285f2f(0x223)},_0x5cb58a=!helper[_0x285f2f(0x270)](_0x47e856[_0x285f2f(0x247)]),_0x3f32dc=_0x5cb58a?path[_0x285f2f(0x22c)](process['cwd'](),_0x47e856[_0x285f2f(0x247)]):process[_0x285f2f(0x22b)](),{resolveConfigFile:_0x55a311,resolveConfigLocation:_0x18ccc5}=helper[_0x285f2f(0x20a)][_0x285f2f(0x26f)](null,_0xe532fd[_0x285f2f(0x24a)](getConfigLoaderPath)),_0x450852=_0x55a311?_0xe532fd[_0x285f2f(0x21e)](_0x55a311,_0x3f32dc):helper['nestedKeyValue'](_0xe532fd[_0x285f2f(0x21e)](_0x18ccc5,_0x3f32dc),[_0xe532fd['gbIsO']]),_0x958738={};if(_0x5cb58a){const _0x6f9442=_0x2c70ed['findIndex'](_0x1dcb94=>_0x1dcb94===_0x285f2f(0x277)||_0x1dcb94==='-c'||_0x1dcb94[_0x285f2f(0x280)]('--config='));_0x2c70ed[_0x285f2f(0x29a)](_0x6f9442,_0x2c70ed[_0x6f9442]['startsWith'](_0xe532fd[_0x285f2f(0x21d)])?0x1:0x2);}const _0xe460f6={};return _0xe460f6[_0x285f2f(0x298)]=_0x450852,_0xe460f6[_0x285f2f(0x247)]=_0x958738,_0xe460f6;},handleO11yRerun=_0x3445fb=>{const _0x495e08=a40_0x4e3469,_0x315a67={};_0x315a67[_0x495e08(0x245)]=_0x495e08(0x1f3);const _0x55cde7=_0x315a67,_0x1dd1a9=helper[_0x495e08(0x24f)](process[_0x495e08(0x257)][_0x495e08(0x210)]);if(_0x1dd1a9){const _0xd6a39b=process[_0x495e08(0x257)][_0x495e08(0x261)],_0x5a95cb=[];if(helper[_0x495e08(0x1f6)](_0xd6a39b)&&!helper[_0x495e08(0x270)](_0xd6a39b)){_0xd6a39b[_0x495e08(0x26c)](',')[_0x495e08(0x1f4)](_0x37fa6b=>{const _0x14b9b6=_0x495e08;_0x5a95cb[_0x14b9b6(0x265)]('('+_0x37fa6b[_0x14b9b6(0x221)]()+')');});const _0x2f2ba9='^'+_0x5a95cb[_0x495e08(0x29b)]('|')+'$';_0x3445fb['push'](_0x55cde7[_0x495e08(0x245)],_0x2f2ba9);}}},spawnOriginalProcess=_0x404948=>{const _0xc6334=a40_0x4e3469,_0x3664fd={'nzCrb':function(_0x1c22e0,_0x4d7231,_0x125572,_0x4c85d4){return _0x1c22e0(_0x4d7231,_0x125572,_0x4c85d4);},'fIgRw':_0xc6334(0x1f2),'gjNIA':_0xc6334(0x222),'NBYlj':function(_0x41d779,_0x3e91f1){return _0x41d779===_0x3e91f1;},'qWqsF':'win32','jHwAe':_0xc6334(0x275)};_0x3664fd[_0xc6334(0x23a)](spawn,_0x3664fd['fIgRw'],[_0x3664fd['gjNIA'],..._0x404948[_0xc6334(0x21c)](0x1)],{'shell':_0x3664fd[_0xc6334(0x27a)](process[_0xc6334(0x1ff)],_0x3664fd[_0xc6334(0x1f9)]),'stdio':_0x3664fd['jHwAe'],'cwd':process[_0xc6334(0x22b)]()});},isTestCommand=(_0x24eac8,_0x11341c)=>{const _0x41b8b9=a40_0x4e3469,_0x1f6d3b={};_0x1f6d3b[_0x41b8b9(0x28a)]=function(_0x46fedf,_0x4c8571){return _0x46fedf>_0x4c8571;},_0x1f6d3b['jbrra']=function(_0x3ee6e6,_0x241a53){return _0x3ee6e6===_0x241a53;},_0x1f6d3b[_0x41b8b9(0x27f)]='test';const _0x44377d=_0x1f6d3b;if(_0x44377d[_0x41b8b9(0x28a)](_0x11341c[_0x41b8b9(0x225)],0x1)&&_0x44377d[_0x41b8b9(0x1f1)](_0x11341c[0x1],_0x44377d[_0x41b8b9(0x27f)]))return!![];return![];};async function run(_0x41f29a,_0x235988,_0xa220e3){const _0x367129=a40_0x4e3469,_0x49ba4b={'VVUbe':function(_0x2e02b4){return _0x2e02b4();},'ISiBu':'.browserstack','Qsufw':function(_0xaa1bff,_0x2e1a19){return _0xaa1bff+_0x2e1a19;},'eAnaB':_0x367129(0x1fb),'tvvZO':function(_0x3dc832,_0x268266){return _0x3dc832(_0x268266);},'dAzVl':_0x367129(0x220),'ofWqq':function(_0x2c8970,_0x1401d8){return _0x2c8970+_0x1401d8;},'VEIgR':_0x367129(0x259),'RJMJx':_0x367129(0x22e),'lrIci':function(_0x14d110,_0x285c9c){return _0x14d110===_0x285c9c;},'rdDez':_0x367129(0x227),'FTmKO':_0x367129(0x1fa),'dqpQc':function(_0x4145c1,_0x46ce8b){return _0x4145c1>=_0x46ce8b;},'hUBev':function(_0x359346,_0x32414d){return _0x359346===_0x32414d;},'MwFdo':_0x367129(0x269),'kWQiF':function(_0x40297f,_0x4a76f4){return _0x40297f!=_0x4a76f4;},'KHiHi':function(_0x4a9f4d,_0x45ae19,_0x15984a){return _0x4a9f4d(_0x45ae19,_0x15984a);},'KRvZs':_0x367129(0x271),'vaUNZ':function(_0x3dbee9,_0x213321){return _0x3dbee9(_0x213321);},'nnGnS':_0x367129(0x23c),'GCDcv':_0x367129(0x20e),'ARWdS':_0x367129(0x297),'tPueX':function(_0x50bfe8,_0x47a204){return _0x50bfe8-_0x47a204;},'GDWtk':_0x367129(0x203),'kbtcs':function(_0x5f17b8,_0x1f2c1e){return _0x5f17b8>_0x1f2c1e;},'vTAKV':function(_0x2fb053,_0x4af086){return _0x2fb053+_0x4af086;},'knKkU':function(_0x17608c,_0xf778ff,_0x1ea536,_0x2ebf1e){return _0x17608c(_0xf778ff,_0x1ea536,_0x2ebf1e);},'pAFRK':_0x367129(0x1f2),'FFMEq':_0x367129(0x222),'HKtqd':_0x367129(0x289),'SfWND':_0x367129(0x277),'ycyiO':function(_0x28ca90,_0x5cb0af){return _0x28ca90===_0x5cb0af;},'oGIaB':_0x367129(0x24b),'jBKaR':'inherit','SkkxN':_0x367129(0x278),'SIsIP':_0x367129(0x207),'axYlg':function(_0x51fb0c,_0x41b33c,_0x1a82a4){return _0x51fb0c(_0x41b33c,_0x1a82a4);}};try{const _0x158b18=path['join'](helper[_0x367129(0x26a)](),_0x49ba4b[_0x367129(0x22d)],_0x49ba4b['dAzVl']);fs[_0x367129(0x214)](_0x158b18)&&fs['unlinkSync'](_0x158b18);}catch(_0x385579){logger['debug'](_0x49ba4b['Qsufw'](_0x49ba4b[_0x367129(0x242)],_0x385579));}if(!_0x49ba4b[_0x367129(0x256)](isTestCommand,_0x41f29a,_0x235988)){_0x49ba4b[_0x367129(0x268)](spawnOriginalProcess,_0x235988);return;}await PerformanceTester[_0x367129(0x240)](PerformanceEvents[_0x367129(0x1fc)],async()=>{const _0x28ad51=_0x367129,_0x25d63e={'hjZQA':function(_0x3bf92a,_0x488595){return _0x49ba4b['tvvZO'](_0x3bf92a,_0x488595);},'xuYrX':_0x49ba4b[_0x28ad51(0x22d)],'LgXIK':_0x49ba4b[_0x28ad51(0x27d)],'qmQeE':function(_0x325879,_0x41c2d4){return _0x49ba4b['ofWqq'](_0x325879,_0x41c2d4);},'WiQuQ':_0x49ba4b['VEIgR']};if(!_0xa220e3[_0x28ad51(0x247)]){logger[_0x28ad51(0x237)](_0x49ba4b[_0x28ad51(0x286)]);return;}await _0xa220e3['initialize'](_0x41f29a),CLIUtils[_0x28ad51(0x216)](FRAMEWORKS[_0x28ad51(0x299)],FRAMEWORKS[_0x28ad51(0x299)]),BrowserstackCLI[_0x28ad51(0x287)]()['setBrowserstackConfig'](_0xa220e3[_0x28ad51(0x247)],_0xa220e3[_0x28ad51(0x28f)]),await BrowserstackCLI[_0x28ad51(0x287)]()[_0x28ad51(0x25c)]();const _0x352c11=BrowserstackCLI[_0x28ad51(0x287)]()[_0x28ad51(0x20b)]();!helper[_0x28ad51(0x28e)](_0x352c11[_0x28ad51(0x285)])&&(process[_0x28ad51(0x257)][_0x28ad51(0x229)]=!![]);_0x49ba4b[_0x28ad51(0x243)](_0x352c11[_0x28ad51(0x285)],![])&&(process[_0x28ad51(0x257)][_0x28ad51(0x229)]=_0x49ba4b[_0x28ad51(0x204)],_0x235988=_0x235988[_0x28ad51(0x292)](_0x59cf17=>_0x59cf17!=='--disable-browserstack-automation'));const _0x575698=_0x235988[_0x28ad51(0x28d)](_0x49ba4b[_0x28ad51(0x251)]);(_0x49ba4b['dqpQc'](_0x575698,0x0)||_0x49ba4b[_0x28ad51(0x20d)](_0x352c11['testObservability'],![]))&&(process[_0x28ad51(0x257)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x49ba4b[_0x28ad51(0x204)],_0x235988=_0x235988[_0x28ad51(0x292)](_0x467724=>_0x467724!==_0x28ad51(0x1fa)));!helper[_0x28ad51(0x270)](_0xa220e3['cliConfig'])&&_0xa220e3[_0x28ad51(0x28f)][_0x28ad51(0x238)](_0x49ba4b[_0x28ad51(0x258)])&&(process[_0x28ad51(0x257)][_0x28ad51(0x229)]=_0xa220e3['cliConfig'][_0x28ad51(0x246)](_0x49ba4b[_0x28ad51(0x258)])||!![]);_0x49ba4b[_0x28ad51(0x232)](_0xa220e3[_0x28ad51(0x247)][_0x28ad51(0x212)],null)&&!helper['isTrue'](process[_0x28ad51(0x257)][_0x28ad51(0x244)])&&(process[_0x28ad51(0x257)][_0x28ad51(0x244)]=process[_0x28ad51(0x257)][_0x28ad51(0x244)]||_0xa220e3[_0x28ad51(0x247)][_0x28ad51(0x212)]);const _0x4f0452=!helper[_0x28ad51(0x28e)](process[_0x28ad51(0x257)]['BROWSERSTACK_TEST_OBSERVABILITY']);_0xa220e3['config'][_0x28ad51(0x262)]&&(process[_0x28ad51(0x257)][_0x28ad51(0x283)]=JSON['stringify'](_0xa220e3['config']['accessibilityOptions']));let _0x174c5d=![];_0xa220e3[_0x28ad51(0x247)][_0x28ad51(0x27b)]&&(_0x174c5d=!![],process['env'][_0x28ad51(0x25f)]=_0xa220e3['config'][_0x28ad51(0x27b)]);const _0x240507=_0x235988['concat'](),_0x3bb19a=await _0x49ba4b[_0x28ad51(0x264)](getUserPlaywrightConfig,_0x41f29a,_0x235988);if(helper[_0x28ad51(0x270)](_0x3bb19a)){_0x49ba4b[_0x28ad51(0x268)](spawnOriginalProcess,_0x240507);return;}const _0xcd7ca6=_0x3bb19a['path']?path[_0x28ad51(0x28b)](_0x3bb19a[_0x28ad51(0x298)]):process[_0x28ad51(0x22b)]();process['env'][_0x28ad51(0x1f8)]=_0xcd7ca6,await PerformanceTester[_0x28ad51(0x240)](PerformanceEvents[_0x28ad51(0x239)],async()=>{const _0x591a17=_0x28ad51;!BrowserstackCLI[_0x591a17(0x287)]()['isRunning']()&&await TestHubHandler['launchBuild'](FRAMEWORKS['PLAYWRIGHT'],_0xa220e3),_0x4f0452&&_0x25d63e[_0x591a17(0x224)](handleO11yRerun,_0x235988);})();if(!BrowserstackCLI[_0x28ad51(0x287)]()[_0x28ad51(0x250)]()){let _0x2051f8=_0x49ba4b[_0x28ad51(0x243)](process[_0x28ad51(0x257)][_0x28ad51(0x25f)],_0x49ba4b[_0x28ad51(0x213)]);_0x2051f8=_0x2051f8||_0x49ba4b['tvvZO'](checkAccessibilityPlatformConfig,_0xa220e3['config']),process[_0x28ad51(0x257)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x2051f8,_0x2051f8&&_0x49ba4b[_0x28ad51(0x21b)](setAccessibilityCapabilities,_0xa220e3[_0x28ad51(0x247)]);}const _0x26f0f4=path['join'](_0x3bb19a[_0x28ad51(0x298)]?path[_0x28ad51(0x28b)](_0x3bb19a[_0x28ad51(0x298)]):process[_0x28ad51(0x22b)](),_0x49ba4b[_0x28ad51(0x206)]);fs[_0x28ad51(0x241)](_0x26f0f4,helper['serializeToYamlString'](_0xa220e3[_0x28ad51(0x247)])),process[_0x28ad51(0x257)][_0x28ad51(0x1fd)]=_0x26f0f4,helper['clearTempPWConfig']();let _0x270669='';_0x49ba4b[_0x28ad51(0x243)](helper['getPackageType'](),constants[_0x28ad51(0x248)][_0x28ad51(0x202)])?_0x270669=_0x49ba4b[_0x28ad51(0x26d)]:_0x270669=_0x49ba4b[_0x28ad51(0x235)];let _0x49ca71='';if(helper[_0x28ad51(0x276)](_0x3bb19a[_0x28ad51(0x298)])){_0x49ca71=_0x28ad51(0x201);const _0x59dcc2=_0x270669[_0x28ad51(0x26c)]('.');_0x59dcc2[_0x49ba4b[_0x28ad51(0x296)](_0x59dcc2[_0x28ad51(0x225)],0x1)]='ts',_0x270669=_0x59dcc2['join']('.'),logger['debug'](_0x49ba4b[_0x28ad51(0x230)](_0x49ba4b[_0x28ad51(0x25d)],_0x270669));}else _0x49ca71='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x193d8c=path[_0x28ad51(0x29b)](_0x3bb19a[_0x28ad51(0x298)]?path[_0x28ad51(0x28b)](_0x3bb19a[_0x28ad51(0x298)]):process['cwd'](),_0x270669);let _0x5c6983=_0x3bb19a[_0x28ad51(0x298)]?_0x3bb19a[_0x28ad51(0x298)]:'';_0x5c6983=_0x49ba4b['kbtcs'](_0x5c6983[_0x28ad51(0x225)],0x0)?path[_0x28ad51(0x22c)](_0x5c6983):'',process[_0x28ad51(0x257)][_0x28ad51(0x218)]=_0x5c6983;const _0x4be001=helper[_0x28ad51(0x255)](_0xa220e3[_0x28ad51(0x247)]);_0x4be001&&(_0x49ca71=_0x49ba4b['vTAKV']('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x4be001+_0x28ad51(0x29c),_0x49ca71));helper['filterBrowserstackArgs']({},_0x235988),fs[_0x28ad51(0x241)](_0x193d8c,_0x49ca71),PerformanceTester[_0x28ad51(0x252)](PerformanceEvents[_0x28ad51(0x20f)]);const _0x136cfe=_0x49ba4b[_0x28ad51(0x205)](spawn,_0x49ba4b[_0x28ad51(0x24c)],[_0x49ba4b[_0x28ad51(0x27c)],_0x49ba4b[_0x28ad51(0x23f)],_0x49ba4b[_0x28ad51(0x288)],_0x193d8c,..._0x235988[_0x28ad51(0x21c)](0x2)],{'shell':_0x49ba4b[_0x28ad51(0x21f)](process[_0x28ad51(0x1ff)],_0x49ba4b[_0x28ad51(0x21a)]),'stdio':_0x49ba4b['jBKaR'],'cwd':process[_0x28ad51(0x22b)](),'env':Object['assign']({},process[_0x28ad51(0x257)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x28ad51(0x208)](_0x41f29a),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xa220e3['config'][_0x28ad51(0x27e)][_0x28ad51(0x23d)],'BROWSERSTACK_SKIP_SESSION_NAME':_0xa220e3['config'][_0x28ad51(0x27e)][_0x28ad51(0x234)],'BROWSERSTACK_LOG_LEVEL':_0xa220e3[_0x28ad51(0x247)]['logLevel']})}),_0x3aa836=()=>{const _0xc9b639=_0x28ad51;try{const _0x39c346=path[_0xc9b639(0x29b)](helper[_0xc9b639(0x26a)](),_0x25d63e[_0xc9b639(0x209)],_0x25d63e[_0xc9b639(0x233)]);if(fs[_0xc9b639(0x214)](_0x39c346)){let _0x55d88e=fs[_0xc9b639(0x293)](_0x39c346);_0x55d88e=JSON[_0xc9b639(0x231)](_0x55d88e),_0xa220e3[_0xc9b639(0x1f0)]=_0x55d88e,fs[_0xc9b639(0x28c)](_0x39c346);}}catch(_0x12274c){logger[_0xc9b639(0x26e)](_0x25d63e[_0xc9b639(0x249)](_0x25d63e[_0xc9b639(0x263)],_0x12274c));}};_0x136cfe['on'](_0x49ba4b['SkkxN'],async _0x2fd896=>{const _0x5041dc=_0x28ad51;try{PerformanceTester[_0x5041dc(0x215)](PerformanceEvents[_0x5041dc(0x291)]),_0x49ba4b[_0x5041dc(0x29d)](_0x3aa836),await TestHubHandler[_0x5041dc(0x267)](),await BrowserstackCLI[_0x5041dc(0x287)]()[_0x5041dc(0x267)](),TestDetails['shutdown'](),_0x49ba4b[_0x5041dc(0x29d)](printBuildLink),await utilities['finalExecution'](_0xa220e3),process[_0x5041dc(0x22a)]=_0x2fd896,logger[_0x5041dc(0x26e)](_0x5041dc(0x295)+_0x2fd896),logger[_0x5041dc(0x272)](_0x5041dc(0x219)+_0x193d8c),fs['unlinkSync'](_0x193d8c);fs[_0x5041dc(0x214)](_0x26f0f4)&&(logger[_0x5041dc(0x26e)](_0x5041dc(0x219)+_0x26f0f4),fs[_0x5041dc(0x28c)](_0x26f0f4));const _0x5b10ea=fs[_0x5041dc(0x24e)](path[_0x5041dc(0x29b)](helper[_0x5041dc(0x26a)](),_0x49ba4b['ISiBu']))[_0x5041dc(0x292)](_0x41f45c=>_0x41f45c[_0x5041dc(0x280)]('trace_'));_0x5b10ea[_0x5041dc(0x228)](_0x121b1c=>{const _0x2e45d8=_0x5041dc;fs[_0x2e45d8(0x28c)](path[_0x2e45d8(0x29b)](helper[_0x2e45d8(0x26a)](),_0x25d63e['xuYrX'],_0x121b1c));});}catch(_0x3087ae){logger[_0x5041dc(0x26e)](_0x49ba4b[_0x5041dc(0x230)](_0x49ba4b[_0x5041dc(0x1f7)],_0x3087ae));}});})();}module['exports']=run;function a40_0x398e(){const _0xfb27fa=['xuYrX','requirePWModule','getConfig','860571Ivxhsz','hUBev','playwright-browserstack-sdk.config.cjs','SDK_SETUP','BROWSERSTACK_RERUN','../../helpers/performance/constants','testObservability','KRvZs','existsSync','start','setFrameworkDetail','../../helpers/test-observability/constants','USER_CONFIG_DETAILS_PATH','Deleting\x20','oGIaB','vaUNZ','slice','mhCUp','YJLFJ','ycyiO','pw_result.json','trim','playwright','--config=','hjZQA','length','resolvedConfigFile','false','forEach','BROWSERSTACK_AUTOMATION','exitCode','cwd','resolve','ISiBu','BrowserStack\x20config\x20file\x20not\x20found.','145908kLPnbw','Qsufw','parse','kWQiF','LgXIK','skipSessionName','ARWdS','../../helpers/performance/performance-tester','error','has','SDK_POST_INITIALIZE','nzCrb','../../helpers/helper','browserstackSetupConfig.json','skipSessionStatus','1144yWExIk','HKtqd','measureWrapper','writeFileSync','SIsIP','lrIci','BROWSERSTACK_TEST_OBSERVABILITY','jqwtK','get','config','PACKAGE_TYPE','qmQeE','kDdzg','win32','pAFRK','11fLnpGH','readdirSync','isTrue','isRunning','FTmKO','end','child_process','10250WDqXca','getProxyUrl','axYlg','env','MwFdo','Error\x20in\x20getting\x20funnel\x20data\x20results','5yJXIpK','1233956PCCZrv','bootstrap','GDWtk','./accessibility-helper','BROWSERSTACK_TEST_ACCESSIBILITY_YML','11494eduyPT','BROWSERSTACK_RERUN_TESTS','accessibilityOptions','WiQuQ','KHiHi','push','./reporter/pwUtils','stop','tvvZO','automation','homedir','424212ahtjDq','split','GCDcv','debug','apply','isUndefined','true','info','EVENTS','util','inherit','isTypescriptProject','--config','close','../../helpers/test-observability/utils','NBYlj','accessibility','FFMEq','dAzVl','testContextOptions','VxedM','startsWith','../v2/TestInfo','./reporter/test-details','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','7355710XXQIsy','browserstackAutomation','RJMJx','getInstance','SfWND','test','kZcqt','dirname','unlinkSync','indexOf','isFalse','cliConfig','53QSBwMu','SDK_CLEANUP','filter','readFileSync','../../helpers/BrowserStackSetup','Playwright\x20process\x20exited\x20with\x20code\x20','tPueX','playwright-browserstack-sdk.config.js','path','PLAYWRIGHT','splice','join','\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();','VVUbe','errorMessage','jbrra','npx','--grep','map','../../helpers/utilities','validateRerunTestList','eAnaB','BROWSERSTACK_PW_CONFIG_DIR','qWqsF','--disable-test-observability','Error\x20in\x20closing\x20playwright','SDK_PRE_INITIALIZE','BROWSERSTACK_SETUP_CONFIG_PATH','../../helpers/logger','platform','../v2/browserstackCLI','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','MODULE','Updated\x20config\x20file\x20name\x20to\x20-\x20','rdDez','knKkU','nnGnS','Error\x20in\x20deleting\x20playwright\x20results','getConfigPath'];a40_0x398e=function(){return _0xfb27fa;};return a40_0x398e();}
|
|
2
|
+
'use strict';const a40_0x9abcf4=a40_0x3856;(function(_0x19d62e,_0xfd4005){const _0xa1f69f=a40_0x3856,_0x919dff=_0x19d62e();while(!![]){try{const _0x8c8be8=-parseInt(_0xa1f69f(0x204))/0x1*(-parseInt(_0xa1f69f(0x1ce))/0x2)+parseInt(_0xa1f69f(0x191))/0x3*(parseInt(_0xa1f69f(0x1f6))/0x4)+-parseInt(_0xa1f69f(0x1d6))/0x5+parseInt(_0xa1f69f(0x1ee))/0x6*(parseInt(_0xa1f69f(0x1f5))/0x7)+-parseInt(_0xa1f69f(0x192))/0x8*(-parseInt(_0xa1f69f(0x1be))/0x9)+-parseInt(_0xa1f69f(0x183))/0xa*(parseInt(_0xa1f69f(0x1b1))/0xb)+parseInt(_0xa1f69f(0x172))/0xc;if(_0x8c8be8===_0xfd4005)break;else _0x919dff['push'](_0x919dff['shift']());}catch(_0x30234b){_0x919dff['push'](_0x919dff['shift']());}}}(a40_0x1a48,0xe6365));const fs=require('fs'),path=require(a40_0x9abcf4(0x1ea)),{spawn}=require(a40_0x9abcf4(0x1bf)),{format}=require(a40_0x9abcf4(0x1ec)),logger=require(a40_0x9abcf4(0x1f8))[a40_0x9abcf4(0x196)],{default:BrowserStackSetup}=require(a40_0x9abcf4(0x1bc)),helper=require('../../helpers/helper'),utilities=require(a40_0x9abcf4(0x174)),constants=require(a40_0x9abcf4(0x1b6)),{FRAMEWORKS}=require(a40_0x9abcf4(0x1e0)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a40_0x9abcf4(0x173)),{setAccessibilityCapabilities}=require(a40_0x9abcf4(0x178)),{printBuildLink}=require(a40_0x9abcf4(0x203)),TestDetails=require(a40_0x9abcf4(0x162)),TestHubHandler=require(a40_0x9abcf4(0x161)),PerformanceTester=require(a40_0x9abcf4(0x18a)),BrowserstackCLI=require(a40_0x9abcf4(0x1ac)),PerformanceEvents=require(a40_0x9abcf4(0x1e9))[a40_0x9abcf4(0x159)],CLIUtils=require(a40_0x9abcf4(0x1c7)),TestInfo=require(a40_0x9abcf4(0x1fa)),getUserPlaywrightConfig=async(_0x270888,_0x50b669)=>{const _0x3ce68d=a40_0x9abcf4,_0x40d9be={'cmwIU':function(_0x11331a){return _0x11331a();},'fEZiS':function(_0x21c6ee,_0x4722d4){return _0x21c6ee(_0x4722d4);},'byacj':function(_0x4ea7c6,_0x140dc9){return _0x4ea7c6(_0x140dc9);},'BlzUu':_0x3ce68d(0x166),'ARJtC':_0x3ce68d(0x1e4)},_0x1d0b68=!helper[_0x3ce68d(0x1ba)](_0x270888['config']),_0x1e802e=_0x1d0b68?path[_0x3ce68d(0x164)](process['cwd'](),_0x270888['config']):process[_0x3ce68d(0x1d5)](),{resolveConfigFile:_0x4dfda4,resolveConfigLocation:_0x56084f}=helper[_0x3ce68d(0x156)][_0x3ce68d(0x18e)](null,_0x40d9be[_0x3ce68d(0x1d0)](getConfigLoaderPath)),_0x33d886=_0x4dfda4?_0x40d9be['fEZiS'](_0x4dfda4,_0x1e802e):helper[_0x3ce68d(0x201)](_0x40d9be[_0x3ce68d(0x18f)](_0x56084f,_0x1e802e),[_0x40d9be[_0x3ce68d(0x1a6)]]),_0x561aef={};if(_0x1d0b68){const _0x5eae29=_0x50b669['findIndex'](_0x2463be=>_0x2463be===_0x3ce68d(0x1de)||_0x2463be==='-c'||_0x2463be['startsWith'](_0x3ce68d(0x1e4)));_0x50b669['splice'](_0x5eae29,_0x50b669[_0x5eae29][_0x3ce68d(0x200)](_0x40d9be[_0x3ce68d(0x1cc)])?0x1:0x2);}const _0x3553c4={};return _0x3553c4['path']=_0x33d886,_0x3553c4['config']=_0x561aef,_0x3553c4;},handleO11yRerun=_0x1fab91=>{const _0x21f078=a40_0x9abcf4,_0x1a556a={};_0x1a556a[_0x21f078(0x1aa)]=_0x21f078(0x15d);const _0x1e9812=_0x1a556a,_0xfaa899=helper['isTrue'](process[_0x21f078(0x186)][_0x21f078(0x16f)]);if(_0xfaa899){const _0x2512ab=process[_0x21f078(0x186)]['BROWSERSTACK_RERUN_TESTS'],_0x3e9a4e=[];if(helper[_0x21f078(0x1d3)](_0x2512ab)&&!helper[_0x21f078(0x1ba)](_0x2512ab)){_0x2512ab[_0x21f078(0x175)](',')[_0x21f078(0x1f7)](_0x1118cb=>{const _0x1911a0=_0x21f078;_0x3e9a4e[_0x1911a0(0x1a0)]('('+_0x1118cb[_0x1911a0(0x1e6)]()+')');});const _0x5a08c3='^'+_0x3e9a4e[_0x21f078(0x193)]('|')+'$';_0x1fab91[_0x21f078(0x1a0)](_0x1e9812[_0x21f078(0x1aa)],_0x5a08c3);}}},spawnOriginalProcess=_0x180bd0=>{const _0x37bd73=a40_0x9abcf4,_0x2522a5={'gDoEC':function(_0x2ecc0e,_0x3d46ee,_0x56b657,_0x4f4476){return _0x2ecc0e(_0x3d46ee,_0x56b657,_0x4f4476);},'HkmWv':'npx','GPyzm':_0x37bd73(0x1d7),'ETnaN':function(_0x57ae99,_0x3fe362){return _0x57ae99===_0x3fe362;},'Ockwj':'win32','ssENc':_0x37bd73(0x1c0)};_0x2522a5['gDoEC'](spawn,_0x2522a5[_0x37bd73(0x1a7)],[_0x2522a5[_0x37bd73(0x15f)],..._0x180bd0[_0x37bd73(0x1a5)](0x1)],{'shell':_0x2522a5[_0x37bd73(0x18c)](process[_0x37bd73(0x1d4)],_0x2522a5['Ockwj']),'stdio':_0x2522a5[_0x37bd73(0x176)],'cwd':process[_0x37bd73(0x1d5)]()});},isTestCommand=(_0x23a7dc,_0x112e8f)=>{const _0x463ee5=a40_0x9abcf4,_0x598fc8={};_0x598fc8[_0x463ee5(0x1b5)]=function(_0x2df1ed,_0x4d5273){return _0x2df1ed>_0x4d5273;},_0x598fc8[_0x463ee5(0x202)]=function(_0xa97c12,_0x26951c){return _0xa97c12===_0x26951c;},_0x598fc8[_0x463ee5(0x1b4)]=_0x463ee5(0x171);const _0x281cb6=_0x598fc8;if(_0x281cb6[_0x463ee5(0x1b5)](_0x112e8f[_0x463ee5(0x1c5)],0x1)&&_0x281cb6['GBPrg'](_0x112e8f[0x1],_0x281cb6[_0x463ee5(0x1b4)]))return!![];return![];};function a40_0x1a48(){const _0x1cfd1d=['wYipJ','env','fiQvR','ISqsV','accessibilityOptions','../../helpers/performance/performance-tester','mxPlg','ETnaN','logLevel','apply','byacj','skipSessionName','5575938nTlcVd','297464xAbbOP','join','Playwright\x20process\x20exited\x20with\x20code\x20','msmSQ','winstonLogger','npx','MPZxG','fuSPU','CQlNF','finalExecution','ozypQ','liAFJ','yTssY','BROWSERSTACK_PW_CONFIG_DIR','push','browserstackSetupConfig.json','getConfigPath','tXUNE','SQoOD','slice','BlzUu','HkmWv','automation','skipSessionStatus','Iycsg','PACKAGE_TYPE','../v2/browserstackCLI','shutdown','XWLiY','playwright-browserstack-sdk.config.cjs','dirname','1861893dalWlW','enwOT','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','neYte','AMRDz','../utils/constants','filter','isRunning','assign','isUndefined','DzGLo','../../helpers/BrowserStackSetup','egtrM','90jolRUk','child_process','inherit','stop','end','exitCode','getProxyUrl','length','kPJrc','../v2/cliUtils','debug','unlinkSync','browserstackAutomation','trace_','ARJtC','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','5794OTWgjm','homedir','cmwIU','forEach','getPackageType','validateRerunTestList','platform','cwd','8995675MDrwsm','playwright','cliConfig','FuDJX','sgwCR','ddMnR','HNWkn','Oxhtk','--config','readdirSync','../../helpers/test-observability/constants','UWIqI','playwright-browserstack-sdk.config.js','nRMRa','--config=','start','trim','exports','isTypescriptProject','../../helpers/performance/constants','path','CxJor','util','close','18DtuXAP','config','--disable-browserstack-automation','XHIjk','testObservability','BROWSERSTACK_AUTOMATION','win32','444472xByMWq','4BTbfdx','map','../../helpers/logger','info','../v2/TestInfo','has','isFalse','BROWSERSTACK_TEST_OBSERVABILITY','leFGO','VJLSA','startsWith','nestedKeyValue','GBPrg','../../helpers/test-observability/utils','167XMliZh','BROWSERSTACK_TEST_ACCESSIBILITY_YML','lGPkU','concat','requirePWModule','existsSync','CkMYX','EVENTS','accessibility','--disable-test-observability','LXbJV','--grep','FCwaR','GPyzm','xFWBk','../../helpers/testhub/testhubHandler','./reporter/test-details','clearTempPWConfig','resolve','setBrowserstackConfig','resolvedConfigFile','readFileSync','errorMessage','MODULE','bootstrap','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','\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();','measureWrapper','JNjRQ','BROWSERSTACK_RERUN','BrowserStack\x20config\x20file\x20not\x20found.','test','16328256KmiGAw','../../helpers/accessibility-automation/helper','../../helpers/utilities','split','ssENc','stringify','./accessibility-helper','getInstance','PLAYWRIGHT','WIqXx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','nbBYB','IIcuF','writeFileSync','Error\x20in\x20closing\x20playwright','error','SDK_SETUP','90exMEvB','filterBrowserstackArgs'];a40_0x1a48=function(){return _0x1cfd1d;};return a40_0x1a48();}function a40_0x3856(_0x4516b0,_0xdec825){const _0x1a4828=a40_0x1a48();return a40_0x3856=function(_0x385618,_0x2d1305){_0x385618=_0x385618-0x153;let _0xe26264=_0x1a4828[_0x385618];return _0xe26264;},a40_0x3856(_0x4516b0,_0xdec825);}async function run(_0x4034c3,_0x1b823b,_0x240445){const _0x1ac4ef=a40_0x9abcf4,_0x582dd4={'tXUNE':function(_0x294b5d,_0xa1cf1){return _0x294b5d(_0xa1cf1);},'nbBYB':'.browserstack','enwOT':function(_0x1c5961){return _0x1c5961();},'lGPkU':function(_0x4bf6a3){return _0x4bf6a3();},'SQoOD':function(_0x4a6c16,_0x50ee7b){return _0x4a6c16+_0x50ee7b;},'XHIjk':_0x1ac4ef(0x180),'yTssY':'pw_result.json','bLlXf':'Error\x20in\x20getting\x20funnel\x20data\x20results','fuSPU':_0x1ac4ef(0x170),'wYipJ':function(_0x1cabfd,_0x529edc){return _0x1cabfd===_0x529edc;},'nRMRa':'false','DzGLo':_0x1ac4ef(0x15b),'XWLiY':function(_0x40b800,_0x5482f5){return _0x40b800>=_0x5482f5;},'kPJrc':function(_0x4e7ffc,_0x10a7df){return _0x4e7ffc===_0x10a7df;},'FuDJX':_0x1ac4ef(0x1a8),'CQlNF':function(_0x5bbbe9,_0x39f3eb){return _0x5bbbe9!=_0x39f3eb;},'ISqsV':function(_0x13be99,_0x48caaf,_0x1b6e64){return _0x13be99(_0x48caaf,_0x1b6e64);},'LXbJV':function(_0x1f0e36,_0x585423){return _0x1f0e36(_0x585423);},'FCwaR':function(_0x4bb6b8,_0x184e45){return _0x4bb6b8===_0x184e45;},'MPZxG':'true','ddMnR':_0x1ac4ef(0x1a1),'CxJor':_0x1ac4ef(0x1af),'egtrM':_0x1ac4ef(0x1e2),'UWIqI':function(_0x28e8cf,_0x16f50c){return _0x28e8cf-_0x16f50c;},'CkMYX':'Updated\x20config\x20file\x20name\x20to\x20-\x20','xFWBk':function(_0x451b2a,_0x732b08){return _0x451b2a>_0x732b08;},'Oxhtk':function(_0x605f91,_0x22c852){return _0x605f91+_0x22c852;},'msmSQ':function(_0x3b7da0,_0x17cb60,_0x55e423,_0x5793a3){return _0x3b7da0(_0x17cb60,_0x55e423,_0x5793a3);},'APTRq':_0x1ac4ef(0x197),'VJLSA':'playwright','sgwCR':'test','HNWkn':_0x1ac4ef(0x1de),'jDCdL':_0x1ac4ef(0x1f4),'FGjWQ':_0x1ac4ef(0x1c0),'liAFJ':_0x1ac4ef(0x1ed),'mxPlg':'Error\x20in\x20deleting\x20playwright\x20results','fiQvR':function(_0x112218,_0x542122,_0x3a7a06){return _0x112218(_0x542122,_0x3a7a06);},'leFGO':function(_0xfe2796,_0xa3ec24){return _0xfe2796(_0xa3ec24);}};try{const _0x2dfcad=path[_0x1ac4ef(0x193)](helper[_0x1ac4ef(0x1cf)](),_0x582dd4['nbBYB'],_0x582dd4[_0x1ac4ef(0x19e)]);fs[_0x1ac4ef(0x157)](_0x2dfcad)&&fs['unlinkSync'](_0x2dfcad);}catch(_0x1edd03){logger[_0x1ac4ef(0x1c8)](_0x582dd4[_0x1ac4ef(0x1dd)](_0x582dd4[_0x1ac4ef(0x18b)],_0x1edd03));}if(!_0x582dd4[_0x1ac4ef(0x187)](isTestCommand,_0x4034c3,_0x1b823b)){_0x582dd4[_0x1ac4ef(0x1fe)](spawnOriginalProcess,_0x1b823b);return;}await PerformanceTester[_0x1ac4ef(0x16d)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x3d918a=_0x1ac4ef,_0x228134={'WIqXx':_0x582dd4[_0x3d918a(0x17d)],'IIcuF':_0x582dd4[_0x3d918a(0x19e)],'ozypQ':function(_0x3771a3,_0x5e507b){const _0x55806b=_0x3d918a;return _0x582dd4[_0x55806b(0x1a4)](_0x3771a3,_0x5e507b);},'cgYac':_0x582dd4['bLlXf']};if(!_0x240445['config']){logger[_0x3d918a(0x181)](_0x582dd4[_0x3d918a(0x199)]);return;}await _0x240445['initialize'](_0x4034c3),CLIUtils['setFrameworkDetail'](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x3d918a(0x17a)]),BrowserstackCLI[_0x3d918a(0x179)]()[_0x3d918a(0x165)](_0x240445['config'],_0x240445[_0x3d918a(0x1d8)]),await BrowserstackCLI[_0x3d918a(0x179)]()[_0x3d918a(0x16a)]();const _0x2d8e3b=BrowserstackCLI[_0x3d918a(0x179)]()['getConfig']();!helper[_0x3d918a(0x1fc)](_0x2d8e3b[_0x3d918a(0x1ca)])&&(process[_0x3d918a(0x186)]['BROWSERSTACK_AUTOMATION']=!![]);_0x582dd4[_0x3d918a(0x185)](_0x2d8e3b['browserstackAutomation'],![])&&(process[_0x3d918a(0x186)][_0x3d918a(0x1f3)]=_0x582dd4[_0x3d918a(0x1e3)],_0x1b823b=_0x1b823b[_0x3d918a(0x1b7)](_0x1f7709=>_0x1f7709!==_0x3d918a(0x1f0)));const _0x1d7232=_0x1b823b['indexOf'](_0x582dd4[_0x3d918a(0x1bb)]);(_0x582dd4[_0x3d918a(0x1ae)](_0x1d7232,0x0)||_0x582dd4[_0x3d918a(0x1c6)](_0x2d8e3b[_0x3d918a(0x1f2)],![]))&&(process[_0x3d918a(0x186)][_0x3d918a(0x1fd)]=_0x582dd4['nRMRa'],_0x1b823b=_0x1b823b['filter'](_0x328677=>_0x328677!==_0x3d918a(0x15b)));!helper[_0x3d918a(0x1ba)](_0x240445[_0x3d918a(0x1d8)])&&_0x240445[_0x3d918a(0x1d8)][_0x3d918a(0x1fb)](_0x582dd4[_0x3d918a(0x1d9)])&&(process[_0x3d918a(0x186)][_0x3d918a(0x1f3)]=_0x240445[_0x3d918a(0x1d8)]['get'](_0x582dd4[_0x3d918a(0x1d9)])||!![]);_0x582dd4[_0x3d918a(0x19a)](_0x240445[_0x3d918a(0x1ef)]['testObservability'],null)&&!helper['isTrue'](process[_0x3d918a(0x186)][_0x3d918a(0x1fd)])&&(process['env'][_0x3d918a(0x1fd)]=process['env'][_0x3d918a(0x1fd)]||_0x240445[_0x3d918a(0x1ef)][_0x3d918a(0x1f2)]);const _0x139527=!helper[_0x3d918a(0x1fc)](process['env'][_0x3d918a(0x1fd)]);_0x240445['config'][_0x3d918a(0x189)]&&(process[_0x3d918a(0x186)][_0x3d918a(0x17c)]=JSON[_0x3d918a(0x177)](_0x240445[_0x3d918a(0x1ef)][_0x3d918a(0x189)]));let _0x26480a=![];_0x240445[_0x3d918a(0x1ef)][_0x3d918a(0x15a)]&&(_0x26480a=!![],process[_0x3d918a(0x186)][_0x3d918a(0x153)]=_0x240445[_0x3d918a(0x1ef)][_0x3d918a(0x15a)]);const _0x52571c=_0x1b823b[_0x3d918a(0x155)](),_0x2b6773=await _0x582dd4[_0x3d918a(0x188)](getUserPlaywrightConfig,_0x4034c3,_0x1b823b);if(helper[_0x3d918a(0x1ba)](_0x2b6773)){_0x582dd4[_0x3d918a(0x15c)](spawnOriginalProcess,_0x52571c);return;}const _0x464049=_0x2b6773['path']?path[_0x3d918a(0x1b0)](_0x2b6773[_0x3d918a(0x1ea)]):process['cwd']();process[_0x3d918a(0x186)][_0x3d918a(0x19f)]=_0x464049,await PerformanceTester[_0x3d918a(0x16d)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x338768=_0x3d918a;!BrowserstackCLI[_0x338768(0x179)]()[_0x338768(0x1b8)]()&&await TestHubHandler['launchBuild'](FRAMEWORKS[_0x338768(0x17a)],_0x240445),_0x139527&&_0x582dd4['tXUNE'](handleO11yRerun,_0x1b823b);})();if(!BrowserstackCLI[_0x3d918a(0x179)]()['isRunning']()){let _0x386b38=_0x582dd4[_0x3d918a(0x15e)](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x582dd4[_0x3d918a(0x198)]);_0x386b38=_0x386b38||_0x582dd4[_0x3d918a(0x15c)](checkAccessibilityPlatformConfig,_0x240445[_0x3d918a(0x1ef)]),process[_0x3d918a(0x186)][_0x3d918a(0x153)]=_0x386b38,_0x386b38&&_0x582dd4[_0x3d918a(0x1a3)](setAccessibilityCapabilities,_0x240445['config']);}const _0x27b2f6=path['join'](_0x2b6773[_0x3d918a(0x1ea)]?path['dirname'](_0x2b6773['path']):process['cwd'](),_0x582dd4[_0x3d918a(0x1db)]);fs['writeFileSync'](_0x27b2f6,helper['serializeToYamlString'](_0x240445[_0x3d918a(0x1ef)])),process['env']['BROWSERSTACK_SETUP_CONFIG_PATH']=_0x27b2f6,helper[_0x3d918a(0x163)]();let _0x23afc5='';_0x582dd4[_0x3d918a(0x15e)](helper[_0x3d918a(0x1d2)](),constants[_0x3d918a(0x1ab)][_0x3d918a(0x169)])?_0x23afc5=_0x582dd4[_0x3d918a(0x1eb)]:_0x23afc5=_0x582dd4[_0x3d918a(0x1bd)];let _0x9bd793='';if(helper[_0x3d918a(0x1e8)](_0x2b6773[_0x3d918a(0x1ea)])){_0x9bd793=_0x3d918a(0x1b3);const _0x1ec666=_0x23afc5[_0x3d918a(0x175)]('.');_0x1ec666[_0x582dd4[_0x3d918a(0x1e1)](_0x1ec666[_0x3d918a(0x1c5)],0x1)]='ts',_0x23afc5=_0x1ec666[_0x3d918a(0x193)]('.'),logger[_0x3d918a(0x1c8)](_0x582dd4[_0x3d918a(0x1a4)](_0x582dd4[_0x3d918a(0x158)],_0x23afc5));}else _0x9bd793=_0x3d918a(0x16b);const _0x23389e=path[_0x3d918a(0x193)](_0x2b6773[_0x3d918a(0x1ea)]?path[_0x3d918a(0x1b0)](_0x2b6773[_0x3d918a(0x1ea)]):process[_0x3d918a(0x1d5)](),_0x23afc5);let _0x3f47b0=_0x2b6773[_0x3d918a(0x1ea)]?_0x2b6773[_0x3d918a(0x1ea)]:'';_0x3f47b0=_0x582dd4[_0x3d918a(0x160)](_0x3f47b0['length'],0x0)?path[_0x3d918a(0x164)](_0x3f47b0):'',process['env']['USER_CONFIG_DETAILS_PATH']=_0x3f47b0;const _0x388ee0=helper[_0x3d918a(0x1c4)](_0x240445[_0x3d918a(0x1ef)]);_0x388ee0&&(_0x9bd793=_0x582dd4['Oxhtk'](_0x3d918a(0x1cd)+_0x388ee0+_0x3d918a(0x16c),_0x9bd793));helper[_0x3d918a(0x184)]({},_0x1b823b),fs[_0x3d918a(0x17f)](_0x23389e,_0x9bd793),PerformanceTester[_0x3d918a(0x1c2)](PerformanceEvents[_0x3d918a(0x182)]);const _0x333b40=_0x582dd4[_0x3d918a(0x195)](spawn,_0x582dd4['APTRq'],[_0x582dd4[_0x3d918a(0x1ff)],_0x582dd4[_0x3d918a(0x1da)],_0x582dd4[_0x3d918a(0x1dc)],_0x23389e,..._0x1b823b[_0x3d918a(0x1a5)](0x2)],{'shell':_0x582dd4[_0x3d918a(0x1c6)](process[_0x3d918a(0x1d4)],_0x582dd4['jDCdL']),'stdio':_0x582dd4['FGjWQ'],'cwd':process[_0x3d918a(0x1d5)](),'env':Object[_0x3d918a(0x1b9)]({},process[_0x3d918a(0x186)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x3d918a(0x1a2)](_0x4034c3),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x240445[_0x3d918a(0x1ef)]['testContextOptions'][_0x3d918a(0x1a9)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x240445[_0x3d918a(0x1ef)]['testContextOptions'][_0x3d918a(0x190)],'BROWSERSTACK_LOG_LEVEL':_0x240445[_0x3d918a(0x1ef)][_0x3d918a(0x18d)]})}),_0x42121e=()=>{const _0x1f6aaa=_0x3d918a;try{const _0x2f4e91=path[_0x1f6aaa(0x193)](helper[_0x1f6aaa(0x1cf)](),_0x228134[_0x1f6aaa(0x17b)],_0x228134[_0x1f6aaa(0x17e)]);if(fs[_0x1f6aaa(0x157)](_0x2f4e91)){let _0x1b5417=fs[_0x1f6aaa(0x167)](_0x2f4e91);_0x1b5417=JSON['parse'](_0x1b5417),_0x240445[_0x1f6aaa(0x168)]=_0x1b5417,fs[_0x1f6aaa(0x1c9)](_0x2f4e91);}}catch(_0x17c7f5){logger['debug'](_0x228134[_0x1f6aaa(0x19c)](_0x228134['cgYac'],_0x17c7f5));}};_0x333b40['on'](_0x582dd4[_0x3d918a(0x19d)],async _0x3ffb94=>{const _0x4c6087=_0x3d918a,_0x3a29cb={};_0x3a29cb[_0x4c6087(0x16e)]=_0x582dd4[_0x4c6087(0x17d)];const _0x5b7982=_0x3a29cb;try{PerformanceTester[_0x4c6087(0x1e5)](PerformanceEvents['SDK_CLEANUP']),_0x582dd4[_0x4c6087(0x1b2)](_0x42121e),await TestHubHandler[_0x4c6087(0x1c1)](),await BrowserstackCLI[_0x4c6087(0x179)]()['stop'](),TestDetails[_0x4c6087(0x1ad)](),_0x582dd4[_0x4c6087(0x154)](printBuildLink),await utilities[_0x4c6087(0x19b)](_0x240445),process[_0x4c6087(0x1c3)]=_0x3ffb94,logger['debug'](_0x4c6087(0x194)+_0x3ffb94),logger[_0x4c6087(0x1f9)]('Deleting\x20'+_0x23389e),fs[_0x4c6087(0x1c9)](_0x23389e);fs['existsSync'](_0x27b2f6)&&(logger[_0x4c6087(0x1c8)]('Deleting\x20'+_0x27b2f6),fs[_0x4c6087(0x1c9)](_0x27b2f6));const _0x217942=fs[_0x4c6087(0x1df)](path[_0x4c6087(0x193)](helper[_0x4c6087(0x1cf)](),_0x582dd4[_0x4c6087(0x17d)]))[_0x4c6087(0x1b7)](_0x1f3a07=>_0x1f3a07[_0x4c6087(0x200)](_0x4c6087(0x1cb)));_0x217942[_0x4c6087(0x1d1)](_0x2276db=>{const _0x4ddfef=_0x4c6087;fs['unlinkSync'](path[_0x4ddfef(0x193)](helper['homedir'](),_0x5b7982[_0x4ddfef(0x16e)],_0x2276db));});}catch(_0x5cb78b){logger['debug'](_0x582dd4[_0x4c6087(0x1a4)](_0x582dd4[_0x4c6087(0x1f1)],_0x5cb78b));}});})();}module[a40_0x9abcf4(0x1e7)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a41_0x21c9cb=a41_0x3611;function a41_0xc03c(){const _0x51811b=['hvRyg','BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP','6973824oBGPAa','fork','1069056IwBAco','./mock-process.js','\x20is\x20not\x20found','Running\x20existing\x20global\x20setup','config','yANaT','Call\x20to\x20child\x20fork\x20with\x20args\x20','PLAYWRIGHT','env','jHBgv','toString','IygnG','error','./patches','./reporter/pwUtils','RdfDR','Path\x20','1267oTXjho','Got\x20exception\x20while\x20mocking\x20isWorkerRedundant:\x20','../../helpers/test-observability/constants','AbXXT','compareVersions','Not\x20able\x20to\x20import\x20globalSetup','pwSNQ','function','1830nfXlzz','3961330drptrf','requirePWModule','debug','../../helpers/test-observability/utils','598599KSVXGv','Error\x20in\x20calling\x20existing\x20global\x20setup:\x20','OIIcz','winstonLogger','child_process','../../helpers/helper','isHandlePWErrorSet','apply','1640436oZHFzm','2543712hCrlQR','dVBUq','exports','QlTYh','lhmtF','MMxRS','1.33.0'];a41_0xc03c=function(){return _0x51811b;};return a41_0xc03c();}(function(_0x43cab0,_0x59ade7){const _0x1dd448=a41_0x3611,_0x44bbd5=_0x43cab0();while(!![]){try{const _0x2fe847=parseInt(_0x1dd448(0xd3))/0x1+-parseInt(_0x1dd448(0xb5))/0x2+-parseInt(_0x1dd448(0xdc))/0x3+-parseInt(_0x1dd448(0xdb))/0x4+parseInt(_0x1dd448(0xcf))/0x5+-parseInt(_0x1dd448(0xce))/0x6*(-parseInt(_0x1dd448(0xc6))/0x7)+parseInt(_0x1dd448(0xb3))/0x8;if(_0x2fe847===_0x59ade7)break;else _0x44bbd5['push'](_0x44bbd5['shift']());}catch(_0x3416d1){_0x44bbd5['push'](_0x44bbd5['shift']());}}}(a41_0xc03c,0x803c9));const util=require('util'),child_process=require(a41_0x21c9cb(0xd7)),{FRAMEWORKS}=require(a41_0x21c9cb(0xc8)),{getFrameworkVersion,debug}=require(a41_0x21c9cb(0xd2)),helper=require(a41_0x21c9cb(0xd8)),{getLoadUtilsPath,getForkProcessPath}=require(a41_0x21c9cb(0xc3)),{mockIsWorkerRedundant}=require(a41_0x21c9cb(0xc2)),logger=require('../../helpers/logger')[a41_0x21c9cb(0xd6)];function a41_0x3611(_0x36d119,_0x3f3ab7){const _0xc03c11=a41_0xc03c();return a41_0x3611=function(_0x3611b2,_0x569ab8){_0x3611b2=_0x3611b2-0xac;let _0xec702d=_0xc03c11[_0x3611b2];return _0xec702d;},a41_0x3611(_0x36d119,_0x3f3ab7);}module[a41_0x21c9cb(0xac)]=async function(_0x15b6a5){const _0x542aa9=a41_0x21c9cb,_0x4f46ff={'yANaT':function(_0x50e549,_0x1bd17b){return _0x50e549(_0x1bd17b);},'OIIcz':function(_0x2d99d8){return _0x2d99d8();},'AbXXT':_0x542aa9(0xb6),'IygnG':function(_0x925b3b){return _0x925b3b();},'CJXYh':function(_0x39c55d,_0x6ef85d){return _0x39c55d(_0x6ef85d);},'QlTYh':_0x542aa9(0xb8),'lhmtF':function(_0x1f86e9){return _0x1f86e9();},'pwSNQ':function(_0x33a0dc,_0x5cbf3d){return _0x33a0dc>=_0x5cbf3d;},'MMxRS':_0x542aa9(0xb0),'jHBgv':function(_0x5cb40e,_0x2fca9f,_0x1895f4){return _0x5cb40e(_0x2fca9f,_0x1895f4);},'hvRyg':function(_0x299746,_0x226468){return _0x299746!==_0x226468;},'dVBUq':_0x542aa9(0xcd),'RdfDR':_0x542aa9(0xcb)},_0x2508f2=child_process['fork'];if(helper[_0x542aa9(0xd9)]())try{_0x4f46ff[_0x542aa9(0xc0)](mockIsWorkerRedundant);}catch(_0x8184f7){logger[_0x542aa9(0xd1)](_0x542aa9(0xc7)+util['format'](_0x8184f7));}child_process[_0x542aa9(0xb4)]=function(){const _0x5e72d1=_0x542aa9;return _0x4f46ff['yANaT'](debug,_0x5e72d1(0xbb)+arguments[0x0]),arguments[0x0]['includes'](_0x4f46ff[_0x5e72d1(0xd5)](getForkProcessPath))?arguments[0x0]=require['resolve'](_0x4f46ff[_0x5e72d1(0xc9)]):logger[_0x5e72d1(0xc1)](_0x5e72d1(0xc5)+_0x4f46ff[_0x5e72d1(0xd5)](getForkProcessPath)+_0x5e72d1(0xb7)),_0x2508f2[_0x5e72d1(0xda)](null,arguments);};if(process[_0x542aa9(0xbd)][_0x542aa9(0xb2)]){_0x4f46ff['CJXYh'](debug,_0x4f46ff[_0x542aa9(0xad)]);try{const {loadGlobalHook:_0x5ad78a}=helper[_0x542aa9(0xd0)]['apply'](null,_0x4f46ff[_0x542aa9(0xae)](getLoadUtilsPath)),_0x6256e3=_0x4f46ff['yANaT'](getFrameworkVersion,FRAMEWORKS[_0x542aa9(0xbc)]);let _0x2b0568=_0x15b6a5;if(_0x4f46ff[_0x542aa9(0xcc)](helper[_0x542aa9(0xca)](_0x6256e3,_0x4f46ff[_0x542aa9(0xaf)]),0x0)){const _0x1c8e4d={};_0x1c8e4d[_0x542aa9(0xb9)]=_0x15b6a5,_0x2b0568=_0x1c8e4d;}const _0x594d36=await _0x4f46ff[_0x542aa9(0xbe)](_0x5ad78a,_0x2b0568,process[_0x542aa9(0xbd)]['BROWSERSTACK_PLAYWRIGHT_GLOBAL_SETUP']);if(_0x4f46ff[_0x542aa9(0xb1)](typeof _0x594d36,_0x4f46ff[_0x542aa9(0xdd)]))throw new Error(_0x4f46ff[_0x542aa9(0xc4)]);return _0x594d36['apply'](null,arguments);}catch(_0x10704d){_0x4f46ff[_0x542aa9(0xba)](debug,_0x542aa9(0xd4)+_0x10704d[_0x542aa9(0xbf)]());}}};
|