browserstack-node-sdk 1.46.3 → 1.46.5
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/generated/sdk-messages_pb.d.ts +116 -0
- package/generated/sdk-messages_pb.js +902 -0
- package/generated/sdk_grpc_pb.d.ts +10 -0
- package/generated/sdk_grpc_pb.js +66 -0
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -0
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/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/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a33_0x545a(){const _0x14d07a=['jObFQ','https://','../../../helpers/logger','bRVXc','isAccessibilityPlatform','then','options_','qZDIg','OPPAe','1379329wqVciV','../accessibility-automation/helper','10UvbSfc','Builder','exports','__drivers','BDgBU','CKxcq','build','ms:edgeOptions','getHubUrl','goog:chromeOptions','hmlFY','safari.options','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','se:ieOptions','IrIKi','forEach','getAccessibilityResults','setLogLevel','umdaK','../../../bin/utils/constants','keys','firefoxOptions_','getHttpAgent','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','CAPABILITY_KEY','get','Setting\x20Browserstack\x20capabilities','nxupZ','zBsLL','setCapabilities','eXVrU','storeOptimalHubUrl','New\x20hub\x20url\x20set\x20to\x20','176ooQSGI','path','split','requireHttpClient','updateHubUrl','Hub\x20url\x20set\x20to\x20','Modifying\x20webdriver\x20builder','../../../hubAllocationMethods','ieOptions_','mergeDeep','getGlobal','proxy_','set','Vuziw','../../../helpers/globals','info','rYjOe','XAaxE','Proxy\x20set\x20to\x20','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','isUndefined','overrideGet','send','originalBuilder','IjSNw','/session','chromeOptions','isBrowserstackInfra','../../../helpers/patchHelpers','capabilities_','KXdbh','752178PwCXOT','winstonLogger','15706030GQGHYj','url_','__driversArray','UuaKc','proxySettings','238392NXFkNo','mmChT','setGlobal','edgeOptions','/wd/hub','jEsDQ','newHubUrl','proxyUrl','getAccessibilityResultsSummary','AGIfc','firefoxOptions','__driver','chromeOptions_','quitCount_','187154LHYDpD','VKAoK','4674zZwWAT','setServer','safariOptions_','push','aMNYh','__setBrowserOptions','DUMsl','../../../helpers/helper','global','HttpClient','capability','372184FsARuE','782cRalBd','debug','Kmzkp','edgeOptions_','5|4|2|1|0|3'];a33_0x545a=function(){return _0x14d07a;};return a33_0x545a();}function a33_0x2745(_0x3b3a81,_0x4bcf47){const _0x545adf=a33_0x545a();return a33_0x2745=function(_0x2745bb,_0x1cd2d5){_0x2745bb=_0x2745bb-0x106;let _0x1d6840=_0x545adf[_0x2745bb];return _0x1d6840;},a33_0x2745(_0x3b3a81,_0x4bcf47);}const a33_0x2bf550=a33_0x2745;(function(_0x492460,_0x58d934){const _0x4a3388=a33_0x2745,_0x208a4e=_0x492460();while(!![]){try{const _0x2f11da=parseInt(_0x4a3388(0x13d))/0x1+parseInt(_0x4a3388(0x14b))/0x2*(-parseInt(_0x4a3388(0x13f))/0x3)+-parseInt(_0x4a3388(0x14a))/0x4*(parseInt(_0x4a3388(0x15b))/0x5)+parseInt(_0x4a3388(0x128))/0x6+-parseInt(_0x4a3388(0x159))/0x7+-parseInt(_0x4a3388(0x109))/0x8*(parseInt(_0x4a3388(0x12f))/0x9)+parseInt(_0x4a3388(0x12a))/0xa;if(_0x2f11da===_0x58d934)break;else _0x208a4e['push'](_0x208a4e['shift']());}catch(_0x28149e){_0x208a4e['push'](_0x208a4e['shift']());}}}(a33_0x545a,0x4b363));const logger=require(a33_0x2bf550(0x152))[a33_0x2bf550(0x129)],helper=require(a33_0x2bf550(0x146)),constants=require(a33_0x2bf550(0x16e)),hubAllocator=require(a33_0x2bf550(0x110)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x2bf550(0x125)),{setAccessibilityCapabilities,setExtension}=require(a33_0x2bf550(0x15a)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require(a33_0x2bf550(0x117)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x381a28,_0x3b6a16=null,_0x28891b=![])=>{const _0x3a7f44=a33_0x2bf550,_0x4684b6={'OPPAe':function(_0x25acfc,_0x482ccd){return _0x25acfc!==_0x482ccd;},'zBsLL':_0x3a7f44(0x122),'qZDIg':function(_0x3120e9,_0x3333a7){return _0x3120e9+_0x3333a7;},'nNnND':function(_0x1fd4a3,_0x41173c){return _0x1fd4a3+_0x41173c;},'QejXf':_0x3a7f44(0x151),'wfrIl':_0x3a7f44(0x133),'EAnTr':_0x3a7f44(0x164),'onQpH':_0x3a7f44(0x123),'bRVXc':_0x3a7f44(0x162),'hmlFY':_0x3a7f44(0x132),'NcgIS':'moz:firefoxOptions','SGUzV':_0x3a7f44(0x139),'VKAoK':_0x3a7f44(0x166),'UuaKc':_0x3a7f44(0x168),'aMNYh':'ieOptions','KXdbh':function(_0x43b231,_0x3595fa){return _0x43b231===_0x3595fa;},'BDgBU':'object','meyuN':_0x3a7f44(0x176),'rYjOe':'optimalHubUrl','Vuziw':_0x3a7f44(0x172),'IrIKi':function(_0x38af18,_0x2d20a1,_0x194188){return _0x38af18(_0x2d20a1,_0x194188);},'qYiLk':function(_0x12ab18,_0x26bf94,_0xdfbcb6){return _0x12ab18(_0x26bf94,_0xdfbcb6);},'TbpjP':function(_0x5f49ce,_0x601db,_0x28b851){return _0x5f49ce(_0x601db,_0x28b851);},'umdaK':function(_0x4db849,_0x442ca5){return _0x4db849(_0x442ca5);},'DUMsl':function(_0x5283ce,_0x2645cc,_0x275ac7){return _0x5283ce(_0x2645cc,_0x275ac7);},'AGIfc':function(_0x5842b1,_0x381151,_0x7bcb8){return _0x5842b1(_0x381151,_0x7bcb8);},'nxupZ':_0x3a7f44(0x14f),'eXVrU':_0x3a7f44(0x154),'jZTPd':function(_0x183f2b,_0x324193,_0xe7cf80){return _0x183f2b(_0x324193,_0xe7cf80);},'CKxcq':'Running\x20your\x20test\x20suite\x20on\x20BrowserStack','ixNIm':function(_0x4a9dde){return _0x4a9dde();},'mmChT':function(_0x54f35f,_0x261028){return _0x54f35f(_0x261028);},'jEsDQ':function(_0x1875a5,_0xf9c67a,_0x426af4){return _0x1875a5(_0xf9c67a,_0x426af4);},'jObFQ':function(_0x1b7630,_0x430882){return _0x1b7630!==_0x430882;},'XrUKn':_0x3a7f44(0x167),'pchLD':_0x3a7f44(0x10f)},_0x187b7a=helper[_0x3a7f44(0x10c)]();let _0x136adf;try{_0x136adf=helper['requireSeleniumWebdriver'](),_0x136adf['originalBuilder']&&(_0x136adf[_0x3a7f44(0x15c)]=_0x136adf[_0x3a7f44(0x120)]);}catch(_0x400096){return;}if(helper[_0x3a7f44(0x124)]()){const _0x269b4d={};_0x269b4d['logLevel']=_0x381a28['browserStackLogLevel'],helper[_0x3a7f44(0x16c)](_0x269b4d,new Map(),new Map()),logger[_0x3a7f44(0x118)](_0x4684b6['XrUKn']),logger[_0x3a7f44(0x14c)](_0x4684b6['pchLD']);}class _0xd4d10c extends _0x187b7a[_0x3a7f44(0x148)]{[_0x3a7f44(0x11f)](_0x17ce07){const _0x1fe03c=_0x3a7f44;if(_0x4684b6[_0x1fe03c(0x158)](_0x17ce07[_0x1fe03c(0x10a)],_0x4684b6[_0x1fe03c(0x178)])&&_0x4684b6['OPPAe'](global['newHubUrl'],''))try{global[_0x1fe03c(0x135)]=_0x4684b6[_0x1fe03c(0x157)](_0x4684b6['nNnND'](_0x4684b6['QejXf'],global[_0x1fe03c(0x135)]),_0x4684b6['wfrIl']),this[_0x1fe03c(0x156)]=hubAllocator['getRequestOptions'](global[_0x1fe03c(0x135)]),logger[_0x1fe03c(0x14c)](_0x1fe03c(0x108)+global[_0x1fe03c(0x135)]),global[_0x1fe03c(0x135)]='';}catch(_0x40ce59){logger['error'](_0x40ce59);}return super[_0x1fe03c(0x11f)](_0x17ce07);}}class _0x58572e extends _0x136adf[_0x3a7f44(0x15c)]{[_0x3a7f44(0x140)](){const _0x1f462a=_0x3a7f44;return this[_0x1f462a(0x12b)]=helper[_0x1f462a(0x163)](_0x381a28),logger[_0x1f462a(0x14c)](_0x1f462a(0x10e)+this[_0x1f462a(0x12b)]),this;}[_0x3a7f44(0x144)](_0x2a90c0){const _0x2396cc=_0x3a7f44;let _0x182121={};for(const _0x4f8090 in _0x2a90c0){switch(_0x4f8090){case _0x4684b6['EAnTr']:case _0x4684b6['onQpH']:this[_0x2396cc(0x13b)]&&(_0x182121=this[_0x2396cc(0x13b)]['get'](this[_0x2396cc(0x13b)][_0x2396cc(0x174)])||{},this[_0x2396cc(0x13b)][_0x2396cc(0x115)](this[_0x2396cc(0x13b)][_0x2396cc(0x174)],helper[_0x2396cc(0x112)](_0x182121,_0x2a90c0[_0x4f8090])));break;case _0x4684b6[_0x2396cc(0x153)]:case _0x4684b6[_0x2396cc(0x165)]:this[_0x2396cc(0x14e)]&&(_0x182121=this[_0x2396cc(0x14e)][_0x2396cc(0x175)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x2396cc(0x14e)]['set'](this[_0x2396cc(0x14e)]['CAPABILITY_KEY'],helper[_0x2396cc(0x112)](_0x182121,_0x2a90c0[_0x4f8090])));break;case _0x4684b6['NcgIS']:case _0x4684b6['SGUzV']:this[_0x2396cc(0x170)]&&(_0x182121=this[_0x2396cc(0x170)]['get'](this['firefoxOptions_'][_0x2396cc(0x174)])||{},this[_0x2396cc(0x170)]['set'](this['firefoxOptions_'][_0x2396cc(0x174)],helper[_0x2396cc(0x112)](_0x182121,_0x2a90c0[_0x4f8090])));break;case _0x4684b6[_0x2396cc(0x13e)]:this[_0x2396cc(0x141)]&&(_0x182121=this[_0x2396cc(0x141)][_0x2396cc(0x175)](this[_0x2396cc(0x141)]['CAPABILITY_KEY'])||{},this[_0x2396cc(0x141)][_0x2396cc(0x115)](this[_0x2396cc(0x141)]['CAPABILITY_KEY'],helper[_0x2396cc(0x112)](_0x182121,_0x2a90c0[_0x4f8090])));break;case _0x4684b6[_0x2396cc(0x12d)]:case _0x4684b6[_0x2396cc(0x143)]:this['ieOptions_']&&(_0x182121=this[_0x2396cc(0x111)][_0x2396cc(0x175)](this['ieOptions_']['CAPABILITY_KEY'])||{},this[_0x2396cc(0x111)]['set'](this['ieOptions_'][_0x2396cc(0x174)],helper[_0x2396cc(0x112)](_0x182121,_0x2a90c0[_0x4f8090])));break;}}}[_0x3a7f44(0x179)](){const _0xe36a11=_0x3a7f44;return logger['debug'](_0x4684b6['meyuN']),this[_0xe36a11(0x144)](_0x381a28[_0xe36a11(0x149)]),Object[_0xe36a11(0x16f)](_0x381a28[_0xe36a11(0x149)])[_0xe36a11(0x16a)](_0x5e381b=>{const _0x51d8ed=_0xe36a11,_0x37fb47=this[_0x51d8ed(0x126)][_0x51d8ed(0x175)](_0x5e381b);_0x4684b6[_0x51d8ed(0x127)](typeof _0x37fb47,_0x4684b6[_0x51d8ed(0x15f)])?this['capabilities_'][_0x51d8ed(0x115)](_0x5e381b,helper[_0x51d8ed(0x112)](_0x37fb47,_0x381a28[_0x51d8ed(0x149)][_0x5e381b])):this[_0x51d8ed(0x126)][_0x51d8ed(0x115)](_0x5e381b,_0x381a28[_0x51d8ed(0x149)][_0x5e381b]);}),this;}['build'](){const _0x190a45=_0x3a7f44,_0x141ea0={'XAaxE':function(_0x22176f,_0x54f40a,_0x278c6a){const _0x10a6d4=a33_0x2745;return _0x4684b6[_0x10a6d4(0x138)](_0x22176f,_0x54f40a,_0x278c6a);}};if(helper[_0x190a45(0x124)]()){const _0x5e24a6=_0x4684b6[_0x190a45(0x177)][_0x190a45(0x10b)]('|');let _0x4b4e66=0x0;while(!![]){switch(_0x5e24a6[_0x4b4e66++]){case'0':globals[_0x190a45(0x113)](_0x4684b6[_0x190a45(0x106)])&&(!_0x4684b6['jZTPd'](setExtension,this,_0x381a28)&&globals[_0x190a45(0x131)](_0x4684b6['eXVrU'],![]));continue;case'1':if(helper['isPacProxy'](_0x381a28['proxySettings'][_0x190a45(0x136)]))this['agent_']=helper[_0x190a45(0x171)](_0x381a28[_0x190a45(0x12e)][_0x190a45(0x136)]);else _0x381a28[_0x190a45(0x12e)]['proxyUrl']&&(this['proxy_']=_0x381a28['proxySettings']['proxyUrl'],logger[_0x190a45(0x14c)](_0x190a45(0x11b)+this[_0x190a45(0x114)]));continue;case'2':this[_0x190a45(0x179)]();continue;case'3':logger[_0x190a45(0x14c)](_0x4684b6[_0x190a45(0x160)]);continue;case'4':this['setServer']();continue;case'5':_0x4684b6['ixNIm'](isAccessibilityAutomationSession)&&_0x4684b6[_0x190a45(0x16d)](setAccessibilityCapabilities,_0x381a28);continue;}break;}}const _0xd0bef6=super[_0x190a45(0x161)]();return _0xd0bef6['session_']['then'](_0x1253d1=>{const _0xe82e33=_0x190a45;try{const _0x179a0f=_0x1253d1['caps_']['get'](_0x4684b6[_0xe82e33(0x119)]);_0x179a0f?(logger[_0xe82e33(0x14c)](_0xe82e33(0x11c)+_0x179a0f),hubAllocator[_0xe82e33(0x10d)](_0x179a0f),helper[_0xe82e33(0x107)](_0x179a0f)):logger[_0xe82e33(0x14c)](_0x4684b6[_0xe82e33(0x116)]);}catch(_0x278f34){logger[_0xe82e33(0x14c)](_0xe82e33(0x173)+_0x278f34);}}),_0xd0bef6[_0x190a45(0x13c)]=0x0,_0xd0bef6[_0x190a45(0x155)]&&_0xd0bef6['then'](_0x1b51c6=>{const _0x3f151c=_0x190a45,_0x177aeb={'IjSNw':function(_0x32a1b2,_0x21caa0,_0x586107){const _0x19df84=a33_0x2745;return _0x4684b6[_0x19df84(0x169)](_0x32a1b2,_0x21caa0,_0x586107);},'Kmzkp':function(_0x131de6,_0x402e28,_0x542620){return _0x4684b6['qYiLk'](_0x131de6,_0x402e28,_0x542620);}};_0x4684b6['TbpjP'](overrideQuit,_0x1b51c6,_0xd0bef6),_0x4684b6['umdaK'](overrideTakeScreenshot,_0x1b51c6),helper[_0x3f151c(0x11e)](_0x1b51c6,_0x381a28),_0x4684b6[_0x3f151c(0x145)](overrideExecute,_0x1b51c6,_0x381a28),_0x1b51c6[_0x3f151c(0x137)]=async()=>{const _0x3e7f22=_0x3f151c;return await _0x177aeb[_0x3e7f22(0x121)](getAccessibilityResultsSummary,_0x1b51c6,global);},_0x1b51c6['getAccessibilityResults']=async()=>{const _0x721f16=_0x3f151c;return await _0x177aeb[_0x721f16(0x14d)](getAccessibilityResults,_0x1b51c6,global);};}),_0xd0bef6[_0x190a45(0x137)]=async()=>{return await _0x4684b6['DUMsl'](getAccessibilityResultsSummary,_0xd0bef6,global);},_0xd0bef6[_0x190a45(0x16b)]=async()=>{const _0x45eb50=_0x190a45;return await _0x141ea0[_0x45eb50(0x11a)](getAccessibilityResults,_0xd0bef6,global);},_0x4684b6[_0x190a45(0x130)](overrideTakeScreenshot,_0xd0bef6),_0x4684b6[_0x190a45(0x16d)](overrideQuit,_0xd0bef6),helper[_0x190a45(0x11e)](_0xd0bef6,_0x381a28),_0x4684b6[_0x190a45(0x134)](overrideExecute,_0xd0bef6,_0x381a28),helper[_0x190a45(0x11d)](global[_0x190a45(0x12c)])&&(global[_0x190a45(0x12c)]=[]),helper['isUndefined'](global[_0x190a45(0x15e)])&&(global[_0x190a45(0x15e)]=[]),global[_0x190a45(0x12c)][_0x190a45(0x142)](_0xd0bef6),global[_0x190a45(0x13a)]=_0xd0bef6,_0x4684b6[_0x190a45(0x150)](global['__drivers'],undefined)&&global[_0x190a45(0x15e)][_0x190a45(0x142)](_0xd0bef6),_0x3b6a16&&helper['isUndefined'](_0x3b6a16[_0x190a45(0x147)][_0x190a45(0x12c)])&&(_0x3b6a16[_0x190a45(0x147)][_0x190a45(0x12c)]=[]),_0x3b6a16&&_0x4684b6[_0x190a45(0x150)](_0x3b6a16[_0x190a45(0x147)][_0x190a45(0x15e)],undefined)&&(_0x3b6a16['global'][_0x190a45(0x15e)]['push'](_0xd0bef6),_0x3b6a16[_0x190a45(0x147)][_0x190a45(0x12c)]['push'](_0xd0bef6)),_0xd0bef6;}}return _0x136adf['originalBuilder']=_0x136adf[_0x3a7f44(0x15c)],_0x136adf[_0x3a7f44(0x15c)]=_0x58572e,_0x187b7a[_0x3a7f44(0x148)]=_0xd4d10c,_0x136adf;};module[a33_0x2bf550(0x15d)]['browserstackAgentObservability']=modify;
|
|
1
|
+
const a33_0x15f948=a33_0x4ddd;(function(_0x2df362,_0x2806a7){const _0x54e34b=a33_0x4ddd,_0x2feb0f=_0x2df362();while(!![]){try{const _0xbb106b=-parseInt(_0x54e34b(0x20c))/0x1*(parseInt(_0x54e34b(0x1ef))/0x2)+-parseInt(_0x54e34b(0x1d6))/0x3+parseInt(_0x54e34b(0x1dc))/0x4+parseInt(_0x54e34b(0x1d7))/0x5*(-parseInt(_0x54e34b(0x20a))/0x6)+-parseInt(_0x54e34b(0x1fa))/0x7*(-parseInt(_0x54e34b(0x1f4))/0x8)+parseInt(_0x54e34b(0x21b))/0x9+parseInt(_0x54e34b(0x1ce))/0xa*(parseInt(_0x54e34b(0x1b9))/0xb);if(_0xbb106b===_0x2806a7)break;else _0x2feb0f['push'](_0x2feb0f['shift']());}catch(_0x283a3d){_0x2feb0f['push'](_0x2feb0f['shift']());}}}(a33_0x3787,0xa22e1));const logger=require(a33_0x15f948(0x1d1))[a33_0x15f948(0x1f2)],helper=require(a33_0x15f948(0x20f)),constants=require('../../../bin/utils/constants'),hubAllocator=require(a33_0x15f948(0x1e2)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require(a33_0x15f948(0x1ec)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x15f948(0x1bc)),globals=require(a33_0x15f948(0x1d9)),{overrideExecute}=require('./helpers/patchHelper'),modify=(_0x5e9654,_0x652e9e=null,_0x587e83=![])=>{const _0x205ce9=a33_0x15f948,_0x1adc23={'tZQxD':function(_0x2b1163,_0x2d25c4){return _0x2b1163!==_0x2d25c4;},'gnRrQ':_0x205ce9(0x224),'FZPcN':function(_0x44821e,_0x832a00){return _0x44821e+_0x832a00;},'sjYKc':_0x205ce9(0x1cd),'vUCxa':_0x205ce9(0x1db),'hJhtH':'goog:chromeOptions','iQsDD':_0x205ce9(0x209),'BToRY':'ms:edgeOptions','xmUiz':_0x205ce9(0x1d2),'GEdIi':_0x205ce9(0x1fb),'BYKYC':_0x205ce9(0x1eb),'UDSXM':_0x205ce9(0x218),'Dqanw':_0x205ce9(0x1c9),'EcSKI':_0x205ce9(0x1e3),'XFJGc':function(_0x6b926b,_0x584ada){return _0x6b926b===_0x584ada;},'gUsnu':_0x205ce9(0x207),'owRLF':_0x205ce9(0x202),'uHCzh':function(_0x43dab7,_0x30e6be,_0x2315a3){return _0x43dab7(_0x30e6be,_0x2315a3);},'WWMVM':function(_0x1fca0f,_0x1e042d,_0x2d3955){return _0x1fca0f(_0x1e042d,_0x2d3955);},'joMsg':function(_0x1cb647,_0x1d747a){return _0x1cb647(_0x1d747a);},'tKJKP':'optimalHubUrl','ngwqa':_0x205ce9(0x1fc),'KVykR':function(_0x2d92b0,_0x27195b,_0x2f4c85){return _0x2d92b0(_0x27195b,_0x2f4c85);},'JALdA':'5|3|1|0|2|4','PPfQF':_0x205ce9(0x1df),'YLsDe':function(_0x232a4d,_0x40e2af,_0x4c7f8c){return _0x232a4d(_0x40e2af,_0x4c7f8c);},'QbXWa':_0x205ce9(0x1ed),'Dvmwh':function(_0x23ad5f){return _0x23ad5f();},'PBZiq':function(_0x2660a3,_0x4c7aa0,_0x3aecde){return _0x2660a3(_0x4c7aa0,_0x3aecde);},'AsLFs':function(_0x3ed84e,_0x458d6e){return _0x3ed84e!==_0x458d6e;},'oEEUG':function(_0x19bdab,_0x39df64){return _0x19bdab!==_0x39df64;},'aRzGy':_0x205ce9(0x1dd),'lmFEq':'Modifying\x20webdriver\x20builder'},_0xcfdd46=helper['requireHttpClient']();let _0x1daa79;try{_0x1daa79=helper[_0x205ce9(0x1d4)](),_0x1daa79[_0x205ce9(0x20d)]&&(_0x1daa79[_0x205ce9(0x1c1)]=_0x1daa79[_0x205ce9(0x20d)]);}catch(_0x11030d){return;}if(helper[_0x205ce9(0x1d8)]()){const _0x18bab1={};_0x18bab1['logLevel']=_0x5e9654[_0x205ce9(0x221)],helper[_0x205ce9(0x1e8)](_0x18bab1,new Map(),new Map()),logger[_0x205ce9(0x1c3)](_0x1adc23['aRzGy']),logger[_0x205ce9(0x213)](_0x1adc23[_0x205ce9(0x1f9)]);}class _0x133b71 extends _0xcfdd46[_0x205ce9(0x1de)]{[_0x205ce9(0x1f1)](_0x187b29){const _0x231ba4=_0x205ce9;if(_0x1adc23[_0x231ba4(0x219)](_0x187b29[_0x231ba4(0x1c7)],_0x1adc23[_0x231ba4(0x1b6)])&&_0x1adc23['tZQxD'](global[_0x231ba4(0x1b8)],''))try{global[_0x231ba4(0x1b8)]=_0x1adc23[_0x231ba4(0x220)](_0x1adc23[_0x231ba4(0x220)](_0x1adc23[_0x231ba4(0x1e4)],global[_0x231ba4(0x1b8)]),_0x1adc23[_0x231ba4(0x1e0)]),this['options_']=hubAllocator['getRequestOptions'](global[_0x231ba4(0x1b8)]),logger['debug'](_0x231ba4(0x1c5)+global[_0x231ba4(0x1b8)]),global[_0x231ba4(0x1b8)]='';}catch(_0x3a2ea3){logger['error'](_0x3a2ea3);}return super['send'](_0x187b29);}}class _0x3d3f2b extends _0x1daa79['Builder']{['setServer'](){const _0x58f709=_0x205ce9;return this[_0x58f709(0x1ff)]=helper[_0x58f709(0x1ee)](_0x5e9654),logger['debug'](_0x58f709(0x1b4)+this[_0x58f709(0x1ff)]),this;}[_0x205ce9(0x1f6)](_0x29a5b8){const _0x584163=_0x205ce9;let _0xe7bb51={};for(const _0x108c35 in _0x29a5b8){switch(_0x108c35){case _0x1adc23['hJhtH']:case _0x1adc23[_0x584163(0x1c0)]:this[_0x584163(0x20e)]&&(_0xe7bb51=this['chromeOptions_']['get'](this[_0x584163(0x20e)]['CAPABILITY_KEY'])||{},this[_0x584163(0x20e)][_0x584163(0x214)](this[_0x584163(0x20e)][_0x584163(0x21c)],helper[_0x584163(0x208)](_0xe7bb51,_0x29a5b8[_0x108c35])));break;case _0x1adc23['BToRY']:case _0x1adc23[_0x584163(0x1cb)]:this[_0x584163(0x1cf)]&&(_0xe7bb51=this[_0x584163(0x1cf)][_0x584163(0x1c4)](this['edgeOptions_']['CAPABILITY_KEY'])||{},this[_0x584163(0x1cf)][_0x584163(0x214)](this[_0x584163(0x1cf)]['CAPABILITY_KEY'],helper[_0x584163(0x208)](_0xe7bb51,_0x29a5b8[_0x108c35])));break;case _0x1adc23[_0x584163(0x204)]:case _0x1adc23[_0x584163(0x200)]:this[_0x584163(0x1e1)]&&(_0xe7bb51=this[_0x584163(0x1e1)][_0x584163(0x1c4)](this[_0x584163(0x1e1)][_0x584163(0x21c)])||{},this['firefoxOptions_'][_0x584163(0x214)](this[_0x584163(0x1e1)][_0x584163(0x21c)],helper[_0x584163(0x208)](_0xe7bb51,_0x29a5b8[_0x108c35])));break;case _0x1adc23[_0x584163(0x1e9)]:this[_0x584163(0x222)]&&(_0xe7bb51=this['safariOptions_']['get'](this['safariOptions_']['CAPABILITY_KEY'])||{},this['safariOptions_'][_0x584163(0x214)](this[_0x584163(0x222)]['CAPABILITY_KEY'],helper[_0x584163(0x208)](_0xe7bb51,_0x29a5b8[_0x108c35])));break;case _0x1adc23['Dqanw']:case _0x1adc23[_0x584163(0x1e5)]:this[_0x584163(0x1c2)]&&(_0xe7bb51=this[_0x584163(0x1c2)]['get'](this[_0x584163(0x1c2)][_0x584163(0x21c)])||{},this[_0x584163(0x1c2)][_0x584163(0x214)](this['ieOptions_'][_0x584163(0x21c)],helper['mergeDeep'](_0xe7bb51,_0x29a5b8[_0x108c35])));break;}}}[_0x205ce9(0x1c6)](){const _0x490bb4=_0x205ce9;return logger[_0x490bb4(0x213)](_0x1adc23['owRLF']),this[_0x490bb4(0x1f6)](_0x5e9654[_0x490bb4(0x217)]),Object[_0x490bb4(0x1ca)](_0x5e9654[_0x490bb4(0x217)])[_0x490bb4(0x1da)](_0x4bdd91=>{const _0x3e7de4=_0x490bb4,_0x4aaeaf=this[_0x3e7de4(0x1f3)][_0x3e7de4(0x1c4)](_0x4bdd91);_0x1adc23[_0x3e7de4(0x20b)](typeof _0x4aaeaf,_0x1adc23['gUsnu'])?this[_0x3e7de4(0x1f3)]['set'](_0x4bdd91,helper['mergeDeep'](_0x4aaeaf,_0x5e9654[_0x3e7de4(0x217)][_0x4bdd91])):this[_0x3e7de4(0x1f3)]['set'](_0x4bdd91,_0x5e9654['capability'][_0x4bdd91]);}),this;}[_0x205ce9(0x211)](){const _0x3126eb=_0x205ce9,_0x22c0d3={'uvARh':_0x1adc23[_0x3126eb(0x1bd)],'EeVCl':_0x1adc23['ngwqa'],'JKSIp':function(_0x2e17dd,_0x5c53c9,_0x41065d){return _0x1adc23['KVykR'](_0x2e17dd,_0x5c53c9,_0x41065d);}};if(helper[_0x3126eb(0x1d8)]()){const _0x555c20=_0x1adc23[_0x3126eb(0x21f)]['split']('|');let _0x2be69f=0x0;while(!![]){switch(_0x555c20[_0x2be69f++]){case'0':if(helper[_0x3126eb(0x216)](_0x5e9654[_0x3126eb(0x1fd)][_0x3126eb(0x1f0)]))this[_0x3126eb(0x1cc)]=helper['getHttpAgent'](_0x5e9654[_0x3126eb(0x1fd)][_0x3126eb(0x1f0)]);else _0x5e9654['proxySettings'][_0x3126eb(0x1f0)]&&(this['proxy_']=_0x5e9654[_0x3126eb(0x1fd)]['proxyUrl'],logger['debug']('Proxy\x20set\x20to\x20'+this['proxy_']));continue;case'1':this[_0x3126eb(0x1c6)]();continue;case'2':globals[_0x3126eb(0x1b7)](_0x1adc23[_0x3126eb(0x223)])&&(!_0x1adc23[_0x3126eb(0x212)](setExtension,this,_0x5e9654)&&globals[_0x3126eb(0x1fe)](_0x1adc23[_0x3126eb(0x223)],![]));continue;case'3':this[_0x3126eb(0x1bf)]();continue;case'4':logger['debug'](_0x1adc23['QbXWa']);continue;case'5':_0x1adc23[_0x3126eb(0x1f8)](isAccessibilityAutomationSession)&&_0x1adc23[_0x3126eb(0x1ba)](setAccessibilityCapabilities,_0x5e9654);continue;}break;}}const _0x581d14=super['build']();return _0x581d14[_0x3126eb(0x21d)]['then'](_0x5adaf0=>{const _0x371ca0=_0x3126eb;try{const _0xced33=_0x5adaf0[_0x371ca0(0x1f7)][_0x371ca0(0x1c4)](_0x22c0d3[_0x371ca0(0x205)]);_0xced33?(logger[_0x371ca0(0x213)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0xced33),hubAllocator[_0x371ca0(0x201)](_0xced33),helper['storeOptimalHubUrl'](_0xced33)):logger['debug'](_0x22c0d3['EeVCl']);}catch(_0x3e1900){logger['debug']('ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20'+_0x3e1900);}}),_0x581d14[_0x3126eb(0x1c8)]=0x0,_0x581d14[_0x3126eb(0x225)]&&_0x581d14['then'](_0x5c2676=>{const _0x4f2598=_0x3126eb,_0x4c733b={'yvZRt':function(_0x4b4156,_0x1405fc,_0x184d4f){const _0xe81ded=a33_0x4ddd;return _0x1adc23[_0xe81ded(0x1d3)](_0x4b4156,_0x1405fc,_0x184d4f);}};_0x1adc23['WWMVM'](overrideQuit,_0x5c2676,_0x581d14),_0x1adc23[_0x4f2598(0x1ba)](overrideTakeScreenshot,_0x5c2676),helper[_0x4f2598(0x1d0)](_0x5c2676,_0x5e9654),_0x1adc23[_0x4f2598(0x206)](overrideExecute,_0x5c2676,_0x5e9654),_0x5c2676[_0x4f2598(0x1f5)]=async()=>{return await _0x22c0d3['JKSIp'](getAccessibilityResultsSummary,_0x5c2676,global);},_0x5c2676[_0x4f2598(0x1be)]=async()=>{const _0x39ea26=_0x4f2598;return await _0x4c733b[_0x39ea26(0x21a)](getAccessibilityResults,_0x5c2676,global);};}),_0x581d14[_0x3126eb(0x1f5)]=async()=>{const _0x2f25f4=_0x3126eb;return await _0x1adc23[_0x2f25f4(0x206)](getAccessibilityResultsSummary,_0x581d14,global);},_0x581d14[_0x3126eb(0x1be)]=async()=>{const _0x15a48f=_0x3126eb;return await _0x22c0d3[_0x15a48f(0x1ea)](getAccessibilityResults,_0x581d14,global);},_0x1adc23['joMsg'](overrideTakeScreenshot,_0x581d14),_0x1adc23[_0x3126eb(0x1ba)](overrideQuit,_0x581d14),helper['overrideGet'](_0x581d14,_0x5e9654),_0x1adc23['PBZiq'](overrideExecute,_0x581d14,_0x5e9654),helper[_0x3126eb(0x1d5)](global[_0x3126eb(0x1e6)])&&(global['__driversArray']=[]),helper[_0x3126eb(0x1d5)](global[_0x3126eb(0x1bb)])&&(global[_0x3126eb(0x1bb)]=[]),global['__driversArray'][_0x3126eb(0x203)](_0x581d14),global[_0x3126eb(0x21e)]=_0x581d14,_0x1adc23[_0x3126eb(0x215)](global[_0x3126eb(0x1bb)],undefined)&&global[_0x3126eb(0x1bb)][_0x3126eb(0x203)](_0x581d14),_0x652e9e&&helper[_0x3126eb(0x1d5)](_0x652e9e[_0x3126eb(0x1b5)][_0x3126eb(0x1e6)])&&(_0x652e9e[_0x3126eb(0x1b5)][_0x3126eb(0x1e6)]=[]),_0x652e9e&&_0x1adc23[_0x3126eb(0x1e7)](_0x652e9e['global'][_0x3126eb(0x1bb)],undefined)&&(_0x652e9e[_0x3126eb(0x1b5)][_0x3126eb(0x1bb)][_0x3126eb(0x203)](_0x581d14),_0x652e9e[_0x3126eb(0x1b5)][_0x3126eb(0x1e6)]['push'](_0x581d14)),_0x581d14;}}return _0x1daa79[_0x205ce9(0x20d)]=_0x1daa79['Builder'],_0x1daa79[_0x205ce9(0x1c1)]=_0x3d3f2b,_0xcfdd46['HttpClient']=_0x133b71,_0x1daa79;};function a33_0x4ddd(_0xe133a1,_0x581bdd){const _0x378716=a33_0x3787();return a33_0x4ddd=function(_0x4ddd76,_0x12d361){_0x4ddd76=_0x4ddd76-0x1b4;let _0x5a12c3=_0x378716[_0x4ddd76];return _0x5a12c3;},a33_0x4ddd(_0xe133a1,_0x581bdd);}module[a33_0x15f948(0x210)]['browserstackAgentObservability']=modify;function a33_0x3787(){const _0x4bd1fe=['moz:firefoxOptions','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','proxySettings','setGlobal','url_','BYKYC','updateHubUrl','Setting\x20Browserstack\x20capabilities','push','GEdIi','uvARh','WWMVM','object','mergeDeep','chromeOptions','6MGmpRO','XFJGc','1QKaxGd','originalBuilder','chromeOptions_','../../../helpers/helper','exports','build','YLsDe','debug','set','AsLFs','isPacProxy','capability','safari.options','tZQxD','yvZRt','4334535jFYuAa','CAPABILITY_KEY','session_','__driver','JALdA','FZPcN','browserStackLogLevel','safariOptions_','PPfQF','/session','then','Hub\x20url\x20set\x20to\x20','global','gnRrQ','getGlobal','newHubUrl','11ATYAlz','joMsg','__drivers','../../../helpers/accessibility-automation/helper','tKJKP','getAccessibilityResults','setServer','iQsDD','Builder','ieOptions_','info','get','New\x20hub\x20url\x20set\x20to\x20','setCapabilities','path','quitCount_','se:ieOptions','keys','xmUiz','agent_','https://','24290270mRVCEA','edgeOptions_','overrideGet','../../../helpers/logger','edgeOptions','uHCzh','requireSeleniumWebdriver','isUndefined','3966561mXKCNk','5851695zrHvqT','isBrowserstackInfra','../../../helpers/globals','forEach','/wd/hub','3428112NHaSfb','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','HttpClient','isAccessibilityPlatform','vUCxa','firefoxOptions_','../../../hubAllocationMethods','ieOptions','sjYKc','EcSKI','__driversArray','oEEUG','setLogLevel','UDSXM','JKSIp','firefoxOptions','../accessibility-automation/helper','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','getHubUrl','1460222BMaWhI','proxyUrl','send','winstonLogger','capabilities_','64LvPULn','getAccessibilityResultsSummary','__setBrowserOptions','caps_','Dvmwh','lmFEq','104349PKXqdx'];a33_0x3787=function(){return _0x4bd1fe;};return a33_0x3787();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a34_0x48ce01=a34_0x13f4;function a34_0xcf11(){const _0x3cd514=['../../../helpers/request-spy','1095diyfnq','291cYmqVt','timeout','1928456KEOOhn','2380383remMSw','mochaHooks','4436dLfcME','246022aYjwer','opUfS','1219314ISnDWd','../../../bin/utils/constants','1206zdyJYR','72674CgRvjr'];a34_0xcf11=function(){return _0x3cd514;};return a34_0xcf11();}(function(_0x278ee5,_0x2e0c5f){const _0x27d480=a34_0x13f4,_0x558580=_0x278ee5();while(!![]){try{const _0x138f02=parseInt(_0x27d480(0xfe))/0x1+-parseInt(_0x27d480(0x102))/0x2*(parseInt(_0x27d480(0xf8))/0x3)+parseInt(_0x27d480(0xfd))/0x4*(-parseInt(_0x27d480(0xf7))/0x5)+-parseInt(_0x27d480(0x100))/0x6+parseInt(_0x27d480(0xf5))/0x7+parseInt(_0x27d480(0xfa))/0x8+parseInt(_0x27d480(0xfb))/0x9;if(_0x138f02===_0x2e0c5f)break;else _0x558580['push'](_0x558580['shift']());}catch(_0x28747b){_0x558580['push'](_0x558580['shift']());}}}(a34_0xcf11,0x3ed57));const requestSpy=require(a34_0x48ce01(0xf6)),constants=require(a34_0x48ce01(0x101)),{addRequestSpy}=require('../../../helpers/test-observability/utils');function a34_0x13f4(_0x2dc718,_0x768728){const _0xcf1115=a34_0xcf11();return a34_0x13f4=function(_0x13f428,_0x474c54){_0x13f428=_0x13f428-0xf5;let _0x318b5b=_0xcf1115[_0x13f428];return _0x318b5b;},a34_0x13f4(_0x2dc718,_0x768728);}exports[a34_0x48ce01(0xfc)]={'beforeAll'(){const _0x4c010d=a34_0x48ce01,_0x205bc4={'opUfS':function(_0x2b26dc){return _0x2b26dc();}},_0x23a193='browserstack internal helper hook';_0x205bc4[_0x4c010d(0xff)](addRequestSpy);},'afterAll'(){const _0x392598=a34_0x48ce01,_0x5b2a61='browserstack internal helper hook';this[_0x392598(0xf9)](0xea60),requestSpy['restore']();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a35_0x288f(){const _0x3c3709=['HPjPQ','_afterAll','../../utils/logPatcher','hook','substring','forEach','pid','_beforeAll','split','reduce','oZgJD','getTestEnv','3108786fOxvUk','PRtUT','suites','fIMOW','__cloud_provider___','generic','getCapabilities','VANMH','state','parent','bZWBS','wztEy','get','APkyD','38LcuUKR','getHookSkippedTests','baoFF','getSession','LbIWq','ZSDMD','YfLXN','../../../helpers/helper','OVSUZ','MIrZo','PzsYJ','YuvlH','string','sendPlatformDetails','DvNKA','../../../helpers/test-observability/constants','getPlatform','kahec','toJSON','iEmiQ','unknown_grid','mapTestHooks','concat','../../../helpers/test-observability/utils','eEkMn','tests','toISOString','222281piBezb','pending','fromEntries','159675UHyaqR','_beforeEach','122017PdvQbG','LKRkD','cTjok','filter','bs:addPlatformDetails:','pdDJA','getBrowserName','_afterEach','62259uvTOqa','OvKTC','getBrowserVersion','lfljE','SugDc','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','indexOf','hookAnalyticsId','push','OffsA','failed','slice','markedStatus','map_','hook:','VFVLP','40pScORY','5866821xFmkYM','uSwov','aJUlh','type','js-','2915916zSbmPJ','emit'];a35_0x288f=function(){return _0x3c3709;};return a35_0x288f();}const a35_0x47ed1f=a35_0x3353;(function(_0x82788a,_0x2d9e9a){const _0x551831=a35_0x3353,_0x17a6f2=_0x82788a();while(!![]){try{const _0x431354=parseInt(_0x551831(0x1e2))/0x1+parseInt(_0x551831(0x221))/0x2*(-parseInt(_0x551831(0x1ef))/0x3)+parseInt(_0x551831(0x205))/0x4+parseInt(_0x551831(0x1e5))/0x5+parseInt(_0x551831(0x213))/0x6+parseInt(_0x551831(0x1e7))/0x7*(-parseInt(_0x551831(0x1ff))/0x8)+-parseInt(_0x551831(0x200))/0x9;if(_0x431354===_0x2d9e9a)break;else _0x17a6f2['push'](_0x17a6f2['shift']());}catch(_0x13a1b2){_0x17a6f2['push'](_0x17a6f2['shift']());}}}(a35_0x288f,0x59d7b));function a35_0x3353(_0x4f34d3,_0x56fbd6){const _0x288fe4=a35_0x288f();return a35_0x3353=function(_0x335357,_0xea1231){_0x335357=_0x335357-0x1da;let _0x3f62dd=_0x288fe4[_0x335357];return _0x3f62dd;},a35_0x3353(_0x4f34d3,_0x56fbd6);}const {v4:uuidv4}=require('uuid'),{name,version}=require('../../../../package.json'),logPatcher=require(a35_0x47ed1f(0x209)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require(a35_0x47ed1f(0x1de)),{consoleHolder}=require(a35_0x47ed1f(0x230)),{getPlatformVersion}=require(a35_0x47ed1f(0x228)),{shouldProcessEventForTesthub}=require('../../../helpers/testhub/utils'),{isFunction}=require('lodash'),{patchConsoleLogger}=require(a35_0x47ed1f(0x1de));patchConsoleLogger(),exports[a35_0x47ed1f(0x212)]=()=>{const _0x5db114=a35_0x47ed1f,_0x4a452a={'YuvlH':_0x5db114(0x218),'OvKTC':function(_0x142cb8){return _0x142cb8();}};return{'ci':_0x4a452a[_0x5db114(0x22c)],'key':_0x4a452a[_0x5db114(0x1f0)](uuidv4),'version':version,'collector':_0x5db114(0x204)+name};},exports['getHookDetails']=_0x2153f9=>{const _0x3f96cb=a35_0x47ed1f,_0x3920cb={};_0x3920cb[_0x3f96cb(0x1f2)]=function(_0x36d7ce,_0x4c5571){return _0x36d7ce!==_0x4c5571;},_0x3920cb['ZJqOR']=_0x3f96cb(0x22d),_0x3920cb[_0x3f96cb(0x1f3)]=function(_0x59269b,_0x166ca6){return _0x59269b!==_0x166ca6;},_0x3920cb[_0x3f96cb(0x21e)]=_0x3f96cb(0x1fd),_0x3920cb[_0x3f96cb(0x214)]=function(_0x47e78a,_0x24725b){return _0x47e78a!==_0x24725b;},_0x3920cb[_0x3f96cb(0x207)]='hook';const _0x254ebc=_0x3920cb;if(!_0x2153f9||_0x254ebc[_0x3f96cb(0x1f2)](typeof _0x2153f9,_0x254ebc['ZJqOR']))return[null,null];if(_0x254ebc['SugDc'](_0x2153f9['indexOf'](_0x254ebc['wztEy']),-0x1)){const _0x2552ae=_0x2153f9[_0x3f96cb(0x20f)](_0x254ebc[_0x3f96cb(0x21e)]);return[_0x2552ae[0x0][_0x3f96cb(0x1fa)](0x0,-0x1)[_0x3f96cb(0x20f)]('\x22')[0x1],_0x2552ae[0x1][_0x3f96cb(0x20b)](0x1)];}else{if(_0x254ebc[_0x3f96cb(0x214)](_0x2153f9[_0x3f96cb(0x1f5)](_0x254ebc[_0x3f96cb(0x207)]),-0x1)){const _0x4954e9=_0x2153f9['split'](_0x254ebc[_0x3f96cb(0x207)]);return[_0x4954e9[0x0][_0x3f96cb(0x1fa)](0x0,-0x1)[_0x3f96cb(0x20f)]('\x22')[0x1],_0x2153f9];}}return[null,null];},exports['getHooksForTest']=_0x283361=>{const _0x3b5145=a35_0x47ed1f,_0x3394dc={'oZgJD':function(_0x5cc37f,_0x37c002){return _0x5cc37f(_0x37c002);},'PzsYJ':'_beforeAll','JdmjN':_0x3b5145(0x208),'sEDbG':_0x3b5145(0x1e6),'uSwov':_0x3b5145(0x1ee)};if(!_0x283361||!_0x283361[_0x3b5145(0x21c)])return[];const _0x439044=[];return[_0x3394dc[_0x3b5145(0x22b)],_0x3394dc['JdmjN'],_0x3394dc['sEDbG'],_0x3394dc[_0x3b5145(0x201)]]['forEach'](_0xa8cda7=>{const _0x4f0727=_0x3b5145,_0x1665bc=_0x283361[_0x4f0727(0x21c)][_0xa8cda7]||[];_0x1665bc[_0x4f0727(0x20c)](_0x151985=>{const _0x3458ec=_0x4f0727;_0x151985['hookAnalyticsId']&&!_0x3394dc[_0x3458ec(0x211)](isInternalHook,_0x151985['fn'])&&_0x439044[_0x3458ec(0x1f7)](_0x151985[_0x3458ec(0x1f6)]);});}),[..._0x439044,...exports['getHooksForTest'](_0x283361[_0x3b5145(0x21c)])];},exports[a35_0x47ed1f(0x1dc)]=_0x2d6ba4=>{const _0x54c93d=a35_0x47ed1f,_0x3b5150={'bZWBS':function(_0x1ac49a){return _0x1ac49a();},'VFVLP':function(_0x2a0499,_0x504dfe){return _0x2a0499===_0x504dfe;},'kahec':'_afterEach','MIrZo':function(_0x4743b4){return _0x4743b4();},'iEmiQ':_0x54c93d(0x20e),'GprkA':_0x54c93d(0x208),'DvNKA':_0x54c93d(0x1e6)};if(!_0x2d6ba4||!_0x2d6ba4[_0x54c93d(0x21c)])return;[_0x3b5150[_0x54c93d(0x1da)],_0x3b5150['GprkA'],_0x3b5150[_0x54c93d(0x22f)],_0x3b5150[_0x54c93d(0x232)]][_0x54c93d(0x20c)](_0x21ae83=>{const _0x189aef=_0x54c93d,_0x1aa9c0={'LKRkD':function(_0x8fb715){const _0x490c3a=a35_0x3353;return _0x3b5150[_0x490c3a(0x21d)](_0x8fb715);},'fEoak':function(_0xf2f5ed,_0x197037){const _0x2be789=a35_0x3353;return _0x3b5150[_0x2be789(0x1fe)](_0xf2f5ed,_0x197037);},'OVSUZ':_0x3b5150[_0x189aef(0x232)],'ZSDMD':function(_0x42561f){const _0x1a34a9=_0x189aef;return _0x3b5150[_0x1a34a9(0x22a)](_0x42561f);}},_0xec7eee=_0x2d6ba4[_0x189aef(0x21c)][_0x21ae83]||[];_0xec7eee[_0x189aef(0x20c)](_0x4b0ff3=>{const _0x270bed=_0x189aef;if(!_0x4b0ff3[_0x270bed(0x1f6)])_0x4b0ff3['hookAnalyticsId']=_0x1aa9c0[_0x270bed(0x1e8)](uuidv4);else _0x4b0ff3[_0x270bed(0x1fb)]&&_0x1aa9c0['fEoak'](_0x21ae83,_0x1aa9c0[_0x270bed(0x229)])&&(_0x4b0ff3[_0x270bed(0x1f6)]=_0x1aa9c0[_0x270bed(0x226)](uuidv4),delete _0x4b0ff3[_0x270bed(0x1fb)]);});}),exports['mapTestHooks'](_0x2d6ba4[_0x54c93d(0x21c)]);},exports[a35_0x47ed1f(0x22e)]=async(_0x361559,_0x180289)=>{const _0x3ea4a9=a35_0x47ed1f,_0x4bdfe4={'MtgzX':function(_0x13f4a4){return _0x13f4a4();},'VANMH':function(_0x13e459,_0x7fa6b3){return _0x13e459(_0x7fa6b3);},'aJUlh':'platformVersion','fIMOW':function(_0x435192,_0x19c2e0){return _0x435192(_0x19c2e0);},'pdDJA':function(_0x16d665,_0x117542){return _0x16d665===_0x117542;},'LbIWq':'browserstack','baoFF':_0x3ea4a9(0x1db),'cTjok':'TEST_PLATFORM'};try{if(!_0x4bdfe4['MtgzX'](shouldProcessEventForTesthub))return;const _0x7e2287=await _0x361559[_0x3ea4a9(0x219)](),_0x5b7187=await _0x361559[_0x3ea4a9(0x224)](),_0x253fed={},_0x4fdb1e=Object[_0x3ea4a9(0x1e4)](_0x5b7187[_0x3ea4a9(0x219)]()[_0x3ea4a9(0x1fc)]),_0x49219e={'product':_0x4bdfe4[_0x3ea4a9(0x21a)](getObservabilityLinkedProductName,_0x4fdb1e),'capabilities':_0x4fdb1e,'platform':_0x7e2287[_0x3ea4a9(0x231)](),'platform_version':_0x7e2287[_0x3ea4a9(0x21f)](_0x4bdfe4['aJUlh'])?_0x7e2287[_0x3ea4a9(0x21f)](_0x4bdfe4[_0x3ea4a9(0x202)]):_0x4bdfe4[_0x3ea4a9(0x216)](getPlatformVersion,_0x4bdfe4[_0x3ea4a9(0x1ec)](global['__cloud_provider___'],_0x4bdfe4[_0x3ea4a9(0x225)])),'browser':_0x7e2287[_0x3ea4a9(0x1ed)](),'browser_version':_0x7e2287[_0x3ea4a9(0x1f1)](),'session_id':_0x5b7187[_0x3ea4a9(0x233)]()};global[_0x3ea4a9(0x217)]?_0x253fed[global['__cloud_provider___']]=_0x49219e:_0x253fed[_0x4bdfe4[_0x3ea4a9(0x223)]]=_0x49219e,process[_0x3ea4a9(0x206)](_0x3ea4a9(0x1eb)+process[_0x3ea4a9(0x20d)],{'timestamp':new Date()[_0x3ea4a9(0x1e1)](),'level':null,'message':null,'kind':_0x4bdfe4[_0x3ea4a9(0x1e9)],'http_response':_0x253fed,'uuid':_0x180289});}catch(_0x3e75eb){_0x4bdfe4[_0x3ea4a9(0x21a)](debug,_0x3ea4a9(0x1f4)+_0x3e75eb);}},exports[a35_0x47ed1f(0x222)]=_0x49c1fa=>{const _0x989146=a35_0x47ed1f,_0x223e98={};_0x223e98[_0x989146(0x220)]=function(_0x855b02,_0x524735){return _0x855b02!==_0x524735;},_0x223e98[_0x989146(0x1df)]=_0x989146(0x20a),_0x223e98[_0x989146(0x1f8)]='passed',_0x223e98['AaDWt']=function(_0xcee571,_0x2084fa){return _0xcee571!==_0x2084fa;},_0x223e98[_0x989146(0x227)]=_0x989146(0x1f9);const _0x6b12ec=_0x223e98,_0x320a44=_0x49c1fa[_0x989146(0x215)][_0x989146(0x210)]((_0x1784cd,_0x53a6fb)=>{const _0x449a27=_0x989146,_0x347b35=exports[_0x449a27(0x222)](_0x53a6fb);return _0x347b35&&(_0x1784cd=_0x1784cd['concat'](_0x347b35)),_0x1784cd;},[]),_0x49bb67=_0x49c1fa[_0x989146(0x1e0)][_0x989146(0x1ea)](_0x53ee66=>{const _0xfff2c6=_0x989146,_0x390a57=_0x6b12ec[_0xfff2c6(0x220)](_0x53ee66[_0xfff2c6(0x203)],_0x6b12ec[_0xfff2c6(0x1df)])&&!_0x53ee66['markedStatus']&&_0x6b12ec['APkyD'](_0x53ee66[_0xfff2c6(0x21b)],_0x6b12ec[_0xfff2c6(0x1f8)])&&_0x6b12ec['AaDWt'](_0x53ee66[_0xfff2c6(0x21b)],_0x6b12ec[_0xfff2c6(0x227)])&&!_0x53ee66[_0xfff2c6(0x1e3)];return _0x390a57;});return _0x49bb67[_0x989146(0x1dd)](_0x320a44);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a36_0x4c640b=a36_0x2785;function a36_0x545c(){const _0xe3612b=['esCUT','5403811lXFAbA','1HQdGNg','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','bstackA11yShouldScan','TngFX','KvAXe','VOSCi','uQftB','../../helpers/performance/constants','../../helpers/accessibility-automation/helper','SwqMm','GbRHJ','afterAll','MbCll','wvIDU','qMzfS','aeXZL','../../helpers/helper','WkrjK','join','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','636MCZNnd','info','Passed','browserstackSessionName','Mocha','820sTEqzr','PVoVs','state','saveAccessibilityResultsWithRetry','finally','NUcRx','ENV_VAR','FYFkM','kzCPx','UMWPt','startMonitoring','../../helpers/testhub/constants','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','oridE','setGlobal','../../helpers/accessibility-automation/accessibilityRetryHelper','passed','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','cfELE','testAnalyticsId','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','command','oxXBf','push','\x20-\x20','sessionNameSet__','getCurrentUrl','shift','PNYFQ','xCLSt','err','now','Failed\x20to\x20store\x20session\x20name:\x20',',\x22level\x22:\x20\x22','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','4693257wBzbEO','env','util','thJwtToken','10aKaUux','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','start','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','app','mHcRM','eAKzZ','ISgLE','LNyCu','beforeAll','azrWu','993795saFZfQ','percyCaptureMode','getGlobal','\x20|\x20','PVSwT','__sessionFailed','rCvTU','error','Accessibility\x20scan\x20completed\x20successfully','appium:app','quitCount_','timeout','isAccessibilityPlatform','.\x20Error\x20:','govjm','bGYmg','spzgH','measureWrapper','ObservabilitySync:','then','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','SDK_HOOK','12715HOvpdK','Uxhsh','GUZFV','UXwvh','SESSION_STATUS','JWLAg','executeScript','winstonLogger','KRbTA','http:','1834148Juhfgm','pUCxD','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','iojmr','trjnp','zwkrO','BEUdp','Automate\x20test\x20case\x20execution\x20has\x20started.','protocol','PLkIT','debug','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','BROWSERSTACK_TESTHUB_JWT','ILXYr','dSjMH','8vXLjfY','wLVmP','capabilities','WETEl','__platformCaps','xykQc','jMnRx','lRADN','aUxFi','Edmyc','SYNC','index','session_','kunLR','mUBRm','../../helpers/globals','failed','isArray','zQXOL','__error_messages__','Failed:\x20','message','AzaUj','\x22}}','browserstackTestName','warn','BROWSERSTACK_TESTHUB_UUID','__drivers','../../helpers/logger','stringify','cFJau','accessibilityScanStarted','rribU','vZMGv','ysrTT','exvgL','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','AzOfK','kpQpu','dwkRy','pelnc','17457MOpvNZ','percy','driverCleanup','format','../../helpers/percy/utils','Accessibility\x20results\x20saved\x20successfully','__skipSessionName','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','hnqLn','16153248rsZmpX','QQFFv','SAVE_RESULTS','xyTcE','./test-observability/mochaUtils','length','../../helpers/performance/performance-tester','titlePath','sessionName','thTestRunUuid','end','currentTest','shouldScanTestForAccessibility','SESSION_NAME','XBbWN','grYaM','JVATM','IfVKj'];a36_0x545c=function(){return _0xe3612b;};return a36_0x545c();}function a36_0x2785(_0x500061,_0x452373){const _0x545c8f=a36_0x545c();return a36_0x2785=function(_0x278551,_0x30d86f){_0x278551=_0x278551-0xae;let _0x2c3681=_0x545c8f[_0x278551];return _0x2c3681;},a36_0x2785(_0x500061,_0x452373);}(function(_0x50fb6f,_0x48fd29){const _0xa9db76=a36_0x2785,_0x328b4e=_0x50fb6f();while(!![]){try{const _0x3c2015=-parseInt(_0xa9db76(0x12e))/0x1*(-parseInt(_0xa9db76(0xd9))/0x2)+-parseInt(_0xa9db76(0x111))/0x3*(parseInt(_0xa9db76(0x147))/0x4)+-parseInt(_0xa9db76(0xcf))/0x5*(parseInt(_0xa9db76(0x142))/0x6)+-parseInt(_0xa9db76(0x12d))/0x7*(parseInt(_0xa9db76(0xe8))/0x8)+-parseInt(_0xa9db76(0x16a))/0x9*(-parseInt(_0xa9db76(0x16e))/0xa)+parseInt(_0xa9db76(0xb9))/0xb+parseInt(_0xa9db76(0x11a))/0xc;if(_0x3c2015===_0x48fd29)break;else _0x328b4e['push'](_0x328b4e['shift']());}catch(_0x4c9956){_0x328b4e['push'](_0x328b4e['shift']());}}}(a36_0x545c,0x9c63a));const util=require(a36_0x4c640b(0x16c)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x4c640b(0x136)),accessibilityRetryHelper=require(a36_0x4c640b(0x156)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),{percyAutoCapture}=require(a36_0x4c640b(0x115)),{sendPlatformDetails}=require(a36_0x4c640b(0x11e)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a36_0x4c640b(0x13e)),PerformanceTester=require(a36_0x4c640b(0x120)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x4c640b(0x135)),globals=require(a36_0x4c640b(0xf7)),logger=require(a36_0x4c640b(0x104))[a36_0x4c640b(0xd6)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a36_0x4c640b(0x152));exports['mochaHooks']={'beforeAll'(){const _0x54f908=a36_0x4c640b,_0x25a678={'esCUT':function(_0x193c71,_0x404e44,_0x464335,_0x44cfb){return _0x193c71(_0x404e44,_0x464335,_0x44cfb);},'ILXYr':_0x54f908(0xf8),'aeXZL':_0x54f908(0xbc),'NUcRx':function(_0x154128,_0x6bacfd,_0x12df81){return _0x154128(_0x6bacfd,_0x12df81);},'PNYFQ':_0x54f908(0x157),'TngFX':function(_0x460837){return _0x460837();},'ygUvp':function(_0x20ed4e,_0x2146fc,_0x4cd6ce){return _0x20ed4e(_0x2146fc,_0x4cd6ce);},'xykQc':function(_0x523de8,_0x5e2c9b,_0xf7f72f){return _0x523de8(_0x5e2c9b,_0xf7f72f);},'kpQpu':_0x54f908(0xf3),'PVoVs':_0x54f908(0xb7)};PerformanceTester[_0x54f908(0x151)]();const _0x5050b1='browserstack internal helper hook';PerformanceTester[_0x54f908(0xca)](PerformanceSdkEvents[_0x54f908(0xce)],()=>{const _0x158f78=_0x54f908;global[_0x158f78(0xfb)]=[],global[_0x158f78(0xbe)]=![],global[_0x158f78(0x113)]=async()=>{const _0x437c56=_0x158f78;let _0x54e860=![];try{await global[_0x437c56(0x103)][0x0][_0x437c56(0xf4)],_0x54e860=!![],global[_0x437c56(0xbe)]?await _0x25a678[_0x437c56(0x12c)](markSessionStatus,global[_0x437c56(0x103)][0x0],_0x25a678[_0x437c56(0xe6)],global[_0x437c56(0xfb)][_0x437c56(0x140)](_0x25a678[_0x437c56(0x13d)])):await _0x25a678[_0x437c56(0x14c)](markSessionStatus,global[_0x437c56(0x103)][0x0],_0x25a678[_0x437c56(0x163)]);}catch(_0x5dd6d0){logger[_0x437c56(0xe3)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x5dd6d0);}global[_0x437c56(0xfb)]=[],global[_0x437c56(0xbe)]=![];if(_0x54e860)try{try{_0x25a678[_0x437c56(0x131)](shouldProcessEventForTesthub)&&(global[_0x437c56(0x103)][0x0]&&await _0x25a678['ygUvp'](sendPlatformDetails,global[_0x437c56(0x103)][0x0],this['currentTest']?this[_0x437c56(0x125)][_0x437c56(0x15a)]:null));}catch(_0x139266){logger[_0x437c56(0xe3)](_0x437c56(0x15b)+_0x139266);}await global[_0x437c56(0x103)][0x0]['initQuit']();}catch(_0x363ae1){logger['debug'](_0x437c56(0x158)+_0x363ae1);}};},{'platform':_0x25a678[_0x54f908(0xed)](nestedKeyValue,global[_0x54f908(0xec)],[_0x25a678[_0x54f908(0x10e)]]),'hookType':_0x25a678[_0x54f908(0x148)]})();},'beforeEach'(_0x2f2d2e){const _0x124f38=a36_0x4c640b,_0x278f47={'AzaUj':function(_0x484363,_0x3922b6){return _0x484363>_0x3922b6;},'iojmr':_0x124f38(0x15f),'wLVmP':function(_0x454139,_0x1b8e24,_0x1e054e){return _0x454139(_0x1b8e24,_0x1e054e);},'jNrLM':'bstackA11yShouldScan','JWLAg':function(_0x41e309){return _0x41e309();},'IfVKj':_0x124f38(0xc5),'uQftB':function(_0x50efe2,_0x7b98a1){return _0x50efe2===_0x7b98a1;},'eAKzZ':_0x124f38(0xd8),'uxlRQ':'https:','AzOfK':_0x124f38(0x10c),'HfqCo':_0x124f38(0xe0),'BEUdp':_0x124f38(0x100),'kzCPx':function(_0x6cc81d,_0xc139c7,_0xa33165){return _0x6cc81d(_0xc139c7,_0xa33165);},'pelnc':_0x124f38(0xf3),'KvAXe':'beforeEach'};globals[_0x124f38(0x155)](_0x278f47[_0x124f38(0xdf)],this[_0x124f38(0x125)][_0x124f38(0x121)]()[_0x124f38(0x140)](_0x278f47[_0x124f38(0xdc)])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x124f38(0xce)],()=>{const _0x582d36=_0x124f38,_0x1db34d={'dSjMH':function(_0x2a9911,_0x3f5c49){const _0x3d47c0=a36_0x2785;return _0x278f47[_0x3d47c0(0xfe)](_0x2a9911,_0x3f5c49);},'exvgL':_0x278f47[_0x582d36(0xdc)],'XBbWN':function(_0x33a2ef,_0x1749bf,_0x154811){const _0x4009b0=_0x582d36;return _0x278f47[_0x4009b0(0xe9)](_0x33a2ef,_0x1749bf,_0x154811);},'cFJau':_0x278f47['jNrLM'],'LNyCu':function(_0x3a65b9){const _0x119b60=_0x582d36;return _0x278f47[_0x119b60(0xd4)](_0x3a65b9);},'lRADN':_0x278f47[_0x582d36(0x12b)],'PLkIT':function(_0x2f4f81,_0x13f4d6){const _0x1b472e=_0x582d36;return _0x278f47[_0x1b472e(0x134)](_0x2f4f81,_0x13f4d6);},'xCLSt':_0x278f47[_0x582d36(0xb4)],'zwkrO':function(_0x873f62,_0x5af606){const _0x207e38=_0x582d36;return _0x278f47[_0x207e38(0x134)](_0x873f62,_0x5af606);},'KRbTA':_0x278f47['uxlRQ'],'GbRHJ':_0x278f47[_0x582d36(0x10d)],'hnqLn':_0x278f47['HfqCo'],'dwkRy':function(_0x4e262d){const _0x258c53=_0x582d36;return _0x278f47[_0x258c53(0xd4)](_0x4e262d);}},_0x53a463='browserstack internal helper hook';new Promise(async _0x324c5a=>{const _0x203558=_0x582d36;let _0x335dd8=!![];try{_0x1db34d[_0x203558(0xe7)](global[_0x203558(0x103)][_0x203558(0x11f)],0x1)&&(await global[_0x203558(0x113)](),global[_0x203558(0x103)][_0x203558(0x162)]()),_0x1db34d['dSjMH'](global[_0x203558(0x103)][0x0][_0x203558(0xc3)],0x0)&&(_0x335dd8=![],await global[_0x203558(0x113)]());}catch(_0x2b89d1){logger[_0x203558(0xe3)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x2b89d1);}try{Array[_0x203558(0xf9)](global['__drivers'])&&global['__drivers'][0x0]&&(global[_0x203558(0x103)][0x0][_0x203558(0x145)]=this[_0x203558(0x125)]['titlePath']()[_0x203558(0x140)](_0x1db34d[_0x203558(0x10b)])),global[_0x203558(0x145)]=this[_0x203558(0x125)]['titlePath']()[_0x203558(0x140)](_0x1db34d[_0x203558(0x10b)]);}catch(_0x372105){logger[_0x203558(0xe3)](_0x203558(0x167)+_0x372105);}this[_0x203558(0x125)][_0x203558(0x126)]=_0x1db34d[_0x203558(0x128)](shouldScanTestForAccessibility,this[_0x203558(0x125)][_0x203558(0x121)](),!![]),globals[_0x203558(0x155)](_0x1db34d[_0x203558(0x106)],this[_0x203558(0x125)]['shouldScanTestForAccessibility']),this[_0x203558(0x125)][_0x203558(0x107)]=!![];if(_0x1db34d[_0x203558(0xb6)](isAccessibilityAutomationSession)&&_0x335dd8&&Array['isArray'](global[_0x203558(0x103)])&&_0x1db34d[_0x203558(0xe7)](global[_0x203558(0x103)][_0x203558(0x11f)],0x0)&&globals[_0x203558(0xbb)](_0x1db34d[_0x203558(0xef)]))try{const _0x5fea3c=await global['__drivers'][0x0]['session_'];if(_0x5fea3c){let _0x5d9785=!![];const _0x4f72b6=await global[_0x203558(0x103)][0x0][_0x203558(0x161)]();let _0x459139;try{_0x459139=new URL(_0x4f72b6);}catch(_0x3dcf32){_0x5d9785=![];}_0x5d9785=_0x1db34d[_0x203558(0xe2)](_0x459139[_0x203558(0xe1)],_0x1db34d[_0x203558(0x164)])||_0x1db34d[_0x203558(0xde)](_0x459139[_0x203558(0xe1)],_0x1db34d[_0x203558(0xd7)]),_0x5d9785&&(this['currentTest']['shouldScanTestForAccessibility']&&logger['info'](_0x1db34d[_0x203558(0x138)])),this[_0x203558(0x125)][_0x203558(0x107)]=this[_0x203558(0x125)][_0x203558(0x126)],this[_0x203558(0x125)][_0x203558(0x126)]&&logger[_0x203558(0x143)](_0x1db34d[_0x203558(0x119)]);}}catch(_0x3b27ab){logger['error'](_0x203558(0xae)+util[_0x203558(0x114)](_0x3b27ab));}_0x1db34d['LNyCu'](_0x324c5a);})[_0x582d36(0xcc)](()=>{const _0x42f41a=_0x582d36;_0x1db34d[_0x42f41a(0x10f)](_0x2f2d2e);});},{'platform':_0x278f47[_0x124f38(0x14f)](nestedKeyValue,global[_0x124f38(0xec)],[_0x278f47[_0x124f38(0x110)]]),'hookType':_0x278f47[_0x124f38(0x132)]})();},'afterEach'(_0x41eefc){const _0xdfb4ed=a36_0x4c640b,_0x34bf9c={'cfELE':_0xdfb4ed(0x15f),'TVLbr':function(_0xa3e8b9,_0x1b897b){return _0xa3e8b9!==_0x1b897b;},'IgLXV':_0xdfb4ed(0x157),'MbCll':function(_0x15c810,_0x36896b,_0x1f45a6){return _0x15c810(_0x36896b,_0x1f45a6);},'JVATM':function(_0x5e5cdc,_0x32f18c){return _0x5e5cdc+_0x32f18c;},'trjnp':_0xdfb4ed(0xfc),'wvIDU':'error','kunLR':_0xdfb4ed(0x144),'rPeyC':_0xdfb4ed(0x143),'Edmyc':function(_0x5bb75a,_0x5a652c){return _0x5bb75a>_0x5a652c;},'Uxhsh':function(_0x4d3b40,_0x10f23a){return _0x4d3b40===_0x10f23a;},'aUxFi':'testcase','spzgH':function(_0x32501a,_0x3d7d8b){return _0x32501a>_0x3d7d8b;},'WkrjK':_0xdfb4ed(0xc2),'GUZFV':function(_0x2bd0a8,_0x4489c2,_0x387c48,_0x48b028){return _0x2bd0a8(_0x4489c2,_0x387c48,_0x48b028);},'jMnRx':_0xdfb4ed(0xc5),'xyTcE':_0xdfb4ed(0x130),'qMzfS':_0xdfb4ed(0xdb),'SwqMm':_0xdfb4ed(0xb0),'CrhxN':'afterTest','zQXOL':_0xdfb4ed(0xc1),'oxXBf':_0xdfb4ed(0xb1),'UXwvh':_0xdfb4ed(0x116),'grytp':_0xdfb4ed(0x141),'mUBRm':_0xdfb4ed(0x153),'WETEl':function(_0xbf4152){return _0xbf4152();},'grYaM':function(_0x526795,_0x574e9d,_0xd1210){return _0x526795(_0x574e9d,_0xd1210);},'bGYmg':_0xdfb4ed(0xe3),'pUCxD':function(_0x1eb857){return _0x1eb857();},'oridE':function(_0x4ccca7){return _0x4ccca7();},'ISgLE':_0xdfb4ed(0x146),'uyecZ':_0xdfb4ed(0xf3),'vZMGv':'afterEach'},_0x5a271b='browserstack internal helper hook';this[_0xdfb4ed(0xc4)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x34bf9c[_0xdfb4ed(0xb5)]]),global[_0xdfb4ed(0x122)]=this['currentTest'][_0xdfb4ed(0x121)]()['join'](_0x34bf9c['cfELE']),PerformanceTester[_0xdfb4ed(0xca)](PerformanceSdkEvents[_0xdfb4ed(0xce)],()=>{const _0x202fd4={'govjm':function(_0xeb3b25){const _0xb2950b=a36_0x2785;return _0x34bf9c[_0xb2950b(0x154)](_0xeb3b25);}},_0x38eb59=async(_0x5a60d3,_0x28f7a7)=>{const _0x1a8805=a36_0x2785;await global['__drivers'][0x0][_0x1a8805(0xd5)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x5a60d3+_0x1a8805(0x168)+_0x28f7a7+_0x1a8805(0xff));};new Promise(async _0x12cd64=>{const _0x250c99=a36_0x2785,_0x15d039={'mHcRM':_0x34bf9c[_0x250c99(0x159)],'FXTzc':function(_0x47661b,_0x402541){return _0x34bf9c['TVLbr'](_0x47661b,_0x402541);},'rribU':_0x34bf9c['IgLXV'],'PVSwT':function(_0x281bef,_0x52f2dd,_0xdef0ca){return _0x34bf9c['MbCll'](_0x281bef,_0x52f2dd,_0xdef0ca);},'pKjDZ':function(_0x1773ac,_0x57b07d){const _0x2198e9=_0x250c99;return _0x34bf9c[_0x2198e9(0x12a)](_0x1773ac,_0x57b07d);},'VOSCi':_0x34bf9c[_0x250c99(0xdd)],'PjjNP':_0x34bf9c[_0x250c99(0x13b)],'UMWPt':_0x34bf9c[_0x250c99(0xf5)],'gnLEW':_0x34bf9c['rPeyC']};try{_0x34bf9c[_0x250c99(0xf1)](global[_0x250c99(0x103)]['length'],0x1)&&(await global[_0x250c99(0x113)](),global[_0x250c99(0x103)][_0x250c99(0x162)](),global[_0x250c99(0xfb)]=[],global[_0x250c99(0xbe)]=![]);try{if(global[_0x250c99(0x112)]&&_0x34bf9c[_0x250c99(0xd0)](global[_0x250c99(0xba)],_0x34bf9c['aUxFi'])&&global[_0x250c99(0x103)][0x0]){const _0x4b8fa3=_0x34bf9c[_0x250c99(0xc9)](global[_0x250c99(0xea)][_0x250c99(0x11f)],0x0)?!!global[_0x250c99(0xea)][0x0][_0x250c99(0xb2)]||!!global[_0x250c99(0xea)][0x0][_0x34bf9c[_0x250c99(0x13f)]]:![],_0x142a61={};_0x142a61[_0x250c99(0xb2)]=_0x4b8fa3,await _0x34bf9c[_0x250c99(0xd1)](percyAutoCapture,global[_0x250c99(0x103)][0x0],_0x34bf9c[_0x250c99(0xf0)],_0x142a61);}}catch(_0x491e77){logger[_0x250c99(0xe3)](_0x250c99(0xcd)+_0x491e77);}!global[_0x250c99(0x117)]&&(await PerformanceTester[_0x250c99(0xca)](PerformanceAutEvents[_0x250c99(0x127)],async()=>{const _0xc0e326=_0x250c99;await global['__drivers'][0x0][_0xc0e326(0xd5)](_0xc0e326(0x118)+JSON[_0xc0e326(0x105)](this[_0xc0e326(0x125)][_0xc0e326(0x121)]()[_0xc0e326(0x140)](_0x15d039[_0xc0e326(0xb3)]))+'}}');})(),global[_0x250c99(0x103)][0x0][_0x250c99(0x160)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x250c99(0xd3)],async()=>{const _0xa447b=_0x250c99,_0x5d8fb8=_0x15d039['FXTzc'](this['currentTest'][_0xa447b(0x149)],_0x15d039[_0xa447b(0x108)]);_0x5d8fb8?(global[_0xa447b(0xbe)]=!![],global[_0xa447b(0xfb)][_0xa447b(0x15e)](this[_0xa447b(0x125)][_0xa447b(0x165)]['message']),await _0x15d039[_0xa447b(0xbd)](_0x38eb59,JSON[_0xa447b(0x105)](_0x15d039['pKjDZ'](_0x15d039[_0xa447b(0x133)],this[_0xa447b(0x125)][_0xa447b(0x165)][_0xa447b(0xfd)])),_0x15d039['PjjNP'])):await _0x15d039['PVSwT'](_0x38eb59,JSON[_0xa447b(0x105)](_0x15d039[_0xa447b(0x150)]),_0x15d039['gnLEW']);})();}catch(_0x20d14b){logger['debug'](_0x250c99(0x169)+_0x20d14b);}try{if(this[_0x250c99(0x125)]['accessibilityScanStarted']&&globals[_0x250c99(0xbb)](_0x34bf9c[_0x250c99(0xee)])&&globals[_0x250c99(0xbb)](_0x34bf9c[_0x250c99(0x11d)])){logger[_0x250c99(0x143)](_0x34bf9c[_0x250c99(0x13c)]);const _0x5a02dc={};_0x5a02dc[_0x250c99(0x123)]=this[_0x250c99(0x125)]['testAnalyticsId'],_0x5a02dc['thBuildUuid']=process[_0x250c99(0x16b)][testHubConstants[_0x250c99(0x14d)][_0x250c99(0x102)]],_0x5a02dc[_0x250c99(0x16d)]=process['env'][testHubConstants[_0x250c99(0x14d)][_0x250c99(0xe5)]];const _0x21b26a=_0x5a02dc;logger[_0x250c99(0xe3)](_0x250c99(0x12f)+JSON[_0x250c99(0x105)](_0x21b26a)),logger[_0x250c99(0xe3)](_0x34bf9c[_0x250c99(0x137)]);const _0x2cf022={};_0x2cf022[_0x250c99(0x15c)]=_0x34bf9c['CrhxN'];const _0x2cbae1=await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x287e39=_0x250c99;return await accessibilityRetryHelper['performScanWithRetry'](global[_0x287e39(0x103)][0x0],global['browserstackSessionName']);},_0x2cf022)();_0x2cbae1?logger[_0x250c99(0xe3)](_0x34bf9c[_0x250c99(0xfa)]):logger[_0x250c99(0x101)](_0x34bf9c[_0x250c99(0x15d)]);const _0x48ca5d=await PerformanceTester[_0x250c99(0xca)](PerformanceA11yEvents[_0x250c99(0x11c)],async()=>{const _0x361c5f=_0x250c99;return await accessibilityRetryHelper[_0x361c5f(0x14a)](global[_0x361c5f(0x103)][0x0],_0x21b26a);})();_0x48ca5d?logger[_0x250c99(0xe3)](_0x34bf9c[_0x250c99(0xd2)]):logger[_0x250c99(0x101)](_0x34bf9c['grytp']),logger[_0x250c99(0x143)](_0x34bf9c[_0x250c99(0xf6)]);}}catch(_0x1bfc7c){logger[_0x250c99(0xc0)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x250c99(0x125)][_0x250c99(0x121)]()+_0x250c99(0xc6),_0x1bfc7c);}try{try{if(_0x34bf9c['WETEl'](shouldProcessEventForTesthub)){global['__drivers'][0x0]&&await _0x34bf9c[_0x250c99(0x129)](sendPlatformDetails,global[_0x250c99(0x103)][0x0],this['currentTest']?this[_0x250c99(0x125)][_0x250c99(0x15a)]:null);if(_0x34bf9c[_0x250c99(0xeb)](isBrowserstackInfra)){PerformanceTester[_0x250c99(0xaf)](PerformanceO11yEvents[_0x250c99(0xf2)]);const _0x3caa90=_0x250c99(0xcb)+Date[_0x250c99(0x166)]();await _0x34bf9c[_0x250c99(0x129)](_0x38eb59,JSON[_0x250c99(0x105)](_0x3caa90),_0x34bf9c[_0x250c99(0xc8)]),PerformanceTester['end'](PerformanceO11yEvents[_0x250c99(0xf2)]);}}}catch(_0xd50da6){logger[_0x250c99(0xe3)](_0x250c99(0xe4)+_0xd50da6),PerformanceTester[_0x250c99(0x124)](PerformanceO11yEvents['SYNC'],![],_0xd50da6);}_0x34bf9c['spzgH'](global[_0x250c99(0x103)][0x0][_0x250c99(0xc3)],0x0)&&await global[_0x250c99(0x113)]();}catch(_0x34482f){logger[_0x250c99(0xe3)](_0x250c99(0x158)+_0x34482f);}_0x34bf9c[_0x250c99(0xda)](_0x12cd64);})['then'](()=>{const _0x517f9a=a36_0x2785;_0x202fd4[_0x517f9a(0xc7)](_0x41eefc);});},{'platform':_0x34bf9c[_0xdfb4ed(0x13a)](nestedKeyValue,global[_0xdfb4ed(0xec)],[_0x34bf9c['uyecZ']]),'hookType':_0x34bf9c[_0xdfb4ed(0x109)]})();},'afterAll'(_0x16e21c){const _0x314e60=a36_0x4c640b,_0x5baedb={'OGoQc':function(_0x2be411){return _0x2be411();},'QQFFv':function(_0x14081e){return _0x14081e();},'ysrTT':_0x314e60(0x146),'azrWu':function(_0x2e6020,_0x18b00c,_0x204279){return _0x2e6020(_0x18b00c,_0x204279);},'rCvTU':'index','qDtYw':_0x314e60(0x139)},_0x35877d='browserstack internal helper hook';this[_0x314e60(0xc4)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x5baedb[_0x314e60(0x10a)]]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x314e60(0xce)],()=>{const _0x51b835=_0x314e60,_0x247473={'FYFkM':function(_0x4f62c8){const _0x4d7d58=a36_0x2785;return _0x5baedb[_0x4d7d58(0x11b)](_0x4f62c8);}};new Promise(async _0x910881=>{const _0x321c47=a36_0x2785;await global[_0x321c47(0x113)](),_0x247473[_0x321c47(0x14e)](_0x910881);})[_0x51b835(0xcc)]()[_0x51b835(0x14b)](()=>{_0x5baedb['OGoQc'](_0x16e21c);});},{'platform':_0x5baedb[_0x314e60(0xb8)](nestedKeyValue,global['__platformCaps'],[_0x5baedb[_0x314e60(0xbf)]]),'hookType':_0x5baedb['qDtYw']})();}};
|
|
1
|
+
function a36_0x56a3(){const _0x2d1571=['sessionNameSet__','LRjUe','message','thBuildUuid','percy','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','measureWrapper','afterAll','../../helpers/performance/performance-tester','shouldScanTestForAccessibility','29666kmXxhA','1835ZmxGrt','currentTest','browserstackSessionName','AvpnU','4746LcoVvK','UcIcS','http:','SYNC','BJzjm','MVxiS','yVyaB','xfnGQ','RDriB','hwkDt','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','error','SLIrx','util','uIppZ','ZcAEp','DQJog','eJqGy','quitCount_','executeScript','bmmzt','\x20|\x20','isAccessibilityPlatform','accessibilityScanStarted','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','11UHtQKj','sUYyz','browserstackTestName','../../helpers/logger','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','debug','Accessibility\x20results\x20saved\x20successfully','thTestRunUuid','RKmOA','ObservabilitySync:','mZzQz','WrqPI','jkepy','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','9fQVLYM','efPuO','__platformCaps','BIYVK','hWOsE','SAVE_RESULTS','err','Diqzh','UvvGW','command','Passed','vHdGe','KAnbS','PxaCs','../utils/constants','testAnalyticsId','XhCPt','Automate\x20test\x20case\x20execution\x20has\x20started.','__error_messages__','STPRs','YBMll','JLtKS','plKTA','\x20-\x20','afterEach','XJaOW','778BhWjEG','3615xytWhu','\x22}}','SihYh','YRtwZ','shift','timeout','performScanWithRetry','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','testcase','jZyXN','startMonitoring','WkbWx','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','qLhFx','wUipB','percyCaptureMode','XfeAs','thJwtToken','yiNpY','geuce','SESSION_STATUS','winstonLogger','isArray','beforeAll','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','10qeRHKR','dXTUE','kRTCw','titlePath','1759980wkXJHC','UjHZu','then','ncWrV','pkMGM','hAcCE','./test-observability/mochaUtils','9985941PueKHE','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','join','MbgRR','ENV_VAR','BfmVx','Failed\x20to\x20store\x20session\x20name:\x20','push','2481492DGnRRs','end','hzHEn','app','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.',',\x22level\x22:\x20\x22','session_','state','vvCqj','byOLl','PERFORM_SCAN','initQuit','GVmsv','https:','qAVAo','protocol','omSTv','Failed:\x20','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','.\x20Error\x20:','QZgxe','vYlmT','OGssl','saveAccessibilityResultsWithRetry','NrdTP','qcHJp','afterTest','DbDYh','info','awSfw','setGlobal','SESSION_NAME','__sessionFailed','finally','__drivers','env','VWPXM','rYbYk','1584IqQcyA','index','WfqtA','../../helpers/testhub/constants','bstackA11yShouldScan','xwCHd','ebmXV','xfKoB','warn','HEilD','../../helpers/percy/utils','ufxiE','driverCleanup','wkOpK','length','../../helpers/globals','52693121wEGAqM','zSzqm','vYBcD','getGlobal','__skipSessionName','giiRJ','IFgAl','SDK_HOOK','stringify','kUheK','capabilities'];a36_0x56a3=function(){return _0x2d1571;};return a36_0x56a3();}function a36_0xac0b(_0x277d0f,_0x159695){const _0x56a364=a36_0x56a3();return a36_0xac0b=function(_0xac0bc8,_0x55148b){_0xac0bc8=_0xac0bc8-0xb2;let _0x34dbc1=_0x56a364[_0xac0bc8];return _0x34dbc1;},a36_0xac0b(_0x277d0f,_0x159695);}const a36_0x5b1763=a36_0xac0b;(function(_0x4396d7,_0x31286d){const _0x5ed9cf=a36_0xac0b,_0x57f6c9=_0x4396d7();while(!![]){try{const _0x11bedc=-parseInt(_0x5ed9cf(0x112))/0x1*(-parseInt(_0x5ed9cf(0x157))/0x2)+-parseInt(_0x5ed9cf(0x13d))/0x3*(-parseInt(_0x5ed9cf(0xb6))/0x4)+-parseInt(_0x5ed9cf(0x158))/0x5*(-parseInt(_0x5ed9cf(0x116))/0x6)+parseInt(_0x5ed9cf(0x111))/0x7*(parseInt(_0x5ed9cf(0xec))/0x8)+parseInt(_0x5ed9cf(0xbd))/0x9*(parseInt(_0x5ed9cf(0xb2))/0xa)+-parseInt(_0x5ed9cf(0x12f))/0xb*(-parseInt(_0x5ed9cf(0xc5))/0xc)+-parseInt(_0x5ed9cf(0xfc))/0xd;if(_0x11bedc===_0x31286d)break;else _0x57f6c9['push'](_0x57f6c9['shift']());}catch(_0x22beb4){_0x57f6c9['push'](_0x57f6c9['shift']());}}}(a36_0x56a3,0xacd00));const util=require(a36_0x5b1763(0x123)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),accessibilityRetryHelper=require('../../helpers/accessibility-automation/accessibilityRetryHelper'),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x5b1763(0x14b)),{percyAutoCapture}=require(a36_0x5b1763(0xf6)),{sendPlatformDetails}=require(a36_0x5b1763(0xbc)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x5b1763(0x10f)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),globals=require(a36_0x5b1763(0xfb)),logger=require(a36_0x5b1763(0x132))[a36_0x5b1763(0x16d)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a36_0x5b1763(0xef));exports['mochaHooks']={'beforeAll'(){const _0x5b7144=a36_0x5b1763,_0x928328={'uIppZ':function(_0x7c6b45,_0x2d2381,_0x302d83,_0x299870){return _0x7c6b45(_0x2d2381,_0x302d83,_0x299870);},'xfnGQ':'failed','IFgAl':_0x5b7144(0x12b),'yiNpY':function(_0x537f31,_0x56045a,_0x417e19){return _0x537f31(_0x56045a,_0x417e19);},'XfeAs':'passed','WenNk':function(_0x437c33){return _0x437c33();},'ykdMr':'index','awSfw':_0x5b7144(0x16f)};PerformanceTester[_0x5b7144(0x162)]();const _0x521869='browserstack internal helper hook';PerformanceTester[_0x5b7144(0x10d)](PerformanceSdkEvents[_0x5b7144(0x103)],()=>{const _0x1616c5=_0x5b7144,_0x3566c7={'KAnbS':function(_0x53e8d4,_0x250a8c,_0x50c699,_0x2e8e22){const _0x54fcac=a36_0xac0b;return _0x928328[_0x54fcac(0x124)](_0x53e8d4,_0x250a8c,_0x50c699,_0x2e8e22);},'ebmXV':_0x928328[_0x1616c5(0x11d)],'bmmzt':_0x928328[_0x1616c5(0x102)],'UcIcS':function(_0xeb2ac0,_0x199981,_0x127083){const _0x586022=_0x1616c5;return _0x928328[_0x586022(0x16a)](_0xeb2ac0,_0x199981,_0x127083);},'rSclP':_0x928328[_0x1616c5(0x168)],'GVmsv':function(_0x470f4a){return _0x928328['WenNk'](_0x470f4a);}};global[_0x1616c5(0x14f)]=[],global[_0x1616c5(0xe6)]=![],global[_0x1616c5(0xf8)]=async()=>{const _0x55d819=_0x1616c5;let _0x475a4a=![];try{await global['__drivers'][0x0][_0x55d819(0xcc)],_0x475a4a=!![],global[_0x55d819(0xe6)]?await _0x3566c7[_0x55d819(0x149)](markSessionStatus,global[_0x55d819(0xe8)][0x0],_0x3566c7[_0x55d819(0xf2)],global[_0x55d819(0x14f)][_0x55d819(0xbf)](_0x3566c7[_0x55d819(0x12a)])):await _0x3566c7[_0x55d819(0x117)](markSessionStatus,global[_0x55d819(0xe8)][0x0],_0x3566c7['rSclP']);}catch(_0x2ed2b4){logger[_0x55d819(0x134)](_0x55d819(0x170)+_0x2ed2b4);}global[_0x55d819(0x14f)]=[],global['__sessionFailed']=![];if(_0x475a4a)try{try{_0x3566c7[_0x55d819(0xd2)](shouldProcessEventForTesthub)&&(global[_0x55d819(0xe8)][0x0]&&await _0x3566c7[_0x55d819(0x117)](sendPlatformDetails,global[_0x55d819(0xe8)][0x0],this['currentTest']?this[_0x55d819(0x113)][_0x55d819(0x14c)]:null));}catch(_0x547f5f){logger[_0x55d819(0x134)](_0x55d819(0x120)+_0x547f5f);}await global[_0x55d819(0xe8)][0x0][_0x55d819(0xd1)]();}catch(_0x963202){logger[_0x55d819(0x134)](_0x55d819(0xc9)+_0x963202);}};},{'platform':_0x928328[_0x5b7144(0x16a)](nestedKeyValue,global[_0x5b7144(0x13f)],[_0x928328['ykdMr']]),'hookType':_0x928328[_0x5b7144(0xe3)]})();},'beforeEach'(_0x4fa572){const _0x2d2f23=a36_0x5b1763,_0x4aa53f={'zSzqm':function(_0x40bff4,_0x8ff8db){return _0x40bff4>_0x8ff8db;},'xwCHd':_0x2d2f23(0x154),'ceilA':function(_0x227566,_0x2700ba,_0x8b4bb8){return _0x227566(_0x2700ba,_0x8b4bb8);},'HEilD':_0x2d2f23(0xf0),'JLtKS':function(_0x41ac6e){return _0x41ac6e();},'qLhFx':_0x2d2f23(0x12c),'kkPsf':function(_0x56bc76,_0x339fc0){return _0x56bc76===_0x339fc0;},'PxaCs':_0x2d2f23(0x118),'vHdGe':_0x2d2f23(0xd3),'IVpeK':_0x2d2f23(0xca),'YRtwZ':_0x2d2f23(0x14e),'JlUVL':function(_0x4b2dd7){return _0x4b2dd7();},'ufxiE':_0x2d2f23(0x131),'BIYVK':function(_0x2c110e,_0x2e2e14,_0x3efdfe){return _0x2c110e(_0x2e2e14,_0x3efdfe);},'pNhTC':_0x2d2f23(0xed),'UvvGW':'beforeEach'};globals[_0x2d2f23(0xe4)](_0x4aa53f[_0x2d2f23(0xf7)],this[_0x2d2f23(0x113)][_0x2d2f23(0xb5)]()[_0x2d2f23(0xbf)](_0x4aa53f['xwCHd'])),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x2d2f23(0x103)],()=>{const _0x15a139=_0x2d2f23,_0x129612={'xfKoB':function(_0x529a36){return _0x4aa53f['JlUVL'](_0x529a36);}},_0x4169e8='browserstack internal helper hook';new Promise(async _0x2b8c73=>{const _0x5aab5d=a36_0xac0b;let _0x12ffcf=!![];try{_0x4aa53f['zSzqm'](global[_0x5aab5d(0xe8)][_0x5aab5d(0xfa)],0x1)&&(await global['driverCleanup'](),global[_0x5aab5d(0xe8)][_0x5aab5d(0x15c)]()),_0x4aa53f[_0x5aab5d(0xfd)](global[_0x5aab5d(0xe8)][0x0]['quitCount_'],0x0)&&(_0x12ffcf=![],await global[_0x5aab5d(0xf8)]());}catch(_0x2da297){logger[_0x5aab5d(0x134)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x2da297);}try{Array[_0x5aab5d(0x16e)](global[_0x5aab5d(0xe8)])&&global[_0x5aab5d(0xe8)][0x0]&&(global[_0x5aab5d(0xe8)][0x0][_0x5aab5d(0x114)]=this[_0x5aab5d(0x113)]['titlePath']()[_0x5aab5d(0xbf)](_0x4aa53f[_0x5aab5d(0xf1)])),global['browserstackSessionName']=this[_0x5aab5d(0x113)][_0x5aab5d(0xb5)]()[_0x5aab5d(0xbf)](_0x4aa53f[_0x5aab5d(0xf1)]);}catch(_0x118aa0){logger[_0x5aab5d(0x134)](_0x5aab5d(0xc3)+_0x118aa0);}this[_0x5aab5d(0x113)]['shouldScanTestForAccessibility']=_0x4aa53f['ceilA'](shouldScanTestForAccessibility,this[_0x5aab5d(0x113)][_0x5aab5d(0xb5)](),!![]),globals['setGlobal'](_0x4aa53f[_0x5aab5d(0xf5)],this[_0x5aab5d(0x113)]['shouldScanTestForAccessibility']),this[_0x5aab5d(0x113)][_0x5aab5d(0x12d)]=!![];if(_0x4aa53f[_0x5aab5d(0x152)](isAccessibilityAutomationSession)&&_0x12ffcf&&Array['isArray'](global[_0x5aab5d(0xe8)])&&_0x4aa53f[_0x5aab5d(0xfd)](global[_0x5aab5d(0xe8)]['length'],0x0)&&globals['getGlobal'](_0x4aa53f[_0x5aab5d(0x165)]))try{const _0x5cbc1a=await global['__drivers'][0x0]['session_'];if(_0x5cbc1a){let _0xd1a0b7=!![];const _0x122a31=await global['__drivers'][0x0]['getCurrentUrl']();let _0x177f4b;try{_0x177f4b=new URL(_0x122a31);}catch(_0x266ee5){_0xd1a0b7=![];}_0xd1a0b7=_0x4aa53f['kkPsf'](_0x177f4b[_0x5aab5d(0xd5)],_0x4aa53f[_0x5aab5d(0x14a)])||_0x4aa53f['kkPsf'](_0x177f4b[_0x5aab5d(0xd5)],_0x4aa53f[_0x5aab5d(0x148)]),_0xd1a0b7&&(this[_0x5aab5d(0x113)][_0x5aab5d(0x110)]&&logger[_0x5aab5d(0xe2)](_0x4aa53f['IVpeK'])),this[_0x5aab5d(0x113)][_0x5aab5d(0x12d)]=this[_0x5aab5d(0x113)][_0x5aab5d(0x110)],this[_0x5aab5d(0x113)][_0x5aab5d(0x110)]&&logger['info'](_0x4aa53f[_0x5aab5d(0x15b)]);}}catch(_0x2cafb1){logger[_0x5aab5d(0x121)](_0x5aab5d(0x13c)+util['format'](_0x2cafb1));}_0x4aa53f['JLtKS'](_0x2b8c73);})[_0x15a139(0xb8)](()=>{const _0x40f21a=_0x15a139;_0x129612[_0x40f21a(0xf3)](_0x4fa572);});},{'platform':_0x4aa53f[_0x2d2f23(0x140)](nestedKeyValue,global['__platformCaps'],[_0x4aa53f['pNhTC']]),'hookType':_0x4aa53f[_0x2d2f23(0x145)]})();},'afterEach'(_0x1e0f62){const _0x3aa6a2=a36_0x5b1763,_0x24c7f4={'WfqtA':function(_0x44e2bb){return _0x44e2bb();},'SihYh':_0x3aa6a2(0x154),'vYBcD':function(_0x40d749,_0x87c4bd){return _0x40d749!==_0x87c4bd;},'hwkDt':'passed','eJqGy':function(_0x30e513,_0x34f1bd,_0x1d6baf){return _0x30e513(_0x34f1bd,_0x1d6baf);},'dXTUE':function(_0x334bfa,_0x3b3166){return _0x334bfa+_0x3b3166;},'uoYpB':_0x3aa6a2(0xd7),'LRjUe':_0x3aa6a2(0x121),'KjhfO':_0x3aa6a2(0x147),'KZsjs':_0x3aa6a2(0xe2),'STPRs':function(_0x47c93b,_0x2bbfb7){return _0x47c93b>_0x2bbfb7;},'TMrpK':function(_0x421623,_0x4241a1){return _0x421623===_0x4241a1;},'pkMGM':_0x3aa6a2(0x160),'DbDYh':function(_0x4c951c,_0x982dbb){return _0x4c951c>_0x982dbb;},'XJaOW':'appium:app','plKTA':function(_0x3d66e4,_0x5c58db,_0x108784,_0x278277){return _0x3d66e4(_0x5c58db,_0x108784,_0x278277);},'JYseB':'isAccessibilityPlatform','ovxBS':_0x3aa6a2(0xf0),'YBMll':_0x3aa6a2(0x12e),'efPuO':_0x3aa6a2(0x15f),'OGssl':_0x3aa6a2(0xe0),'cXZAY':'Accessibility\x20scan\x20completed\x20successfully','rTdWx':'Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','wUipB':_0x3aa6a2(0x135),'vYlmT':'Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','qAVAo':_0x3aa6a2(0x164),'mZzQz':_0x3aa6a2(0x134),'TaZNx':'Mocha','WkbWx':_0x3aa6a2(0xed),'MVxiS':_0x3aa6a2(0x155)},_0xa7fc4f='browserstack internal helper hook';this[_0x3aa6a2(0x15d)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x24c7f4['TaZNx']]),global['sessionName']=this[_0x3aa6a2(0x113)][_0x3aa6a2(0xb5)]()[_0x3aa6a2(0xbf)](_0x24c7f4[_0x3aa6a2(0x15a)]),PerformanceTester[_0x3aa6a2(0x10d)](PerformanceSdkEvents[_0x3aa6a2(0x103)],()=>{const _0x9efd45=_0x3aa6a2,_0xf13980={'giiRJ':_0x24c7f4[_0x9efd45(0x15a)],'qcHJp':function(_0x29d914,_0x189877){const _0x2aed92=_0x9efd45;return _0x24c7f4[_0x2aed92(0xfe)](_0x29d914,_0x189877);},'ncWrV':_0x24c7f4[_0x9efd45(0x11f)],'hWOsE':function(_0x34a5da,_0x4b92fe,_0x2e1116){const _0x54fc2b=_0x9efd45;return _0x24c7f4[_0x54fc2b(0x127)](_0x34a5da,_0x4b92fe,_0x2e1116);},'sUYyz':function(_0x334b53,_0x557a29){const _0x5e326f=_0x9efd45;return _0x24c7f4[_0x5e326f(0xb3)](_0x334b53,_0x557a29);},'AvpnU':_0x24c7f4['uoYpB'],'qYHOR':_0x24c7f4[_0x9efd45(0x108)],'hzHEn':function(_0x27d22c,_0x1ab0a8,_0x1aa114){const _0x550b35=_0x9efd45;return _0x24c7f4[_0x550b35(0x127)](_0x27d22c,_0x1ab0a8,_0x1aa114);},'yVyaB':_0x24c7f4['KjhfO'],'jkepy':_0x24c7f4['KZsjs'],'Diqzh':function(_0x424935,_0xe832b7){const _0x4f9322=_0x9efd45;return _0x24c7f4[_0x4f9322(0x150)](_0x424935,_0xe832b7);},'niRHl':function(_0x3f5d17,_0x142f15){return _0x24c7f4['TMrpK'](_0x3f5d17,_0x142f15);},'BJzjm':_0x24c7f4[_0x9efd45(0xba)],'vvCqj':function(_0x2b83d4,_0x3bebb2){const _0x2e9160=_0x9efd45;return _0x24c7f4[_0x2e9160(0xe1)](_0x2b83d4,_0x3bebb2);},'MbgRR':_0x24c7f4[_0x9efd45(0x156)],'omSTv':function(_0x5414c9,_0x4df2e1,_0x5a754d,_0x3eab8d){const _0x3a33c6=_0x9efd45;return _0x24c7f4[_0x3a33c6(0x153)](_0x5414c9,_0x4df2e1,_0x5a754d,_0x3eab8d);},'jZyXN':_0x24c7f4['JYseB'],'UjHZu':_0x24c7f4['ovxBS'],'WrqPI':_0x24c7f4[_0x9efd45(0x151)],'RKmOA':_0x24c7f4[_0x9efd45(0x13e)],'VWPXM':_0x24c7f4[_0x9efd45(0xdc)],'QlrQc':_0x24c7f4['cXZAY'],'byOLl':_0x24c7f4['rTdWx'],'SLIrx':_0x24c7f4[_0x9efd45(0x166)],'rYbYk':_0x24c7f4[_0x9efd45(0xdb)],'kUheK':_0x24c7f4[_0x9efd45(0xd4)],'QZgxe':function(_0x418231){const _0x1571fc=_0x9efd45;return _0x24c7f4[_0x1571fc(0xee)](_0x418231);},'wkOpK':function(_0x3ced5f){return _0x24c7f4['WfqtA'](_0x3ced5f);},'ZcAEp':function(_0x3b3d3f,_0x5c7f3b,_0x2ae65e){const _0x121977=_0x9efd45;return _0x24c7f4[_0x121977(0x127)](_0x3b3d3f,_0x5c7f3b,_0x2ae65e);},'XhCPt':_0x24c7f4[_0x9efd45(0x139)],'tfmqb':function(_0x29fec2,_0x5c4750){const _0x2daae5=_0x9efd45;return _0x24c7f4[_0x2daae5(0xe1)](_0x29fec2,_0x5c4750);}},_0x9395e=async(_0x4b25f2,_0x24febe)=>{const _0x34cb14=_0x9efd45;await global[_0x34cb14(0xe8)][0x0][_0x34cb14(0x129)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x4b25f2+_0x34cb14(0xcb)+_0x24febe+_0x34cb14(0x159));};new Promise(async _0x3b1d79=>{const _0x8441b7=_0x9efd45;try{_0xf13980[_0x8441b7(0x144)](global[_0x8441b7(0xe8)][_0x8441b7(0xfa)],0x1)&&(await global[_0x8441b7(0xf8)](),global[_0x8441b7(0xe8)]['shift'](),global[_0x8441b7(0x14f)]=[],global[_0x8441b7(0xe6)]=![]);try{if(global[_0x8441b7(0x10b)]&&_0xf13980['niRHl'](global[_0x8441b7(0x167)],_0xf13980[_0x8441b7(0x11a)])&&global['__drivers'][0x0]){const _0x5ef5f2=_0xf13980[_0x8441b7(0xce)](global[_0x8441b7(0x106)]['length'],0x0)?!!global[_0x8441b7(0x106)][0x0][_0x8441b7(0xc8)]||!!global[_0x8441b7(0x106)][0x0][_0xf13980[_0x8441b7(0xc0)]]:![],_0x37e84f={};_0x37e84f[_0x8441b7(0xc8)]=_0x5ef5f2,await _0xf13980[_0x8441b7(0xd6)](percyAutoCapture,global[_0x8441b7(0xe8)][0x0],_0xf13980[_0x8441b7(0x11a)],_0x37e84f);}}catch(_0x56cb8a){logger['debug']('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x56cb8a);}!global[_0x8441b7(0x100)]&&(await PerformanceTester[_0x8441b7(0x10d)](PerformanceAutEvents[_0x8441b7(0xe5)],async()=>{const _0x98a05d=_0x8441b7;await global[_0x98a05d(0xe8)][0x0]['executeScript'](_0x98a05d(0x10c)+JSON[_0x98a05d(0x104)](this[_0x98a05d(0x113)][_0x98a05d(0xb5)]()[_0x98a05d(0xbf)](_0xf13980[_0x98a05d(0x101)]))+'}}');})(),global[_0x8441b7(0xe8)][0x0][_0x8441b7(0x107)]=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x8441b7(0x16c)],async()=>{const _0x395bce=_0x8441b7,_0x592aa5=_0xf13980[_0x395bce(0xdf)](this[_0x395bce(0x113)][_0x395bce(0xcd)],_0xf13980[_0x395bce(0xb9)]);_0x592aa5?(global[_0x395bce(0xe6)]=!![],global[_0x395bce(0x14f)][_0x395bce(0xc4)](this[_0x395bce(0x113)][_0x395bce(0x143)]['message']),await _0xf13980[_0x395bce(0x141)](_0x9395e,JSON['stringify'](_0xf13980[_0x395bce(0x130)](_0xf13980[_0x395bce(0x115)],this[_0x395bce(0x113)][_0x395bce(0x143)][_0x395bce(0x109)])),_0xf13980['qYHOR'])):await _0xf13980[_0x395bce(0xc7)](_0x9395e,JSON[_0x395bce(0x104)](_0xf13980[_0x395bce(0x11c)]),_0xf13980[_0x395bce(0x13b)]);})();}catch(_0xaac218){logger[_0x8441b7(0x134)](_0x8441b7(0xd8)+_0xaac218);}try{if(this[_0x8441b7(0x113)][_0x8441b7(0x12d)]&&globals[_0x8441b7(0xff)](_0xf13980[_0x8441b7(0x161)])&&globals[_0x8441b7(0xff)](_0xf13980[_0x8441b7(0xb7)])){logger[_0x8441b7(0xe2)](_0xf13980[_0x8441b7(0x13a)]);const _0x16c86e={};_0x16c86e[_0x8441b7(0x136)]=this[_0x8441b7(0x113)]['testAnalyticsId'],_0x16c86e[_0x8441b7(0x10a)]=process[_0x8441b7(0xe9)][testHubConstants[_0x8441b7(0xc1)]['BROWSERSTACK_TESTHUB_UUID']],_0x16c86e[_0x8441b7(0x169)]=process[_0x8441b7(0xe9)][testHubConstants[_0x8441b7(0xc1)]['BROWSERSTACK_TESTHUB_JWT']];const _0x1c7f73=_0x16c86e;logger[_0x8441b7(0x134)](_0x8441b7(0x133)+JSON[_0x8441b7(0x104)](_0x1c7f73)),logger['debug'](_0xf13980[_0x8441b7(0x137)]);const _0x21eca2={};_0x21eca2[_0x8441b7(0x146)]=_0xf13980[_0x8441b7(0xea)];const _0x491ebd=await PerformanceTester[_0x8441b7(0x10d)](PerformanceA11yEvents[_0x8441b7(0xd0)],async()=>{const _0x20d428=_0x8441b7;return await accessibilityRetryHelper[_0x20d428(0x15e)](global[_0x20d428(0xe8)][0x0],global[_0x20d428(0x114)]);},_0x21eca2)();_0x491ebd?logger[_0x8441b7(0x134)](_0xf13980['QlrQc']):logger[_0x8441b7(0xf4)](_0xf13980[_0x8441b7(0xcf)]);const _0x1e0b49=await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x8441b7(0x142)],async()=>{const _0x3b3d8e=_0x8441b7;return await accessibilityRetryHelper[_0x3b3d8e(0xdd)](global[_0x3b3d8e(0xe8)][0x0],_0x1c7f73);})();_0x1e0b49?logger['debug'](_0xf13980[_0x8441b7(0x122)]):logger[_0x8441b7(0xf4)](_0xf13980[_0x8441b7(0xeb)]),logger[_0x8441b7(0xe2)](_0xf13980[_0x8441b7(0x105)]);}}catch(_0x246775){logger[_0x8441b7(0x121)](_0x8441b7(0xbe)+this[_0x8441b7(0x113)]['titlePath']()+_0x8441b7(0xd9),_0x246775);}try{try{if(_0xf13980[_0x8441b7(0xda)](shouldProcessEventForTesthub)){global[_0x8441b7(0xe8)][0x0]&&await _0xf13980[_0x8441b7(0xc7)](sendPlatformDetails,global[_0x8441b7(0xe8)][0x0],this[_0x8441b7(0x113)]?this[_0x8441b7(0x113)][_0x8441b7(0x14c)]:null);if(_0xf13980[_0x8441b7(0xf9)](isBrowserstackInfra)){PerformanceTester['start'](PerformanceO11yEvents[_0x8441b7(0x119)]);const _0x1c9a78=_0x8441b7(0x138)+Date['now']();await _0xf13980[_0x8441b7(0x125)](_0x9395e,JSON[_0x8441b7(0x104)](_0x1c9a78),_0xf13980[_0x8441b7(0x14d)]),PerformanceTester[_0x8441b7(0xc6)](PerformanceO11yEvents[_0x8441b7(0x119)]);}}}catch(_0x5e1044){logger[_0x8441b7(0x134)]('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x5e1044),PerformanceTester[_0x8441b7(0xc6)](PerformanceO11yEvents[_0x8441b7(0x119)],![],_0x5e1044);}_0xf13980['tfmqb'](global['__drivers'][0x0][_0x8441b7(0x128)],0x0)&&await global['driverCleanup']();}catch(_0x593705){logger[_0x8441b7(0x134)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x593705);}_0xf13980[_0x8441b7(0xf9)](_0x3b1d79);})[_0x9efd45(0xb8)](()=>{const _0x10385f=_0x9efd45;_0x24c7f4[_0x10385f(0xee)](_0x1e0f62);});},{'platform':_0x24c7f4[_0x3aa6a2(0x127)](nestedKeyValue,global[_0x3aa6a2(0x13f)],[_0x24c7f4[_0x3aa6a2(0x163)]]),'hookType':_0x24c7f4[_0x3aa6a2(0x11b)]})();},'afterAll'(_0x5d9de0){const _0x1c13fe=a36_0x5b1763,_0x2ba5c1={'BfmVx':function(_0x2cea60){return _0x2cea60();},'geuce':'Mocha','kRTCw':function(_0x4b9968,_0x471b71,_0x2d9ef3){return _0x4b9968(_0x471b71,_0x2d9ef3);},'NrdTP':'index','hAcCE':_0x1c13fe(0x10e)},_0x132380='browserstack internal helper hook';this[_0x1c13fe(0x15d)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x2ba5c1[_0x1c13fe(0x16b)]]),PerformanceTester[_0x1c13fe(0x10d)](PerformanceSdkEvents[_0x1c13fe(0x103)],()=>{const _0x125113=_0x1c13fe,_0x2ac394={'DQJog':function(_0x1a234a){const _0x4058c5=a36_0xac0b;return _0x2ba5c1[_0x4058c5(0xc2)](_0x1a234a);},'RDriB':function(_0x59f83c){return _0x2ba5c1['BfmVx'](_0x59f83c);}};new Promise(async _0x18e203=>{const _0x107b97=a36_0xac0b;await global['driverCleanup'](),_0x2ac394[_0x107b97(0x126)](_0x18e203);})[_0x125113(0xb8)]()[_0x125113(0xe7)](()=>{const _0x252af5=_0x125113;_0x2ac394[_0x252af5(0x11e)](_0x5d9de0);});},{'platform':_0x2ba5c1[_0x1c13fe(0xb4)](nestedKeyValue,global['__platformCaps'],[_0x2ba5c1[_0x1c13fe(0xde)]]),'hookType':_0x2ba5c1[_0x1c13fe(0xbb)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const a37_0xdc1d21=a37_0x2688;(function(_0x2e85b5,_0xec77b0){const _0xc46ed5=a37_0x2688,_0x4e82d7=_0x2e85b5();while(!![]){try{const _0x2c5b13=parseInt(_0xc46ed5(0x1ac))/0x1*(parseInt(_0xc46ed5(0x1b1))/0x2)+parseInt(_0xc46ed5(0x1c2))/0x3+-parseInt(_0xc46ed5(0x1d6))/0x4*(-parseInt(_0xc46ed5(0x1af))/0x5)+-parseInt(_0xc46ed5(0x1c5))/0x6*(-parseInt(_0xc46ed5(0x1ae))/0x7)+-parseInt(_0xc46ed5(0x1e7))/0x8+parseInt(_0xc46ed5(0x1eb))/0x9+-parseInt(_0xc46ed5(0x1e3))/0xa;if(_0x2c5b13===_0xec77b0)break;else _0x4e82d7['push'](_0x4e82d7['shift']());}catch(_0x1da64f){_0x4e82d7['push'](_0x4e82d7['shift']());}}}(a37_0x3e6c,0x589fc));const fs=require('fs'),path=require(a37_0xdc1d21(0x1aa)),{spawn}=require(a37_0xdc1d21(0x1cb)),logger=require(a37_0xdc1d21(0x1a7))[a37_0xdc1d21(0x1a8)],{default:BrowserStackSetup}=require('../../helpers/BrowserStackSetup'),helper=require(a37_0xdc1d21(0x1a5)),constants=require(a37_0xdc1d21(0x1e2)),getUserNightwatchConfigs=(_0x1e314c,_0x533741)=>{const _0x3a49ab=a37_0xdc1d21,_0x418f98={'TnfUN':_0x3a49ab(0x1dd),'GtKhc':'nightwatch.json','kDmxv':function(_0x25b955,_0x487c55){return _0x25b955(_0x487c55);},'LqKTI':'Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file'};let _0x7ea199=null,_0x4ee0c4={};const _0x3daca4=_0x533741[_0x3a49ab(0x1e0)](_0x5cbbcf=>_0x5cbbcf===_0x3a49ab(0x1b0));if(!helper[_0x3a49ab(0x1e4)](_0x1e314c[_0x3a49ab(0x1d8)])&&fs[_0x3a49ab(0x1d5)](path['join'](process[_0x3a49ab(0x1be)](),_0x1e314c[_0x3a49ab(0x1d8)])))_0x7ea199=path[_0x3a49ab(0x1c0)](process['cwd'](),_0x1e314c[_0x3a49ab(0x1d8)]),_0x533741[_0x3a49ab(0x1d0)](_0x3daca4,0x2);else{if(fs['existsSync'](path[_0x3a49ab(0x1c0)](process['cwd'](),_0x418f98[_0x3a49ab(0x1bb)])))_0x7ea199=path[_0x3a49ab(0x1c0)](process[_0x3a49ab(0x1be)](),_0x418f98['TnfUN']);else fs[_0x3a49ab(0x1d5)](path['join'](process['cwd'](),_0x418f98['GtKhc']))&&(_0x7ea199=path[_0x3a49ab(0x1c0)](process[_0x3a49ab(0x1be)](),_0x418f98['GtKhc']));}return _0x7ea199?(logger['info'](_0x3a49ab(0x1db)+_0x7ea199),_0x4ee0c4=_0x418f98['kDmxv'](require,_0x7ea199)):logger['info'](_0x418f98[_0x3a49ab(0x1cf)]),_0x4ee0c4;},removeExistingEnvs=_0x395e8e=>{const _0x55dc05=a37_0xdc1d21,_0x2a75f4={};_0x2a75f4[_0x55dc05(0x1ec)]=function(_0xba278c,_0x55fbde){return _0xba278c>_0x55fbde;};const _0x7871aa=_0x2a75f4;let _0x46a987=_0x395e8e[_0x55dc05(0x1e0)](_0x4d5a6f=>_0x4d5a6f===_0x55dc05(0x1cc));_0x7871aa[_0x55dc05(0x1ec)](_0x46a987,-0x1)&&_0x395e8e['splice'](_0x46a987,0x2),_0x46a987=_0x395e8e[_0x55dc05(0x1e0)](_0x324d26=>_0x324d26==='-e'),_0x7871aa[_0x55dc05(0x1ec)](_0x46a987,-0x1)&&_0x395e8e[_0x55dc05(0x1d0)](_0x46a987,0x2);};function run(_0x4436d4,_0x31c06c,_0x2b19ff){const _0x4da166=a37_0xdc1d21,_0x4d3222={'LiRlj':_0x4da166(0x1c7),'JMgwS':function(_0x910802,_0x90e113){return _0x910802+_0x90e113;},'msGoj':'test_settings','mPHnE':function(_0x58fe33,_0x16cde7,_0x51918e){return _0x58fe33(_0x16cde7,_0x51918e);},'hIyDb':_0x4da166(0x1b7),'EEqvE':_0x4da166(0x1d2),'wrZvL':function(_0x32a8b4,_0x4751b4){return _0x32a8b4===_0x4751b4;},'ghalj':'nightwatch-browserstack.json','AaQNv':function(_0x5363c9,_0x172dd6){return _0x5363c9(_0x172dd6);},'KmvWe':function(_0x57ff5f,_0xe81ad7,_0x10ed23,_0x5af8e6){return _0x57ff5f(_0xe81ad7,_0x10ed23,_0x5af8e6);},'pIvQN':_0x4da166(0x1b8),'QzEoJ':_0x4da166(0x1b0),'XQlcD':'--env','GcCZO':'inherit','jwDtx':_0x4da166(0x1c6)};if(!_0x2b19ff[_0x4da166(0x1d8)])return;const _0x50a6ae=_0x4d3222[_0x4da166(0x1c8)](getUserNightwatchConfigs,_0x4436d4,_0x31c06c),_0x4e5bc6={};_0x4e5bc6['start_process']=![];const _0xf53d3={};_0xf53d3[_0x4da166(0x1bf)]=_0x4d3222['hIyDb'],_0xf53d3['port']=0x1bb;const _0x366aff={};_0x366aff[_0x4da166(0x1e8)]=_0x4e5bc6,_0x366aff[_0x4da166(0x1a4)]=_0xf53d3;const _0x59aaf3=_0x366aff;logger[_0x4da166(0x1e9)](_0x4d3222[_0x4da166(0x1a3)]);const _0x1b2fcf={..._0x50a6ae},_0x3682a4=_0x1b2fcf,_0x157f9b=helper[_0x4da166(0x1e1)](_0x2b19ff[_0x4da166(0x1d8)]),_0x366ac8=[];_0x2b19ff['config'][_0x4da166(0x1b2)][_0x4da166(0x1ba)]((_0x45e25b,_0x362d0f)=>{const _0x2e6263=_0x4da166;_0x157f9b?_0x366ac8[_0x2e6263(0x1ca)](helper['modifyBrowserStackW3CCaps'](_0x2b19ff[_0x2e6263(0x1d8)],_0x4d3222[_0x2e6263(0x1d4)],_0x362d0f)):_0x366ac8[_0x2e6263(0x1ca)](helper[_0x2e6263(0x1dc)](_0x2b19ff['config'],_0x4d3222[_0x2e6263(0x1d4)],_0x362d0f));});const _0x18af0a={},_0x4a86d5=[];_0x4436d4[_0x4da166(0x1d1)]=_0x4436d4[_0x4da166(0x1d1)]||_0x4436d4['e'];const _0xb66654=_0x4436d4[_0x4da166(0x1d1)]?_0x4436d4[_0x4da166(0x1d1)][_0x4da166(0x1a9)]()['split'](',')[_0x4da166(0x1c1)](_0x504c3c=>_0x504c3c[_0x4da166(0x1a9)]())[_0x4da166(0x1b5)](_0x3e9d01=>_0x3e9d01!==''):[''];_0x4d3222[_0x4da166(0x1d7)](_0xb66654[_0x4da166(0x1df)],0x0)&&_0xb66654[_0x4da166(0x1ca)]('');_0xb66654['forEach'](_0x172057=>{const _0x406754=_0x4da166,_0x534299={'eXfaE':function(_0x1ee091,_0x50017c){const _0x4c4cc4=a37_0x2688;return _0x4d3222[_0x4c4cc4(0x1ab)](_0x1ee091,_0x50017c);},'DhkKS':_0x4d3222[_0x406754(0x1a6)]};_0x366ac8[_0x406754(0x1ba)](_0x397700=>{const _0x3ece8a=_0x406754;let _0x54ca44=_0x534299[_0x3ece8a(0x1bc)](helper['getPlatformName'](_0x397700,'_'),'_'+Date['now']());_0x172057&&(_0x54ca44+='_'+_0x172057);if(_0x172057&&(!_0x50a6ae[_0x534299[_0x3ece8a(0x1b4)]]||!_0x50a6ae[_0x534299[_0x3ece8a(0x1b4)]][_0x172057]))return;const _0x189275={..._0x59aaf3};_0x189275[_0x3ece8a(0x1e6)]=_0x397700;const _0x3ec54d=_0x189275;_0x18af0a[_0x54ca44]=_0x172057?helper[_0x3ece8a(0x1ce)](_0x50a6ae[_0x534299['DhkKS']][_0x172057],_0x3ec54d):_0x3ec54d,_0x4a86d5[_0x3ece8a(0x1ca)](_0x54ca44);});});!_0x3682a4['test_settings']&&(_0x3682a4[_0x4da166(0x1cd)]={});_0x3682a4['test_settings']={..._0x3682a4[_0x4da166(0x1cd)],..._0x18af0a};const _0x212e66=path[_0x4da166(0x1c0)](__dirname,_0x4d3222[_0x4da166(0x1ad)]);fs[_0x4da166(0x1bd)](_0x212e66,JSON[_0x4da166(0x1c3)](_0x3682a4)),_0x4d3222['AaQNv'](removeExistingEnvs,_0x31c06c);const _0x5ed474=_0x4d3222[_0x4da166(0x1b9)](spawn,/^win/[_0x4da166(0x1ed)](process['platform'])?_0x4d3222[_0x4da166(0x1c9)]:_0x4d3222[_0x4da166(0x1d4)],[_0x4d3222[_0x4da166(0x1b6)],_0x212e66,..._0x31c06c[_0x4da166(0x1de)](0x1),_0x4d3222[_0x4da166(0x1c4)],_0x4a86d5[_0x4da166(0x1c0)](',')],{'stdio':_0x4d3222[_0x4da166(0x1ea)]});_0x5ed474['on'](_0x4d3222['jwDtx'],async _0x369e8d=>{const _0x437ffd=_0x4da166;logger[_0x437ffd(0x1e5)](_0x437ffd(0x1b3)+_0x369e8d),logger['info'](_0x437ffd(0x1d3)+_0x212e66),fs[_0x437ffd(0x1da)](_0x212e66);});}function a37_0x2688(_0x45b666,_0x20c1f8){const _0x3e6cd1=a37_0x3e6c();return a37_0x2688=function(_0x268848,_0x51c92c){_0x268848=_0x268848-0x1a3;let _0x41820b=_0x3e6cd1[_0x268848];return _0x41820b;},a37_0x2688(_0x45b666,_0x20c1f8);}module[a37_0xdc1d21(0x1d9)]=run;function a37_0x3e6c(){const _0x19a5ac=['1WFDcQo','ghalj','56cpdwRm','10SpCCAd','--config','311138jLLTMD','platforms','child\x20process\x20exited\x20with\x20code\x20','DhkKS','filter','QzEoJ','hub.browserstack.com','nightwatch.cmd','KmvWe','forEach','TnfUN','eXfaE','writeFileSync','cwd','host','join','map','1131792AyAVvy','stringify','XQlcD','342888zXeAkB','close','nightwatch','mPHnE','pIvQN','push','child_process','--env','test_settings','mergeDeep','LqKTI','splice','env','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','Deleting\x20','LiRlj','existsSync','12808zsXXCz','wrZvL','config','exports','unlinkSync','Getting\x20your\x20nightwatch\x20configs\x20from\x20','modifyBrowserStackCaps','nightwatch.conf.js','slice','length','findIndex','useW3C','../utils/constants','4998590DvRkFF','isUndefined','debug','desiredCapabilities','1742576puFXop','webdriver','info','GcCZO','758376zkVirP','PdYFB','test','EEqvE','selenium','../../helpers/helper','msGoj','../../helpers/logger','winstonLogger','trim','path','JMgwS'];a37_0x3e6c=function(){return _0x19a5ac;};return a37_0x3e6c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x1f2359=a38_0xfdcd;function a38_0x5cd7(){const _0x38c265=['bstackSdkArgs','(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','4753917fPnbEn','AYXix','browser','AKkJv','cfzBV','project','name','dSPOy','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','debug','command','replace','../../helpers/performance/constants','accessibilityOptions','PERFORM_SCAN','warn','measureWrapper','gpciU','556409BjKNyK','processAccessibilityCaps','url','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','winstonLogger','\x20page:\x20','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','TmQeE','DiXTl','__workerDetails','QbCMq','scannerProcessingTimeout','../../helpers/helper','fvTDN','currentTest','JnrDi','kDWcW','308368wdwcwo','iNqSx','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','env','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','connectOptions','../../helpers/logger','tlKBU','486576ITBrTE','wnpnZ','sRqJG','2820258SoCxUR','workerInfo','oTxfP','2757490deWxoE','vjGct','constructor','browser_version','tqdNv','playwright-chromium','dvLNJ','accessibilityOptions.includeIssueType.bestPractice','../../helpers/accessibility-automation/scripts','bestPractice','KDuhZ','dvZad','cxHaT','needsReview','JzSNh','browserName','platformValidation','browserStackEvaluate','scannerVersion','use','parse','126pUTVOj','chrome','accessibilityOptions.wcagVersion','BSxUh','KrVjL','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','executeAsyncScript','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','latest','accessibilityOptions.scannerProcessingTimeout','ggbxR','BS_A11Y_JWT','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','No\x20summaryResults\x20found.','testInfo','CclNy','kAtUk','accessibilityPlatform','wcagVersion','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','3333EGueij','KfVcW','SLCRA','VPkCy','setAccessibilityCapabilities','performScan','deviceName','stringify','browserStackExecuteDriver','OAYNs','equgz','includeIssueType','wsEndpoint','Ixalz','368WGjCgR','accessibilityOptions.authToken','RIpfP'];a38_0x5cd7=function(){return _0x38c265;};return a38_0x5cd7();}(function(_0x284a0c,_0x54b899){const _0x2e302e=a38_0xfdcd,_0x4393a7=_0x284a0c();while(!![]){try{const _0x515c6f=parseInt(_0x2e302e(0x16e))/0x1+parseInt(_0x2e302e(0x157))/0x2*(parseInt(_0x2e302e(0x149))/0x3)+-parseInt(_0x2e302e(0x188))/0x4+-parseInt(_0x2e302e(0x18e))/0x5+parseInt(_0x2e302e(0x18b))/0x6+parseInt(_0x2e302e(0x1a3))/0x7*(-parseInt(_0x2e302e(0x180))/0x8)+parseInt(_0x2e302e(0x15c))/0x9;if(_0x515c6f===_0x54b899)break;else _0x4393a7['push'](_0x4393a7['shift']());}catch(_0x2b62e7){_0x4393a7['push'](_0x4393a7['shift']());}}}(a38_0x5cd7,0x5fbb7));const util=require('util'),logger=require(a38_0x1f2359(0x186))[a38_0x1f2359(0x172)],{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a38_0x1f2359(0x17b)),scripts=require(a38_0x1f2359(0x196)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x1f2359(0x168));function a38_0xfdcd(_0x1d3e02,_0x172108){const _0x5cd74d=a38_0x5cd7();return a38_0xfdcd=function(_0xfdcd3,_0x5f43d5){_0xfdcd3=_0xfdcd3-0x141;let _0x7b4c9c=_0x5cd74d[_0xfdcd3];return _0x7b4c9c;},a38_0xfdcd(_0x1d3e02,_0x172108);}exports[a38_0x1f2359(0x19f)]=async(_0x6052e,_0x5e95e9,_0x14fbc0={})=>{const _0x12cd9a=a38_0x1f2359,_0x580f36={};_0x580f36['gpciU']=_0x12cd9a(0x15a);const _0x5292ef=_0x580f36;return await _0x6052e['evaluate'](_0x12cd9a(0x15b)+_0x5e95e9['replace'](/arguments/g,_0x5292ef[_0x12cd9a(0x16d)])+_0x12cd9a(0x184)+JSON[_0x12cd9a(0x150)](_0x14fbc0)+')');},exports[a38_0x1f2359(0x151)]=async(_0x46aec0,_0xf7e209,_0x295b11={})=>{const _0x4ed5fe=a38_0x1f2359,_0x357b2c={};_0x357b2c[_0x4ed5fe(0x14b)]=function(_0x4b3060,_0x5af9dd){return _0x4b3060===_0x5af9dd;},_0x357b2c[_0x4ed5fe(0x145)]='WebDriver',_0x357b2c[_0x4ed5fe(0x15f)]='Playwright',_0x357b2c[_0x4ed5fe(0x163)]=_0x4ed5fe(0x15a);const _0x4a615b=_0x357b2c;if(_0x4a615b[_0x4ed5fe(0x14b)](_0x46aec0[_0x4ed5fe(0x190)]['name'],_0x4a615b['kAtUk']))return await _0x46aec0[_0x4ed5fe(0x1a9)](_0xf7e209,_0x295b11);else{if(_0x4a615b[_0x4ed5fe(0x14b)](_0x46aec0[_0x4ed5fe(0x190)][_0x4ed5fe(0x162)],_0x4a615b[_0x4ed5fe(0x15f)]))return await _0x46aec0['executeScript']('(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'+_0xf7e209[_0x4ed5fe(0x167)](/arguments/g,_0x4a615b[_0x4ed5fe(0x163)])+_0x4ed5fe(0x171)+JSON['stringify'](_0x295b11)+')');}},exports[a38_0x1f2359(0x14d)]=async _0x247f75=>{const _0x42e9bc=a38_0x1f2359,_0x44be53={};_0x44be53[_0x42e9bc(0x198)]=_0x42e9bc(0x1a5),_0x44be53['JnrDi']=_0x42e9bc(0x1ac),_0x44be53[_0x42e9bc(0x19c)]=_0x42e9bc(0x195),_0x44be53[_0x42e9bc(0x14a)]='accessibilityOptions.includeIssueType.needsReview',_0x44be53[_0x42e9bc(0x192)]=_0x42e9bc(0x158),_0x44be53[_0x42e9bc(0x181)]='accessibilityOptions.scannerVersion';const _0x296707=_0x44be53;_0x247f75[_0x42e9bc(0x169)]&&(_0x247f75[_0x42e9bc(0x169)][_0x42e9bc(0x147)]&&(_0x247f75[_0x296707['KDuhZ']]=_0x247f75[_0x42e9bc(0x169)][_0x42e9bc(0x147)]),_0x247f75[_0x42e9bc(0x169)]['scannerProcessingTimeout']&&(_0x247f75[_0x296707[_0x42e9bc(0x17e)]]=_0x247f75[_0x42e9bc(0x169)][_0x42e9bc(0x17a)]),_0x247f75[_0x42e9bc(0x169)][_0x42e9bc(0x154)]&&(_0x247f75[_0x296707['JzSNh']]=_0x247f75['accessibilityOptions'][_0x42e9bc(0x154)][_0x42e9bc(0x197)],_0x247f75[_0x296707[_0x42e9bc(0x14a)]]=_0x247f75[_0x42e9bc(0x169)][_0x42e9bc(0x154)][_0x42e9bc(0x19b)]));const _0x46733f=JSON[_0x42e9bc(0x1a2)](process[_0x42e9bc(0x183)][_0x42e9bc(0x182)])[_0x42e9bc(0x1a0)];_0x247f75[_0x296707[_0x42e9bc(0x192)]]=process[_0x42e9bc(0x183)][_0x42e9bc(0x1ae)],_0x247f75[_0x296707[_0x42e9bc(0x181)]]=_0x46733f,delete _0x247f75['accessibilityOptions'];},exports['getAccessibilityResults']=async _0xf70e8c=>{const _0x608499=a38_0x1f2359,_0x490610={};_0x490610[_0x608499(0x17f)]='No\x20accessibility\x20results\x20were\x20found.',_0x490610[_0x608499(0x153)]=_0x608499(0x175);const _0x1e391c=_0x490610;if(global['accessibilityPlatform'])try{const details={'url':await _0xf70e8c.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0xf70e8c,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0xf70e8c,scripts.getResults);},{...details})();return res;}catch{return logger['error'](_0x1e391c[_0x608499(0x17f)]),[];}else return logger[_0x608499(0x16b)](_0x1e391c[_0x608499(0x153)]),[];},exports[a38_0x1f2359(0x14e)]=async(_0x26b2bd,_0x2dff33='')=>{const _0x2da3f0=a38_0x1f2359;logger[_0x2da3f0(0x165)]('Performing\x20scan\x20with\x20method:\x20'+_0x2dff33+_0x2da3f0(0x173)+_0x26b2bd);const _0x32d5e8={'url':await _0x26b2bd[_0x2da3f0(0x170)](),'testhub_btcer_uuid':global[_0x2da3f0(0x178)]?.[_0x2da3f0(0x17d)]?.['id']};if(global[_0x2da3f0(0x146)])return await PerformanceTester[_0x2da3f0(0x16c)](PerformanceA11yEvents[_0x2da3f0(0x16a)],async()=>{const _0x21bb1c=_0x2da3f0,_0x48e415={};_0x48e415[_0x21bb1c(0x166)]=_0x2dff33;const _0x57c629=await exports[_0x21bb1c(0x19f)](_0x26b2bd,scripts[_0x21bb1c(0x14e)],_0x48e415);return _0x57c629;},{'command':_0x2dff33,..._0x32d5e8})();},exports['getAccessibilityResultsSummary']=async _0x2019d9=>{const _0x5c62f3=a38_0x1f2359,_0x2460fb={};_0x2460fb[_0x5c62f3(0x1ad)]=_0x5c62f3(0x142),_0x2460fb[_0x5c62f3(0x144)]=_0x5c62f3(0x1a8);const _0x1f3c6c=_0x2460fb;if(global[_0x5c62f3(0x146)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x2019d9,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x2019d9,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x5c62f3(0x165)](_0x1f3c6c[_0x5c62f3(0x1ad)]),{};}else return logger['warn'](_0x1f3c6c[_0x5c62f3(0x144)]),{};},exports[a38_0x1f2359(0x19e)]=async _0x1c885b=>{const _0x1b9534=a38_0x1f2359,_0x1a18a0={'fTXxv':function(_0x575cb8,_0x29d35d){return _0x575cb8!==_0x29d35d;},'POvma':_0x1b9534(0x148),'dvLNJ':_0x1b9534(0x1a4),'TmQeE':'playwright-chromium','sRqJG':'chromium','ChHLN':_0x1b9534(0x141),'BSxUh':function(_0x4b15b6,_0x58bbd2){return _0x4b15b6(_0x58bbd2);},'DiXTl':function(_0x10c067){return _0x10c067();},'tlKBU':function(_0x1bfadb,_0x216339){return _0x1bfadb<_0x216339;},'dvZad':_0x1b9534(0x1aa),'Dskte':function(_0x559820,_0x184777){return _0x559820===_0x184777;},'noVLD':_0x1b9534(0x1ab),'cfMpZ':function(_0x5170eb,_0x956536){return _0x5170eb>_0x956536;},'cxHaT':_0x1b9534(0x164)};try{if(!_0x1a18a0['fTXxv'](_0x1c885b[_0x1b9534(0x14f)],''))return logger[_0x1b9534(0x16b)](_0x1a18a0['POvma']),![];const _0xae1b4f=_0x1c885b['browser'];if(![_0x1a18a0[_0x1b9534(0x194)],_0x1a18a0[_0x1b9534(0x176)],_0x1a18a0[_0x1b9534(0x18a)]]['includes'](_0xae1b4f))return logger[_0x1b9534(0x16b)](_0x1a18a0['ChHLN']),![];const _0x49bbc8=_0x1a18a0[_0x1b9534(0x1a6)](parseInt,_0x1c885b[_0x1b9534(0x191)]);!_0x1a18a0[_0x1b9534(0x177)](isBrowserstackInfra)&&(!_0x1a18a0[_0x1b9534(0x187)](_0x49bbc8,0x64)&&logger[_0x1b9534(0x16b)](_0x1a18a0[_0x1b9534(0x199)]));if(!(_0x1a18a0['Dskte'](_0x49bbc8,_0x1a18a0['noVLD'])||_0x1a18a0['cfMpZ'](_0x49bbc8,0x5e)))return logger[_0x1b9534(0x16b)](_0x1a18a0[_0x1b9534(0x19a)]),![];}catch(_0x271dae){logger[_0x1b9534(0x165)](_0x1b9534(0x174)+util['format'](_0x271dae));}return!![];},exports[a38_0x1f2359(0x16f)]=(_0x13a6af,_0x37b337,_0x353ad9)=>{const _0x47b184=a38_0x1f2359,_0x1b7a1f={'fvTDN':function(_0x1e3093){return _0x1e3093();},'VPkCy':'browserstack.accessibility','AYXix':function(_0xe58235,_0x32eca5){return _0xe58235===_0x32eca5;},'QbCMq':_0x47b184(0x1a4),'OAYNs':function(_0x20231e,_0x29e3ba){return _0x20231e===_0x29e3ba;},'wnpnZ':_0x47b184(0x193),'vjGct':_0x47b184(0x141),'ZtCnt':function(_0x26049d,_0xbf4525){return _0x26049d>_0xbf4525;},'oTxfP':_0x47b184(0x1aa),'Ixalz':'latest','RIpfP':function(_0x2820b8,_0x3c8621){return _0x2820b8>_0x3c8621;},'KrVjL':_0x47b184(0x164),'cfzBV':function(_0x51c109,_0x24d949){return _0x51c109(_0x24d949);},'iuUEZ':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','ocsFK':function(_0x9cbdb8,_0x4e010e){return _0x9cbdb8+_0x4e010e;}};try{if(_0x1b7a1f[_0x47b184(0x17c)](isAccessibilityAutomationSession)){global[_0x47b184(0x146)]=!![];!_0x13a6af[_0x1b7a1f[_0x47b184(0x14c)]]&&(global[_0x47b184(0x146)]=![]);!(_0x1b7a1f[_0x47b184(0x15d)](_0x13a6af[_0x47b184(0x19d)],_0x1b7a1f[_0x47b184(0x179)])||_0x1b7a1f[_0x47b184(0x152)](_0x13a6af['browserName'],_0x1b7a1f[_0x47b184(0x189)])||_0x1b7a1f['AYXix'](_0x13a6af[_0x47b184(0x15e)],_0x1b7a1f[_0x47b184(0x179)])||_0x1b7a1f[_0x47b184(0x15d)](_0x13a6af[_0x47b184(0x15e)],_0x1b7a1f[_0x47b184(0x189)]))&&(logger[_0x47b184(0x16b)](_0x1b7a1f[_0x47b184(0x18f)]),global[_0x47b184(0x146)]=![]);!_0x1b7a1f['fvTDN'](isBrowserstackInfra)&&(!_0x1b7a1f['ZtCnt'](_0x13a6af['browser_version'],0x64)&&logger[_0x47b184(0x16b)](_0x1b7a1f[_0x47b184(0x18d)]));!(_0x1b7a1f['OAYNs'](_0x13a6af['browser_version'],_0x1b7a1f[_0x47b184(0x156)])||_0x1b7a1f[_0x47b184(0x159)](_0x13a6af[_0x47b184(0x191)],0x5e))&&(logger[_0x47b184(0x16b)](_0x1b7a1f[_0x47b184(0x1a7)]),global['accessibilityPlatform']=![]);!_0x1b7a1f['cfzBV'](isUndefined,_0x13a6af[_0x47b184(0x14f)])&&(logger[_0x47b184(0x16b)](_0x1b7a1f['iuUEZ']),global[_0x47b184(0x146)]=![]);if(!global['accessibilityPlatform']){_0x13a6af[_0x1b7a1f[_0x47b184(0x14c)]]=![];const _0x3514c3=_0x1b7a1f['ocsFK'](_0x37b337,_0x1b7a1f[_0x47b184(0x160)](encodeURIComponent,JSON[_0x47b184(0x150)](_0x13a6af)));_0x353ad9&&(_0x353ad9[_0x47b184(0x17d)][_0x47b184(0x143)][_0x47b184(0x161)][_0x47b184(0x1a1)][_0x47b184(0x185)][_0x47b184(0x155)]=_0x3514c3,_0x353ad9[_0x47b184(0x18c)][_0x47b184(0x161)][_0x47b184(0x1a1)][_0x47b184(0x185)][_0x47b184(0x155)]=_0x3514c3);}}else global[_0x47b184(0x146)]=![];}catch(_0x5caf53){logger[_0x47b184(0x165)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util['format'](_0x5caf53));}};
|
|
1
|
+
function a38_0x3361(_0x522f10,_0x498ea7){const _0x5f5951=a38_0x5f59();return a38_0x3361=function(_0x33617c,_0x1207fe){_0x33617c=_0x33617c-0x75;let _0x4ed741=_0x5f5951[_0x33617c];return _0x4ed741;},a38_0x3361(_0x522f10,_0x498ea7);}const a38_0x37f436=a38_0x3361;(function(_0x217887,_0x4ac671){const _0x35a370=a38_0x3361,_0x169053=_0x217887();while(!![]){try{const _0x45fcf1=-parseInt(_0x35a370(0x9c))/0x1*(parseInt(_0x35a370(0xd9))/0x2)+parseInt(_0x35a370(0xbe))/0x3+parseInt(_0x35a370(0xe7))/0x4+-parseInt(_0x35a370(0xdf))/0x5*(-parseInt(_0x35a370(0xc9))/0x6)+parseInt(_0x35a370(0xef))/0x7*(-parseInt(_0x35a370(0x7c))/0x8)+parseInt(_0x35a370(0xa2))/0x9*(parseInt(_0x35a370(0xac))/0xa)+-parseInt(_0x35a370(0xee))/0xb;if(_0x45fcf1===_0x4ac671)break;else _0x169053['push'](_0x169053['shift']());}catch(_0x5c8cb1){_0x169053['push'](_0x169053['shift']());}}}(a38_0x5f59,0x4404c));const util=require('util'),logger=require('../../helpers/logger')[a38_0x37f436(0xa6)],{isAccessibilityAutomationSession}=require(a38_0x37f436(0xb9)),{isUndefined,isBrowserstackInfra}=require(a38_0x37f436(0x87)),scripts=require(a38_0x37f436(0xb0)),PerformanceTester=require(a38_0x37f436(0xe2)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x37f436(0x89));function a38_0x5f59(){const _0x3e06ca=['QTviI','project','mhvqM','../../helpers/accessibility-automation/helper','wVjRm','vBiGe','Exhak','cprau','313470lDKwax','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','TUDat','command','ixnKx','setAccessibilityCapabilities','eEnZF','env','PERFORM_SCAN','WebDriver','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','48zcnGBq','evaluate','processAccessibilityCaps','anNnE','browserStackExecuteDriver','jueie','gsywx','stringify','accessibilityOptions.authToken','lUvog','accessibilityPlatform','BS_A11Y_JWT','bestPractice','ORibK','JpbRD','Playwright','10DOqwWv','bstackSdkArgs','deviceName','playwright-chromium','getAccessibilityResultsSummary','currentTest','135530lzMMpy','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','name','../../helpers/performance/performance-tester','ejtLe','performScan','latest','executeAsyncScript','1699408TtycXV','debug','constructor','No\x20summaryResults\x20found.','browserStackEvaluate','WrHbO','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','2391037biMNpi','77WEggsv','mtndI','replace','browser','PqqjR','wRCpS','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20','includeIssueType','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','hfFwV','connectOptions','use','chrome','143432YaQJaT','(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','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','scannerVersion','Fxuly','accessibilityOptions.scannerProcessingTimeout','browser_version','accessibilityOptions.includeIssueType.bestPractice','DgRte','RODHz','executeScript','../../helpers/helper','getAccessibilityResults','../../helpers/performance/constants','parse','scannerProcessingTimeout','AVsLI','workerInfo','dqLAx','__workerDetails','error','zqgWk','includes','txOrX','bEJlR','vAriP','ZMdPA','oIRcN','WoVzU','wcagVersion','Emuun','vUrRp','98726XPGlAU','platformValidation','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','browserName','chromium','zkuPB','5706thyxhn','No\x20accessibility\x20results\x20were\x20found.','needsReview','zFjZz','winstonLogger','accessibilityOptions.wcagVersion','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','url','EoYLv','accessibilityOptions.scannerVersion','6950oEFhgy','pdtvB','TJiaC','accessibilityOptions','../../helpers/accessibility-automation/scripts','warn','RNuBz','format','ozynO','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.'];a38_0x5f59=function(){return _0x3e06ca;};return a38_0x5f59();}exports[a38_0x37f436(0xeb)]=async(_0x1ea988,_0x5b1ab2,_0x2c0782={})=>{const _0x4286c6=a38_0x37f436,_0x207b6e={};_0x207b6e['KhWaD']='bstackSdkArgs';const _0x4a5a59=_0x207b6e;return await _0x1ea988[_0x4286c6(0xca)]('(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'+_0x5b1ab2[_0x4286c6(0xf1)](/arguments/g,_0x4a5a59['KhWaD'])+_0x4286c6(0x7e)+JSON[_0x4286c6(0xd0)](_0x2c0782)+')');},exports[a38_0x37f436(0xcd)]=async(_0x32a011,_0x3ebb6a,_0x22f683={})=>{const _0x388da9=a38_0x37f436,_0x17909b={};_0x17909b[_0x388da9(0xec)]=function(_0x4a3878,_0x4bc027){return _0x4a3878===_0x4bc027;},_0x17909b['RNuBz']=_0x388da9(0xc7),_0x17909b[_0x388da9(0x96)]=_0x388da9(0xd8),_0x17909b[_0x388da9(0x85)]=_0x388da9(0xda);const _0x48c115=_0x17909b;if(_0x48c115[_0x388da9(0xec)](_0x32a011[_0x388da9(0xe9)]['name'],_0x48c115[_0x388da9(0xb2)]))return await _0x32a011[_0x388da9(0xe6)](_0x3ebb6a,_0x22f683);else{if(_0x48c115[_0x388da9(0xec)](_0x32a011[_0x388da9(0xe9)][_0x388da9(0xe1)],_0x48c115[_0x388da9(0x96)]))return await _0x32a011[_0x388da9(0x86)](_0x388da9(0x7d)+_0x3ebb6a[_0x388da9(0xf1)](/arguments/g,_0x48c115[_0x388da9(0x85)])+_0x388da9(0x77)+JSON[_0x388da9(0xd0)](_0x22f683)+')');}},exports[a38_0x37f436(0xc3)]=async _0x33546c=>{const _0x530aee=a38_0x37f436,_0xa32a07={};_0xa32a07[_0x530aee(0xcf)]=_0x530aee(0xa7),_0xa32a07[_0x530aee(0xb8)]=_0x530aee(0x81),_0xa32a07[_0x530aee(0xd7)]=_0x530aee(0x83),_0xa32a07['Fxuly']='accessibilityOptions.includeIssueType.needsReview',_0xa32a07[_0x530aee(0xce)]=_0x530aee(0xd1),_0xa32a07[_0x530aee(0x97)]=_0x530aee(0xab);const _0x58129d=_0xa32a07;_0x33546c[_0x530aee(0xaf)]&&(_0x33546c[_0x530aee(0xaf)][_0x530aee(0x99)]&&(_0x33546c[_0x58129d[_0x530aee(0xcf)]]=_0x33546c[_0x530aee(0xaf)][_0x530aee(0x99)]),_0x33546c[_0x530aee(0xaf)][_0x530aee(0x8b)]&&(_0x33546c[_0x58129d[_0x530aee(0xb8)]]=_0x33546c[_0x530aee(0xaf)][_0x530aee(0x8b)]),_0x33546c[_0x530aee(0xaf)][_0x530aee(0x76)]&&(_0x33546c[_0x58129d[_0x530aee(0xd7)]]=_0x33546c[_0x530aee(0xaf)][_0x530aee(0x76)][_0x530aee(0xd5)],_0x33546c[_0x58129d[_0x530aee(0x80)]]=_0x33546c[_0x530aee(0xaf)][_0x530aee(0x76)][_0x530aee(0xa4)]));const _0x5b63eb=JSON[_0x530aee(0x8a)](process[_0x530aee(0xc5)][_0x530aee(0xa8)])[_0x530aee(0x7f)];_0x33546c[_0x58129d[_0x530aee(0xce)]]=process[_0x530aee(0xc5)][_0x530aee(0xd4)],_0x33546c[_0x58129d[_0x530aee(0x97)]]=_0x5b63eb,delete _0x33546c[_0x530aee(0xaf)];},exports[a38_0x37f436(0x88)]=async _0x47e886=>{const _0x839a90=a38_0x37f436,_0x99d73f={};_0x99d73f[_0x839a90(0xd2)]=_0x839a90(0xa3),_0x99d73f[_0x839a90(0x9b)]='Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.';const _0x4bf23d=_0x99d73f;if(global[_0x839a90(0xd3)])try{const details={'url':await _0x47e886.url(),'testhub_btcer_uuid':global.__workerDetails?.currentTest?.id};logger.debug('Performing scan before getting results');PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug(util.format(await exports.browserStackEvaluate(_0x47e886,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x47e886,scripts.getResults);},{...details})();return res;}catch{return logger[_0x839a90(0x90)](_0x4bf23d['lUvog']),[];}else return logger[_0x839a90(0xb1)](_0x4bf23d[_0x839a90(0x9b)]),[];},exports[a38_0x37f436(0xe4)]=async(_0x180c1f,_0x3a10a7='')=>{const _0x35941d=a38_0x37f436;logger[_0x35941d(0xe8)]('Performing\x20scan\x20with\x20method:\x20'+_0x3a10a7+'\x20page:\x20'+_0x180c1f);const _0x431454={'url':await _0x180c1f[_0x35941d(0xa9)](),'testhub_btcer_uuid':global[_0x35941d(0x8f)]?.[_0x35941d(0xde)]?.['id']};if(global[_0x35941d(0xd3)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x35941d(0xc6)],async()=>{const _0x44d420=_0x35941d,_0x1b9553={};_0x1b9553[_0x44d420(0xc1)]=_0x3a10a7;const _0xba03e1=await exports[_0x44d420(0xeb)](_0x180c1f,scripts[_0x44d420(0xe4)],_0x1b9553);return _0xba03e1;},{'command':_0x3a10a7,..._0x431454})();},exports[a38_0x37f436(0xdd)]=async _0x4a82ee=>{const _0x1dc778=a38_0x37f436,_0x1a067f={};_0x1a067f['qKruK']=_0x1dc778(0xea),_0x1a067f[_0x1dc778(0xa1)]=_0x1dc778(0xed);const _0x4ca80a=_0x1a067f;if(global['accessibilityPlatform'])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x4a82ee,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x4a82ee,scripts.getResultsSummary);})();return summaryResults;}catch{return logger['debug'](_0x4ca80a['qKruK']),{};}else return logger[_0x1dc778(0xb1)](_0x4ca80a[_0x1dc778(0xa1)]),{};},exports[a38_0x37f436(0x9d)]=async _0x4e78cd=>{const _0x560b72=a38_0x37f436,_0x25faaa={'ORibK':function(_0xed7e53,_0x4eef0b){return _0xed7e53!==_0x4eef0b;},'JTHlF':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','eEnZF':_0x560b72(0x7b),'zqgWk':_0x560b72(0xdc),'WoVzU':_0x560b72(0xa0),'cprau':_0x560b72(0xc8),'QTviI':function(_0x36482c,_0x51b3ba){return _0x36482c(_0x51b3ba);},'wVjRm':function(_0x4dd43e){return _0x4dd43e();},'TUDat':function(_0x2f1290,_0x47b170){return _0x2f1290<_0x47b170;},'Exhak':_0x560b72(0x9e),'EoYLv':function(_0x4e4ced,_0x404552){return _0x4e4ced===_0x404552;},'ozynO':'latest','niqwL':function(_0x47660c,_0x26fb1e){return _0x47660c>_0x26fb1e;},'txOrX':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x25faaa[_0x560b72(0xd6)](_0x4e78cd[_0x560b72(0xdb)],''))return logger[_0x560b72(0xb1)](_0x25faaa['JTHlF']),![];const _0x3fc1f1=_0x4e78cd[_0x560b72(0xf2)];if(![_0x25faaa[_0x560b72(0xc4)],_0x25faaa[_0x560b72(0x91)],_0x25faaa[_0x560b72(0x98)]][_0x560b72(0x92)](_0x3fc1f1))return logger['warn'](_0x25faaa[_0x560b72(0xbd)]),![];const _0x114a04=_0x25faaa[_0x560b72(0xb6)](parseInt,_0x4e78cd[_0x560b72(0x82)]);!_0x25faaa[_0x560b72(0xba)](isBrowserstackInfra)&&(!_0x25faaa[_0x560b72(0xc0)](_0x114a04,0x64)&&logger['warn'](_0x25faaa[_0x560b72(0xbc)]));if(!(_0x25faaa[_0x560b72(0xaa)](_0x114a04,_0x25faaa[_0x560b72(0xb4)])||_0x25faaa['niqwL'](_0x114a04,0x5e)))return logger[_0x560b72(0xb1)](_0x25faaa[_0x560b72(0x93)]),![];}catch(_0x2796ab){logger[_0x560b72(0xe8)](_0x560b72(0x75)+util['format'](_0x2796ab));}return!![];},exports[a38_0x37f436(0xcb)]=(_0x4ff0bc,_0x52394d,_0x17687c)=>{const _0x24f350=a38_0x37f436,_0xdafe9b={'Emuun':function(_0x1ffe58){return _0x1ffe58();},'dqLAx':'browserstack.accessibility','mtndI':function(_0x2a1a9b,_0x3ce3ea){return _0x2a1a9b===_0x3ce3ea;},'anNnE':_0x24f350(0x7b),'ejtLe':function(_0x14f7b6,_0x3c7873){return _0x14f7b6===_0x3c7873;},'srodf':'playwright-chromium','PqqjR':function(_0x4aba22,_0x1087e3){return _0x4aba22===_0x1087e3;},'DgRte':_0x24f350(0xc8),'bEJlR':function(_0x85c1a6,_0x101ca3){return _0x85c1a6>_0x101ca3;},'hfFwV':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','pdtvB':function(_0x4eae17,_0x17beda){return _0x4eae17===_0x17beda;},'ixnKx':_0x24f350(0xe5),'vBiGe':function(_0x147d1c,_0x9dbbe2){return _0x147d1c>_0x9dbbe2;},'TJiaC':_0x24f350(0xe0),'wRCpS':function(_0x411d84,_0x4889a5){return _0x411d84(_0x4889a5);},'AVsLI':_0x24f350(0xb5),'vAriP':function(_0x18808e,_0x13d4ae){return _0x18808e+_0x13d4ae;},'zFjZz':function(_0x4f9042,_0x5351ba){return _0x4f9042(_0x5351ba);}};try{if(_0xdafe9b[_0x24f350(0x9a)](isAccessibilityAutomationSession)){global[_0x24f350(0xd3)]=!![];!_0x4ff0bc[_0xdafe9b[_0x24f350(0x8e)]]&&(global['accessibilityPlatform']=![]);!(_0xdafe9b[_0x24f350(0xf0)](_0x4ff0bc[_0x24f350(0x9f)],_0xdafe9b[_0x24f350(0xcc)])||_0xdafe9b[_0x24f350(0xe3)](_0x4ff0bc[_0x24f350(0x9f)],_0xdafe9b['srodf'])||_0xdafe9b['ejtLe'](_0x4ff0bc['browser'],_0xdafe9b[_0x24f350(0xcc)])||_0xdafe9b[_0x24f350(0xf3)](_0x4ff0bc[_0x24f350(0xf2)],_0xdafe9b['srodf']))&&(logger[_0x24f350(0xb1)](_0xdafe9b[_0x24f350(0x84)]),global[_0x24f350(0xd3)]=![]);!_0xdafe9b[_0x24f350(0x9a)](isBrowserstackInfra)&&(!_0xdafe9b[_0x24f350(0x94)](_0x4ff0bc[_0x24f350(0x82)],0x64)&&logger[_0x24f350(0xb1)](_0xdafe9b[_0x24f350(0x78)]));!(_0xdafe9b[_0x24f350(0xad)](_0x4ff0bc['browser_version'],_0xdafe9b[_0x24f350(0xc2)])||_0xdafe9b[_0x24f350(0xbb)](_0x4ff0bc[_0x24f350(0x82)],0x5e))&&(logger[_0x24f350(0xb1)](_0xdafe9b[_0x24f350(0xae)]),global['accessibilityPlatform']=![]);!_0xdafe9b[_0x24f350(0xf4)](isUndefined,_0x4ff0bc['deviceName'])&&(logger[_0x24f350(0xb1)](_0xdafe9b[_0x24f350(0x8c)]),global[_0x24f350(0xd3)]=![]);if(!global['accessibilityPlatform']){_0x4ff0bc[_0xdafe9b['dqLAx']]=![];const _0x340c24=_0xdafe9b[_0x24f350(0x95)](_0x52394d,_0xdafe9b[_0x24f350(0xa5)](encodeURIComponent,JSON[_0x24f350(0xd0)](_0x4ff0bc)));_0x17687c&&(_0x17687c[_0x24f350(0xde)]['testInfo'][_0x24f350(0xb7)][_0x24f350(0x7a)]['connectOptions']['wsEndpoint']=_0x340c24,_0x17687c[_0x24f350(0x8d)][_0x24f350(0xb7)][_0x24f350(0x7a)][_0x24f350(0x79)]['wsEndpoint']=_0x340c24);}}else global[_0x24f350(0xd3)]=![];}catch(_0x495e84){logger[_0x24f350(0xe8)](_0x24f350(0xbf)+util[_0x24f350(0xb3)](_0x495e84));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a39_0x3d9499=a39_0x23af;(function(_0x58b607,_0xc2c107){const _0x465af0=a39_0x23af,_0x25db08=_0x58b607();while(!![]){try{const _0x7ce931=-parseInt(_0x465af0(0x266))/0x1+-parseInt(_0x465af0(0x22a))/0x2*(-parseInt(_0x465af0(0x25c))/0x3)+parseInt(_0x465af0(0x23d))/0x4*(-parseInt(_0x465af0(0x21e))/0x5)+parseInt(_0x465af0(0x274))/0x6+-parseInt(_0x465af0(0x280))/0x7*(-parseInt(_0x465af0(0x208))/0x8)+-parseInt(_0x465af0(0x277))/0x9*(parseInt(_0x465af0(0x1f8))/0xa)+parseInt(_0x465af0(0x20f))/0xb;if(_0x7ce931===_0xc2c107)break;else _0x25db08['push'](_0x25db08['shift']());}catch(_0x57f63e){_0x25db08['push'](_0x25db08['shift']());}}}(a39_0x3d1c,0xeba33));const fs=require('fs'),path=require(a39_0x3d9499(0x28b)),{spawn}=require(a39_0x3d9499(0x213)),{format}=require(a39_0x3d9499(0x1f6)),logger=require(a39_0x3d9499(0x275))['winstonLogger'],{default:BrowserStackSetup}=require(a39_0x3d9499(0x200)),helper=require(a39_0x3d9499(0x1e7)),utilities=require('../../helpers/utilities'),constants=require(a39_0x3d9499(0x273)),{FRAMEWORKS}=require(a39_0x3d9499(0x1fb)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a39_0x3d9499(0x231)),{setAccessibilityCapabilities}=require(a39_0x3d9499(0x240)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x3d9499(0x282)),TestHubHandler=require(a39_0x3d9499(0x214)),PerformanceTester=require('../../helpers/performance/performance-tester'),BrowserstackCLI=require(a39_0x3d9499(0x249)),PerformanceEvents=require('../../helpers/performance/constants')[a39_0x3d9499(0x1e9)],CLIUtils=require(a39_0x3d9499(0x27c)),TestInfo=require(a39_0x3d9499(0x23b)),getUserPlaywrightConfig=async(_0x4daea7,_0x1b9339)=>{const _0x5a8773=a39_0x3d9499,_0xe7128d={'CygCe':function(_0x262f81){return _0x262f81();},'eHhUB':function(_0x511c25,_0x4de268){return _0x511c25(_0x4de268);},'gWwdK':'resolvedConfigFile','Blupo':_0x5a8773(0x232)},_0x2b28b4=!helper[_0x5a8773(0x262)](_0x4daea7[_0x5a8773(0x24a)]),_0x5702a8=_0x2b28b4?path['resolve'](process[_0x5a8773(0x203)](),_0x4daea7[_0x5a8773(0x24a)]):process['cwd'](),{resolveConfigFile:_0x4c951e,resolveConfigLocation:_0x593613}=helper[_0x5a8773(0x243)][_0x5a8773(0x21b)](null,_0xe7128d[_0x5a8773(0x269)](getConfigLoaderPath)),_0x40afd6=_0x4c951e?_0xe7128d['eHhUB'](_0x4c951e,_0x5702a8):helper['nestedKeyValue'](_0xe7128d['eHhUB'](_0x593613,_0x5702a8),[_0xe7128d['gWwdK']]),_0x23fac3={};if(_0x2b28b4){const _0x45fe8a=_0x1b9339[_0x5a8773(0x290)](_0x4bfd02=>_0x4bfd02===_0x5a8773(0x23c)||_0x4bfd02==='-c'||_0x4bfd02[_0x5a8773(0x1e6)](_0x5a8773(0x232)));_0x1b9339[_0x5a8773(0x20a)](_0x45fe8a,_0x1b9339[_0x45fe8a]['startsWith'](_0xe7128d['Blupo'])?0x1:0x2);}const _0xd8ada3={};return _0xd8ada3[_0x5a8773(0x28b)]=_0x40afd6,_0xd8ada3['config']=_0x23fac3,_0xd8ada3;},handleO11yRerun=_0x3527bf=>{const _0x2d590a=a39_0x3d9499,_0x3c1d75={};_0x3c1d75[_0x2d590a(0x25a)]=_0x2d590a(0x211);const _0x41cd20=_0x3c1d75,_0x393505=helper[_0x2d590a(0x24d)](process['env'][_0x2d590a(0x204)]);if(_0x393505){const _0x54f3c7=process[_0x2d590a(0x254)][_0x2d590a(0x272)],_0x32b613=[];if(helper[_0x2d590a(0x253)](_0x54f3c7)&&!helper[_0x2d590a(0x262)](_0x54f3c7)){_0x54f3c7[_0x2d590a(0x246)](',')[_0x2d590a(0x22c)](_0x6dbf29=>{const _0x5e0dbd=_0x2d590a;_0x32b613['push']('('+_0x6dbf29[_0x5e0dbd(0x24c)]()+')');});const _0x137147='^'+_0x32b613['join']('|')+'$';_0x3527bf[_0x2d590a(0x221)](_0x41cd20['hMugx'],_0x137147);}}},spawnOriginalProcess=_0x1cb578=>{const _0xc58dd1=a39_0x3d9499,_0xd882aa={'rdknc':function(_0x26f737,_0x254b73,_0xae5ece,_0x1c6144){return _0x26f737(_0x254b73,_0xae5ece,_0x1c6144);},'faocQ':_0xc58dd1(0x247),'WJzuN':_0xc58dd1(0x289),'iphKF':function(_0x2daf30,_0x58c9df){return _0x2daf30===_0x58c9df;},'XicPb':_0xc58dd1(0x265),'FKmpj':_0xc58dd1(0x295)};_0xd882aa[_0xc58dd1(0x233)](spawn,_0xd882aa['faocQ'],[_0xd882aa[_0xc58dd1(0x26c)],..._0x1cb578[_0xc58dd1(0x28f)](0x1)],{'shell':_0xd882aa[_0xc58dd1(0x23e)](process['platform'],_0xd882aa['XicPb']),'stdio':_0xd882aa[_0xc58dd1(0x21f)],'cwd':process[_0xc58dd1(0x203)]()});},isTestCommand=(_0x11a989,_0xd3ed36)=>{const _0x42f636=a39_0x3d9499,_0x1dcaaa={};_0x1dcaaa[_0x42f636(0x1fe)]=function(_0x289a2a,_0x219253){return _0x289a2a>_0x219253;},_0x1dcaaa[_0x42f636(0x21c)]=function(_0x5b35a7,_0x3c1fb2){return _0x5b35a7===_0x3c1fb2;},_0x1dcaaa[_0x42f636(0x284)]=_0x42f636(0x1f3);const _0xfe82dc=_0x1dcaaa;if(_0xfe82dc[_0x42f636(0x1fe)](_0xd3ed36[_0x42f636(0x1ed)],0x1)&&_0xfe82dc[_0x42f636(0x21c)](_0xd3ed36[0x1],_0xfe82dc[_0x42f636(0x284)]))return!![];return![];};function a39_0x3d1c(){const _0x18c741=['dirname','concat','existsSync','../../helpers/accessibility-automation/helper','--config=','rdknc','close','unlinkSync','lvpnR','gEqtw','setBrowserstackConfig','--disable-browserstack-automation','end','../v2/TestInfo','--config','4pxEIYZ','iphKF','pwmlU','./accessibility-helper','playwright-browserstack-sdk.config.cjs','parse','requirePWModule','pw_result.json','filter','split','npx','cGgTI','../v2/browserstackCLI','config','start','trim','isTrue','SDK_SETUP','getInstance','BROWSERSTACK_TEST_OBSERVABILITY','\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();','Error\x20in\x20getting\x20funnel\x20data\x20results','validateRerunTestList','env','SDK_POST_INITIALIZE','error','filterBrowserstackArgs','BkjyH','launchBuild','hMugx','accessibility','78849KQFLUL','--disable-test-observability','getPackageType','homedir','rCWgo','measureWrapper','isUndefined','PACKAGE_TYPE','rRjkG','win32','1737299VfNRgc','irmak','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','CygCe','indexOf','errorMessage','WJzuN','platform','MODULE','getNoProxy','browserstackAutomation','stop','BROWSERSTACK_RERUN_TESTS','../utils/constants','3636132TzJgRo','../../helpers/logger','has','84573uRxtDk','cliConfig','SDK_CLEANUP','BROWSERSTACK_TEST_ACCESSIBILITY_YML','playwright-browserstack-sdk.config.js','../v2/cliUtils','forEach','EJgwq','info','28854SzAPuN','clearTempPWConfig','./reporter/test-details','automation','hWqac','mahnl','USER_CONFIG_DETAILS_PATH','BROWSERSTACK_PW_CONFIG_DIR','sNXlK','playwright','false','path','SgALQ','geRaD','MydIt','slice','findIndex','dkquy','fwhjM','LdUOj','readdirSync','inherit','logLevel','bootstrap','accessibilityOptions','startsWith','../../helpers/helper','aRycM','EVENTS','BROWSERSTACK_AUTOMATION','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','isRunning','length','resolve','gVJaB','Error\x20in\x20closing\x20playwright','efRgB','isTypescriptProject','test','AoVuS','skipSessionStatus','util','setFrameworkDetail','150CiIxdC','readFileSync','testContextOptions','../../helpers/test-observability/constants','writeFileSync','Updated\x20config\x20file\x20name\x20to\x20-\x20','cwhBC','DcDid','../../helpers/BrowserStackSetup','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','ptlDN','cwd','BROWSERSTACK_RERUN','mmmDL','exitCode','SDK_PRE_INITIALIZE','3736luiLfS','Playwright\x20process\x20exited\x20with\x20code\x20','splice','getConfigPath','PLAYWRIGHT','serializeToYamlString','debug','514030FHfVWi','ElVlw','--grep','qfwPS','child_process','../../helpers/testhub/testhubHandler','trace_','Lmzjt','testObservability','gaBfW','EqElb','BROWSERSTACK_SETUP_CONFIG_PATH','apply','JtOlk','XapVh','1168390LITORd','FKmpj','true','push','initialize','join','fFdsF','NSjSq','BrowserStack\x20config\x20file\x20not\x20found.','browserstackSetupConfig.json','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','UWuDf','38nZWxEV','pCNYC','map','shutdown'];a39_0x3d1c=function(){return _0x18c741;};return a39_0x3d1c();}function a39_0x23af(_0x52e34e,_0x4f8c0a){const _0x3d1cf9=a39_0x3d1c();return a39_0x23af=function(_0x23af94,_0x4cefb3){_0x23af94=_0x23af94-0x1e6;let _0x5b1bcf=_0x3d1cf9[_0x23af94];return _0x5b1bcf;},a39_0x23af(_0x52e34e,_0x4f8c0a);}async function run(_0x111f4f,_0x3cbe56,_0x580a68){const _0x5d605a=a39_0x3d9499,_0x555096={'gVJaB':function(_0x23744b,_0x415bee){return _0x23744b(_0x415bee);},'MydIt':'.browserstack','dkquy':_0x5d605a(0x244),'Rhuqb':function(_0x32dea8,_0x500c99){return _0x32dea8+_0x500c99;},'BkjyH':_0x5d605a(0x252),'UWuDf':function(_0x170018){return _0x170018();},'gaBfW':function(_0x1ff0cc,_0x135485){return _0x1ff0cc+_0x135485;},'VDLhJ':_0x5d605a(0x1f0),'ahQFh':_0x5d605a(0x226),'qfwPS':function(_0x5f19bf,_0x3b5415){return _0x5f19bf===_0x3b5415;},'mmmDL':_0x5d605a(0x28a),'geRaD':_0x5d605a(0x25d),'lvpnR':function(_0x3ff8a1,_0xd409c2){return _0x3ff8a1>=_0xd409c2;},'fFdsF':_0x5d605a(0x283),'cQkUp':function(_0x49c656,_0x83b3a9){return _0x49c656!=_0x83b3a9;},'efRgB':function(_0x88bf4d,_0x1cf914,_0x29e79b){return _0x88bf4d(_0x1cf914,_0x29e79b);},'ObGkS':function(_0x13639d,_0x3273aa){return _0x13639d===_0x3273aa;},'STgrY':_0x5d605a(0x220),'XapVh':function(_0x2ea30a,_0x184caa){return _0x2ea30a(_0x184caa);},'aRycM':_0x5d605a(0x227),'rRjkG':function(_0x161530,_0x163993){return _0x161530===_0x163993;},'NSjSq':_0x5d605a(0x241),'pCNYC':_0x5d605a(0x27b),'sckzd':function(_0x52e99e,_0x58425c){return _0x52e99e-_0x58425c;},'gIIJS':function(_0x101972,_0x25fee5){return _0x101972+_0x25fee5;},'LdUOj':_0x5d605a(0x1fd),'cGgTI':function(_0x5a162e,_0x26a1c7){return _0x5a162e>_0x26a1c7;},'irmak':function(_0x1969bc,_0x5ac8fc){return _0x1969bc+_0x5ac8fc;},'mahnl':function(_0x474cae,_0x29ac64,_0x32d6bb,_0x57a349){return _0x474cae(_0x29ac64,_0x32d6bb,_0x57a349);},'AoVuS':_0x5d605a(0x247),'ptlDN':_0x5d605a(0x289),'pwmlU':_0x5d605a(0x1f3),'BULte':_0x5d605a(0x23c),'yufwZ':_0x5d605a(0x265),'ElVlw':'inherit','Lmzjt':_0x5d605a(0x234),'gEqtw':'Error\x20in\x20deleting\x20playwright\x20results','EJgwq':function(_0x51c646,_0x84d4cb,_0x51aeab){return _0x51c646(_0x84d4cb,_0x51aeab);},'rCWgo':function(_0x509a96,_0x409721){return _0x509a96(_0x409721);}};try{const _0x59def3=path[_0x5d605a(0x223)](helper[_0x5d605a(0x25f)](),_0x555096[_0x5d605a(0x28e)],_0x555096[_0x5d605a(0x291)]);fs['existsSync'](_0x59def3)&&fs[_0x5d605a(0x235)](_0x59def3);}catch(_0x2e92d3){logger[_0x5d605a(0x20e)](_0x555096['Rhuqb'](_0x555096[_0x5d605a(0x237)],_0x2e92d3));}if(!_0x555096[_0x5d605a(0x27e)](isTestCommand,_0x111f4f,_0x3cbe56)){_0x555096[_0x5d605a(0x260)](spawnOriginalProcess,_0x3cbe56);return;}await PerformanceTester[_0x5d605a(0x261)](PerformanceEvents[_0x5d605a(0x207)],async()=>{const _0x567d44=_0x5d605a,_0x44dc28={'DcDid':_0x555096[_0x567d44(0x28e)],'sNXlK':function(_0x175886){const _0x54fe93=_0x567d44;return _0x555096[_0x54fe93(0x229)](_0x175886);},'fwhjM':function(_0x339323,_0xa48ffe){const _0x310422=_0x567d44;return _0x555096[_0x310422(0x218)](_0x339323,_0xa48ffe);},'EqElb':_0x555096['VDLhJ']};if(!_0x580a68['config']){logger[_0x567d44(0x256)](_0x555096['ahQFh']);return;}await _0x580a68[_0x567d44(0x222)](_0x111f4f),CLIUtils[_0x567d44(0x1f7)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x567d44(0x20c)]),BrowserstackCLI[_0x567d44(0x24f)]()[_0x567d44(0x238)](_0x580a68['config'],_0x580a68[_0x567d44(0x278)]),await BrowserstackCLI[_0x567d44(0x24f)]()[_0x567d44(0x297)]();const _0x5b6f61=BrowserstackCLI[_0x567d44(0x24f)]()['getConfig']();!helper['isFalse'](_0x5b6f61[_0x567d44(0x270)])&&(process[_0x567d44(0x254)][_0x567d44(0x1ea)]=!![]);_0x555096[_0x567d44(0x212)](_0x5b6f61['browserstackAutomation'],![])&&(process['env'][_0x567d44(0x1ea)]=_0x555096[_0x567d44(0x205)],_0x3cbe56=_0x3cbe56[_0x567d44(0x245)](_0x5aca43=>_0x5aca43!==_0x567d44(0x239)));const _0x5f5d84=_0x3cbe56[_0x567d44(0x26a)](_0x555096[_0x567d44(0x28d)]);(_0x555096[_0x567d44(0x236)](_0x5f5d84,0x0)||_0x555096[_0x567d44(0x212)](_0x5b6f61[_0x567d44(0x217)],![]))&&(process[_0x567d44(0x254)]['BROWSERSTACK_TEST_OBSERVABILITY']=_0x555096['mmmDL'],_0x3cbe56=_0x3cbe56['filter'](_0x2b486a=>_0x2b486a!==_0x567d44(0x25d)));!helper[_0x567d44(0x262)](_0x580a68[_0x567d44(0x278)])&&_0x580a68[_0x567d44(0x278)][_0x567d44(0x276)](_0x555096['fFdsF'])&&(process[_0x567d44(0x254)][_0x567d44(0x1ea)]=_0x580a68[_0x567d44(0x278)]['get'](_0x555096[_0x567d44(0x224)])||!![]);_0x555096['cQkUp'](_0x580a68['config'][_0x567d44(0x217)],null)&&!helper[_0x567d44(0x24d)](process['env'][_0x567d44(0x250)])&&(process[_0x567d44(0x254)]['BROWSERSTACK_TEST_OBSERVABILITY']=process['env']['BROWSERSTACK_TEST_OBSERVABILITY']||_0x580a68[_0x567d44(0x24a)][_0x567d44(0x217)]);const _0x4416cd=!helper['isFalse'](process['env'][_0x567d44(0x250)]);_0x580a68[_0x567d44(0x24a)]['accessibilityOptions']&&(process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML']=JSON['stringify'](_0x580a68[_0x567d44(0x24a)][_0x567d44(0x298)]));let _0x277441=![];_0x580a68['config']['accessibility']&&(_0x277441=!![],process[_0x567d44(0x254)][_0x567d44(0x27a)]=_0x580a68[_0x567d44(0x24a)][_0x567d44(0x25b)]);const _0x2f34cf=_0x3cbe56[_0x567d44(0x22f)](),_0x34bde9=await _0x555096[_0x567d44(0x1f1)](getUserPlaywrightConfig,_0x111f4f,_0x3cbe56);if(helper[_0x567d44(0x262)](_0x34bde9)){_0x555096['gVJaB'](spawnOriginalProcess,_0x2f34cf);return;}const _0x3845af=_0x34bde9[_0x567d44(0x28b)]?path[_0x567d44(0x22e)](_0x34bde9['path']):process[_0x567d44(0x203)]();process[_0x567d44(0x254)][_0x567d44(0x287)]=_0x3845af,await PerformanceTester['measureWrapper'](PerformanceEvents[_0x567d44(0x255)],async()=>{const _0x3097d8=_0x567d44;!BrowserstackCLI[_0x3097d8(0x24f)]()[_0x3097d8(0x1ec)]()&&await TestHubHandler[_0x3097d8(0x259)](FRAMEWORKS[_0x3097d8(0x20c)],_0x580a68),_0x4416cd&&_0x555096[_0x3097d8(0x1ef)](handleO11yRerun,_0x3cbe56);})();if(!BrowserstackCLI['getInstance']()[_0x567d44(0x1ec)]()){let _0x3e2f06=_0x555096['ObGkS'](process[_0x567d44(0x254)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x555096['STgrY']);_0x3e2f06=_0x3e2f06||_0x555096[_0x567d44(0x1ef)](checkAccessibilityPlatformConfig,_0x580a68[_0x567d44(0x24a)]),process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x3e2f06,_0x3e2f06&&_0x555096[_0x567d44(0x21d)](setAccessibilityCapabilities,_0x580a68[_0x567d44(0x24a)]);}const _0x286b2f=path[_0x567d44(0x223)](_0x34bde9['path']?path[_0x567d44(0x22e)](_0x34bde9['path']):process[_0x567d44(0x203)](),_0x555096[_0x567d44(0x1e8)]);fs['writeFileSync'](_0x286b2f,helper[_0x567d44(0x20d)](_0x580a68['config'])),process[_0x567d44(0x254)][_0x567d44(0x21a)]=_0x286b2f,helper[_0x567d44(0x281)]();let _0x5b14b2='';_0x555096[_0x567d44(0x264)](helper[_0x567d44(0x25e)](),constants[_0x567d44(0x263)][_0x567d44(0x26e)])?_0x5b14b2=_0x555096[_0x567d44(0x225)]:_0x5b14b2=_0x555096[_0x567d44(0x22b)];let _0x2f1035='';if(helper[_0x567d44(0x1f2)](_0x34bde9[_0x567d44(0x28b)])){_0x2f1035=_0x567d44(0x228);const _0x520648=_0x5b14b2[_0x567d44(0x246)]('.');_0x520648[_0x555096['sckzd'](_0x520648[_0x567d44(0x1ed)],0x1)]='ts',_0x5b14b2=_0x520648[_0x567d44(0x223)]('.'),logger['debug'](_0x555096['gIIJS'](_0x555096[_0x567d44(0x293)],_0x5b14b2));}else _0x2f1035=_0x567d44(0x268);const _0x409566=path[_0x567d44(0x223)](_0x34bde9[_0x567d44(0x28b)]?path[_0x567d44(0x22e)](_0x34bde9[_0x567d44(0x28b)]):process[_0x567d44(0x203)](),_0x5b14b2);let _0x164900=_0x34bde9[_0x567d44(0x28b)]?_0x34bde9['path']:'';_0x164900=_0x555096[_0x567d44(0x248)](_0x164900['length'],0x0)?path[_0x567d44(0x1ee)](_0x164900):'',process[_0x567d44(0x254)][_0x567d44(0x286)]=_0x164900;const _0x3f9280=helper['getProxyUrl'](_0x580a68[_0x567d44(0x24a)]),_0x5c7819=helper[_0x567d44(0x26f)](_0x580a68[_0x567d44(0x24a)]);logger[_0x567d44(0x20e)]('Proxy\x20url\x20:\x20'+_0x3f9280),logger['debug']('No\x20Proxy\x20:\x20'+_0x5c7819);_0x3f9280&&(_0x2f1035=_0x555096[_0x567d44(0x267)](_0x567d44(0x201)+_0x3f9280+_0x567d44(0x1eb)+_0x5c7819+_0x567d44(0x251),_0x2f1035));helper[_0x567d44(0x257)]({},_0x3cbe56),fs[_0x567d44(0x1fc)](_0x409566,_0x2f1035),PerformanceTester[_0x567d44(0x23a)](PerformanceEvents[_0x567d44(0x24e)]);const _0x25488e=_0x555096[_0x567d44(0x285)](spawn,_0x555096[_0x567d44(0x1f4)],[_0x555096[_0x567d44(0x202)],_0x555096[_0x567d44(0x23f)],_0x555096['BULte'],_0x409566,..._0x3cbe56[_0x567d44(0x28f)](0x2)],{'shell':_0x555096[_0x567d44(0x264)](process[_0x567d44(0x26d)],_0x555096['yufwZ']),'stdio':_0x555096[_0x567d44(0x210)],'cwd':process[_0x567d44(0x203)](),'env':Object['assign']({},process[_0x567d44(0x254)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x567d44(0x20b)](_0x111f4f),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x580a68['config'][_0x567d44(0x1fa)][_0x567d44(0x1f5)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x580a68[_0x567d44(0x24a)][_0x567d44(0x1fa)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x580a68[_0x567d44(0x24a)][_0x567d44(0x296)]})}),_0x15fab5=()=>{const _0x8cbcb6=_0x567d44;try{const _0x2fc320=path['join'](helper[_0x8cbcb6(0x25f)](),_0x555096[_0x8cbcb6(0x28e)],_0x555096[_0x8cbcb6(0x291)]);if(fs['existsSync'](_0x2fc320)){let _0x1dcae5=fs[_0x8cbcb6(0x1f9)](_0x2fc320);_0x1dcae5=JSON[_0x8cbcb6(0x242)](_0x1dcae5),_0x580a68[_0x8cbcb6(0x26b)]=_0x1dcae5,fs['unlinkSync'](_0x2fc320);}}catch(_0x1358bb){logger[_0x8cbcb6(0x20e)](_0x555096['Rhuqb'](_0x555096[_0x8cbcb6(0x258)],_0x1358bb));}};_0x25488e['on'](_0x555096[_0x567d44(0x216)],async _0x181eef=>{const _0xeaaa0a=_0x567d44,_0x4664df={};_0x4664df[_0xeaaa0a(0x28c)]=_0x44dc28[_0xeaaa0a(0x1ff)];const _0x4047ef=_0x4664df;try{PerformanceTester[_0xeaaa0a(0x24b)](PerformanceEvents[_0xeaaa0a(0x279)]),_0x44dc28['sNXlK'](_0x15fab5),await TestHubHandler['stop'](),await BrowserstackCLI['getInstance']()[_0xeaaa0a(0x271)](),TestDetails[_0xeaaa0a(0x22d)](),_0x44dc28[_0xeaaa0a(0x288)](printBuildLink),await utilities['finalExecution'](_0x580a68),process[_0xeaaa0a(0x206)]=_0x181eef,logger[_0xeaaa0a(0x20e)](_0xeaaa0a(0x209)+_0x181eef),logger[_0xeaaa0a(0x27f)]('Deleting\x20'+_0x409566),fs[_0xeaaa0a(0x235)](_0x409566);fs[_0xeaaa0a(0x230)](_0x286b2f)&&(logger['debug']('Deleting\x20'+_0x286b2f),fs[_0xeaaa0a(0x235)](_0x286b2f));const _0x5f5c0c=fs[_0xeaaa0a(0x294)](path[_0xeaaa0a(0x223)](helper[_0xeaaa0a(0x25f)](),_0x44dc28[_0xeaaa0a(0x1ff)]))['filter'](_0x202126=>_0x202126[_0xeaaa0a(0x1e6)](_0xeaaa0a(0x215)));_0x5f5c0c[_0xeaaa0a(0x27d)](_0x14ca01=>{const _0x56c010=_0xeaaa0a;fs[_0x56c010(0x235)](path[_0x56c010(0x223)](helper[_0x56c010(0x25f)](),_0x4047ef[_0x56c010(0x28c)],_0x14ca01));});}catch(_0x2ffc9a){logger[_0xeaaa0a(0x20e)](_0x44dc28[_0xeaaa0a(0x292)](_0x44dc28[_0xeaaa0a(0x219)],_0x2ffc9a));}});})();}module['exports']=run;
|
|
2
|
+
'use strict';function a39_0x5ef4(_0x1591b0,_0x19a62f){const _0x62bd77=a39_0x62bd();return a39_0x5ef4=function(_0x5ef488,_0x22c656){_0x5ef488=_0x5ef488-0x171;let _0x48af4b=_0x62bd77[_0x5ef488];return _0x48af4b;},a39_0x5ef4(_0x1591b0,_0x19a62f);}const a39_0xe08fa=a39_0x5ef4;(function(_0x334991,_0x207fc8){const _0x3b8e67=a39_0x5ef4,_0x432abd=_0x334991();while(!![]){try{const _0x36c5ea=parseInt(_0x3b8e67(0x214))/0x1+parseInt(_0x3b8e67(0x1e8))/0x2+-parseInt(_0x3b8e67(0x18d))/0x3+parseInt(_0x3b8e67(0x178))/0x4*(-parseInt(_0x3b8e67(0x204))/0x5)+parseInt(_0x3b8e67(0x206))/0x6*(parseInt(_0x3b8e67(0x21d))/0x7)+-parseInt(_0x3b8e67(0x175))/0x8*(-parseInt(_0x3b8e67(0x217))/0x9)+-parseInt(_0x3b8e67(0x1e1))/0xa*(parseInt(_0x3b8e67(0x1aa))/0xb);if(_0x36c5ea===_0x207fc8)break;else _0x432abd['push'](_0x432abd['shift']());}catch(_0x3b8b47){_0x432abd['push'](_0x432abd['shift']());}}}(a39_0x62bd,0xd945a));const fs=require('fs'),path=require(a39_0xe08fa(0x1e9)),{spawn}=require(a39_0xe08fa(0x1bb)),{format}=require(a39_0xe08fa(0x1c0)),logger=require(a39_0xe08fa(0x1dc))[a39_0xe08fa(0x1f7)],{default:BrowserStackSetup}=require(a39_0xe08fa(0x1fb)),helper=require(a39_0xe08fa(0x202)),utilities=require(a39_0xe08fa(0x1d2)),constants=require(a39_0xe08fa(0x18b)),{FRAMEWORKS}=require(a39_0xe08fa(0x198)),{getConfigLoaderPath}=require(a39_0xe08fa(0x1de)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require(a39_0xe08fa(0x19c)),TestDetails=require(a39_0xe08fa(0x21b)),TestHubHandler=require(a39_0xe08fa(0x22f)),PerformanceTester=require(a39_0xe08fa(0x1e6)),BrowserstackCLI=require(a39_0xe08fa(0x1ed)),PerformanceEvents=require(a39_0xe08fa(0x1c8))[a39_0xe08fa(0x1f4)],CLIUtils=require('../v2/cliUtils'),TestInfo=require(a39_0xe08fa(0x1db)),ClientTroubleShootingService=require(a39_0xe08fa(0x1be)),getUserPlaywrightConfig=async(_0x1ebb83,_0x2ecf06)=>{const _0xf8747e=a39_0xe08fa,_0x51cb26={'zCjpR':function(_0x39a700){return _0x39a700();},'gwIwT':function(_0x4e7428,_0x3b34e5){return _0x4e7428(_0x3b34e5);},'VNeMw':function(_0x58bb71,_0x37d9b9){return _0x58bb71(_0x37d9b9);},'wdpRc':'resolvedConfigFile','jdoCf':_0xf8747e(0x228)},_0xc3e8ba=!helper[_0xf8747e(0x1a1)](_0x1ebb83['config']),_0x5aaa8b=_0xc3e8ba?path['resolve'](process[_0xf8747e(0x182)](),_0x1ebb83[_0xf8747e(0x1c3)]):process[_0xf8747e(0x182)](),{resolveConfigFile:_0x508a53,resolveConfigLocation:_0x48baaa}=helper[_0xf8747e(0x1eb)][_0xf8747e(0x1cd)](null,_0x51cb26[_0xf8747e(0x194)](getConfigLoaderPath)),_0x208f3f=_0x508a53?_0x51cb26['gwIwT'](_0x508a53,_0x5aaa8b):helper[_0xf8747e(0x1fd)](_0x51cb26[_0xf8747e(0x1bf)](_0x48baaa,_0x5aaa8b),[_0x51cb26['wdpRc']]),_0xc75bcb={};if(_0xc3e8ba){const _0x5f2097=_0x2ecf06[_0xf8747e(0x220)](_0x291131=>_0x291131==='--config'||_0x291131==='-c'||_0x291131['startsWith'](_0xf8747e(0x228)));_0x2ecf06[_0xf8747e(0x1b5)](_0x5f2097,_0x2ecf06[_0x5f2097][_0xf8747e(0x1bc)](_0x51cb26[_0xf8747e(0x1b2)])?0x1:0x2);}const _0x43c8ae={};return _0x43c8ae[_0xf8747e(0x1e9)]=_0x208f3f,_0x43c8ae[_0xf8747e(0x1c3)]=_0xc75bcb,_0x43c8ae;},handleO11yRerun=_0x260674=>{const _0x28c830=a39_0xe08fa,_0x5a0b60={};_0x5a0b60['mdtIm']='--grep';const _0x3dadab=_0x5a0b60,_0x1b4c95=helper[_0x28c830(0x1df)](process[_0x28c830(0x19b)]['BROWSERSTACK_RERUN']);if(_0x1b4c95){const _0x17ff00=process['env'][_0x28c830(0x1cc)],_0x12449f=[];if(helper[_0x28c830(0x22e)](_0x17ff00)&&!helper[_0x28c830(0x1a1)](_0x17ff00)){_0x17ff00[_0x28c830(0x1a9)](',')[_0x28c830(0x207)](_0x17c317=>{const _0x1e53f2=_0x28c830;_0x12449f['push']('('+_0x17c317[_0x1e53f2(0x203)]()+')');});const _0x1c8b61='^'+_0x12449f['join']('|')+'$';_0x260674[_0x28c830(0x1c6)](_0x3dadab['mdtIm'],_0x1c8b61);}}},spawnOriginalProcess=_0x39809f=>{const _0x406c7f=a39_0xe08fa,_0x3fe2b6={'rbTRU':function(_0x55d5cc,_0x169e69,_0x223ab4,_0x1078bb){return _0x55d5cc(_0x169e69,_0x223ab4,_0x1078bb);},'cqyci':_0x406c7f(0x1ce),'ApwcD':'playwright','fDlgZ':function(_0x46d74a,_0x80a893){return _0x46d74a===_0x80a893;},'SuLlO':_0x406c7f(0x1f1),'HaoiC':_0x406c7f(0x196)};_0x3fe2b6[_0x406c7f(0x1b9)](spawn,_0x3fe2b6['cqyci'],[_0x3fe2b6[_0x406c7f(0x227)],..._0x39809f[_0x406c7f(0x174)](0x1)],{'shell':_0x3fe2b6[_0x406c7f(0x1ba)](process['platform'],_0x3fe2b6[_0x406c7f(0x225)]),'stdio':_0x3fe2b6['HaoiC'],'cwd':process[_0x406c7f(0x182)]()});},isTestCommand=(_0x4e7179,_0x1dbe5e)=>{const _0x15738e=a39_0xe08fa,_0x15279e={};_0x15279e[_0x15738e(0x17f)]=function(_0x19f47e,_0x481cb3){return _0x19f47e>_0x481cb3;},_0x15279e[_0x15738e(0x1d4)]=function(_0x5eba1e,_0x5a4c6c){return _0x5eba1e===_0x5a4c6c;},_0x15279e[_0x15738e(0x205)]=_0x15738e(0x1ec);const _0x5b2871=_0x15279e;if(_0x5b2871[_0x15738e(0x17f)](_0x1dbe5e[_0x15738e(0x18e)],0x1)&&_0x5b2871[_0x15738e(0x1d4)](_0x1dbe5e[0x1],_0x5b2871['AXtvE']))return!![];return![];};async function run(_0x35b2a1,_0x504fa1,_0x5e208c){const _0x4703fe=a39_0xe08fa,_0x30ca3d={'oTShK':function(_0x18ea34,_0x4f9aae){return _0x18ea34(_0x4f9aae);},'lwVSL':_0x4703fe(0x213),'haDZu':_0x4703fe(0x1fc),'PWEJW':function(_0x46e7e8,_0xf2e989){return _0x46e7e8+_0xf2e989;},'KQqXe':'Error\x20in\x20getting\x20funnel\x20data\x20results','YOkco':function(_0xa09e9){return _0xa09e9();},'QiBsr':_0x4703fe(0x1d5),'EuEzp':'BrowserStack\x20config\x20file\x20not\x20found.','ApaKP':function(_0xd90f78,_0x40dc8c){return _0xd90f78<_0x40dc8c;},'RdiDP':function(_0x4290ef,_0x341962){return _0x4290ef===_0x341962;},'jzIAT':'false','zMXgN':'--disable-test-observability','SoIwv':function(_0x2a092a,_0x1bb995){return _0x2a092a>=_0x1bb995;},'qGLwJ':_0x4703fe(0x177),'UjRUk':function(_0x1642e6,_0x5d516d){return _0x1642e6!=_0x5d516d;},'SwEjR':function(_0x60eb4e,_0x51076b,_0x26a650){return _0x60eb4e(_0x51076b,_0x26a650);},'DQWTy':function(_0x366863,_0x470f78){return _0x366863===_0x470f78;},'BWgpJ':'true','cWKuH':function(_0x2bc31e,_0x19c57a){return _0x2bc31e(_0x19c57a);},'eFqNC':_0x4703fe(0x22c),'tEThp':_0x4703fe(0x17c),'IpqEG':'playwright-browserstack-sdk.config.js','ubSzA':function(_0x4f0276,_0x55fb3b){return _0x4f0276-_0x55fb3b;},'KvUqR':function(_0x2fef43,_0x1584f5){return _0x2fef43+_0x1584f5;},'CPLAH':_0x4703fe(0x1ad),'dYyzH':function(_0x25c601,_0x8859eb){return _0x25c601>_0x8859eb;},'dNNrO':function(_0x4eb1a0,_0x3b747b){return _0x4eb1a0+_0x3b747b;},'hheMz':function(_0x1b3a85,_0x3c46e5,_0x273f8f,_0x419874){return _0x1b3a85(_0x3c46e5,_0x273f8f,_0x419874);},'rDRJw':_0x4703fe(0x1ce),'fmAYD':_0x4703fe(0x1a0),'heqvg':_0x4703fe(0x1ec),'ttIcn':'--config','bDyIp':_0x4703fe(0x1f1),'ZlOQc':_0x4703fe(0x196),'CrCnU':_0x4703fe(0x1a4),'anoCS':function(_0x50551c,_0x473a8c){return _0x50551c|_0x473a8c;},'VIYYo':function(_0x3ae189,_0x4de9b8){return _0x3ae189+_0x4de9b8;},'NqDlY':_0x4703fe(0x1a7),'Axjhz':_0x4703fe(0x1a3)};try{const _0x300d57=path[_0x4703fe(0x186)](helper[_0x4703fe(0x20e)](),_0x30ca3d[_0x4703fe(0x1f9)]);try{fs['accessSync'](_0x300d57,_0x30ca3d[_0x4703fe(0x1fa)](fs[_0x4703fe(0x19a)]['R_OK'],fs[_0x4703fe(0x19a)][_0x4703fe(0x20c)]));}catch(_0x3d43f1){ClientTroubleShootingService[_0x4703fe(0x189)]();}}catch(_0x1ce772){logger[_0x4703fe(0x173)](_0x30ca3d['VIYYo'](_0x30ca3d['NqDlY'],_0x1ce772));}try{const _0x5b6df0=path['join'](helper[_0x4703fe(0x20e)](),_0x30ca3d[_0x4703fe(0x1f9)],_0x30ca3d[_0x4703fe(0x18f)]);fs[_0x4703fe(0x1ea)](_0x5b6df0)&&fs[_0x4703fe(0x1ca)](_0x5b6df0);}catch(_0x3e9a13){logger['debug'](_0x30ca3d['dNNrO'](_0x30ca3d[_0x4703fe(0x1af)],_0x3e9a13));}if(!_0x30ca3d[_0x4703fe(0x1e3)](isTestCommand,_0x35b2a1,_0x504fa1)){_0x30ca3d[_0x4703fe(0x1ef)](spawnOriginalProcess,_0x504fa1);return;}await PerformanceTester[_0x4703fe(0x1d0)](PerformanceEvents['SDK_PRE_INITIALIZE'],async()=>{const _0x52a979=_0x4703fe,_0x45d929={'vpgrs':_0x30ca3d[_0x52a979(0x1f9)],'jwJEu':_0x30ca3d[_0x52a979(0x18f)],'rRgLT':function(_0x378402,_0x26fd5d){const _0x2076e7=_0x52a979;return _0x30ca3d[_0x2076e7(0x179)](_0x378402,_0x26fd5d);},'wqAZD':_0x30ca3d[_0x52a979(0x1a8)],'URDgc':function(_0x4e9a8a){const _0x3d3628=_0x52a979;return _0x30ca3d[_0x3d3628(0x219)](_0x4e9a8a);},'gQdNx':function(_0x2862c5,_0x2b1891){const _0x217164=_0x52a979;return _0x30ca3d[_0x217164(0x179)](_0x2862c5,_0x2b1891);},'aIHnz':_0x30ca3d[_0x52a979(0x1e0)]};if(!_0x5e208c[_0x52a979(0x1c3)]){logger[_0x52a979(0x1ae)](_0x30ca3d[_0x52a979(0x20d)]);return;}await _0x5e208c[_0x52a979(0x1f2)](_0x35b2a1),CLIUtils[_0x52a979(0x1d6)](FRAMEWORKS[_0x52a979(0x1f3)],FRAMEWORKS[_0x52a979(0x1f3)]),BrowserstackCLI[_0x52a979(0x1d7)]()[_0x52a979(0x195)](_0x5e208c['config'],_0x5e208c[_0x52a979(0x221)]),await BrowserstackCLI['getInstance']()[_0x52a979(0x1cb)]();for(var _0x1ec7d3=0x0;_0x30ca3d['ApaKP'](_0x1ec7d3,constants[_0x52a979(0x1dd)][_0x52a979(0x18e)]);_0x1ec7d3++){var _0x21845d=constants[_0x52a979(0x1dd)][_0x1ec7d3];process['env'][_0x21845d]&&await ClientTroubleShootingService[_0x52a979(0x1c4)](_0x21845d);}const _0x363e70=BrowserstackCLI[_0x52a979(0x1d7)]()[_0x52a979(0x19e)]();!helper['isFalse'](_0x363e70[_0x52a979(0x1ff)])&&(process[_0x52a979(0x19b)][_0x52a979(0x223)]=!![]);_0x30ca3d['RdiDP'](_0x363e70[_0x52a979(0x1ff)],![])&&(process[_0x52a979(0x19b)][_0x52a979(0x223)]=_0x30ca3d[_0x52a979(0x1f8)],_0x504fa1=_0x504fa1[_0x52a979(0x18a)](_0x349de0=>_0x349de0!=='--disable-browserstack-automation'));const _0x245937=_0x504fa1[_0x52a979(0x197)](_0x30ca3d[_0x52a979(0x229)]);(_0x30ca3d['SoIwv'](_0x245937,0x0)||_0x30ca3d['RdiDP'](_0x363e70[_0x52a979(0x1c5)],![]))&&(process[_0x52a979(0x19b)][_0x52a979(0x20a)]=_0x30ca3d[_0x52a979(0x1f8)],_0x504fa1=_0x504fa1['filter'](_0x2e9d84=>_0x2e9d84!==_0x52a979(0x183)));!helper[_0x52a979(0x1a1)](_0x5e208c['cliConfig'])&&_0x5e208c[_0x52a979(0x221)][_0x52a979(0x188)](_0x30ca3d[_0x52a979(0x1c1)])&&(process[_0x52a979(0x19b)][_0x52a979(0x223)]=_0x5e208c['cliConfig'][_0x52a979(0x22a)](_0x30ca3d[_0x52a979(0x1c1)])||!![]);_0x30ca3d[_0x52a979(0x1b3)](_0x5e208c['config'][_0x52a979(0x1c5)],null)&&!helper[_0x52a979(0x1df)](process['env'][_0x52a979(0x20a)])&&(process[_0x52a979(0x19b)]['BROWSERSTACK_TEST_OBSERVABILITY']=process['env'][_0x52a979(0x20a)]||_0x5e208c[_0x52a979(0x1c3)][_0x52a979(0x1c5)]);const _0x5cf76f=!helper['isFalse'](process[_0x52a979(0x19b)][_0x52a979(0x20a)]);_0x5e208c[_0x52a979(0x1c3)][_0x52a979(0x1ac)]&&(process[_0x52a979(0x19b)][_0x52a979(0x1a6)]=JSON[_0x52a979(0x1e2)](_0x5e208c[_0x52a979(0x1c3)][_0x52a979(0x1ac)]));let _0x3af0a1=![];_0x5e208c['config'][_0x52a979(0x21c)]&&(_0x3af0a1=!![],process[_0x52a979(0x19b)][_0x52a979(0x1b0)]=_0x5e208c['config'][_0x52a979(0x21c)]);const _0x433eb4=_0x504fa1[_0x52a979(0x1ab)](),_0x519ea6=await _0x30ca3d[_0x52a979(0x1e3)](getUserPlaywrightConfig,_0x35b2a1,_0x504fa1);if(helper[_0x52a979(0x1a1)](_0x519ea6)){_0x30ca3d[_0x52a979(0x1ef)](spawnOriginalProcess,_0x433eb4);return;}const _0x339862=_0x519ea6[_0x52a979(0x1e9)]?path[_0x52a979(0x191)](_0x519ea6[_0x52a979(0x1e9)]):process[_0x52a979(0x182)]();process[_0x52a979(0x19b)][_0x52a979(0x211)]=_0x339862,await PerformanceTester[_0x52a979(0x1d0)](PerformanceEvents[_0x52a979(0x18c)],async()=>{const _0x10195f=_0x52a979;!BrowserstackCLI['getInstance']()[_0x10195f(0x1e7)]()&&await TestHubHandler[_0x10195f(0x1b8)](FRAMEWORKS[_0x10195f(0x1f3)],_0x5e208c),_0x5cf76f&&_0x30ca3d[_0x10195f(0x1ef)](handleO11yRerun,_0x504fa1);})();if(!BrowserstackCLI['getInstance']()[_0x52a979(0x1e7)]()){let _0x283d43=_0x30ca3d['DQWTy'](process['env']['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x30ca3d[_0x52a979(0x176)]);_0x283d43=_0x283d43||_0x30ca3d[_0x52a979(0x1ef)](checkAccessibilityPlatformConfig,_0x5e208c[_0x52a979(0x1c3)]),process[_0x52a979(0x19b)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x283d43,_0x283d43&&_0x30ca3d[_0x52a979(0x17a)](setAccessibilityCapabilities,_0x5e208c[_0x52a979(0x1c3)]);}const _0x2da0e1=path[_0x52a979(0x186)](_0x519ea6['path']?path[_0x52a979(0x191)](_0x519ea6[_0x52a979(0x1e9)]):process['cwd'](),_0x30ca3d[_0x52a979(0x17d)]);fs[_0x52a979(0x1b1)](_0x2da0e1,helper[_0x52a979(0x1cf)](_0x5e208c[_0x52a979(0x1c3)])),process[_0x52a979(0x19b)][_0x52a979(0x22d)]=_0x2da0e1,helper[_0x52a979(0x1d8)]();let _0x144a58='';_0x30ca3d[_0x52a979(0x1f6)](helper[_0x52a979(0x199)](),constants['PACKAGE_TYPE'][_0x52a979(0x1b7)])?_0x144a58=_0x30ca3d[_0x52a979(0x180)]:_0x144a58=_0x30ca3d['IpqEG'];let _0x428e9d='';if(helper[_0x52a979(0x1da)](_0x519ea6[_0x52a979(0x1e9)])){_0x428e9d=_0x52a979(0x187);const _0xc4739b=_0x144a58['split']('.');_0xc4739b[_0x30ca3d[_0x52a979(0x209)](_0xc4739b[_0x52a979(0x18e)],0x1)]='ts',_0x144a58=_0xc4739b[_0x52a979(0x186)]('.'),logger['debug'](_0x30ca3d['KvUqR'](_0x30ca3d[_0x52a979(0x1f0)],_0x144a58));}else _0x428e9d=_0x52a979(0x1c2);const _0x550418=path['join'](_0x519ea6[_0x52a979(0x1e9)]?path[_0x52a979(0x191)](_0x519ea6['path']):process[_0x52a979(0x182)](),_0x144a58);let _0x100905=_0x519ea6[_0x52a979(0x1e9)]?_0x519ea6[_0x52a979(0x1e9)]:'';_0x100905=_0x30ca3d[_0x52a979(0x1fe)](_0x100905['length'],0x0)?path[_0x52a979(0x21e)](_0x100905):'',process[_0x52a979(0x19b)][_0x52a979(0x224)]=_0x100905;const _0x4573d4=helper[_0x52a979(0x222)](_0x5e208c[_0x52a979(0x1c3)]),_0x25e656=helper[_0x52a979(0x1e4)](_0x5e208c[_0x52a979(0x1c3)]);logger[_0x52a979(0x173)](_0x52a979(0x184)+_0x4573d4),logger[_0x52a979(0x173)](_0x52a979(0x1d3)+_0x25e656);_0x4573d4&&(_0x428e9d=_0x30ca3d[_0x52a979(0x208)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x4573d4+_0x52a979(0x19d)+_0x25e656+_0x52a979(0x17b),_0x428e9d));helper[_0x52a979(0x172)]({},_0x504fa1),fs[_0x52a979(0x1b1)](_0x550418,_0x428e9d),PerformanceTester[_0x52a979(0x1bd)](PerformanceEvents[_0x52a979(0x212)]);const _0x3b332b=_0x30ca3d[_0x52a979(0x20b)](spawn,_0x30ca3d['rDRJw'],[_0x30ca3d[_0x52a979(0x1ee)],_0x30ca3d[_0x52a979(0x210)],_0x30ca3d[_0x52a979(0x17e)],_0x550418,..._0x504fa1[_0x52a979(0x174)](0x2)],{'shell':_0x30ca3d['RdiDP'](process[_0x52a979(0x1b4)],_0x30ca3d['bDyIp']),'stdio':_0x30ca3d[_0x52a979(0x171)],'cwd':process[_0x52a979(0x182)](),'env':Object[_0x52a979(0x1b6)]({},process[_0x52a979(0x19b)],{'BROWSERSTACK_CONFIG_FILE_PATH':helper['getConfigPath'](_0x35b2a1),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5e208c[_0x52a979(0x1c3)]['testContextOptions'][_0x52a979(0x181)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5e208c[_0x52a979(0x1c3)][_0x52a979(0x216)][_0x52a979(0x200)],'BROWSERSTACK_LOG_LEVEL':_0x5e208c[_0x52a979(0x1c3)][_0x52a979(0x20f)]})}),_0x1319fd=()=>{const _0x28cd53=_0x52a979;try{const _0x380294=path[_0x28cd53(0x186)](helper[_0x28cd53(0x20e)](),_0x45d929[_0x28cd53(0x1a5)],_0x45d929[_0x28cd53(0x19f)]);if(fs[_0x28cd53(0x1ea)](_0x380294)){let _0x5813c4=fs[_0x28cd53(0x193)](_0x380294);_0x5813c4=JSON[_0x28cd53(0x1d9)](_0x5813c4),_0x5e208c['errorMessage']=_0x5813c4,fs['unlinkSync'](_0x380294);}}catch(_0x2aaf64){logger[_0x28cd53(0x173)](_0x45d929['rRgLT'](_0x45d929[_0x28cd53(0x215)],_0x2aaf64));}};_0x3b332b['on'](_0x30ca3d['CrCnU'],async _0xd3274f=>{const _0x2bdb1c=_0x52a979;try{PerformanceTester[_0x2bdb1c(0x192)](PerformanceEvents[_0x2bdb1c(0x21a)]),_0x45d929[_0x2bdb1c(0x1a2)](_0x1319fd),await TestHubHandler['stop'](),await ClientTroubleShootingService[_0x2bdb1c(0x1c7)](),await BrowserstackCLI['getInstance']()[_0x2bdb1c(0x1d1)](),TestDetails[_0x2bdb1c(0x190)](),_0x45d929[_0x2bdb1c(0x1a2)](printBuildLink),await utilities[_0x2bdb1c(0x201)](_0x5e208c),process[_0x2bdb1c(0x21f)]=_0xd3274f,logger[_0x2bdb1c(0x173)](_0x2bdb1c(0x1f5)+_0xd3274f),logger[_0x2bdb1c(0x22b)](_0x2bdb1c(0x230)+_0x550418),fs[_0x2bdb1c(0x1ca)](_0x550418);fs[_0x2bdb1c(0x1ea)](_0x2da0e1)&&(logger[_0x2bdb1c(0x173)](_0x2bdb1c(0x230)+_0x2da0e1),fs[_0x2bdb1c(0x1ca)](_0x2da0e1));const _0x30b7aa=fs[_0x2bdb1c(0x185)](path[_0x2bdb1c(0x186)](helper[_0x2bdb1c(0x20e)](),_0x45d929['vpgrs']))[_0x2bdb1c(0x18a)](_0x2d2601=>_0x2d2601['startsWith']('trace_'));_0x30b7aa[_0x2bdb1c(0x1c9)](_0x178f7b=>{const _0x196b35=_0x2bdb1c;fs[_0x196b35(0x1ca)](path['join'](helper[_0x196b35(0x20e)](),_0x45d929[_0x196b35(0x1a5)],_0x178f7b));});}catch(_0x2bff34){logger[_0x2bdb1c(0x173)](_0x45d929[_0x2bdb1c(0x218)](_0x45d929[_0x2bdb1c(0x226)],_0x2bff34));}});})();}module[a39_0xe08fa(0x1e5)]=run;function a39_0x62bd(){const _0x23e52d=['isRunning','2629406soiPFS','path','existsSync','requirePWModule','test','../v2/browserstackCLI','fmAYD','oTShK','CPLAH','win32','initialize','PLAYWRIGHT','EVENTS','Playwright\x20process\x20exited\x20with\x20code\x20','RdiDP','winstonLogger','jzIAT','lwVSL','anoCS','../../helpers/BrowserStackSetup','pw_result.json','nestedKeyValue','dYyzH','browserstackAutomation','skipSessionName','finalExecution','../../helpers/helper','trim','10OFngWj','AXtvE','107484XmYZDU','map','dNNrO','ubSzA','BROWSERSTACK_TEST_OBSERVABILITY','hheMz','W_OK','EuEzp','homedir','logLevel','heqvg','BROWSERSTACK_PW_CONFIG_DIR','SDK_SETUP','.browserstack','792808JnVCgI','wqAZD','testContextOptions','657MVZmfR','gQdNx','YOkco','SDK_CLEANUP','./reporter/test-details','accessibility','504ucVius','resolve','exitCode','findIndex','cliConfig','getProxyUrl','BROWSERSTACK_AUTOMATION','USER_CONFIG_DETAILS_PATH','SuLlO','aIHnz','ApwcD','--config=','zMXgN','get','info','browserstackSetupConfig.json','BROWSERSTACK_SETUP_CONFIG_PATH','validateRerunTestList','../../helpers/testhub/testhubHandler','Deleting\x20','ZlOQc','filterBrowserstackArgs','debug','slice','125648XHhqbp','BWgpJ','automation','2922540YGVGDp','PWEJW','cWKuH','\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();','playwright-browserstack-sdk.config.cjs','eFqNC','ttIcn','bbJJi','tEThp','skipSessionStatus','cwd','--disable-test-observability','Proxy\x20url\x20:\x20','readdirSync','join','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','has','reportDotBrowserStackFolderNotAccessibleIssue','filter','../utils/constants','SDK_POST_INITIALIZE','636003kgugYb','length','haDZu','shutdown','dirname','start','readFileSync','zCjpR','setBrowserstackConfig','inherit','indexOf','../../helpers/test-observability/constants','getPackageType','constants','env','../../helpers/test-observability/utils','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','getConfig','jwJEu','playwright','isUndefined','URDgc','Error\x20in\x20deleting\x20playwright\x20results','close','vpgrs','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','KQqXe','split','5446760apvrUo','concat','accessibilityOptions','Updated\x20config\x20file\x20name\x20to\x20-\x20','error','Axjhz','BROWSERSTACK_TEST_ACCESSIBILITY_YML','writeFileSync','jdoCf','UjRUk','platform','splice','assign','MODULE','launchBuild','rbTRU','fDlgZ','child_process','startsWith','end','../utils/clientTroubleshootingService','VNeMw','util','qGLwJ','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','config','reportConflictingEnvVarIssue','testObservability','push','reportFinalDetectionState','../../helpers/performance/constants','forEach','unlinkSync','bootstrap','BROWSERSTACK_RERUN_TESTS','apply','npx','serializeToYamlString','measureWrapper','stop','../../helpers/utilities','No\x20Proxy\x20:\x20','vbKsp','Error\x20in\x20closing\x20playwright','setFrameworkDetail','getInstance','clearTempPWConfig','parse','isTypescriptProject','../v2/TestInfo','../../helpers/logger','INTERNALLY_USED_ENV_VARS','./reporter/pwUtils','isTrue','QiBsr','40XvQqWd','stringify','SwEjR','getNoProxy','exports','../../helpers/performance/performance-tester'];a39_0x62bd=function(){return _0x23e52d;};return a39_0x62bd();}
|