browserstack-node-sdk 1.50.6 → 1.50.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/jestTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/loadTestModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/v2/utils/jest-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a33_0x5abe3f=a33_0x1e1a;(function(_0x21cbeb,_0x24162f){const _0x591f0d=a33_0x1e1a,_0x360660=_0x21cbeb();while(!![]){try{const _0x2d7923=-parseInt(_0x591f0d(0x149))/0x1+parseInt(_0x591f0d(0x13e))/0x2+-parseInt(_0x591f0d(0xd9))/0x3+parseInt(_0x591f0d(0xf6))/0x4*(parseInt(_0x591f0d(0xf4))/0x5)+parseInt(_0x591f0d(0x119))/0x6*(parseInt(_0x591f0d(0xe4))/0x7)+parseInt(_0x591f0d(0xe1))/0x8+-parseInt(_0x591f0d(0x11a))/0x9;if(_0x2d7923===_0x24162f)break;else _0x360660['push'](_0x360660['shift']());}catch(_0x451cbd){_0x360660['push'](_0x360660['shift']());}}}(a33_0x1f09,0xefd5d));function a33_0x1e1a(_0x1f9c2c,_0xd3bb62){const _0x1f0933=a33_0x1f09();return a33_0x1e1a=function(_0x1e1a94,_0x5ded77){_0x1e1a94=_0x1e1a94-0xd5;let _0x30df1a=_0x1f0933[_0x1e1a94];return _0x30df1a;},a33_0x1e1a(_0x1f9c2c,_0xd3bb62);}function a33_0x1f09(){const _0x44cbdb=['storeOptimalHubUrl','push','SIHXi','quitCount_','ieOptions','path','capability','138oSezQF','18556569lFQnEj','../../../helpers/logger','ynBlk','set','zcFwe','../../../helpers/accessibility-automation/helper','UWFLK','NxyHy','capabilities_','chromeOptions_','browserStackLogLevel','BPFax','sYBcN','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','logLevel','updateHubUrl','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','setLogLevel','ieOptions_','safari.options','Proxy\x20set\x20to\x20','kbULt','isAccessibilityPlatform','../../../hubAllocationMethods','pTaDS','/wd/hub','getHttpAgent','goog:chromeOptions','KBXws','__drivers','PNkYk','setCapabilities','/session','getGlobal','cjiis','2256212mBmWVp','optimalHubUrl','info','./helpers/patchHelper','overrideGet','../../../bin/utils/constants','DsbiI','setServer','nqNSZ','NAImW','ugZAC','684123fJymDv','ZeCeN','getAccessibilityResultsSummary','WQSwN','CAPABILITY_KEY','__setBrowserOptions','YKkmZ','AYhCl','send','__driver','get','proxyUrl','HAFbn','bLvyi','url_','XXKKY','1020282linJCq','__driversArray','debug','then','dgjrM','requireHttpClient','../../../helpers/globals','YXCCo','4881152eNhDSZ','edgeOptions_','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','241297sAoYNv','setGlobal','fyqci','proxy_','newHubUrl','mergeDeep','isUndefined','eFNmw','caps_','Hub\x20url\x20set\x20to\x20','build','split','global','options_','edgeOptions','4|2|0|3|5|1','790uuGCTo','../../../helpers/helper','38920DwKFOF','safariOptions_','fGiiE','getAccessibilityResults','keys','isBrowserstackInfra','Builder','Modifying\x20webdriver\x20builder','error','object','proxySettings','browserstackAgentObservability','forEach','1|4|0|5|2|3','ZxRsP','agent_','jaEBU','xPJiN','lVFzF','https://','SGvxt','aGoRG','New\x20hub\x20url\x20set\x20to\x20','exports','winstonLogger','oBQcg','firefoxOptions_','originalBuilder'];a33_0x1f09=function(){return _0x44cbdb;};return a33_0x1f09();}const logger=require(a33_0x5abe3f(0x11b))[a33_0x5abe3f(0x10e)],helper=require(a33_0x5abe3f(0xf5)),constants=require(a33_0x5abe3f(0x143)),hubAllocator=require(a33_0x5abe3f(0x132)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require('../../../helpers/patchHelpers'),{setAccessibilityCapabilities,setExtension}=require('../accessibility-automation/helper'),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require(a33_0x5abe3f(0x11f)),globals=require(a33_0x5abe3f(0xdf)),{overrideExecute}=require(a33_0x5abe3f(0x141)),modify=(_0x18b76f,_0x1b05a1=null,_0x577d82=![])=>{const _0x3c77fb=a33_0x5abe3f,_0x82d445={'XXKKY':function(_0x2e25f6,_0x263dfc){return _0x2e25f6!==_0x263dfc;},'wevSa':_0x3c77fb(0x13b),'bLvyi':function(_0x3be43b,_0x5e7910){return _0x3be43b+_0x5e7910;},'SIHXi':_0x3c77fb(0x109),'ZeCeN':_0x3c77fb(0x134),'DsbiI':_0x3c77fb(0x136),'TNKAb':'chromeOptions','PNkYk':'ms:edgeOptions','YzuSP':_0x3c77fb(0xf2),'zcFwe':'moz:firefoxOptions','kbULt':'firefoxOptions','isrDp':_0x3c77fb(0x12e),'cjiis':'se:ieOptions','aGoRG':_0x3c77fb(0x116),'eFNmw':function(_0x185132,_0x53a7d7){return _0x185132===_0x53a7d7;},'fADgh':_0x3c77fb(0xff),'YXCCo':'Setting\x20Browserstack\x20capabilities','lVFzF':_0x3c77fb(0x13f),'NxyHy':'OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','pTaDS':function(_0x3d6db0,_0x4610b4,_0x1c6e65){return _0x3d6db0(_0x4610b4,_0x1c6e65);},'jaEBU':function(_0x38afaf,_0x394e31,_0xae008f){return _0x38afaf(_0x394e31,_0xae008f);},'rEaRd':_0x3c77fb(0xf3),'wkaET':function(_0x5d0216,_0x40e4fe){return _0x5d0216(_0x40e4fe);},'nqNSZ':function(_0x457262,_0x37c98d,_0x1630a2){return _0x457262(_0x37c98d,_0x1630a2);},'JEZaI':function(_0x22c039,_0x4faec9,_0x31f829){return _0x22c039(_0x4faec9,_0x31f829);},'oBQcg':function(_0x726113,_0x538e28,_0x2888d6){return _0x726113(_0x538e28,_0x2888d6);},'fyqci':_0x3c77fb(0x103),'cjZys':function(_0x5533c6){return _0x5533c6();},'dgjrM':function(_0x4c825b,_0x18dee6){return _0x4c825b(_0x18dee6);},'SGvxt':_0x3c77fb(0x131),'NAImW':function(_0x120e90,_0x387e6a,_0x505b72){return _0x120e90(_0x387e6a,_0x505b72);},'fGiiE':_0x3c77fb(0x127),'ugZAC':function(_0x5e59a8,_0x1d6d8d){return _0x5e59a8(_0x1d6d8d);},'sYBcN':function(_0x1901d7,_0x422d44,_0x472739){return _0x1901d7(_0x422d44,_0x472739);},'BPFax':_0x3c77fb(0xe3),'ZxRsP':_0x3c77fb(0xfd)},_0xfdf9c0=helper[_0x3c77fb(0xde)]();let _0x5ac161;try{_0x5ac161=helper['requireSeleniumWebdriver'](),_0x5ac161['originalBuilder']&&(_0x5ac161[_0x3c77fb(0xfc)]=_0x5ac161[_0x3c77fb(0x111)]);}catch(_0x21b02c){return;}if(helper['isBrowserstackInfra']()){const _0x4ce321={};_0x4ce321[_0x3c77fb(0x129)]=_0x18b76f[_0x3c77fb(0x124)],helper[_0x3c77fb(0x12c)](_0x4ce321,new Map(),new Map()),logger[_0x3c77fb(0x140)](_0x82d445[_0x3c77fb(0x125)]),logger[_0x3c77fb(0xdb)](_0x82d445[_0x3c77fb(0x104)]);}class _0x7bfa50 extends _0xfdf9c0['HttpClient']{[_0x3c77fb(0x151)](_0x19eae7){const _0x1d0eef=_0x3c77fb;if(_0x82d445[_0x1d0eef(0xd8)](_0x19eae7[_0x1d0eef(0x117)],_0x82d445['wevSa'])&&_0x82d445['XXKKY'](global[_0x1d0eef(0xe8)],''))try{global[_0x1d0eef(0xe8)]=_0x82d445['bLvyi'](_0x82d445[_0x1d0eef(0xd6)](_0x82d445[_0x1d0eef(0x114)],global[_0x1d0eef(0xe8)]),_0x82d445[_0x1d0eef(0x14a)]),this[_0x1d0eef(0xf1)]=hubAllocator['getRequestOptions'](global[_0x1d0eef(0xe8)]),logger[_0x1d0eef(0xdb)](_0x1d0eef(0x10c)+global[_0x1d0eef(0xe8)]),global[_0x1d0eef(0xe8)]='';}catch(_0x144712){logger[_0x1d0eef(0xfe)](_0x144712);}return super['send'](_0x19eae7);}}class _0x2abbfc extends _0x5ac161[_0x3c77fb(0xfc)]{['setServer'](){const _0x90c4de=_0x3c77fb;return this[_0x90c4de(0xd7)]=helper['getHubUrl'](_0x18b76f),logger[_0x90c4de(0xdb)](_0x90c4de(0xed)+this['url_']),this;}[_0x3c77fb(0x14e)](_0x23157d){const _0x2f145b=_0x3c77fb;let _0x460db8={};for(const _0xd558ea in _0x23157d){switch(_0xd558ea){case _0x82d445[_0x2f145b(0x144)]:case _0x82d445['TNKAb']:this[_0x2f145b(0x123)]&&(_0x460db8=this[_0x2f145b(0x123)][_0x2f145b(0x153)](this[_0x2f145b(0x123)][_0x2f145b(0x14d)])||{},this[_0x2f145b(0x123)][_0x2f145b(0x11d)](this[_0x2f145b(0x123)][_0x2f145b(0x14d)],helper[_0x2f145b(0xe9)](_0x460db8,_0x23157d[_0xd558ea])));break;case _0x82d445[_0x2f145b(0x139)]:case _0x82d445['YzuSP']:this[_0x2f145b(0xe2)]&&(_0x460db8=this['edgeOptions_']['get'](this[_0x2f145b(0xe2)][_0x2f145b(0x14d)])||{},this[_0x2f145b(0xe2)][_0x2f145b(0x11d)](this['edgeOptions_']['CAPABILITY_KEY'],helper[_0x2f145b(0xe9)](_0x460db8,_0x23157d[_0xd558ea])));break;case _0x82d445[_0x2f145b(0x11e)]:case _0x82d445[_0x2f145b(0x130)]:this['firefoxOptions_']&&(_0x460db8=this['firefoxOptions_'][_0x2f145b(0x153)](this['firefoxOptions_'][_0x2f145b(0x14d)])||{},this[_0x2f145b(0x110)]['set'](this['firefoxOptions_'][_0x2f145b(0x14d)],helper[_0x2f145b(0xe9)](_0x460db8,_0x23157d[_0xd558ea])));break;case _0x82d445['isrDp']:this['safariOptions_']&&(_0x460db8=this[_0x2f145b(0xf7)][_0x2f145b(0x153)](this[_0x2f145b(0xf7)]['CAPABILITY_KEY'])||{},this[_0x2f145b(0xf7)][_0x2f145b(0x11d)](this['safariOptions_'][_0x2f145b(0x14d)],helper[_0x2f145b(0xe9)](_0x460db8,_0x23157d[_0xd558ea])));break;case _0x82d445[_0x2f145b(0x13d)]:case _0x82d445[_0x2f145b(0x10b)]:this[_0x2f145b(0x12d)]&&(_0x460db8=this['ieOptions_'][_0x2f145b(0x153)](this[_0x2f145b(0x12d)][_0x2f145b(0x14d)])||{},this[_0x2f145b(0x12d)]['set'](this[_0x2f145b(0x12d)][_0x2f145b(0x14d)],helper['mergeDeep'](_0x460db8,_0x23157d[_0xd558ea])));break;}}}[_0x3c77fb(0x13a)](){const _0x28bcfd=_0x3c77fb;return logger['debug'](_0x82d445[_0x28bcfd(0xe0)]),this[_0x28bcfd(0x14e)](_0x18b76f[_0x28bcfd(0x118)]),Object[_0x28bcfd(0xfa)](_0x18b76f[_0x28bcfd(0x118)])[_0x28bcfd(0x102)](_0x2fbe37=>{const _0x47d729=_0x28bcfd,_0x3231c3=this['capabilities_'][_0x47d729(0x153)](_0x2fbe37);_0x82d445[_0x47d729(0xeb)](typeof _0x3231c3,_0x82d445['fADgh'])?this['capabilities_']['set'](_0x2fbe37,helper[_0x47d729(0xe9)](_0x3231c3,_0x18b76f[_0x47d729(0x118)][_0x2fbe37])):this[_0x47d729(0x122)]['set'](_0x2fbe37,_0x18b76f[_0x47d729(0x118)][_0x2fbe37]);}),this;}[_0x3c77fb(0xee)](){const _0x52fc9c=_0x3c77fb,_0x134b0f={'AYhCl':_0x82d445[_0x52fc9c(0x108)],'WQSwN':_0x82d445[_0x52fc9c(0x121)],'YKkmZ':function(_0xa7f32,_0x1ede30,_0x26bdda){const _0x5b68f2=_0x52fc9c;return _0x82d445[_0x5b68f2(0x133)](_0xa7f32,_0x1ede30,_0x26bdda);},'zKDDC':function(_0x7f16ae,_0x5f37a2,_0x1dcf03){const _0x28a2b5=_0x52fc9c;return _0x82d445[_0x28a2b5(0x106)](_0x7f16ae,_0x5f37a2,_0x1dcf03);},'BgOLg':_0x82d445['rEaRd'],'ynBlk':function(_0x5044ef,_0x257792){return _0x82d445['wkaET'](_0x5044ef,_0x257792);},'KBXws':function(_0x9fa12a,_0x588f35,_0x5655a9){const _0x2195b5=_0x52fc9c;return _0x82d445[_0x2195b5(0x146)](_0x9fa12a,_0x588f35,_0x5655a9);},'UWFLK':function(_0x37ce8d,_0x3dfbcf,_0x429c41){return _0x82d445['JEZaI'](_0x37ce8d,_0x3dfbcf,_0x429c41);},'HAFbn':function(_0x35f4d5,_0x50a2c2,_0x15a60){const _0x2a84d7=_0x52fc9c;return _0x82d445[_0x2a84d7(0x10f)](_0x35f4d5,_0x50a2c2,_0x15a60);},'xPJiN':function(_0x9b1354,_0x31af34,_0x139c50){const _0x5d1988=_0x52fc9c;return _0x82d445[_0x5d1988(0x106)](_0x9b1354,_0x31af34,_0x139c50);}};if(helper[_0x52fc9c(0xfb)]()){const _0x23497a=_0x82d445[_0x52fc9c(0xe6)][_0x52fc9c(0xef)]('|');let _0x2e8f88=0x0;while(!![]){switch(_0x23497a[_0x2e8f88++]){case'0':this[_0x52fc9c(0x13a)]();continue;case'1':_0x82d445['cjZys'](isAccessibilityAutomationSession)&&_0x82d445[_0x52fc9c(0xdd)](setAccessibilityCapabilities,_0x18b76f);continue;case'2':globals[_0x52fc9c(0x13c)](_0x82d445[_0x52fc9c(0x10a)])&&(!_0x82d445[_0x52fc9c(0x147)](setExtension,this,_0x18b76f)&&globals[_0x52fc9c(0xe5)](_0x82d445[_0x52fc9c(0x10a)],![]));continue;case'3':logger[_0x52fc9c(0xdb)](_0x82d445[_0x52fc9c(0xf8)]);continue;case'4':this[_0x52fc9c(0x145)]();continue;case'5':if(helper['isPacProxy'](_0x18b76f[_0x52fc9c(0x100)][_0x52fc9c(0x154)]))this[_0x52fc9c(0x105)]=helper[_0x52fc9c(0x135)](_0x18b76f['proxySettings'][_0x52fc9c(0x154)]);else _0x18b76f[_0x52fc9c(0x100)][_0x52fc9c(0x154)]&&(this['proxy_']=_0x18b76f['proxySettings'][_0x52fc9c(0x154)],logger[_0x52fc9c(0xdb)](_0x52fc9c(0x12f)+this[_0x52fc9c(0xe7)]));continue;}break;}}const _0x2b949e=super[_0x52fc9c(0xee)]();return _0x2b949e['session_']['then'](_0x13ca35=>{const _0x4b7934=_0x52fc9c;try{const _0x437bc7=_0x13ca35[_0x4b7934(0xec)]['get'](_0x134b0f[_0x4b7934(0x150)]);_0x437bc7?(logger['debug'](_0x4b7934(0x128)+_0x437bc7),hubAllocator[_0x4b7934(0x12a)](_0x437bc7),helper[_0x4b7934(0x112)](_0x437bc7)):logger[_0x4b7934(0xdb)](_0x134b0f[_0x4b7934(0x14c)]);}catch(_0xf080cc){logger[_0x4b7934(0xdb)](_0x4b7934(0x12b)+_0xf080cc);}}),_0x2b949e[_0x52fc9c(0x115)]=0x0,_0x2b949e[_0x52fc9c(0xdc)]&&_0x2b949e['then'](_0x217d9c=>{const _0xe3f1e0=_0x52fc9c,_0x4fc397=_0x134b0f['BgOLg'][_0xe3f1e0(0xef)]('|');let _0x228eb6=0x0;while(!![]){switch(_0x4fc397[_0x228eb6++]){case'0':helper[_0xe3f1e0(0x142)](_0x217d9c,_0x18b76f);continue;case'1':_0x217d9c[_0xe3f1e0(0xf9)]=async()=>{return await _0x134b0f['zKDDC'](getAccessibilityResults,_0x217d9c,global);};continue;case'2':_0x134b0f[_0xe3f1e0(0x11c)](overrideTakeScreenshot,_0x217d9c);continue;case'3':_0x134b0f[_0xe3f1e0(0x137)](overrideExecute,_0x217d9c,_0x18b76f);continue;case'4':_0x134b0f[_0xe3f1e0(0x120)](overrideQuit,_0x217d9c,_0x2b949e);continue;case'5':_0x217d9c['getAccessibilityResultsSummary']=async()=>{const _0x34e7d7=_0xe3f1e0;return await _0x134b0f[_0x34e7d7(0x14f)](getAccessibilityResultsSummary,_0x217d9c,global);};continue;}break;}}),_0x2b949e[_0x52fc9c(0x14b)]=async()=>{const _0xbdb926=_0x52fc9c;return await _0x134b0f[_0xbdb926(0xd5)](getAccessibilityResultsSummary,_0x2b949e,global);},_0x2b949e[_0x52fc9c(0xf9)]=async()=>{const _0x4779c2=_0x52fc9c;return await _0x134b0f[_0x4779c2(0x107)](getAccessibilityResults,_0x2b949e,global);},_0x82d445[_0x52fc9c(0x148)](overrideTakeScreenshot,_0x2b949e),_0x82d445[_0x52fc9c(0x148)](overrideQuit,_0x2b949e),helper[_0x52fc9c(0x142)](_0x2b949e,_0x18b76f),_0x82d445[_0x52fc9c(0x126)](overrideExecute,_0x2b949e,_0x18b76f),helper[_0x52fc9c(0xea)](global[_0x52fc9c(0xda)])&&(global[_0x52fc9c(0xda)]=[]),helper['isUndefined'](global['__drivers'])&&(global[_0x52fc9c(0x138)]=[]),global[_0x52fc9c(0xda)][_0x52fc9c(0x113)](_0x2b949e),global[_0x52fc9c(0x152)]=_0x2b949e,_0x82d445[_0x52fc9c(0xd8)](global[_0x52fc9c(0x138)],undefined)&&global[_0x52fc9c(0x138)]['push'](_0x2b949e),_0x1b05a1&&helper[_0x52fc9c(0xea)](_0x1b05a1[_0x52fc9c(0xf0)][_0x52fc9c(0xda)])&&(_0x1b05a1[_0x52fc9c(0xf0)][_0x52fc9c(0xda)]=[]),_0x1b05a1&&_0x82d445[_0x52fc9c(0xd8)](_0x1b05a1[_0x52fc9c(0xf0)]['__drivers'],undefined)&&(_0x1b05a1[_0x52fc9c(0xf0)][_0x52fc9c(0x138)][_0x52fc9c(0x113)](_0x2b949e),_0x1b05a1[_0x52fc9c(0xf0)]['__driversArray'][_0x52fc9c(0x113)](_0x2b949e)),_0x2b949e;}}return _0x5ac161[_0x3c77fb(0x111)]=_0x5ac161[_0x3c77fb(0xfc)],_0x5ac161[_0x3c77fb(0xfc)]=_0x2abbfc,_0xfdf9c0['HttpClient']=_0x7bfa50,_0x5ac161;};module[a33_0x5abe3f(0x10d)][a33_0x5abe3f(0x101)]=modify;
|
|
1
|
+
function a33_0x5682(_0x142142,_0x1acd10){const _0x4b57d2=a33_0x4b57();return a33_0x5682=function(_0x568297,_0x18d6f8){_0x568297=_0x568297-0x159;let _0x37fc1c=_0x4b57d2[_0x568297];return _0x37fc1c;},a33_0x5682(_0x142142,_0x1acd10);}const a33_0x1ac194=a33_0x5682;(function(_0xe0187,_0x191f47){const _0x17aebf=a33_0x5682,_0xce028b=_0xe0187();while(!![]){try{const _0x544e32=parseInt(_0x17aebf(0x1af))/0x1+parseInt(_0x17aebf(0x15f))/0x2+-parseInt(_0x17aebf(0x1b5))/0x3+-parseInt(_0x17aebf(0x179))/0x4+parseInt(_0x17aebf(0x174))/0x5*(-parseInt(_0x17aebf(0x171))/0x6)+-parseInt(_0x17aebf(0x173))/0x7*(parseInt(_0x17aebf(0x18a))/0x8)+-parseInt(_0x17aebf(0x19d))/0x9*(-parseInt(_0x17aebf(0x1b9))/0xa);if(_0x544e32===_0x191f47)break;else _0xce028b['push'](_0xce028b['shift']());}catch(_0x4987f7){_0xce028b['push'](_0xce028b['shift']());}}}(a33_0x4b57,0x71233));function a33_0x4b57(){const _0x5a683c=['isUndefined','__setBrowserOptions','caps_','getAccessibilityResultsSummary','1519580DiniQp','TEQpP','./helpers/patchHelper','forEach','getAccessibilityResults','../../../hubAllocationMethods','../../../helpers/logger','keys','Modifying\x20webdriver\x20builder','newHubUrl','then','proxyUrl','global','injyX','goog:chromeOptions','xQVRl','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','getRequestOptions','102VrMQhD','push','8491vnGTmH','247315CjbYAV','setServer','SqEsQ','getHttpAgent','capabilities_','3349076IIfiuy','browserStackLogLevel','Builder','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','../../../bin/utils/constants','requireHttpClient','WJaxO','../accessibility-automation/helper','ieOptions_','proxySettings','overrideGet','optimalHubUrl','kGFBA','../../../helpers/patchHelpers','mergeDeep','storeOptimalHubUrl','febsX','1584TNzLmh','arSzN','AvWme','tiiXc','ms:edgeOptions','debug','build','getGlobal','xktee','muuyD','set','NxKfE','capability','setCapabilities','eVJgX','dtWCy','__drivers','chromeOptions_','NIycA','27ABYdtd','KjYDG','agent_','New\x20hub\x20url\x20set\x20to\x20','requireSeleniumWebdriver','session_','CAPABILITY_KEY','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','YPEnt','exports','zwEfd','PwmJK','setGlobal','get','TNalo','url_','gRmVb','ZknBk','304701AszYMu','isPacProxy','firefoxOptions_','setLogLevel','hLhTN','originalBuilder','1812861JxiNIe','isAccessibilityPlatform','moz:firefoxOptions','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','6405070johubD','CHXOi','updateHubUrl','Proxy\x20set\x20to\x20','__driversArray','info','options_','faOQZ','https://','iCTdY','Setting\x20Browserstack\x20capabilities','proxy_','edgeOptions_','split','HttpClient','winstonLogger','chromeOptions','HNShG','object','quitCount_','TCnGe','__driver','BKCmh','path','LVQeV','isBrowserstackInfra','browserstackAgentObservability','safariOptions_','firefoxOptions','/wd/hub','nqHFE','getHubUrl'];a33_0x4b57=function(){return _0x5a683c;};return a33_0x4b57();}const logger=require(a33_0x1ac194(0x165))[a33_0x1ac194(0x1c8)],helper=require('../../../helpers/helper'),constants=require(a33_0x1ac194(0x17d)),hubAllocator=require(a33_0x1ac194(0x164)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x1ac194(0x186)),{setAccessibilityCapabilities,setExtension}=require(a33_0x1ac194(0x180)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require('../../../helpers/globals'),{overrideExecute}=require(a33_0x1ac194(0x161)),modify=(_0x57e375,_0x50a970=null,_0x4767db=![])=>{const _0x2d2ddb=a33_0x1ac194,_0x324df1={'rnjQK':function(_0x2bbeed,_0x651072){return _0x2bbeed!==_0x651072;},'injyX':'/session','faOQZ':function(_0x51cb7f,_0x414731){return _0x51cb7f!==_0x414731;},'BKCmh':function(_0x25f9a6,_0x5cfe32){return _0x25f9a6+_0x5cfe32;},'bKuJJ':function(_0x1b91d6,_0x1b9c78){return _0x1b91d6+_0x1b9c78;},'WJaxO':_0x2d2ddb(0x1c1),'dtWCy':_0x2d2ddb(0x1d6),'TEQpP':_0x2d2ddb(0x16d),'AVLqA':_0x2d2ddb(0x1c9),'nqHFE':_0x2d2ddb(0x18e),'tJbDC':'edgeOptions','tiiXc':_0x2d2ddb(0x1b7),'KjYDG':_0x2d2ddb(0x1d5),'YPEnt':'safari.options','PwmJK':'se:ieOptions','TNalo':'ieOptions','GyLZt':function(_0x5478e0,_0x43d750){return _0x5478e0===_0x43d750;},'TCnGe':_0x2d2ddb(0x1cb),'HNShG':_0x2d2ddb(0x1c3),'ZknBk':_0x2d2ddb(0x184),'febsX':_0x2d2ddb(0x16f),'LVQeV':function(_0x2598e6,_0x10497c,_0x51bccd){return _0x2598e6(_0x10497c,_0x51bccd);},'AvWme':function(_0xd81c43,_0xfdd841,_0x30403b){return _0xd81c43(_0xfdd841,_0x30403b);},'iCTdY':function(_0xa6e18b,_0x48fbfd){return _0xa6e18b(_0x48fbfd);},'kGFBA':function(_0x521e3c,_0x24df6a,_0xae851f){return _0x521e3c(_0x24df6a,_0xae851f);},'hLhTN':function(_0x35dd4b,_0x5492b6,_0x2448ed){return _0x35dd4b(_0x5492b6,_0x2448ed);},'TMWxm':'1|3|4|0|2|5','muuyD':function(_0x18146b){return _0x18146b();},'NIycA':function(_0x24122c,_0x460cfb){return _0x24122c(_0x460cfb);},'eVJgX':_0x2d2ddb(0x1b6),'NxKfE':function(_0x352025,_0x9f8aa6,_0x3c9eec){return _0x352025(_0x9f8aa6,_0x3c9eec);},'moANW':_0x2d2ddb(0x1b8),'arSzN':function(_0x2175d0,_0x17bf19){return _0x2175d0(_0x17bf19);},'zwEfd':function(_0x5b8291,_0x5e7d76,_0xfe4ed5){return _0x5b8291(_0x5e7d76,_0xfe4ed5);},'xktee':function(_0xa8abb2,_0x1b53b8){return _0xa8abb2!==_0x1b53b8;},'SqEsQ':_0x2d2ddb(0x17c),'xQVRl':_0x2d2ddb(0x167)},_0x543b65=helper[_0x2d2ddb(0x17e)]();let _0x581949;try{_0x581949=helper[_0x2d2ddb(0x1a1)](),_0x581949[_0x2d2ddb(0x1b4)]&&(_0x581949['Builder']=_0x581949[_0x2d2ddb(0x1b4)]);}catch(_0x1cea44){return;}if(helper[_0x2d2ddb(0x1d2)]()){const _0x841e86={};_0x841e86['logLevel']=_0x57e375[_0x2d2ddb(0x17a)],helper[_0x2d2ddb(0x1b2)](_0x841e86,new Map(),new Map()),logger[_0x2d2ddb(0x1be)](_0x324df1[_0x2d2ddb(0x176)]),logger['debug'](_0x324df1[_0x2d2ddb(0x16e)]);}class _0x46f155 extends _0x543b65[_0x2d2ddb(0x1c7)]{['send'](_0x249c06){const _0x52910a=_0x2d2ddb;if(_0x324df1['rnjQK'](_0x249c06[_0x52910a(0x1d0)],_0x324df1[_0x52910a(0x16c)])&&_0x324df1[_0x52910a(0x1c0)](global[_0x52910a(0x168)],''))try{global[_0x52910a(0x168)]=_0x324df1[_0x52910a(0x1cf)](_0x324df1['bKuJJ'](_0x324df1[_0x52910a(0x17f)],global[_0x52910a(0x168)]),_0x324df1[_0x52910a(0x199)]),this[_0x52910a(0x1bf)]=hubAllocator[_0x52910a(0x170)](global[_0x52910a(0x168)]),logger['debug'](_0x52910a(0x1a0)+global[_0x52910a(0x168)]),global[_0x52910a(0x168)]='';}catch(_0x92ac20){logger['error'](_0x92ac20);}return super['send'](_0x249c06);}}class _0xbdc9e extends _0x581949[_0x2d2ddb(0x17b)]{['setServer'](){const _0xe4f047=_0x2d2ddb;return this[_0xe4f047(0x1ac)]=helper[_0xe4f047(0x15a)](_0x57e375),logger[_0xe4f047(0x18f)]('Hub\x20url\x20set\x20to\x20'+this['url_']),this;}[_0x2d2ddb(0x15c)](_0x12718c){const _0x29309e=_0x2d2ddb;let _0x3f25e4={};for(const _0xd70547 in _0x12718c){switch(_0xd70547){case _0x324df1[_0x29309e(0x160)]:case _0x324df1['AVLqA']:this[_0x29309e(0x19b)]&&(_0x3f25e4=this[_0x29309e(0x19b)]['get'](this[_0x29309e(0x19b)][_0x29309e(0x1a3)])||{},this[_0x29309e(0x19b)][_0x29309e(0x194)](this[_0x29309e(0x19b)][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;case _0x324df1[_0x29309e(0x159)]:case _0x324df1['tJbDC']:this['edgeOptions_']&&(_0x3f25e4=this[_0x29309e(0x1c5)]['get'](this[_0x29309e(0x1c5)][_0x29309e(0x1a3)])||{},this[_0x29309e(0x1c5)][_0x29309e(0x194)](this[_0x29309e(0x1c5)][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;case _0x324df1[_0x29309e(0x18d)]:case _0x324df1[_0x29309e(0x19e)]:this[_0x29309e(0x1b1)]&&(_0x3f25e4=this['firefoxOptions_'][_0x29309e(0x1aa)](this['firefoxOptions_'][_0x29309e(0x1a3)])||{},this['firefoxOptions_'][_0x29309e(0x194)](this[_0x29309e(0x1b1)][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;case _0x324df1[_0x29309e(0x1a5)]:this['safariOptions_']&&(_0x3f25e4=this[_0x29309e(0x1d4)][_0x29309e(0x1aa)](this[_0x29309e(0x1d4)]['CAPABILITY_KEY'])||{},this['safariOptions_'][_0x29309e(0x194)](this['safariOptions_'][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;case _0x324df1[_0x29309e(0x1a8)]:case _0x324df1[_0x29309e(0x1ab)]:this['ieOptions_']&&(_0x3f25e4=this[_0x29309e(0x181)][_0x29309e(0x1aa)](this[_0x29309e(0x181)][_0x29309e(0x1a3)])||{},this[_0x29309e(0x181)][_0x29309e(0x194)](this[_0x29309e(0x181)][_0x29309e(0x1a3)],helper[_0x29309e(0x187)](_0x3f25e4,_0x12718c[_0xd70547])));break;}}}[_0x2d2ddb(0x197)](){const _0x36d804=_0x2d2ddb;return logger[_0x36d804(0x18f)](_0x324df1[_0x36d804(0x1ca)]),this['__setBrowserOptions'](_0x57e375[_0x36d804(0x196)]),Object[_0x36d804(0x166)](_0x57e375[_0x36d804(0x196)])[_0x36d804(0x162)](_0x2c9484=>{const _0x2e1d93=_0x36d804,_0x340b38=this['capabilities_'][_0x2e1d93(0x1aa)](_0x2c9484);_0x324df1['GyLZt'](typeof _0x340b38,_0x324df1[_0x2e1d93(0x1cd)])?this[_0x2e1d93(0x178)][_0x2e1d93(0x194)](_0x2c9484,helper['mergeDeep'](_0x340b38,_0x57e375[_0x2e1d93(0x196)][_0x2c9484])):this[_0x2e1d93(0x178)][_0x2e1d93(0x194)](_0x2c9484,_0x57e375[_0x2e1d93(0x196)][_0x2c9484]);}),this;}['build'](){const _0x43447c=_0x2d2ddb,_0x46a489={'gRmVb':function(_0x26b462,_0x529519,_0x382f6d){const _0x4ee031=a33_0x5682;return _0x324df1[_0x4ee031(0x1b3)](_0x26b462,_0x529519,_0x382f6d);}};if(helper['isBrowserstackInfra']()){const _0x4a7031=_0x324df1['TMWxm'][_0x43447c(0x1c6)]('|');let _0x114bbd=0x0;while(!![]){switch(_0x4a7031[_0x114bbd++]){case'0':if(helper[_0x43447c(0x1b0)](_0x57e375['proxySettings'][_0x43447c(0x16a)]))this[_0x43447c(0x19f)]=helper[_0x43447c(0x177)](_0x57e375[_0x43447c(0x182)][_0x43447c(0x16a)]);else _0x57e375['proxySettings'][_0x43447c(0x16a)]&&(this[_0x43447c(0x1c4)]=_0x57e375[_0x43447c(0x182)][_0x43447c(0x16a)],logger['debug'](_0x43447c(0x1bc)+this[_0x43447c(0x1c4)]));continue;case'1':_0x324df1[_0x43447c(0x193)](isAccessibilityAutomationSession)&&_0x324df1[_0x43447c(0x19c)](setAccessibilityCapabilities,_0x57e375);continue;case'2':globals[_0x43447c(0x191)](_0x324df1[_0x43447c(0x198)])&&(!_0x324df1[_0x43447c(0x195)](setExtension,this,_0x57e375)&&globals[_0x43447c(0x1a9)](_0x324df1['eVJgX'],![]));continue;case'3':this[_0x43447c(0x175)]();continue;case'4':this[_0x43447c(0x197)]();continue;case'5':logger[_0x43447c(0x18f)](_0x324df1['moANW']);continue;}break;}}const _0x9026c=super[_0x43447c(0x190)]();return _0x9026c[_0x43447c(0x1a2)]['then'](_0x242acd=>{const _0x5019bd=_0x43447c;try{const _0x267490=_0x242acd[_0x5019bd(0x15d)][_0x5019bd(0x1aa)](_0x324df1[_0x5019bd(0x1ae)]);_0x267490?(logger[_0x5019bd(0x18f)]('SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20'+_0x267490),hubAllocator[_0x5019bd(0x1bb)](_0x267490),helper[_0x5019bd(0x188)](_0x267490)):logger['debug'](_0x324df1[_0x5019bd(0x189)]);}catch(_0x270029){logger[_0x5019bd(0x18f)](_0x5019bd(0x1a4)+_0x270029);}}),_0x9026c[_0x43447c(0x1cc)]=0x0,_0x9026c[_0x43447c(0x169)]&&_0x9026c['then'](_0x2fef37=>{const _0x27c47f=_0x43447c,_0x129d7d={'CHXOi':function(_0x358df3,_0x92fc57,_0x462609){return _0x324df1['LVQeV'](_0x358df3,_0x92fc57,_0x462609);}};_0x324df1[_0x27c47f(0x18c)](overrideQuit,_0x2fef37,_0x9026c),_0x324df1[_0x27c47f(0x1c2)](overrideTakeScreenshot,_0x2fef37),helper[_0x27c47f(0x183)](_0x2fef37,_0x57e375),_0x324df1[_0x27c47f(0x1d1)](overrideExecute,_0x2fef37,_0x57e375),_0x2fef37[_0x27c47f(0x15e)]=async()=>{const _0x4b740f=_0x27c47f;return await _0x46a489[_0x4b740f(0x1ad)](getAccessibilityResultsSummary,_0x2fef37,global);},_0x2fef37[_0x27c47f(0x163)]=async()=>{const _0x4afbbb=_0x27c47f;return await _0x129d7d[_0x4afbbb(0x1ba)](getAccessibilityResults,_0x2fef37,global);};}),_0x9026c[_0x43447c(0x15e)]=async()=>{const _0x4c28a9=_0x43447c;return await _0x324df1[_0x4c28a9(0x185)](getAccessibilityResultsSummary,_0x9026c,global);},_0x9026c[_0x43447c(0x163)]=async()=>{const _0x5dc292=_0x43447c;return await _0x324df1[_0x5dc292(0x18c)](getAccessibilityResults,_0x9026c,global);},_0x324df1[_0x43447c(0x18b)](overrideTakeScreenshot,_0x9026c),_0x324df1[_0x43447c(0x1c2)](overrideQuit,_0x9026c),helper[_0x43447c(0x183)](_0x9026c,_0x57e375),_0x324df1[_0x43447c(0x1a7)](overrideExecute,_0x9026c,_0x57e375),helper[_0x43447c(0x15b)](global['__driversArray'])&&(global[_0x43447c(0x1bd)]=[]),helper[_0x43447c(0x15b)](global[_0x43447c(0x19a)])&&(global['__drivers']=[]),global[_0x43447c(0x1bd)][_0x43447c(0x172)](_0x9026c),global[_0x43447c(0x1ce)]=_0x9026c,_0x324df1['rnjQK'](global[_0x43447c(0x19a)],undefined)&&global[_0x43447c(0x19a)][_0x43447c(0x172)](_0x9026c),_0x50a970&&helper[_0x43447c(0x15b)](_0x50a970['global'][_0x43447c(0x1bd)])&&(_0x50a970['global'][_0x43447c(0x1bd)]=[]),_0x50a970&&_0x324df1[_0x43447c(0x192)](_0x50a970[_0x43447c(0x16b)]['__drivers'],undefined)&&(_0x50a970[_0x43447c(0x16b)][_0x43447c(0x19a)]['push'](_0x9026c),_0x50a970[_0x43447c(0x16b)][_0x43447c(0x1bd)][_0x43447c(0x172)](_0x9026c)),_0x9026c;}}return _0x581949[_0x2d2ddb(0x1b4)]=_0x581949[_0x2d2ddb(0x17b)],_0x581949[_0x2d2ddb(0x17b)]=_0xbdc9e,_0x543b65[_0x2d2ddb(0x1c7)]=_0x46f155,_0x581949;};module[a33_0x1ac194(0x1a6)][a33_0x1ac194(0x1d3)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x306f05=a34_0x4e42;function a34_0x32e0(){const _0x5d0164=['8577976UWweUu','63ceCSIl','2290280cfNJYf','6848106qmScMD','restore','12vYyOVr','timeout','7UlFked','../../../bin/utils/constants','41840051TpUSzt','1201734xLkees','mochaHooks','72254kdxyyW','230870GBfJoc','23HQSsRA','sJYuR'];a34_0x32e0=function(){return _0x5d0164;};return a34_0x32e0();}(function(_0x2795f9,_0x28addf){const _0x2d6b50=a34_0x4e42,_0x47402b=_0x2795f9();while(!![]){try{const _0x1aeb0c=-parseInt(_0x2d6b50(0x16c))/0x1*(-parseInt(_0x2d6b50(0x16a))/0x2)+parseInt(_0x2d6b50(0x168))/0x3*(parseInt(_0x2d6b50(0x163))/0x4)+parseInt(_0x2d6b50(0x160))/0x5+-parseInt(_0x2d6b50(0x161))/0x6*(-parseInt(_0x2d6b50(0x165))/0x7)+parseInt(_0x2d6b50(0x15e))/0x8+-parseInt(_0x2d6b50(0x15f))/0x9*(parseInt(_0x2d6b50(0x16b))/0xa)+-parseInt(_0x2d6b50(0x167))/0xb;if(_0x1aeb0c===_0x28addf)break;else _0x47402b['push'](_0x47402b['shift']());}catch(_0x4133e1){_0x47402b['push'](_0x47402b['shift']());}}}(a34_0x32e0,0xb46f3));const requestSpy=require('../../../helpers/request-spy'),constants=require(a34_0x306f05(0x166)),{addRequestSpy}=require('../../../helpers/test-observability/utils');function a34_0x4e42(_0x41a133,_0x150396){const _0x32e02a=a34_0x32e0();return a34_0x4e42=function(_0x4e4243,_0x13dafd){_0x4e4243=_0x4e4243-0x15d;let _0x2f3266=_0x32e02a[_0x4e4243];return _0x2f3266;},a34_0x4e42(_0x41a133,_0x150396);}exports[a34_0x306f05(0x169)]={'beforeAll'(){const _0x536627=a34_0x306f05,_0x157627={'sJYuR':function(_0x1d5e2e){return _0x1d5e2e();}},_0x4819c9='browserstack internal helper hook';_0x157627[_0x536627(0x15d)](addRequestSpy);},'afterAll'(){const _0x1d345e=a34_0x306f05,_0x1c571e='browserstack internal helper hook';this[_0x1d345e(0x164)](0xea60),requestSpy[_0x1d345e(0x162)]();}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a35_0x31af(_0x3fa546,_0x1cfe24){const _0x3adf55=a35_0x3adf();return a35_0x31af=function(_0x31af34,_0x7a9903){_0x31af34=_0x31af34-0x1e9;let _0xf4d4d0=_0x3adf55[_0x31af34];return _0xf4d4d0;},a35_0x31af(_0x3fa546,_0x1cfe24);}const a35_0x166a3b=a35_0x31af;(function(_0x1e3504,_0x57e759){const _0x4371a9=a35_0x31af,_0x5540bf=_0x1e3504();while(!![]){try{const _0x1ac670=-parseInt(_0x4371a9(0x247))/0x1*(parseInt(_0x4371a9(0x241))/0x2)+parseInt(_0x4371a9(0x22f))/0x3+-parseInt(_0x4371a9(0x1ee))/0x4*(parseInt(_0x4371a9(0x227))/0x5)+-parseInt(_0x4371a9(0x210))/0x6*(-parseInt(_0x4371a9(0x225))/0x7)+parseInt(_0x4371a9(0x20b))/0x8+parseInt(_0x4371a9(0x1f1))/0x9+parseInt(_0x4371a9(0x1fc))/0xa*(-parseInt(_0x4371a9(0x20f))/0xb);if(_0x1ac670===_0x57e759)break;else _0x5540bf['push'](_0x5540bf['shift']());}catch(_0x30f68a){_0x5540bf['push'](_0x5540bf['shift']());}}}(a35_0x3adf,0x5d5c8));function a35_0x3adf(){const _0x596b8a=['558990IwZULB','Reahe','../../../helpers/test-observability/utils','mapTestHooks','lodash','GqSrb','WmRlL','suites','hookAnalyticsId','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','getBrowserName','type','failed','slice','uuid','1932088yMUOSC','../../../helpers/testhub/utils','CMetQ','js-','121mmoaci','66NqEyCA','WiMEj','JorbB','parent','toISOString','pending','unknown_grid','../../utils/logPatcher','getCapabilities','DWTvZ','map_','_afterAll','SjtVI','PlnfU','get','PSUdU','forEach','getTestEnv','vERiB','vpJTb','push','324842FgsYQE','state','1423065abGRtN','TEST_PLATFORM','browserstack','__cloud_provider___','../../../../package.json','reduce','getHookDetails','getSession','1056747oiQHWJ','split','BCZBi','string','../../../helpers/test-observability/constants','_beforeAll','XWbUE','UwXeI','_beforeEach','zFTqk','KeXbk','jDnYv','substring','AYtyj','_afterEach','indexOf','hook','blplh','192008EVMhYP','cCelx','fromEntries','WbaIZ','bs:addPlatformDetails:','riIsl','6yTJZOu','platformVersion','sendPlatformDetails','getPlatform','nqpqw','../../../helpers/helper','PAouq','4lLaNrM','FpTIZ','KLhJx','6783372PZxGPG','Eqzun','sgPyY','getHooksForTest','zuvAX','WatEp','markedStatus','pid','getHookSkippedTests','NAlJs','MjIKB'];a35_0x3adf=function(){return _0x596b8a;};return a35_0x3adf();}const {v4:uuidv4}=require(a35_0x166a3b(0x20a)),{name,version}=require(a35_0x166a3b(0x22b)),logPatcher=require(a35_0x166a3b(0x217)),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a35_0x166a3b(0x233)),{getPlatformVersion}=require(a35_0x166a3b(0x1ec)),{shouldProcessEventForTesthub}=require(a35_0x166a3b(0x20c)),{isFunction}=require(a35_0x166a3b(0x200)),{patchConsoleLogger}=require(a35_0x166a3b(0x1fe));patchConsoleLogger(),exports[a35_0x166a3b(0x221)]=()=>{const _0x38aa83=a35_0x166a3b,_0x27f428={'zFTqk':'generic','Eqzun':function(_0xc5db81){return _0xc5db81();}};return{'ci':_0x27f428[_0x38aa83(0x238)],'key':_0x27f428[_0x38aa83(0x1f2)](uuidv4),'version':version,'collector':_0x38aa83(0x20e)+name};},exports[a35_0x166a3b(0x22d)]=_0x3dbcb4=>{const _0x87a3f5=a35_0x166a3b,_0x3b7c3f={};_0x3b7c3f[_0x87a3f5(0x235)]=function(_0x5b65c0,_0x2158a8){return _0x5b65c0!==_0x2158a8;},_0x3b7c3f[_0x87a3f5(0x1eb)]=_0x87a3f5(0x232),_0x3b7c3f[_0x87a3f5(0x236)]=function(_0x19a9d8,_0x23b285){return _0x19a9d8!==_0x23b285;},_0x3b7c3f[_0x87a3f5(0x1f5)]='hook:',_0x3b7c3f['PAouq']=function(_0x541aad,_0xaed083){return _0x541aad!==_0xaed083;},_0x3b7c3f['vERiB']='hook';const _0x19e1af=_0x3b7c3f;if(!_0x3dbcb4||_0x19e1af[_0x87a3f5(0x235)](typeof _0x3dbcb4,_0x19e1af[_0x87a3f5(0x1eb)]))return[null,null];if(_0x19e1af[_0x87a3f5(0x236)](_0x3dbcb4[_0x87a3f5(0x23e)](_0x19e1af[_0x87a3f5(0x1f5)]),-0x1)){const _0x3a9440=_0x3dbcb4[_0x87a3f5(0x230)](_0x19e1af[_0x87a3f5(0x1f5)]);return[_0x3a9440[0x0][_0x87a3f5(0x209)](0x0,-0x1)['split']('\x22')[0x1],_0x3a9440[0x1][_0x87a3f5(0x23b)](0x1)];}else{if(_0x19e1af[_0x87a3f5(0x1ed)](_0x3dbcb4[_0x87a3f5(0x23e)](_0x19e1af[_0x87a3f5(0x222)]),-0x1)){const _0x4f52de=_0x3dbcb4[_0x87a3f5(0x230)](_0x19e1af['vERiB']);return[_0x4f52de[0x0][_0x87a3f5(0x209)](0x0,-0x1)['split']('\x22')[0x1],_0x3dbcb4];}}return[null,null];},exports[a35_0x166a3b(0x1f4)]=_0x3311f1=>{const _0x57c3f3=a35_0x166a3b,_0x13014d={'sgPyY':function(_0x567b0c,_0x1448a0){return _0x567b0c(_0x1448a0);},'PlnfU':_0x57c3f3(0x234),'jLkto':_0x57c3f3(0x21b),'KeXbk':_0x57c3f3(0x237),'NAlJs':_0x57c3f3(0x23d)};if(!_0x3311f1||!_0x3311f1[_0x57c3f3(0x213)])return[];const _0x10e00c=[];return[_0x13014d[_0x57c3f3(0x21d)],_0x13014d['jLkto'],_0x13014d[_0x57c3f3(0x239)],_0x13014d[_0x57c3f3(0x1fa)]]['forEach'](_0xe833af=>{const _0x25fdb3=_0x57c3f3,_0x4bbca7=_0x3311f1['parent'][_0xe833af]||[];_0x4bbca7[_0x25fdb3(0x220)](_0x4329fa=>{const _0x5516ba=_0x25fdb3;_0x4329fa[_0x5516ba(0x204)]&&!_0x13014d[_0x5516ba(0x1f3)](isInternalHook,_0x4329fa['fn'])&&_0x10e00c[_0x5516ba(0x224)](_0x4329fa[_0x5516ba(0x204)]);});}),[..._0x10e00c,...exports[_0x57c3f3(0x1f4)](_0x3311f1['parent'])];},exports[a35_0x166a3b(0x1ff)]=_0xd290ed=>{const _0x3bc40e=a35_0x166a3b,_0x4e89f3={'KLhJx':function(_0x56f481){return _0x56f481();},'CMetQ':function(_0x39ee1a,_0x4712c4){return _0x39ee1a===_0x4712c4;},'vpJTb':_0x3bc40e(0x23d),'BCZBi':_0x3bc40e(0x234),'Reahe':_0x3bc40e(0x21b),'PSUdU':'_beforeEach'};if(!_0xd290ed||!_0xd290ed[_0x3bc40e(0x213)])return;[_0x4e89f3[_0x3bc40e(0x231)],_0x4e89f3[_0x3bc40e(0x1fd)],_0x4e89f3[_0x3bc40e(0x21f)],_0x4e89f3[_0x3bc40e(0x223)]][_0x3bc40e(0x220)](_0x1e12eb=>{const _0x5128ed=_0x3bc40e,_0x381346={'DWTvZ':function(_0x232314){const _0x286526=a35_0x31af;return _0x4e89f3[_0x286526(0x1f0)](_0x232314);},'WatEp':function(_0x120b10,_0x171e33){const _0x1bcf61=a35_0x31af;return _0x4e89f3[_0x1bcf61(0x20d)](_0x120b10,_0x171e33);},'jDnYv':_0x4e89f3[_0x5128ed(0x223)]},_0x27f13b=_0xd290ed[_0x5128ed(0x213)][_0x1e12eb]||[];_0x27f13b[_0x5128ed(0x220)](_0xf5e812=>{const _0x462cd4=_0x5128ed;if(!_0xf5e812['hookAnalyticsId'])_0xf5e812[_0x462cd4(0x204)]=_0x381346['DWTvZ'](uuidv4);else _0xf5e812[_0x462cd4(0x1f7)]&&_0x381346[_0x462cd4(0x1f6)](_0x1e12eb,_0x381346[_0x462cd4(0x23a)])&&(_0xf5e812[_0x462cd4(0x204)]=_0x381346[_0x462cd4(0x219)](uuidv4),delete _0xf5e812[_0x462cd4(0x1f7)]);});}),exports[_0x3bc40e(0x1ff)](_0xd290ed[_0x3bc40e(0x213)]);},exports[a35_0x166a3b(0x1e9)]=async(_0x1af4fe,_0x1555ee)=>{const _0x5e7177=a35_0x166a3b,_0x43ad58={'KjbUQ':function(_0x107477){return _0x107477();},'JorbB':function(_0x3ed499,_0x22e156){return _0x3ed499(_0x22e156);},'blplh':_0x5e7177(0x248),'AYtyj':function(_0x9b4b1f,_0x1e8099){return _0x9b4b1f(_0x1e8099);},'SjtVI':function(_0x5e9eb8,_0x4e8b86){return _0x5e9eb8===_0x4e8b86;},'WiMEj':_0x5e7177(0x229),'riIsl':_0x5e7177(0x216),'GqSrb':_0x5e7177(0x228)};try{if(!_0x43ad58['KjbUQ'](shouldProcessEventForTesthub))return;const _0x579e8f=await _0x1af4fe['getCapabilities'](),_0x303884=await _0x1af4fe[_0x5e7177(0x22e)](),_0x103ada={},_0x574013=Object[_0x5e7177(0x243)](_0x303884[_0x5e7177(0x218)]()[_0x5e7177(0x21a)]),_0x26ca86={'product':_0x43ad58['JorbB'](getObservabilityLinkedProductName,_0x574013),'capabilities':_0x574013,'platform':_0x579e8f[_0x5e7177(0x1ea)](),'platform_version':_0x579e8f[_0x5e7177(0x21e)](_0x43ad58[_0x5e7177(0x240)])?_0x579e8f[_0x5e7177(0x21e)](_0x43ad58[_0x5e7177(0x240)]):_0x43ad58[_0x5e7177(0x23c)](getPlatformVersion,_0x43ad58[_0x5e7177(0x21c)](global[_0x5e7177(0x22a)],_0x43ad58[_0x5e7177(0x211)])),'browser':_0x579e8f[_0x5e7177(0x206)](),'browser_version':_0x579e8f['getBrowserVersion'](),'session_id':_0x303884['toJSON']()};global[_0x5e7177(0x22a)]?_0x103ada[global[_0x5e7177(0x22a)]]=_0x26ca86:_0x103ada[_0x43ad58[_0x5e7177(0x246)]]=_0x26ca86,process['emit'](_0x5e7177(0x245)+process[_0x5e7177(0x1f8)],{'timestamp':new Date()[_0x5e7177(0x214)](),'level':null,'message':null,'kind':_0x43ad58[_0x5e7177(0x201)],'http_response':_0x103ada,'uuid':_0x1555ee});}catch(_0x258e2c){_0x43ad58[_0x5e7177(0x212)](debug,_0x5e7177(0x205)+_0x258e2c);}},exports[a35_0x166a3b(0x1f9)]=_0x149ce3=>{const _0x28ab79=a35_0x166a3b,_0x14e6aa={};_0x14e6aa['cCelx']=function(_0x4208eb,_0x1c6891){return _0x4208eb!==_0x1c6891;},_0x14e6aa[_0x28ab79(0x202)]=_0x28ab79(0x23f),_0x14e6aa['FpTIZ']='passed',_0x14e6aa[_0x28ab79(0x244)]=function(_0x50a42e,_0x2c1c27){return _0x50a42e!==_0x2c1c27;},_0x14e6aa['MjIKB']=_0x28ab79(0x208);const _0x46bc30=_0x14e6aa,_0x377a5e=_0x149ce3[_0x28ab79(0x203)][_0x28ab79(0x22c)]((_0x2e329b,_0x349db5)=>{const _0x3b3de4=exports['getHookSkippedTests'](_0x349db5);return _0x3b3de4&&(_0x2e329b=_0x2e329b['concat'](_0x3b3de4)),_0x2e329b;},[]),_0x306f4f=_0x149ce3['tests']['filter'](_0x4fde51=>{const _0xf01033=_0x28ab79,_0x3e7659=_0x46bc30[_0xf01033(0x242)](_0x4fde51[_0xf01033(0x207)],_0x46bc30[_0xf01033(0x202)])&&!_0x4fde51[_0xf01033(0x1f7)]&&_0x46bc30['cCelx'](_0x4fde51[_0xf01033(0x226)],_0x46bc30[_0xf01033(0x1ef)])&&_0x46bc30[_0xf01033(0x244)](_0x4fde51[_0xf01033(0x226)],_0x46bc30[_0xf01033(0x1fb)])&&!_0x4fde51[_0xf01033(0x215)];return _0x3e7659;});return _0x306f4f['concat'](_0x377a5e);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a36_0x1f7781=a36_0x4953;(function(_0x3c0ed4,_0x2dd901){const _0x1e0de6=a36_0x4953,_0xaa9c18=_0x3c0ed4();while(!![]){try{const _0x3c9416=-parseInt(_0x1e0de6(0x102))/0x1*(-parseInt(_0x1e0de6(0x14c))/0x2)+parseInt(_0x1e0de6(0x109))/0x3*(-parseInt(_0x1e0de6(0xe6))/0x4)+parseInt(_0x1e0de6(0xf7))/0x5+-parseInt(_0x1e0de6(0xe4))/0x6*(-parseInt(_0x1e0de6(0x116))/0x7)+parseInt(_0x1e0de6(0x149))/0x8*(parseInt(_0x1e0de6(0x16e))/0x9)+parseInt(_0x1e0de6(0x11d))/0xa*(-parseInt(_0x1e0de6(0xea))/0xb)+-parseInt(_0x1e0de6(0x178))/0xc*(-parseInt(_0x1e0de6(0x179))/0xd);if(_0x3c9416===_0x2dd901)break;else _0xaa9c18['push'](_0xaa9c18['shift']());}catch(_0x1ebf57){_0xaa9c18['push'](_0xaa9c18['shift']());}}}(a36_0x1f76,0xd4b55));const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x1f7781(0x12d)),accessibilityRetryHelper=require(a36_0x1f7781(0x159)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x1f7781(0x111)),{percyAutoCapture}=require(a36_0x1f7781(0x11a)),{sendPlatformDetails}=require('./test-observability/mochaUtils'),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a36_0x1f7781(0x14a)),PerformanceTester=require(a36_0x1f7781(0xf8)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x1f7781(0x106)),globals=require('../../helpers/globals'),logger=require(a36_0x1f7781(0x14e))[a36_0x1f7781(0xe0)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require('../../helpers/testhub/constants');function a36_0x1f76(){const _0x3dc63a=['afterTest','uvnfz','1509KraPhd','__skipSessionName','SESSION_STATUS','rIjoC','protocol','ECVAx','performScanWithRetry','__error_messages__','../utils/constants','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','jScsE','wqREh','beforeAll','7JorcrZ','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','quitCount_','stringify','../../helpers/percy/utils','SXOOi','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','130ALxByY','__drivers','hqQgN','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','DWQhm','LuFzD','bhEWS','Mocha','saveAccessibilityResultsWithRetry','ENV_VAR','OAgMG','GJylR','mYkaX','bstackA11yShouldScan','Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20','BROWSERSTACK_TESTHUB_UUID','../../helpers/accessibility-automation/helper','pLbuJ','join','\x20-\x20','ALQtX','https:','DqQdF','WFdtb','SOgHu','session_','index','udAMC','kOyWt','currentTest','DEOJF','info','message','iPzYb','debug','ByvUK','now','LaMiF','KvNZX','http:','elmpc','then','percy','testcase','7662368oViCKK','../../helpers/helper','SpnPw','9694UHjIwU','err','../../helpers/logger','tAbLv','measureWrapper','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','KlRYq','IlPHA','IhArH','start','accessibilityScanStarted','TcSGd','end','../../helpers/accessibility-automation/accessibilityRetryHelper','gkcIZ','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','titlePath','FLTgt','NDbCN','uPepH','NzsBT','length','isArray','setGlobal','nBEod','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','ESuxJ','DOjAM','lVdEU','parse','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','capabilities','mochaHooks','appium:app','9LHkEMR','shouldScanTestForAccessibility','passed','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','warn','lrwfq','EndFj','SYNC','SDK_HOOK','VFdqM','10450236bqqIBF','13NPHwoo','SAVE_RESULTS','dkoTV','__platformCaps','Accessibility\x20scan\x20completed\x20successfully','mQYSb','IJByp','env','beforeEach','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','MepkH','error','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','failed','sessionNameSet__','OrpPp','HJEXF','browserstackSessionName','\x22}}','uuCrs','bbkwH','isAccessibilityPlatform','initQuit','MNbNl','HltfZ','VrQbR','ObservabilitySync:','shift','executeScript','SESSION_NAME','Failed\x20to\x20store\x20session\x20name:\x20','thBuildUuid','browserstackTestName','TyQOB','rkNLM','PERFORM_SCAN','app','nDmVG','uElWl','tlZtF','winstonLogger','testAnalyticsId',',\x22level\x22:\x20\x22','finally','852486CzDBIZ','qxqpB','6376YpKYIp','ZhCbh','getGlobal','vjHvO','1215258ANZygy','timeout','KQXgs','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Accessibility\x20results\x20saved\x20successfully','state','format','sessionName','bstackA11yScanOptions','KpAAW','push','VLOig','__sessionFailed','5619890ASOYoQ','../../helpers/performance/performance-tester','ASMdX','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','autoScanning','thTestRunUuid','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','zcCeB','QhjHw','JpMkF','3WgeLBs','driverCleanup','Passed','[Accessibility]\x20Auto\x20scan\x20is\x20disabled;\x20skipping\x20final\x20scan\x20and\x20saving\x20current\x20accumulated\x20results','../../helpers/performance/constants'];a36_0x1f76=function(){return _0x3dc63a;};return a36_0x1f76();}function a36_0x4953(_0x24eb0a,_0x4d25be){const _0x1f76b4=a36_0x1f76();return a36_0x4953=function(_0x4953a1,_0x35455a){_0x4953a1=_0x4953a1-0xd1;let _0x34419e=_0x1f76b4[_0x4953a1];return _0x34419e;},a36_0x4953(_0x24eb0a,_0x4d25be);}exports[a36_0x1f7781(0x16c)]={'beforeAll'(){const _0xa2a922=a36_0x1f7781,_0x58b992={'NDbCN':function(_0x493632,_0x2d703e,_0x277110,_0x2acb4e){return _0x493632(_0x2d703e,_0x277110,_0x2acb4e);},'VTcBX':_0xa2a922(0x186),'TcSGd':'\x20|\x20','TyQOB':function(_0x25c19d,_0x41803a,_0x139800){return _0x25c19d(_0x41803a,_0x139800);},'ByvUK':'passed','KpAAW':function(_0x26728b){return _0x26728b();},'uPepH':function(_0x3484b4,_0x8a7b68,_0x1c230c){return _0x3484b4(_0x8a7b68,_0x1c230c);},'oSZXZ':_0xa2a922(0x137),'KlRYq':_0xa2a922(0x115)};PerformanceTester['startMonitoring']();const _0x2260f4='browserstack internal helper hook';PerformanceTester[_0xa2a922(0x150)](PerformanceSdkEvents[_0xa2a922(0x176)],()=>{const _0x3915be=_0xa2a922;global['__error_messages__']=[],global[_0x3915be(0xf6)]=![],global[_0x3915be(0x103)]=async()=>{const _0x101a84=_0x3915be;let _0x30fdcc=![];try{await global[_0x101a84(0x11e)][0x0][_0x101a84(0x136)],_0x30fdcc=!![],global['__sessionFailed']?await _0x58b992[_0x101a84(0x15e)](markSessionStatus,global['__drivers'][0x0],_0x58b992['VTcBX'],global['__error_messages__'][_0x101a84(0x12f)](_0x58b992[_0x101a84(0x157)])):await _0x58b992[_0x101a84(0xd9)](markSessionStatus,global[_0x101a84(0x11e)][0x0],_0x58b992[_0x101a84(0x140)]);}catch(_0x560fe7){logger[_0x101a84(0x13f)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x560fe7);}global[_0x101a84(0x110)]=[],global['__sessionFailed']=![];if(_0x30fdcc)try{try{_0x58b992[_0x101a84(0xf3)](shouldProcessEventForTesthub)&&(global[_0x101a84(0x11e)][0x0]&&await _0x58b992[_0x101a84(0x15f)](sendPlatformDetails,global[_0x101a84(0x11e)][0x0],this['currentTest']?this['currentTest'][_0x101a84(0xe1)]:null));}catch(_0x1c5ab5){logger['debug'](_0x101a84(0x16a)+_0x1c5ab5);}await global[_0x101a84(0x11e)][0x0][_0x101a84(0x18f)]();}catch(_0x4f81e7){logger['debug'](_0x101a84(0x112)+_0x4f81e7);}};},{'platform':_0x58b992[_0xa2a922(0x15f)](nestedKeyValue,global[_0xa2a922(0x17c)],[_0x58b992['oSZXZ']]),'hookType':_0x58b992[_0xa2a922(0x152)]})();},'beforeEach'(_0x632f6a){const _0x53096f=a36_0x1f7781,_0x2216cb={'bhEWS':function(_0x52c337,_0x11a51){return _0x52c337>_0x11a51;},'HltfZ':_0x53096f(0x130),'lrwfq':function(_0x238cdd,_0x18883c,_0x4a2064){return _0x238cdd(_0x18883c,_0x4a2064);},'ZhCbh':function(_0x1018b1,_0x4c972b){return _0x1018b1===_0x4c972b;},'qxqpB':_0x53096f(0x12a),'uuCrs':_0x53096f(0xf2),'EndFj':function(_0x371f7a){return _0x371f7a();},'MNbNl':_0x53096f(0x18e),'nBEod':_0x53096f(0x144),'uElWl':_0x53096f(0x132),'VFdqM':_0x53096f(0x171),'OrpPp':'Automate\x20test\x20case\x20execution\x20has\x20started.','vjHvO':_0x53096f(0xd8),'nCsoc':function(_0x106b1b,_0x2d52e6,_0x55cff4){return _0x106b1b(_0x2d52e6,_0x55cff4);},'FLTgt':_0x53096f(0x137),'QhjHw':_0x53096f(0x181)};globals[_0x53096f(0x163)](_0x2216cb[_0x53096f(0xe9)],this[_0x53096f(0x13a)]['titlePath']()[_0x53096f(0x12f)](_0x2216cb[_0x53096f(0x191)])),PerformanceTester[_0x53096f(0x150)](PerformanceSdkEvents[_0x53096f(0x176)],()=>{const _0x112f49=_0x53096f,_0x4cbfa0={'IhArH':function(_0xbf5510,_0x583ec2){const _0x43dd7c=a36_0x4953;return _0x2216cb[_0x43dd7c(0x123)](_0xbf5510,_0x583ec2);},'USmzM':function(_0x4a03d3,_0x15f6bf){const _0x3713a0=a36_0x4953;return _0x2216cb[_0x3713a0(0x123)](_0x4a03d3,_0x15f6bf);},'hqQgN':_0x2216cb[_0x112f49(0x191)],'KvNZX':function(_0x4e58f2,_0x5271bb,_0x1f6857){const _0x2dcdde=_0x112f49;return _0x2216cb[_0x2dcdde(0x173)](_0x4e58f2,_0x5271bb,_0x1f6857);},'SOgHu':function(_0x65120e,_0x5658c1){const _0x11a3a6=_0x112f49;return _0x2216cb[_0x11a3a6(0xe7)](_0x65120e,_0x5658c1);},'elmpc':_0x2216cb[_0x112f49(0xe5)],'wqREh':_0x2216cb[_0x112f49(0x18c)],'rIjoC':function(_0x2ae1e6){const _0x12bc0c=_0x112f49;return _0x2216cb[_0x12bc0c(0x174)](_0x2ae1e6);},'rkNLM':_0x2216cb[_0x112f49(0x190)],'DOjAM':_0x2216cb[_0x112f49(0x164)],'tlZtF':_0x2216cb[_0x112f49(0xde)],'FpvFU':_0x2216cb[_0x112f49(0x177)],'dkoTV':_0x2216cb[_0x112f49(0x188)]},_0xd1f7de='browserstack internal helper hook';new Promise(async _0x2e8397=>{const _0x18474a=_0x112f49;let _0x1ccd31=!![];try{_0x4cbfa0[_0x18474a(0x154)](global[_0x18474a(0x11e)]['length'],0x1)&&(await global[_0x18474a(0x103)](),global[_0x18474a(0x11e)]['shift']()),_0x4cbfa0['USmzM'](global[_0x18474a(0x11e)][0x0][_0x18474a(0x118)],0x0)&&(_0x1ccd31=![],await global['driverCleanup']());}catch(_0x4acac5){logger['debug'](_0x18474a(0x112)+_0x4acac5);}try{Array[_0x18474a(0x162)](global[_0x18474a(0x11e)])&&global[_0x18474a(0x11e)][0x0]&&(global[_0x18474a(0x11e)][0x0][_0x18474a(0x18a)]=this[_0x18474a(0x13a)]['titlePath']()[_0x18474a(0x12f)](_0x4cbfa0['hqQgN'])),global[_0x18474a(0x18a)]=this['currentTest']['titlePath']()[_0x18474a(0x12f)](_0x4cbfa0[_0x18474a(0x11f)]);}catch(_0x2c25f5){logger[_0x18474a(0x13f)](_0x18474a(0xd6)+_0x2c25f5);}this['currentTest'][_0x18474a(0x16f)]=_0x4cbfa0[_0x18474a(0x143)](shouldScanTestForAccessibility,this[_0x18474a(0x13a)][_0x18474a(0x15c)](),!![]);let _0x5f2f94=!![];try{const _0x1bed88=JSON[_0x18474a(0x169)](process[_0x18474a(0x180)][_0x18474a(0x185)]||'{}');_0x4cbfa0[_0x18474a(0x135)](_0x1bed88[_0x18474a(0xfb)],![])&&(_0x5f2f94=![]);}catch(_0x52f3a0){logger['debug']('Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20'+_0x52f3a0[_0x18474a(0x13d)]);}const _0x4eb887=_0x5f2f94&&this[_0x18474a(0x13a)][_0x18474a(0x16f)];globals[_0x18474a(0x163)](_0x4cbfa0[_0x18474a(0x145)],_0x4eb887),globals['setGlobal'](_0x4cbfa0[_0x18474a(0x114)],null),this[_0x18474a(0x13a)]['accessibilityScanStarted']=this[_0x18474a(0x13a)][_0x18474a(0x16f)];if(_0x4cbfa0[_0x18474a(0x10c)](isAccessibilityAutomationSession)&&_0x1ccd31&&Array['isArray'](global[_0x18474a(0x11e)])&&_0x4cbfa0['USmzM'](global[_0x18474a(0x11e)][_0x18474a(0x161)],0x0)&&globals[_0x18474a(0xe8)](_0x4cbfa0[_0x18474a(0xda)]))try{const _0xc740dc=await global['__drivers'][0x0][_0x18474a(0x136)];if(_0xc740dc){let _0x44bcd2=!![];const _0x428a2a=await global[_0x18474a(0x11e)][0x0]['getCurrentUrl']();let _0x44ae4f;try{_0x44ae4f=new URL(_0x428a2a);}catch(_0x3c664d){_0x44bcd2=![];}_0x44bcd2=_0x4cbfa0[_0x18474a(0x135)](_0x44ae4f[_0x18474a(0x10d)],_0x4cbfa0[_0x18474a(0x167)])||_0x4cbfa0['SOgHu'](_0x44ae4f['protocol'],_0x4cbfa0[_0x18474a(0xdf)]),_0x44bcd2&&(this[_0x18474a(0x13a)][_0x18474a(0x16f)]&&logger[_0x18474a(0x13c)](_0x4cbfa0['FpvFU'])),this[_0x18474a(0x13a)][_0x18474a(0x156)]=this[_0x18474a(0x13a)][_0x18474a(0x16f)],_0x4eb887&&logger[_0x18474a(0x13c)](_0x4cbfa0[_0x18474a(0x17b)]);}}catch(_0x54851c){logger[_0x18474a(0x184)](_0x18474a(0x165)+util[_0x18474a(0xf0)](_0x54851c));}_0x4cbfa0[_0x18474a(0x10c)](_0x2e8397);})['then'](()=>{const _0x171904=_0x112f49;_0x4cbfa0[_0x171904(0x10c)](_0x632f6a);});},{'platform':_0x2216cb['nCsoc'](nestedKeyValue,global[_0x53096f(0x17c)],[_0x2216cb[_0x53096f(0x15d)]]),'hookType':_0x2216cb[_0x53096f(0x100)]})();},'afterEach'(_0x2659f0){const _0x4b44d1=a36_0x1f7781,_0x28785f={'CiXex':function(_0x34cb3b,_0x5f0f2b){return _0x34cb3b!==_0x5f0f2b;},'VZrhB':_0x4b44d1(0x170),'nDmVG':function(_0x4240d7,_0x155c1b,_0x2fb18d){return _0x4240d7(_0x155c1b,_0x2fb18d);},'DWQhm':function(_0x153274,_0x190825){return _0x153274+_0x190825;},'mYkaX':'Failed:\x20','gkcIZ':_0x4b44d1(0x184),'SXOOi':_0x4b44d1(0x104),'IlPHA':'info','jScsE':function(_0x1c0c41,_0x553c7d){return _0x1c0c41>_0x553c7d;},'DEOJF':function(_0xdc2e40,_0x88102c){return _0xdc2e40===_0x88102c;},'uvnfz':_0x4b44d1(0x148),'iPzYb':_0x4b44d1(0x16d),'uYauL':function(_0x5cc022,_0x13a7a5,_0x467eea,_0x1b9380){return _0x5cc022(_0x13a7a5,_0x467eea,_0x1b9380);},'DqQdF':_0x4b44d1(0x18e),'esZNZ':_0x4b44d1(0x120),'lVdEU':_0x4b44d1(0x12a),'LaMiF':'Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','ASMdX':_0x4b44d1(0x107),'vzGOK':_0x4b44d1(0x17d),'kOyWt':_0x4b44d1(0xfa),'udAMC':_0x4b44d1(0x105),'ALQtX':_0x4b44d1(0xee),'ESuxJ':_0x4b44d1(0x117),'OAgMG':_0x4b44d1(0xed),'zcCeB':function(_0x5c7c92){return _0x5c7c92();},'NBIQr':_0x4b44d1(0x13f),'SpnPw':function(_0x4e7a23,_0x1ade2d){return _0x4e7a23>_0x1ade2d;},'bbkwH':function(_0x918657){return _0x918657();},'mQYSb':_0x4b44d1(0x130),'zxzVz':_0x4b44d1(0x124),'tAbLv':function(_0x148c8c,_0x217dd0,_0x489966){return _0x148c8c(_0x217dd0,_0x489966);},'aOdxC':_0x4b44d1(0x137),'yshpC':'afterEach'},_0x53b49a='browserstack internal helper hook';this[_0x4b44d1(0xeb)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x28785f['zxzVz']]),global[_0x4b44d1(0xf1)]=this[_0x4b44d1(0x13a)][_0x4b44d1(0x15c)]()['join'](_0x28785f['mQYSb']),PerformanceTester[_0x4b44d1(0x150)](PerformanceSdkEvents[_0x4b44d1(0x176)],()=>{const _0x2bff0f=_0x4b44d1,_0x136c63={};_0x136c63[_0x2bff0f(0x101)]=_0x28785f[_0x2bff0f(0x17e)];const _0x18d5ff=_0x136c63,_0x9dfe89=async(_0x66ae21,_0x9ad5bf)=>{const _0x45116d=_0x2bff0f;await global['__drivers'][0x0][_0x45116d(0xd4)](_0x45116d(0x15b)+_0x66ae21+_0x45116d(0xe2)+_0x9ad5bf+_0x45116d(0x18b));};new Promise(async _0x4d8eff=>{const _0x42966d=_0x2bff0f,_0x58db44={'gkYYn':function(_0x7cbbf4,_0x917438){return _0x28785f['CiXex'](_0x7cbbf4,_0x917438);},'IJByp':_0x28785f['VZrhB'],'ECVAx':function(_0x423f33,_0x37e113,_0x4506ff){const _0x21be38=a36_0x4953;return _0x28785f[_0x21be38(0xdd)](_0x423f33,_0x37e113,_0x4506ff);},'VrQbR':function(_0x104b1d,_0x4cc969){const _0x34559c=a36_0x4953;return _0x28785f[_0x34559c(0x121)](_0x104b1d,_0x4cc969);},'WFdtb':_0x28785f[_0x42966d(0x129)],'MepkH':_0x28785f[_0x42966d(0x15a)],'pLbuJ':_0x28785f[_0x42966d(0x11b)],'CvKMu':_0x28785f[_0x42966d(0x153)]};try{_0x28785f['jScsE'](global[_0x42966d(0x11e)][_0x42966d(0x161)],0x1)&&(await global['driverCleanup'](),global[_0x42966d(0x11e)][_0x42966d(0xd3)](),global['__error_messages__']=[],global[_0x42966d(0xf6)]=![]);try{if(global[_0x42966d(0x147)]&&_0x28785f[_0x42966d(0x13b)](global['percyCaptureMode'],_0x28785f[_0x42966d(0x108)])&&global['__drivers'][0x0]){const _0x2de032=_0x28785f[_0x42966d(0x113)](global[_0x42966d(0x16b)][_0x42966d(0x161)],0x0)?!!global['capabilities'][0x0][_0x42966d(0xdc)]||!!global['capabilities'][0x0][_0x28785f[_0x42966d(0x13e)]]:![],_0x4f9963={};_0x4f9963[_0x42966d(0xdc)]=_0x2de032,await _0x28785f['uYauL'](percyAutoCapture,global['__drivers'][0x0],_0x28785f[_0x42966d(0x108)],_0x4f9963);}}catch(_0x1b4b59){logger[_0x42966d(0x13f)](_0x42966d(0x12b)+_0x1b4b59);}!global[_0x42966d(0x10a)]&&(await PerformanceTester[_0x42966d(0x150)](PerformanceAutEvents[_0x42966d(0xd5)],async()=>{const _0x25a4fe=_0x42966d;await global['__drivers'][0x0][_0x25a4fe(0xd4)](_0x25a4fe(0x11c)+JSON[_0x25a4fe(0x119)](this[_0x25a4fe(0x13a)][_0x25a4fe(0x15c)]()[_0x25a4fe(0x12f)](_0x18d5ff[_0x25a4fe(0x101)]))+'}}');})(),global[_0x42966d(0x11e)][0x0][_0x42966d(0x187)]=!![]),await PerformanceTester[_0x42966d(0x150)](PerformanceAutEvents[_0x42966d(0x10b)],async()=>{const _0xa85914=_0x42966d,_0x3fe458=_0x58db44['gkYYn'](this['currentTest'][_0xa85914(0xef)],_0x58db44[_0xa85914(0x17f)]);_0x3fe458?(global[_0xa85914(0xf6)]=!![],global[_0xa85914(0x110)][_0xa85914(0xf4)](this[_0xa85914(0x13a)][_0xa85914(0x14d)]['message']),await _0x58db44['ECVAx'](_0x9dfe89,JSON[_0xa85914(0x119)](_0x58db44[_0xa85914(0xd1)](_0x58db44[_0xa85914(0x134)],this[_0xa85914(0x13a)][_0xa85914(0x14d)][_0xa85914(0x13d)])),_0x58db44[_0xa85914(0x183)])):await _0x58db44[_0xa85914(0x10e)](_0x9dfe89,JSON[_0xa85914(0x119)](_0x58db44[_0xa85914(0x12e)]),_0x58db44['CvKMu']);})();}catch(_0x275499){logger['debug'](_0x42966d(0x182)+_0x275499);}try{if(this[_0x42966d(0x13a)][_0x42966d(0x156)]&&globals[_0x42966d(0xe8)](_0x28785f[_0x42966d(0x133)])){logger[_0x42966d(0x13c)](_0x28785f['esZNZ']);const _0x4c786f={};_0x4c786f[_0x42966d(0xfc)]=this[_0x42966d(0x13a)][_0x42966d(0xe1)],_0x4c786f[_0x42966d(0xd7)]=process['env'][testHubConstants[_0x42966d(0x126)][_0x42966d(0x12c)]],_0x4c786f['thJwtToken']=process[_0x42966d(0x180)][testHubConstants[_0x42966d(0x126)]['BROWSERSTACK_TESTHUB_JWT']];const _0x2136e7=_0x4c786f;logger[_0x42966d(0x13f)](_0x42966d(0xfd)+JSON[_0x42966d(0x119)](_0x2136e7));if(globals[_0x42966d(0xe8)](_0x28785f[_0x42966d(0x168)])){logger['debug'](_0x28785f[_0x42966d(0x142)]);const _0x3c5e00={};_0x3c5e00['command']=_0x28785f[_0x42966d(0xf9)];const _0x1e1bce=await PerformanceTester[_0x42966d(0x150)](PerformanceA11yEvents[_0x42966d(0xdb)],async()=>{const _0x17262e=_0x42966d;return await accessibilityRetryHelper[_0x17262e(0x10f)](global[_0x17262e(0x11e)][0x0],global[_0x17262e(0x18a)]);},_0x3c5e00)();_0x1e1bce?logger[_0x42966d(0x13f)](_0x28785f['vzGOK']):logger['warn'](_0x28785f[_0x42966d(0x139)]);}else logger[_0x42966d(0x13f)](_0x28785f[_0x42966d(0x138)]);const _0x4625d2=await PerformanceTester[_0x42966d(0x150)](PerformanceA11yEvents[_0x42966d(0x17a)],async()=>{const _0x9ae4f4=_0x42966d;return await accessibilityRetryHelper[_0x9ae4f4(0x125)](global[_0x9ae4f4(0x11e)][0x0],_0x2136e7);})();_0x4625d2?logger[_0x42966d(0x13f)](_0x28785f[_0x42966d(0x131)]):logger[_0x42966d(0x172)](_0x28785f[_0x42966d(0x166)]),logger[_0x42966d(0x13c)](_0x28785f[_0x42966d(0x127)]);}}catch(_0xea047f){logger[_0x42966d(0x184)](_0x42966d(0xfe)+this[_0x42966d(0x13a)]['titlePath']()+'.\x20Error\x20:',_0xea047f);}try{try{if(_0x28785f[_0x42966d(0xff)](shouldProcessEventForTesthub)){global[_0x42966d(0x11e)][0x0]&&await _0x28785f['nDmVG'](sendPlatformDetails,global[_0x42966d(0x11e)][0x0],this[_0x42966d(0x13a)]?this[_0x42966d(0x13a)][_0x42966d(0xe1)]:null);if(_0x28785f['zcCeB'](isBrowserstackInfra)){PerformanceTester[_0x42966d(0x155)](PerformanceO11yEvents['SYNC']);const _0x48b705=_0x42966d(0xd2)+Date[_0x42966d(0x141)]();await _0x28785f[_0x42966d(0xdd)](_0x9dfe89,JSON[_0x42966d(0x119)](_0x48b705),_0x28785f['NBIQr']),PerformanceTester[_0x42966d(0x158)](PerformanceO11yEvents[_0x42966d(0x175)]);}}}catch(_0x1eb7c2){logger[_0x42966d(0x13f)](_0x42966d(0x151)+_0x1eb7c2),PerformanceTester[_0x42966d(0x158)](PerformanceO11yEvents[_0x42966d(0x175)],![],_0x1eb7c2);}_0x28785f[_0x42966d(0x14b)](global[_0x42966d(0x11e)][0x0][_0x42966d(0x118)],0x0)&&await global['driverCleanup']();}catch(_0x1c6df5){logger[_0x42966d(0x13f)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x1c6df5);}_0x28785f[_0x42966d(0xff)](_0x4d8eff);})[_0x2bff0f(0x146)](()=>{const _0x4acbd7=_0x2bff0f;_0x28785f[_0x4acbd7(0x18d)](_0x2659f0);});},{'platform':_0x28785f[_0x4b44d1(0x14f)](nestedKeyValue,global['__platformCaps'],[_0x28785f['aOdxC']]),'hookType':_0x28785f['yshpC']})();},'afterAll'(_0x59d894){const _0x109e50=a36_0x1f7781,_0xd9cb1f={'NzsBT':function(_0x209b73){return _0x209b73();},'LuFzD':_0x109e50(0x124),'HJEXF':function(_0x559481,_0x117aac,_0x479912){return _0x559481(_0x117aac,_0x479912);},'KQXgs':'index','VLOig':'afterAll'},_0x50bc7d='browserstack internal helper hook';this[_0x109e50(0xeb)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xd9cb1f[_0x109e50(0x122)]]),PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x109e50(0x176)],()=>{const _0x472e6e=_0x109e50,_0x26ea1c={'GJylR':function(_0x68a9bc){const _0x312e2d=a36_0x4953;return _0xd9cb1f[_0x312e2d(0x160)](_0x68a9bc);}};new Promise(async _0x294fd5=>{await global['driverCleanup'](),_0xd9cb1f['NzsBT'](_0x294fd5);})[_0x472e6e(0x146)]()[_0x472e6e(0xe3)](()=>{const _0x50df2b=_0x472e6e;_0x26ea1c[_0x50df2b(0x128)](_0x59d894);});},{'platform':_0xd9cb1f[_0x109e50(0x189)](nestedKeyValue,global[_0x109e50(0x17c)],[_0xd9cb1f[_0x109e50(0xec)]]),'hookType':_0xd9cb1f[_0x109e50(0xf5)]})();}};
|
|
1
|
+
const a36_0x5b328c=a36_0x8f94;(function(_0x52f6ff,_0x5ac1f7){const _0x52d585=a36_0x8f94,_0x4a5a43=_0x52f6ff();while(!![]){try{const _0x4e7d89=parseInt(_0x52d585(0xa8))/0x1*(-parseInt(_0x52d585(0x112))/0x2)+-parseInt(_0x52d585(0x125))/0x3+-parseInt(_0x52d585(0x7f))/0x4*(parseInt(_0x52d585(0xf9))/0x5)+-parseInt(_0x52d585(0xa9))/0x6*(-parseInt(_0x52d585(0xee))/0x7)+parseInt(_0x52d585(0xe5))/0x8*(-parseInt(_0x52d585(0xc8))/0x9)+-parseInt(_0x52d585(0xdb))/0xa*(-parseInt(_0x52d585(0x129))/0xb)+parseInt(_0x52d585(0x108))/0xc;if(_0x4e7d89===_0x5ac1f7)break;else _0x4a5a43['push'](_0x4a5a43['shift']());}catch(_0x26a10b){_0x4a5a43['push'](_0x4a5a43['shift']());}}}(a36_0x35ee,0x5cbdf));function a36_0x8f94(_0x51be15,_0x3b41e8){const _0x35ee0c=a36_0x35ee();return a36_0x8f94=function(_0x8f94c0,_0x462549){_0x8f94c0=_0x8f94c0-0x66;let _0x20e8ea=_0x35ee0c[_0x8f94c0];return _0x20e8ea;},a36_0x8f94(_0x51be15,_0x3b41e8);}function a36_0x35ee(){const _0x56a81a=['XIpzo','appium:app','BwFza','xCfxG','Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20','env','../../helpers/performance/constants','ifvVV','index','shift','QBAXu','__sessionFailed','nTVqh','fCluy','LUnIG','warn','JHMjM','koldK','34570Wxzbni','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','../utils/constants','hubmW','Mocha','../../helpers/performance/performance-tester','oHYJg','quitCount_','__drivers','peLct','465944qdtzGf','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','JCqGy','RSrAO','measureWrapper','getGlobal','vZiTc','http:','Automate\x20test\x20case\x20execution\x20has\x20started.','44373sNTXIU','BQgTG','getCurrentUrl','FCvuq','browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','GdQiZ','JoGCs','ZxAbK','RnNrD','accessibilityScanStarted','30kBIGSH','__platformCaps','UAfyt','err','format','currentTest','https:','epUle','winstonLogger','HmdRK','KGBJK','Bxlff','BROWSERSTACK_TESTHUB_UUID','OGhRc','push','13942728GdBRCn','browserstackSessionName','JbJQb','ruCQF','../../helpers/testhub/constants','FwnvT','error','zZOZl','beforeEach','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','1164Aafmdj','pEPOq','Failed:\x20','VghIZ','NDRPX','thBuildUuid','tWTwe','Accessibility\x20scan\x20completed\x20successfully','qxgDM','OExqG','isAccessibilityPlatform','tKPiK','./test-observability/mochaUtils','SYNC','performScanWithRetry','../../helpers/accessibility-automation/accessibilityRetryHelper','axYbg','klLOo','length','906963ohcIUP','then','message','../../helpers/testhub/utils','1419EeHqMN','qzRrh','../../helpers/logger','Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20','aRNhD','zRveZ','driverCleanup','setGlobal','autoScanning','sIFoW','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','dQtyP','bstackA11yScanOptions','FjVal','afterAll','afterEach','qwARp','vZFDJ','percyCaptureMode','../../helpers/helper','SESSION_STATUS','kHFzS','igRug','QuiBU','DNcJU','protocol','353580wugjvK','nRyTm','executeScript','PBrbw','JoUUm','command','lAlDR','XKfDh','stringify','wKTZC','GRZEf','titlePath','app','browserstackTestName',',\x22level\x22:\x20\x22','[Accessibility]\x20Auto\x20scan\x20is\x20disabled;\x20skipping\x20final\x20scan\x20and\x20saving\x20current\x20accumulated\x20results','../../helpers/percy/utils','glPUh','percy','rleWQ','HDLVk','ufVWZ','startMonitoring','isArray','debug','trTEK','session_','info','testcase','kjAqW','join','start','__error_messages__','testAnalyticsId','end','ZebCq','GFBlV','Biwvs','__skipSessionName','rwfYP','iFUQJ','1187ksrmfO','390VoOcfc','PERFORM_SCAN','Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','RAdRF','state','BROWSERSTACK_TESTHUB_JWT','AviyJ','kRdhJ','yvkwc','Accessibility\x20results\x20saved\x20successfully','KCbOz','now','bstackA11yShouldScan','sessionNameSet__','Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','Crhkm','ybmye','uppji','TjNkY','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','SDK_HOOK','Failed\x20to\x20store\x20session\x20name:\x20','capabilities','alQpM','\x20-\x20','passed','shouldScanTestForAccessibility','afterTest','ZnpPJ','heEld','../../helpers/accessibility-automation/helper','18nvJora'];a36_0x35ee=function(){return _0x56a81a;};return a36_0x35ee();}const util=require('util'),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require(a36_0x5b328c(0xc7)),accessibilityRetryHelper=require(a36_0x5b328c(0x121)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require(a36_0x5b328c(0xdd)),{percyAutoCapture}=require(a36_0x5b328c(0x8f)),{sendPlatformDetails}=require(a36_0x5b328c(0x11e)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require(a36_0x5b328c(0x78)),PerformanceTester=require(a36_0x5b328c(0xe0)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require(a36_0x5b328c(0xcf)),globals=require('../../helpers/globals'),logger=require(a36_0x5b328c(0x67))[a36_0x5b328c(0x101)],{shouldProcessEventForTesthub}=require(a36_0x5b328c(0x128)),testHubConstants=require(a36_0x5b328c(0x10c));exports['mochaHooks']={'beforeAll'(){const _0x185e1e=a36_0x5b328c,_0x115334={'JbJQb':function(_0x4dfea0,_0x3bddff,_0x4c91c3,_0x240305){return _0x4dfea0(_0x3bddff,_0x4c91c3,_0x240305);},'tKPiK':'failed','FwnvT':'\x20|\x20','xCfxG':function(_0x4b0b1d,_0x2b2fff,_0xcfa92f){return _0x4b0b1d(_0x2b2fff,_0xcfa92f);},'klLOo':_0x185e1e(0xc2),'TjNkY':function(_0x2347fd){return _0x2347fd();},'FjVal':_0x185e1e(0xd1),'uppji':'beforeAll'};PerformanceTester[_0x185e1e(0x95)]();const _0xe9c335='browserstack internal helper hook';PerformanceTester['measureWrapper'](PerformanceSdkEvents[_0x185e1e(0xbd)],()=>{const _0x3b6c0b=_0x185e1e;global[_0x3b6c0b(0x9f)]=[],global[_0x3b6c0b(0xd4)]=![],global[_0x3b6c0b(0x6b)]=async()=>{const _0x38ea50=_0x3b6c0b;let _0x154d90=![];try{await global['__drivers'][0x0][_0x38ea50(0x99)],_0x154d90=!![],global['__sessionFailed']?await _0x115334[_0x38ea50(0x10a)](markSessionStatus,global[_0x38ea50(0xe3)][0x0],_0x115334[_0x38ea50(0x11d)],global[_0x38ea50(0x9f)][_0x38ea50(0x9d)](_0x115334[_0x38ea50(0x10d)])):await _0x115334[_0x38ea50(0xcc)](markSessionStatus,global['__drivers'][0x0],_0x115334[_0x38ea50(0x123)]);}catch(_0x3683d5){logger[_0x38ea50(0x97)]('Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20'+_0x3683d5);}global[_0x38ea50(0x9f)]=[],global[_0x38ea50(0xd4)]=![];if(_0x154d90)try{try{_0x115334[_0x38ea50(0xbb)](shouldProcessEventForTesthub)&&(global[_0x38ea50(0xe3)][0x0]&&await _0x115334[_0x38ea50(0xcc)](sendPlatformDetails,global[_0x38ea50(0xe3)][0x0],this[_0x38ea50(0xfe)]?this['currentTest'][_0x38ea50(0xa0)]:null));}catch(_0x5c1fc2){logger['debug'](_0x38ea50(0xbc)+_0x5c1fc2);}await global[_0x38ea50(0xe3)][0x0]['initQuit']();}catch(_0x3deaa5){logger[_0x38ea50(0x97)](_0x38ea50(0x6f)+_0x3deaa5);}};},{'platform':_0x115334['xCfxG'](nestedKeyValue,global[_0x185e1e(0xfa)],[_0x115334[_0x185e1e(0x72)]]),'hookType':_0x115334[_0x185e1e(0xba)]})();},'beforeEach'(_0x44714f){const _0x2cdb6d=a36_0x5b328c,_0x633a64={'PfDZJ':function(_0x12eb24){return _0x12eb24();},'RSrAO':function(_0x208d31,_0x1ffc71){return _0x208d31>_0x1ffc71;},'tWTwe':_0x2cdb6d(0xc1),'ZnpPJ':function(_0x11a9f9,_0x79eb7d,_0x207595){return _0x11a9f9(_0x79eb7d,_0x207595);},'rleWQ':function(_0x1b5d5e,_0x1efa9d){return _0x1b5d5e===_0x1efa9d;},'wKTZC':'bstackA11yShouldScan','rwfYP':_0x2cdb6d(0x71),'OGhRc':function(_0x14e9be){return _0x14e9be();},'GFBlV':'isAccessibilityPlatform','oHYJg':function(_0x4f1a43,_0x43324b){return _0x4f1a43===_0x43324b;},'JoUUm':_0x2cdb6d(0xec),'nTVqh':_0x2cdb6d(0xff),'glPUh':'Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','epUle':_0x2cdb6d(0xed),'rEGBw':function(_0xb9d115){return _0xb9d115();},'owdEc':_0x2cdb6d(0x8c),'QVoke':_0x2cdb6d(0xd1),'XIpzo':_0x2cdb6d(0x110)};globals[_0x2cdb6d(0x6c)](_0x633a64['owdEc'],this[_0x2cdb6d(0xfe)][_0x2cdb6d(0x8a)]()[_0x2cdb6d(0x9d)](_0x633a64['tWTwe'])),PerformanceTester[_0x2cdb6d(0xe9)](PerformanceSdkEvents[_0x2cdb6d(0xbd)],()=>{const _0x50cfff=_0x2cdb6d,_0x44bb95={'sNHRs':function(_0x32dd09,_0x8c0451){const _0x1dc2f1=a36_0x8f94;return _0x633a64[_0x1dc2f1(0xe8)](_0x32dd09,_0x8c0451);},'yvkwc':function(_0x499e7c,_0x515ebe){const _0x459890=a36_0x8f94;return _0x633a64[_0x459890(0xe8)](_0x499e7c,_0x515ebe);},'ybmye':_0x633a64[_0x50cfff(0x118)],'Bxlff':function(_0x4485f3,_0x5793e3,_0x22b7d1){return _0x633a64['ZnpPJ'](_0x4485f3,_0x5793e3,_0x22b7d1);},'UAfyt':function(_0xb2eaa1,_0x18d56d){const _0x7728ad=_0x50cfff;return _0x633a64[_0x7728ad(0x92)](_0xb2eaa1,_0x18d56d);},'zRveZ':_0x633a64[_0x50cfff(0x88)],'yXIzL':_0x633a64[_0x50cfff(0xa6)],'vZiTc':function(_0x34c1d2){const _0x3a6661=_0x50cfff;return _0x633a64[_0x3a6661(0x106)](_0x34c1d2);},'lGuDf':_0x633a64[_0x50cfff(0xa3)],'FCvuq':function(_0x3f14d8,_0x5d2f89){const _0x36c5bf=_0x50cfff;return _0x633a64[_0x36c5bf(0xe1)](_0x3f14d8,_0x5d2f89);},'peLct':_0x633a64[_0x50cfff(0x83)],'JCqGy':function(_0x469efa,_0x1c7e7c){return _0x633a64['rleWQ'](_0x469efa,_0x1c7e7c);},'JoGCs':_0x633a64[_0x50cfff(0xd5)],'gPheP':_0x633a64[_0x50cfff(0x90)],'AviyJ':_0x633a64[_0x50cfff(0x100)],'Jvuia':function(_0x57f5f5){return _0x633a64['rEGBw'](_0x57f5f5);}},_0x3a56f9='browserstack internal helper hook';new Promise(async _0xae0870=>{const _0x57f8b4=_0x50cfff;let _0x44de3e=!![];try{_0x44bb95['sNHRs'](global[_0x57f8b4(0xe3)]['length'],0x1)&&(await global['driverCleanup'](),global[_0x57f8b4(0xe3)][_0x57f8b4(0xd2)]()),_0x44bb95[_0x57f8b4(0xb1)](global['__drivers'][0x0][_0x57f8b4(0xe2)],0x0)&&(_0x44de3e=![],await global[_0x57f8b4(0x6b)]());}catch(_0x5b0acf){logger[_0x57f8b4(0x97)](_0x57f8b4(0x6f)+_0x5b0acf);}try{Array[_0x57f8b4(0x96)](global[_0x57f8b4(0xe3)])&&global[_0x57f8b4(0xe3)][0x0]&&(global[_0x57f8b4(0xe3)][0x0]['browserstackSessionName']=this[_0x57f8b4(0xfe)][_0x57f8b4(0x8a)]()[_0x57f8b4(0x9d)](_0x44bb95['ybmye'])),global[_0x57f8b4(0x109)]=this['currentTest'][_0x57f8b4(0x8a)]()[_0x57f8b4(0x9d)](_0x44bb95[_0x57f8b4(0xb9)]);}catch(_0x435051){logger[_0x57f8b4(0x97)](_0x57f8b4(0xbe)+_0x435051);}this[_0x57f8b4(0xfe)][_0x57f8b4(0xc3)]=_0x44bb95[_0x57f8b4(0x104)](shouldScanTestForAccessibility,this['currentTest'][_0x57f8b4(0x8a)](),!![]);let _0x47955a=!![];try{const _0x486b64=JSON['parse'](process[_0x57f8b4(0xce)][_0x57f8b4(0x111)]||'{}');_0x44bb95[_0x57f8b4(0xfb)](_0x486b64[_0x57f8b4(0x6d)],![])&&(_0x47955a=![]);}catch(_0xfab7f8){logger[_0x57f8b4(0x97)](_0x57f8b4(0x68)+_0xfab7f8[_0x57f8b4(0x127)]);}const _0x2737ed=_0x47955a&&this[_0x57f8b4(0xfe)][_0x57f8b4(0xc3)];globals[_0x57f8b4(0x6c)](_0x44bb95[_0x57f8b4(0x6a)],_0x2737ed),globals['setGlobal'](_0x44bb95['yXIzL'],null),this[_0x57f8b4(0xfe)][_0x57f8b4(0xf8)]=this[_0x57f8b4(0xfe)]['shouldScanTestForAccessibility'];if(_0x44bb95[_0x57f8b4(0xeb)](isAccessibilityAutomationSession)&&_0x44de3e&&Array['isArray'](global[_0x57f8b4(0xe3)])&&_0x44bb95['yvkwc'](global[_0x57f8b4(0xe3)][_0x57f8b4(0x124)],0x0)&&globals[_0x57f8b4(0xea)](_0x44bb95['lGuDf']))try{const _0x26188a=await global[_0x57f8b4(0xe3)][0x0]['session_'];if(_0x26188a){let _0x3d5201=!![];const _0x347070=await global[_0x57f8b4(0xe3)][0x0][_0x57f8b4(0xf0)]();let _0x23cc2c;try{_0x23cc2c=new URL(_0x347070);}catch(_0x154ccf){_0x3d5201=![];}_0x3d5201=_0x44bb95[_0x57f8b4(0xf1)](_0x23cc2c[_0x57f8b4(0x7e)],_0x44bb95[_0x57f8b4(0xe4)])||_0x44bb95[_0x57f8b4(0xe7)](_0x23cc2c[_0x57f8b4(0x7e)],_0x44bb95[_0x57f8b4(0xf5)]),_0x3d5201&&(this[_0x57f8b4(0xfe)][_0x57f8b4(0xc3)]&&logger[_0x57f8b4(0x9a)](_0x44bb95['gPheP'])),this[_0x57f8b4(0xfe)][_0x57f8b4(0xf8)]=this[_0x57f8b4(0xfe)][_0x57f8b4(0xc3)],_0x2737ed&&logger[_0x57f8b4(0x9a)](_0x44bb95[_0x57f8b4(0xaf)]);}}catch(_0x25daba){logger[_0x57f8b4(0x10e)]('Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20'+util[_0x57f8b4(0xfd)](_0x25daba));}_0x44bb95['Jvuia'](_0xae0870);})[_0x50cfff(0x126)](()=>{_0x633a64['PfDZJ'](_0x44714f);});},{'platform':_0x633a64[_0x2cdb6d(0xc5)](nestedKeyValue,global[_0x2cdb6d(0xfa)],[_0x633a64['QVoke']]),'hookType':_0x633a64[_0x2cdb6d(0xc9)]})();},'afterEach'(_0x18e412){const _0x480fdf=a36_0x5b328c,_0x61d0c6={'heEld':function(_0x1866cb){return _0x1866cb();},'kHFzS':function(_0x1abd67,_0x442699){return _0x1abd67!==_0x442699;},'MbCFl':_0x480fdf(0xc2),'kjAqW':function(_0x3c7efa,_0x5b85f5,_0x39153a){return _0x3c7efa(_0x5b85f5,_0x39153a);},'JHMjM':function(_0x52d5c3,_0x3cd846){return _0x52d5c3+_0x3cd846;},'BQgTG':_0x480fdf(0x114),'zZOZl':_0x480fdf(0x10e),'VghIZ':'Passed','DNcJU':_0x480fdf(0x9a),'rEcUZ':_0x480fdf(0xc1),'qzRrh':function(_0x17cdc4,_0x164caa){return _0x17cdc4>_0x164caa;},'aRNhD':function(_0x5e1833,_0x1af76e){return _0x5e1833===_0x1af76e;},'ifvVV':_0x480fdf(0x9b),'IGNoG':_0x480fdf(0xca),'ufVWZ':function(_0x11cb75,_0x17e386,_0x358972,_0x1f0ca0){return _0x11cb75(_0x17e386,_0x358972,_0x1f0ca0);},'ZBUpv':_0x480fdf(0x11c),'ruCQF':_0x480fdf(0xe6),'OExqG':_0x480fdf(0xb5),'RnNrD':_0x480fdf(0xab),'qwARp':_0x480fdf(0xc4),'ZxAbK':_0x480fdf(0x119),'CjHcw':'Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','hubmW':_0x480fdf(0x8e),'axYbg':_0x480fdf(0xb2),'igRug':'Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','wWTZD':_0x480fdf(0xb7),'fCluy':function(_0x17599b,_0x18b1e3,_0x527333){return _0x17599b(_0x18b1e3,_0x527333);},'OGEBN':_0x480fdf(0x97),'BwFza':function(_0x596428){return _0x596428();},'KoBmW':_0x480fdf(0xdf),'LUnIG':_0x480fdf(0xd1),'QuiBU':_0x480fdf(0x74)},_0x357acb='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x61d0c6['KoBmW']]),global['sessionName']=this['currentTest'][_0x480fdf(0x8a)]()[_0x480fdf(0x9d)](_0x61d0c6['rEcUZ']),PerformanceTester[_0x480fdf(0xe9)](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x54064e=_0x480fdf,_0x4e6de1={'BNwWb':function(_0x126dc0,_0xac571e){const _0x3ec99d=a36_0x8f94;return _0x61d0c6[_0x3ec99d(0x7a)](_0x126dc0,_0xac571e);},'trTEK':_0x61d0c6['MbCFl'],'alQpM':function(_0x82eea7,_0x2be354,_0x2a57b6){const _0x1f37f6=a36_0x8f94;return _0x61d0c6[_0x1f37f6(0x9c)](_0x82eea7,_0x2be354,_0x2a57b6);},'kRdhJ':function(_0x59de5c,_0x15f829){const _0x2c3d2=a36_0x8f94;return _0x61d0c6[_0x2c3d2(0xd9)](_0x59de5c,_0x15f829);},'NDRPX':_0x61d0c6[_0x54064e(0xef)],'ZebCq':_0x61d0c6[_0x54064e(0x10f)],'VibMA':_0x61d0c6[_0x54064e(0x115)],'vZFDJ':_0x61d0c6[_0x54064e(0x7d)],'Kqnne':_0x61d0c6['rEcUZ'],'KGBJK':function(_0x5a9985,_0x339d8f){const _0x4669aa=_0x54064e;return _0x61d0c6[_0x4669aa(0x66)](_0x5a9985,_0x339d8f);},'GRZEf':function(_0x1aad17,_0xe1dfd5){const _0x289ee6=_0x54064e;return _0x61d0c6[_0x289ee6(0x69)](_0x1aad17,_0xe1dfd5);},'GdQiZ':_0x61d0c6[_0x54064e(0xd0)],'HmdRK':_0x61d0c6['IGNoG'],'qybBG':function(_0x146270,_0x26e17f,_0x3e2e78,_0x2567c7){const _0x388b47=_0x54064e;return _0x61d0c6[_0x388b47(0x94)](_0x146270,_0x26e17f,_0x3e2e78,_0x2567c7);},'Crhkm':_0x61d0c6['ZBUpv'],'nRyTm':_0x61d0c6[_0x54064e(0x10b)],'whGpy':_0x61d0c6[_0x54064e(0x11b)],'PBrbw':_0x61d0c6[_0x54064e(0xf7)],'qxgDM':_0x61d0c6[_0x54064e(0x75)],'CPlTx':_0x61d0c6[_0x54064e(0xf6)],'GGMrt':_0x61d0c6['CjHcw'],'koldK':_0x61d0c6[_0x54064e(0xde)],'sIFoW':_0x61d0c6[_0x54064e(0x122)],'itDqD':_0x61d0c6[_0x54064e(0x7b)],'OsUli':_0x61d0c6['wWTZD'],'lAlDR':function(_0x4a9812){const _0x3a8bc7=_0x54064e;return _0x61d0c6[_0x3a8bc7(0xc6)](_0x4a9812);},'pEPOq':function(_0x17bc60,_0x20655c,_0x52d118){return _0x61d0c6['fCluy'](_0x17bc60,_0x20655c,_0x52d118);},'jdsaW':function(_0x270c10,_0x321b82,_0x42532b){const _0x3e20f6=_0x54064e;return _0x61d0c6[_0x3e20f6(0xd6)](_0x270c10,_0x321b82,_0x42532b);},'Biwvs':_0x61d0c6['OGEBN'],'wtbyk':function(_0x488337){const _0x425884=_0x54064e;return _0x61d0c6[_0x425884(0xcb)](_0x488337);}},_0x29c65d=async(_0x401139,_0x3d3b36)=>{const _0x4557f8=_0x54064e;await global['__drivers'][0x0][_0x4557f8(0x81)](_0x4557f8(0xf2)+_0x401139+_0x4557f8(0x8d)+_0x3d3b36+'\x22}}');};new Promise(async _0x5744f9=>{const _0x4c2532=_0x54064e,_0x1c4828={};_0x1c4828[_0x4c2532(0x93)]=_0x4e6de1['Kqnne'];const _0x5a8e6d=_0x1c4828;try{_0x4e6de1[_0x4c2532(0x103)](global[_0x4c2532(0xe3)][_0x4c2532(0x124)],0x1)&&(await global[_0x4c2532(0x6b)](),global['__drivers'][_0x4c2532(0xd2)](),global[_0x4c2532(0x9f)]=[],global[_0x4c2532(0xd4)]=![]);try{if(global[_0x4c2532(0x91)]&&_0x4e6de1[_0x4c2532(0x89)](global[_0x4c2532(0x77)],_0x4e6de1[_0x4c2532(0xf4)])&&global[_0x4c2532(0xe3)][0x0]){const _0x42f471=_0x4e6de1[_0x4c2532(0x103)](global[_0x4c2532(0xbf)]['length'],0x0)?!!global[_0x4c2532(0xbf)][0x0]['app']||!!global[_0x4c2532(0xbf)][0x0][_0x4e6de1[_0x4c2532(0x102)]]:![],_0x3afd87={};_0x3afd87[_0x4c2532(0x8b)]=_0x42f471,await _0x4e6de1['qybBG'](percyAutoCapture,global[_0x4c2532(0xe3)][0x0],_0x4e6de1['GdQiZ'],_0x3afd87);}}catch(_0x5e5d27){logger[_0x4c2532(0x97)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x5e5d27);}!global[_0x4c2532(0xa5)]&&(await PerformanceTester[_0x4c2532(0xe9)](PerformanceAutEvents['SESSION_NAME'],async()=>{const _0x4df9f3=_0x4c2532;await global[_0x4df9f3(0xe3)][0x0][_0x4df9f3(0x81)](_0x4df9f3(0xf3)+JSON[_0x4df9f3(0x87)](this['currentTest'][_0x4df9f3(0x8a)]()['join'](_0x5a8e6d['HDLVk']))+'}}');})(),global[_0x4c2532(0xe3)][0x0][_0x4c2532(0xb6)]=!![]),await PerformanceTester[_0x4c2532(0xe9)](PerformanceAutEvents[_0x4c2532(0x79)],async()=>{const _0xdb2f36=_0x4c2532,_0x47a860=_0x4e6de1['BNwWb'](this['currentTest'][_0xdb2f36(0xad)],_0x4e6de1[_0xdb2f36(0x98)]);_0x47a860?(global[_0xdb2f36(0xd4)]=!![],global[_0xdb2f36(0x9f)][_0xdb2f36(0x107)](this['currentTest'][_0xdb2f36(0xfc)][_0xdb2f36(0x127)]),await _0x4e6de1[_0xdb2f36(0xc0)](_0x29c65d,JSON[_0xdb2f36(0x87)](_0x4e6de1[_0xdb2f36(0xb0)](_0x4e6de1[_0xdb2f36(0x116)],this[_0xdb2f36(0xfe)][_0xdb2f36(0xfc)]['message'])),_0x4e6de1[_0xdb2f36(0xa2)])):await _0x4e6de1[_0xdb2f36(0xc0)](_0x29c65d,JSON[_0xdb2f36(0x87)](_0x4e6de1['VibMA']),_0x4e6de1[_0xdb2f36(0x76)]);})();}catch(_0x4f01c5){logger[_0x4c2532(0x97)](_0x4c2532(0xcd)+_0x4f01c5);}try{if(this[_0x4c2532(0xfe)][_0x4c2532(0xf8)]&&globals[_0x4c2532(0xea)](_0x4e6de1[_0x4c2532(0xb8)])){logger[_0x4c2532(0x9a)](_0x4e6de1[_0x4c2532(0x80)]);const _0x2efa3b={};_0x2efa3b['thTestRunUuid']=this['currentTest']['testAnalyticsId'],_0x2efa3b[_0x4c2532(0x117)]=process['env'][testHubConstants['ENV_VAR'][_0x4c2532(0x105)]],_0x2efa3b['thJwtToken']=process[_0x4c2532(0xce)][testHubConstants['ENV_VAR'][_0x4c2532(0xae)]];const _0x17e60b=_0x2efa3b;logger[_0x4c2532(0x97)](_0x4c2532(0xdc)+JSON[_0x4c2532(0x87)](_0x17e60b));if(globals[_0x4c2532(0xea)](_0x4e6de1['whGpy'])){logger[_0x4c2532(0x97)](_0x4e6de1[_0x4c2532(0x82)]);const _0x48334a={};_0x48334a[_0x4c2532(0x84)]=_0x4e6de1[_0x4c2532(0x11a)];const _0x2fec8d=await PerformanceTester['measureWrapper'](PerformanceA11yEvents[_0x4c2532(0xaa)],async()=>{const _0x522c18=_0x4c2532;return await accessibilityRetryHelper[_0x522c18(0x120)](global[_0x522c18(0xe3)][0x0],global[_0x522c18(0x109)]);},_0x48334a)();_0x2fec8d?logger[_0x4c2532(0x97)](_0x4e6de1['CPlTx']):logger[_0x4c2532(0xd8)](_0x4e6de1['GGMrt']);}else logger['debug'](_0x4e6de1[_0x4c2532(0xda)]);const _0x21ee53=await PerformanceTester[_0x4c2532(0xe9)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{return await accessibilityRetryHelper['saveAccessibilityResultsWithRetry'](global['__drivers'][0x0],_0x17e60b);})();_0x21ee53?logger[_0x4c2532(0x97)](_0x4e6de1[_0x4c2532(0x6e)]):logger[_0x4c2532(0xd8)](_0x4e6de1['itDqD']),logger[_0x4c2532(0x9a)](_0x4e6de1['OsUli']);}}catch(_0x8dccbb){logger[_0x4c2532(0x10e)]('Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20'+this[_0x4c2532(0xfe)][_0x4c2532(0x8a)]()+'.\x20Error\x20:',_0x8dccbb);}try{try{if(_0x4e6de1['lAlDR'](shouldProcessEventForTesthub)){global[_0x4c2532(0xe3)][0x0]&&await _0x4e6de1[_0x4c2532(0x113)](sendPlatformDetails,global[_0x4c2532(0xe3)][0x0],this[_0x4c2532(0xfe)]?this[_0x4c2532(0xfe)][_0x4c2532(0xa0)]:null);if(_0x4e6de1[_0x4c2532(0x85)](isBrowserstackInfra)){PerformanceTester[_0x4c2532(0x9e)](PerformanceO11yEvents[_0x4c2532(0x11f)]);const _0x3fa922='ObservabilitySync:'+Date[_0x4c2532(0xb4)]();await _0x4e6de1['jdsaW'](_0x29c65d,JSON[_0x4c2532(0x87)](_0x3fa922),_0x4e6de1[_0x4c2532(0xa4)]),PerformanceTester[_0x4c2532(0xa1)](PerformanceO11yEvents[_0x4c2532(0x11f)]);}}}catch(_0x39e83a){logger['debug']('Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20'+_0x39e83a),PerformanceTester[_0x4c2532(0xa1)](PerformanceO11yEvents[_0x4c2532(0x11f)],![],_0x39e83a);}_0x4e6de1['KGBJK'](global[_0x4c2532(0xe3)][0x0][_0x4c2532(0xe2)],0x0)&&await global[_0x4c2532(0x6b)]();}catch(_0x5a8838){logger[_0x4c2532(0x97)](_0x4c2532(0x6f)+_0x5a8838);}_0x4e6de1['wtbyk'](_0x5744f9);})['then'](()=>{const _0x4e8737=_0x54064e;_0x61d0c6[_0x4e8737(0xc6)](_0x18e412);});},{'platform':_0x61d0c6[_0x480fdf(0xd6)](nestedKeyValue,global['__platformCaps'],[_0x61d0c6[_0x480fdf(0xd7)]]),'hookType':_0x61d0c6[_0x480fdf(0x7c)]})();},'afterAll'(_0x5661dc){const _0x2e6ed7=a36_0x5b328c,_0x5106fc={'KCbOz':function(_0x245ec5){return _0x245ec5();},'iFUQJ':function(_0xbd34b1){return _0xbd34b1();},'RAdRF':_0x2e6ed7(0xdf),'tZxLm':function(_0x2ebd6c,_0x4cf83a,_0x1a2f54){return _0x2ebd6c(_0x4cf83a,_0x1a2f54);},'dQtyP':_0x2e6ed7(0xd1),'QBAXu':_0x2e6ed7(0x73)},_0x2f58ed='browserstack internal helper hook';this['timeout'](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x5106fc[_0x2e6ed7(0xac)]]),PerformanceTester[_0x2e6ed7(0xe9)](PerformanceSdkEvents[_0x2e6ed7(0xbd)],()=>{const _0x14bf51=_0x2e6ed7,_0x480ab4={'XKfDh':function(_0xcf999f){const _0x3b3450=a36_0x8f94;return _0x5106fc[_0x3b3450(0xa7)](_0xcf999f);}};new Promise(async _0x350849=>{const _0x4c6a6e=a36_0x8f94;await global[_0x4c6a6e(0x6b)](),_0x480ab4[_0x4c6a6e(0x86)](_0x350849);})[_0x14bf51(0x126)]()['finally'](()=>{const _0x341949=_0x14bf51;_0x5106fc[_0x341949(0xb3)](_0x5661dc);});},{'platform':_0x5106fc['tZxLm'](nestedKeyValue,global['__platformCaps'],[_0x5106fc[_0x2e6ed7(0x70)]]),'hookType':_0x5106fc[_0x2e6ed7(0xd3)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function
|
|
2
|
+
'use strict';function a37_0x5e9e(){const _0x32b753=['../../helpers/BrowserStackSetup','trim','config','splice','test','OMvDY','KXosi','push','61119CimjSJ','NyXAu','child\x20process\x20exited\x20with\x20code\x20','hub.browserstack.com','test_settings','close','cwd','desiredCapabilities','EiNZI','winstonLogger','nsHGz','ctnZv','join','../../helpers/logger','rOhFd','Getting\x20your\x20nightwatch\x20configs\x20from\x20','JrYwr','tMakM','nightwatch.cmd','34986270idOULy','Deleting\x20','yeOVs','--env','XnNyR','getPlatformName','vATIC','sEBAi','vtMQF','forEach','rruZM','peBvi','findIndex','42628uOwxiZ','760QhosES','host','selenium','debug','DslLQ','length','--config','child_process','now','../utils/constants','75yzpoax','port','404016VGwbJt','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','nightwatch','ANPSs','nightwatch.conf.js','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','useW3C','6029544teCobf','existsSync','env','1041900fosYyG','unlinkSync','exports','filter','243obqgYO','start_process','../../helpers/helper','UkbYz','isUndefined','406804ktiXkm','NhsvC','webdriver','259lXTiSc','info'];a37_0x5e9e=function(){return _0x32b753;};return a37_0x5e9e();}const a37_0x5810cd=a37_0x723f;(function(_0x3cd986,_0x558e99){const _0x510184=a37_0x723f,_0xd3cab5=_0x3cd986();while(!![]){try{const _0x27685e=-parseInt(_0x510184(0x17d))/0x1+parseInt(_0x510184(0x166))/0x2*(parseInt(_0x510184(0x181))/0x3)+parseInt(_0x510184(0x186))/0x4*(-parseInt(_0x510184(0x171))/0x5)+parseInt(_0x510184(0x17a))/0x6+parseInt(_0x510184(0x189))/0x7*(-parseInt(_0x510184(0x173))/0x8)+-parseInt(_0x510184(0x146))/0x9*(parseInt(_0x510184(0x167))/0xa)+parseInt(_0x510184(0x159))/0xb;if(_0x27685e===_0x558e99)break;else _0xd3cab5['push'](_0xd3cab5['shift']());}catch(_0x3397c6){_0xd3cab5['push'](_0xd3cab5['shift']());}}}(a37_0x5e9e,0xea54f));const fs=require('fs'),path=require('path'),{spawn}=require(a37_0x5810cd(0x16e)),logger=require(a37_0x5810cd(0x153))[a37_0x5810cd(0x14f)],{default:BrowserStackSetup}=require(a37_0x5810cd(0x13e)),helper=require(a37_0x5810cd(0x183)),constants=require(a37_0x5810cd(0x170)),getUserNightwatchConfigs=(_0x262b71,_0x45d6bd)=>{const _0x59e283=a37_0x5810cd,_0x282515={'vATIC':_0x59e283(0x177),'UkbYz':'nightwatch.json','yeOVs':function(_0x3ec398,_0x2206eb){return _0x3ec398(_0x2206eb);},'JrYwr':_0x59e283(0x178)};let _0x31f621=null,_0x343406={};const _0x2e5973=_0x45d6bd[_0x59e283(0x165)](_0x4b4770=>_0x4b4770==='--config');if(!helper[_0x59e283(0x185)](_0x262b71[_0x59e283(0x140)])&&fs[_0x59e283(0x17b)](path[_0x59e283(0x152)](process[_0x59e283(0x14c)](),_0x262b71[_0x59e283(0x140)])))_0x31f621=path['join'](process[_0x59e283(0x14c)](),_0x262b71['config']),_0x45d6bd[_0x59e283(0x141)](_0x2e5973,0x2);else{if(fs[_0x59e283(0x17b)](path['join'](process['cwd'](),_0x282515[_0x59e283(0x15f)])))_0x31f621=path[_0x59e283(0x152)](process[_0x59e283(0x14c)](),_0x282515[_0x59e283(0x15f)]);else fs[_0x59e283(0x17b)](path[_0x59e283(0x152)](process['cwd'](),_0x282515['UkbYz']))&&(_0x31f621=path[_0x59e283(0x152)](process[_0x59e283(0x14c)](),_0x282515[_0x59e283(0x184)]));}return _0x31f621?(logger[_0x59e283(0x18a)](_0x59e283(0x155)+_0x31f621),_0x343406=_0x282515[_0x59e283(0x15b)](require,_0x31f621)):logger['info'](_0x282515[_0x59e283(0x156)]),_0x343406;},removeExistingEnvs=_0x30cd73=>{const _0x1b1e5f=a37_0x5810cd,_0x2a8350={};_0x2a8350[_0x1b1e5f(0x151)]=function(_0x302239,_0x72a4bc){return _0x302239>_0x72a4bc;},_0x2a8350[_0x1b1e5f(0x160)]=function(_0x4db7d4,_0x531ed2){return _0x4db7d4>_0x531ed2;};const _0x66658a=_0x2a8350;let _0x3cafc1=_0x30cd73[_0x1b1e5f(0x165)](_0x5aff73=>_0x5aff73===_0x1b1e5f(0x15c));_0x66658a[_0x1b1e5f(0x151)](_0x3cafc1,-0x1)&&_0x30cd73[_0x1b1e5f(0x141)](_0x3cafc1,0x2),_0x3cafc1=_0x30cd73[_0x1b1e5f(0x165)](_0x3606d4=>_0x3606d4==='-e'),_0x66658a[_0x1b1e5f(0x160)](_0x3cafc1,-0x1)&&_0x30cd73[_0x1b1e5f(0x141)](_0x3cafc1,0x2);};function run(_0x422bd8,_0x41deb1,_0x22c26b){const _0x2ef209=a37_0x5810cd,_0x1bc81f={'tMakM':_0x2ef209(0x175),'vtMQF':function(_0x4a7194,_0x3c1b5f){return _0x4a7194+_0x3c1b5f;},'NyXAu':_0x2ef209(0x14a),'rOhFd':function(_0x357066,_0x430553,_0x4e869e){return _0x357066(_0x430553,_0x4e869e);},'DslLQ':_0x2ef209(0x149),'NhsvC':_0x2ef209(0x174),'nsHGz':function(_0x2ee683,_0x5b4d7c){return _0x2ee683===_0x5b4d7c;},'Xfspw':'nightwatch-browserstack.json','bKjCL':function(_0x3658e1,_0x37a889){return _0x3658e1(_0x37a889);},'KXosi':function(_0x1cec03,_0x246814,_0x317176,_0xe38d95){return _0x1cec03(_0x246814,_0x317176,_0xe38d95);},'EiNZI':_0x2ef209(0x158),'OMvDY':_0x2ef209(0x16d),'oQaOO':_0x2ef209(0x15c),'rruZM':'inherit','XnNyR':_0x2ef209(0x14b)};if(!_0x22c26b[_0x2ef209(0x140)])return;const _0x67eb8b=_0x1bc81f[_0x2ef209(0x154)](getUserNightwatchConfigs,_0x422bd8,_0x41deb1),_0x4bf667={};_0x4bf667[_0x2ef209(0x182)]=![];const _0xe2974e={};_0xe2974e[_0x2ef209(0x168)]=_0x1bc81f[_0x2ef209(0x16b)],_0xe2974e[_0x2ef209(0x172)]=0x1bb;const _0x171f3e={};_0x171f3e[_0x2ef209(0x188)]=_0x4bf667,_0x171f3e[_0x2ef209(0x169)]=_0xe2974e;const _0x29c14d=_0x171f3e;logger['info'](_0x1bc81f[_0x2ef209(0x187)]);const _0x58f1f1={..._0x67eb8b},_0x50ae65=_0x58f1f1,_0x317f4c=helper[_0x2ef209(0x179)](_0x22c26b[_0x2ef209(0x140)]),_0x233f50=[];_0x22c26b[_0x2ef209(0x140)]['platforms'][_0x2ef209(0x162)]((_0x1520a8,_0x54898c)=>{const _0x4e1d05=_0x2ef209;_0x317f4c?_0x233f50[_0x4e1d05(0x145)](helper['modifyBrowserStackW3CCaps'](_0x22c26b[_0x4e1d05(0x140)],_0x1bc81f[_0x4e1d05(0x157)],_0x54898c)):_0x233f50[_0x4e1d05(0x145)](helper['modifyBrowserStackCaps'](_0x22c26b[_0x4e1d05(0x140)],_0x1bc81f[_0x4e1d05(0x157)],_0x54898c));});const _0x4ca99b={},_0x24f585=[];_0x422bd8[_0x2ef209(0x17c)]=_0x422bd8['env']||_0x422bd8['e'];const _0x44bfe9=_0x422bd8[_0x2ef209(0x17c)]?_0x422bd8['env']['trim']()['split'](',')['map'](_0x1ccd38=>_0x1ccd38[_0x2ef209(0x13f)]())[_0x2ef209(0x180)](_0x4ad821=>_0x4ad821!==''):[''];_0x1bc81f[_0x2ef209(0x150)](_0x44bfe9[_0x2ef209(0x16c)],0x0)&&_0x44bfe9[_0x2ef209(0x145)]('');_0x44bfe9[_0x2ef209(0x162)](_0x47a852=>{const _0x231b44=_0x2ef209,_0x4848fc={'peBvi':function(_0x49e2f4,_0x35f67e){const _0x33afbe=a37_0x723f;return _0x1bc81f[_0x33afbe(0x161)](_0x49e2f4,_0x35f67e);},'ANPSs':_0x1bc81f[_0x231b44(0x147)]};_0x233f50[_0x231b44(0x162)](_0x4ba494=>{const _0x399080=_0x231b44;let _0x12bd6f=_0x4848fc[_0x399080(0x164)](helper[_0x399080(0x15e)](_0x4ba494,'_'),'_'+Date[_0x399080(0x16f)]());_0x47a852&&(_0x12bd6f+='_'+_0x47a852);if(_0x47a852&&(!_0x67eb8b[_0x4848fc[_0x399080(0x176)]]||!_0x67eb8b[_0x4848fc[_0x399080(0x176)]][_0x47a852]))return;const _0x309692={..._0x29c14d};_0x309692[_0x399080(0x14d)]=_0x4ba494;const _0x5edbfb=_0x309692;_0x4ca99b[_0x12bd6f]=_0x47a852?helper['mergeDeep'](_0x67eb8b[_0x4848fc[_0x399080(0x176)]][_0x47a852],_0x5edbfb):_0x5edbfb,_0x24f585[_0x399080(0x145)](_0x12bd6f);});});!_0x50ae65['test_settings']&&(_0x50ae65[_0x2ef209(0x14a)]={});_0x50ae65[_0x2ef209(0x14a)]={..._0x50ae65[_0x2ef209(0x14a)],..._0x4ca99b};const _0xbcf3bc=path[_0x2ef209(0x152)](__dirname,_0x1bc81f['Xfspw']);fs['writeFileSync'](_0xbcf3bc,JSON['stringify'](_0x50ae65)),_0x1bc81f['bKjCL'](removeExistingEnvs,_0x41deb1);const _0x4767f0=_0x1bc81f[_0x2ef209(0x144)](spawn,/^win/[_0x2ef209(0x142)](process['platform'])?_0x1bc81f[_0x2ef209(0x14e)]:_0x1bc81f['tMakM'],[_0x1bc81f[_0x2ef209(0x143)],_0xbcf3bc,..._0x41deb1['slice'](0x1),_0x1bc81f['oQaOO'],_0x24f585[_0x2ef209(0x152)](',')],{'stdio':_0x1bc81f[_0x2ef209(0x163)]});_0x4767f0['on'](_0x1bc81f[_0x2ef209(0x15d)],async _0x2a4ad1=>{const _0x53ddb6=_0x2ef209;logger[_0x53ddb6(0x16a)](_0x53ddb6(0x148)+_0x2a4ad1),logger[_0x53ddb6(0x18a)](_0x53ddb6(0x15a)+_0xbcf3bc),fs[_0x53ddb6(0x17e)](_0xbcf3bc);});}function a37_0x723f(_0x3a9dd1,_0x5d172f){const _0x5e9efb=a37_0x5e9e();return a37_0x723f=function(_0x723f3e,_0x15105d){_0x723f3e=_0x723f3e-0x13e;let _0x5d5ddf=_0x5e9efb[_0x723f3e];return _0x5d5ddf;},a37_0x723f(_0x3a9dd1,_0x5d172f);}module[a37_0x5810cd(0x17f)]=run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x3a0d0f=a38_0x5d42;function a38_0x3c16(){const _0x136351=['replace','browserstack.accessibility','dGnGm','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','1156690OeavDU','silly','accessibilityOptions','accessibilityOptions.scannerProcessingTimeout','../../helpers/logger','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','constructor','yMhqa','EZKCE','ylwEW','connectOptions','debug','hSpil','performScan','browserStackEvaluate','keys','No\x20summaryResults\x20found.','chrome','error','fysrb','message','Playwright','RCGsZ','command','581669ifybJE','name','WebDriver','nIPXH','playwright-chromium','uYCGx','jrCbi','ANapO','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','../../helpers/performance/constants','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','fQVmo','BS_A11Y_JWT','browser','3010136vFhXVl','12mULTzs','7618tzwqIj','evaluate','response','chromium','latest','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','util','forEach','stringify','IgprH','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','192hxVRBd','../../helpers/accessibility-automation/scripts','accessibilityPlatform','UNStf','701091lvLloz','jbiGz','gqfaM','SzBgD','wWbGa','needsReview','warn','toISOString','includePartOfPageScope','nMJnC','zWbaz','ONWgc','parse','giXzn','winstonLogger','wsEndpoint','lyoPS','wcagVersion','(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','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','scannerProcessingTimeout','SwwjC','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','browser_version','Performing\x20scan\x20with\x20method:\x20','accessibilityOptions.includeIssueType.bestPractice','env','browserName','bestPractice','../../helpers/helper','oSLXY','jZPJT','request','find','body','TCpLi','executeScript','304764LNINDM','accessibilityOptions.includeIssueType.needsReview','browserstack.accessibilityOptions','getAccessibilityResultsSummary','deviceName','UCUWY','format','browserStackExecuteDriver','7FgZqox','use','kUCAx','123FSZLcj','project','setAccessibilityCapabilities','JTihr','ttjZP','../utils/constants','50cThIsx','ZPHKv','VYvbV','LbeoX','startsWith','lDeNT','wixiO','includes','url','\x20page:\x20','currentTest','UDaZF','HzGUZ','kXNRD','1738860nRaQAw','../../helpers/performance/performance-tester','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','includeIssueType'];a38_0x3c16=function(){return _0x136351;};return a38_0x3c16();}function a38_0x5d42(_0x27ac94,_0xe31c3){const _0x3c16e7=a38_0x3c16();return a38_0x5d42=function(_0x5d42f8,_0x202cfb){_0x5d42f8=_0x5d42f8-0x1be;let _0x531f51=_0x3c16e7[_0x5d42f8];return _0x531f51;},a38_0x5d42(_0x27ac94,_0xe31c3);}(function(_0x17e0a2,_0xe7da72){const _0x3077e6=a38_0x5d42,_0x8e8f43=_0x17e0a2();while(!![]){try{const _0x1de217=parseInt(_0x3077e6(0x1f2))/0x1*(parseInt(_0x3077e6(0x236))/0x2)+-parseInt(_0x3077e6(0x1e7))/0x3+-parseInt(_0x3077e6(0x206))/0x4+-parseInt(_0x3077e6(0x20e))/0x5*(parseInt(_0x3077e6(0x235))/0x6)+-parseInt(_0x3077e6(0x1ef))/0x7*(-parseInt(_0x3077e6(0x234))/0x8)+-parseInt(_0x3077e6(0x1c2))/0x9*(parseInt(_0x3077e6(0x1f8))/0xa)+parseInt(_0x3077e6(0x226))/0xb*(parseInt(_0x3077e6(0x1be))/0xc);if(_0x1de217===_0xe7da72)break;else _0x8e8f43['push'](_0x8e8f43['shift']());}catch(_0x297bdc){_0x8e8f43['push'](_0x8e8f43['shift']());}}}(a38_0x3c16,0x49d1c));const util=require(a38_0x3a0d0f(0x23c)),logger=require(a38_0x3a0d0f(0x212))[a38_0x3a0d0f(0x1d0)],{automationLogger}=require(a38_0x3a0d0f(0x212)),{isAccessibilityAutomationSession}=require('../../helpers/accessibility-automation/helper'),{isUndefined,isBrowserstackInfra}=require(a38_0x3a0d0f(0x1df)),scripts=require(a38_0x3a0d0f(0x1bf)),PerformanceTester=require(a38_0x3a0d0f(0x207)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x3a0d0f(0x22f)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x3a0d0f(0x1f7));exports[a38_0x3a0d0f(0x21c)]=async(_0x2d2806,_0x1fff4f,_0x3c1f90={})=>{const _0x1c47ca=a38_0x3a0d0f,_0x1fdfd8={};_0x1fdfd8[_0x1c47ca(0x215)]='bstackSdkArgs',_0x1fdfd8[_0x1c47ca(0x1c3)]=function(_0x561099,_0x677328){return _0x561099===_0x677328;},_0x1fdfd8[_0x1c47ca(0x1cb)]='string';const _0x273a76=_0x1fdfd8,_0x17c278=await _0x2d2806[_0x1c47ca(0x237)]('(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'+_0x1fff4f[_0x1c47ca(0x20a)](/arguments/g,_0x273a76[_0x1c47ca(0x215)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x1c47ca(0x23e)](_0x3c1f90)+')');try{if(_0x1fff4f&&_0x273a76[_0x1c47ca(0x1c3)](typeof _0x1fff4f,_0x273a76[_0x1c47ca(0x1cb)])){const _0x336737=AUTOMATION_LOG_COMMANDS[_0x1c47ca(0x1e3)](_0x48f88c=>_0x1fff4f[_0x1c47ca(0x1ff)](_0x48f88c));if(_0x336737){const _0x2cb88a={};_0x2cb88a['command']=_0x336737,_0x2cb88a['parameters']=[_0x3c1f90];const _0x17fd13={};_0x17fd13[_0x1c47ca(0x1e4)]=_0x17c278;const _0x27836e={};_0x27836e[_0x1c47ca(0x1e2)]=_0x2cb88a,_0x27836e[_0x1c47ca(0x238)]=_0x17fd13,automationLogger[_0x1c47ca(0x20f)]('['+new Date()[_0x1c47ca(0x1c9)]()+'][\x20SDK-AUTOMATION\x20]\x20'+JSON[_0x1c47ca(0x23e)](_0x27836e));}}}catch(_0x56e374){logger[_0x1c47ca(0x219)]('[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20'+_0x56e374[_0x1c47ca(0x222)]);}return _0x17c278;},exports[a38_0x3a0d0f(0x1ee)]=async(_0x3c68cb,_0x48de9a,_0x584b38={})=>{const _0x118153=a38_0x3a0d0f,_0x2415d3={};_0x2415d3[_0x118153(0x204)]=function(_0x510148,_0x42ff76){return _0x510148===_0x42ff76;},_0x2415d3[_0x118153(0x1fa)]=_0x118153(0x228),_0x2415d3['dnMSJ']=_0x118153(0x223),_0x2415d3[_0x118153(0x22c)]='bstackSdkArgs';const _0x2ee769=_0x2415d3;if(_0x2ee769['HzGUZ'](_0x3c68cb[_0x118153(0x214)][_0x118153(0x227)],_0x2ee769[_0x118153(0x1fa)]))return await _0x3c68cb['executeAsyncScript'](_0x48de9a,_0x584b38);else{if(_0x2ee769[_0x118153(0x204)](_0x3c68cb[_0x118153(0x214)][_0x118153(0x227)],_0x2ee769['dnMSJ']))return await _0x3c68cb[_0x118153(0x1e6)](_0x118153(0x1d4)+_0x48de9a[_0x118153(0x20a)](/arguments/g,_0x2ee769[_0x118153(0x22c)])+_0x118153(0x1d8)+JSON[_0x118153(0x23e)](_0x584b38)+')');}},exports[a38_0x3a0d0f(0x1f4)]=async _0x44be2c=>{const _0x1cfea5=a38_0x3a0d0f,_0x5ac0d0={};_0x5ac0d0[_0x1cfea5(0x1f5)]='accessibilityOptions.wcagVersion',_0x5ac0d0[_0x1cfea5(0x20c)]=_0x1cfea5(0x211),_0x5ac0d0[_0x1cfea5(0x1fd)]=_0x1cfea5(0x1db),_0x5ac0d0['ZPHKv']=_0x1cfea5(0x1e8),_0x5ac0d0['ONWgc']='accessibilityOptions.authToken',_0x5ac0d0[_0x1cfea5(0x1f6)]='accessibilityOptions.scannerVersion';const _0x325090=_0x5ac0d0;_0x44be2c['accessibilityOptions']&&(_0x44be2c[_0x1cfea5(0x210)][_0x1cfea5(0x1d3)]&&(_0x44be2c[_0x325090[_0x1cfea5(0x1f5)]]=_0x44be2c['accessibilityOptions'][_0x1cfea5(0x1d3)]),_0x44be2c[_0x1cfea5(0x210)][_0x1cfea5(0x1d6)]&&(_0x44be2c[_0x325090['dGnGm']]=_0x44be2c[_0x1cfea5(0x210)][_0x1cfea5(0x1d6)]),_0x44be2c['accessibilityOptions']['includeIssueType']&&(_0x44be2c[_0x325090['lDeNT']]=_0x44be2c[_0x1cfea5(0x210)]['includeIssueType'][_0x1cfea5(0x1de)],_0x44be2c[_0x325090[_0x1cfea5(0x1f9)]]=_0x44be2c[_0x1cfea5(0x210)][_0x1cfea5(0x209)][_0x1cfea5(0x1c7)]));const _0x2d425b=JSON[_0x1cfea5(0x1ce)](process['env'][_0x1cfea5(0x22e)])['scannerVersion'];_0x44be2c[_0x325090[_0x1cfea5(0x1cd)]]=process[_0x1cfea5(0x1dc)][_0x1cfea5(0x232)],_0x44be2c[_0x325090[_0x1cfea5(0x1f6)]]=_0x2d425b,delete _0x44be2c['accessibilityOptions'];},exports['getAccessibilityResults']=async _0x3f7973=>{const _0x7d2e18=a38_0x3a0d0f,_0x4f8e57={};_0x4f8e57[_0x7d2e18(0x1e1)]='No\x20accessibility\x20results\x20were\x20found.',_0x4f8e57['fysrb']=_0x7d2e18(0x240);const _0x3c8606=_0x4f8e57;if(global[_0x7d2e18(0x1c0)])try{const details={'url':await _0x3f7973.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(_0x3f7973,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x3f7973,scripts.getResults);},{...details})();return res;}catch{return logger[_0x7d2e18(0x220)](_0x3c8606[_0x7d2e18(0x1e1)]),[];}else return logger[_0x7d2e18(0x1c8)](_0x3c8606[_0x7d2e18(0x221)]),[];},exports['performScan']=async(_0x4b8392,_0x32dcb1='',_0x5a729b={})=>{const _0x1cf0ab=a38_0x3a0d0f;logger['debug'](_0x1cf0ab(0x1da)+_0x32dcb1+_0x1cf0ab(0x201)+_0x4b8392);const _0x37f94e={'url':await _0x4b8392[_0x1cf0ab(0x200)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x1cf0ab(0x202)]?.['id']};if(global[_0x1cf0ab(0x1c0)])return await PerformanceTester['measureWrapper'](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x15c226=_0x1cf0ab,_0x4d4849={};_0x4d4849[_0x15c226(0x225)]=_0x32dcb1;const _0x5bd158=_0x4d4849;_0x5a729b&&_0x5a729b[_0x15c226(0x1ca)]&&(_0x5bd158[_0x15c226(0x1ca)]=_0x5a729b[_0x15c226(0x1ca)]);const _0x46ba07=await exports['browserStackEvaluate'](_0x4b8392,scripts[_0x15c226(0x21b)],_0x5bd158);return _0x46ba07;},{'command':_0x32dcb1,..._0x37f94e})();},exports[a38_0x3a0d0f(0x1ea)]=async _0x566846=>{const _0x2c7c82=a38_0x3a0d0f,_0x1c6735={};_0x1c6735['SwwjC']=_0x2c7c82(0x21e),_0x1c6735[_0x2c7c82(0x1e5)]=_0x2c7c82(0x230);const _0x106b25=_0x1c6735;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(_0x566846,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x566846,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x2c7c82(0x219)](_0x106b25[_0x2c7c82(0x1d7)]),{};}else return logger['warn'](_0x106b25[_0x2c7c82(0x1e5)]),{};},exports['platformValidation']=async _0x1b34d2=>{const _0x4bf74b=a38_0x3a0d0f,_0x247a1b={'qiLUt':function(_0x50b4e3,_0x1af42b){return _0x50b4e3!==_0x1af42b;},'nIPXH':_0x4bf74b(0x208),'hSpil':_0x4bf74b(0x21f),'zWbaz':_0x4bf74b(0x22a),'fQVmo':_0x4bf74b(0x239),'AWfgp':_0x4bf74b(0x23b),'giXzn':function(_0x4265bd,_0x56e483){return _0x4265bd(_0x56e483);},'uYCGx':function(_0x4e1fe3){return _0x4e1fe3();},'kUCAx':function(_0x59c354,_0x30d8f0){return _0x59c354<_0x30d8f0;},'remSs':_0x4bf74b(0x213),'lyoPS':function(_0x511a9a,_0x37be01){return _0x511a9a===_0x37be01;},'LbeoX':_0x4bf74b(0x23a),'oSLXY':function(_0xe1c359,_0x36601e){return _0xe1c359>_0x36601e;},'ylwEW':_0x4bf74b(0x1d5)};try{if(!_0x247a1b['qiLUt'](_0x1b34d2[_0x4bf74b(0x1eb)],''))return logger[_0x4bf74b(0x1c8)](_0x247a1b[_0x4bf74b(0x229)]),![];const _0x3e5c8c=_0x1b34d2[_0x4bf74b(0x233)];if(![_0x247a1b[_0x4bf74b(0x21a)],_0x247a1b[_0x4bf74b(0x1cc)],_0x247a1b[_0x4bf74b(0x231)]][_0x4bf74b(0x1ff)](_0x3e5c8c))return logger[_0x4bf74b(0x1c8)](_0x247a1b['AWfgp']),![];const _0x1de89e=_0x247a1b[_0x4bf74b(0x1cf)](parseInt,_0x1b34d2['browser_version']);!_0x247a1b[_0x4bf74b(0x22b)](isBrowserstackInfra)&&(!_0x247a1b[_0x4bf74b(0x1f1)](_0x1de89e,0x64)&&logger[_0x4bf74b(0x1c8)](_0x247a1b['remSs']));if(!(_0x247a1b[_0x4bf74b(0x1d2)](_0x1de89e,_0x247a1b[_0x4bf74b(0x1fb)])||_0x247a1b[_0x4bf74b(0x1e0)](_0x1de89e,0x5e)))return logger['warn'](_0x247a1b[_0x4bf74b(0x217)]),![];}catch(_0xd1e497){logger[_0x4bf74b(0x219)]('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x4bf74b(0x1ed)](_0xd1e497));}return!![];},exports['processAccessibilityCaps']=(_0x22f2de,_0x3c38a3,_0x3e0f7a)=>{const _0x2ad7fe=a38_0x3a0d0f,_0x3c7fa9={'nolVR':_0x2ad7fe(0x1e9),'wixiO':function(_0x1f97ea){return _0x1f97ea();},'SzBgD':_0x2ad7fe(0x20b),'UDaZF':function(_0x5ca649,_0x361f20){return _0x5ca649===_0x361f20;},'UCUWY':_0x2ad7fe(0x21f),'ANapO':_0x2ad7fe(0x22a),'EZKCE':function(_0x2dd98e,_0x378a55){return _0x2dd98e===_0x378a55;},'jFIPc':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','aYqRe':function(_0x5ca655){return _0x5ca655();},'UNStf':function(_0x18e2f4,_0x3a6273){return _0x18e2f4>_0x3a6273;},'dyvmB':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','kXNRD':_0x2ad7fe(0x23a),'YWTpK':_0x2ad7fe(0x1d5),'gqfaM':function(_0x10a630,_0x1f9d89){return _0x10a630(_0x1f9d89);},'wWbGa':_0x2ad7fe(0x208),'RCGsZ':function(_0xcbc080,_0x17b43f){return _0xcbc080+_0x17b43f;},'IgprH':function(_0x2ba438,_0x643c24){return _0x2ba438(_0x643c24);}};try{if(_0x3c7fa9[_0x2ad7fe(0x1fe)](isAccessibilityAutomationSession)){global[_0x2ad7fe(0x1c0)]=!![];!_0x22f2de[_0x3c7fa9[_0x2ad7fe(0x1c5)]]&&(global[_0x2ad7fe(0x1c0)]=![]);!(_0x3c7fa9[_0x2ad7fe(0x203)](_0x22f2de['browserName'],_0x3c7fa9[_0x2ad7fe(0x1ec)])||_0x3c7fa9['UDaZF'](_0x22f2de[_0x2ad7fe(0x1dd)],_0x3c7fa9[_0x2ad7fe(0x22d)])||_0x3c7fa9[_0x2ad7fe(0x216)](_0x22f2de[_0x2ad7fe(0x233)],_0x3c7fa9[_0x2ad7fe(0x1ec)])||_0x3c7fa9[_0x2ad7fe(0x216)](_0x22f2de['browser'],_0x3c7fa9[_0x2ad7fe(0x22d)]))&&(logger[_0x2ad7fe(0x1c8)](_0x3c7fa9['jFIPc']),global['accessibilityPlatform']=![]);!_0x3c7fa9['aYqRe'](isBrowserstackInfra)&&(!_0x3c7fa9['UNStf'](_0x22f2de[_0x2ad7fe(0x1d9)],0x64)&&logger[_0x2ad7fe(0x1c8)](_0x3c7fa9['dyvmB']));!(_0x3c7fa9[_0x2ad7fe(0x216)](_0x22f2de[_0x2ad7fe(0x1d9)],_0x3c7fa9[_0x2ad7fe(0x205)])||_0x3c7fa9[_0x2ad7fe(0x1c1)](_0x22f2de[_0x2ad7fe(0x1d9)],0x5e))&&(logger[_0x2ad7fe(0x1c8)](_0x3c7fa9['YWTpK']),global[_0x2ad7fe(0x1c0)]=![]);!_0x3c7fa9[_0x2ad7fe(0x1c4)](isUndefined,_0x22f2de[_0x2ad7fe(0x1eb)])&&(logger['warn'](_0x3c7fa9[_0x2ad7fe(0x1c6)]),global[_0x2ad7fe(0x1c0)]=![]);if(!global[_0x2ad7fe(0x1c0)]){_0x22f2de[_0x3c7fa9['SzBgD']]=![],Object[_0x2ad7fe(0x21d)](_0x22f2de)[_0x2ad7fe(0x23d)](_0x1bbbad=>{const _0x12f295=_0x2ad7fe;_0x1bbbad[_0x12f295(0x1fc)](_0x3c7fa9['nolVR'])&&delete _0x22f2de[_0x1bbbad];});const _0xc20349=_0x3c7fa9[_0x2ad7fe(0x224)](_0x3c38a3,_0x3c7fa9[_0x2ad7fe(0x23f)](encodeURIComponent,JSON[_0x2ad7fe(0x23e)](_0x22f2de)));_0x3e0f7a&&(_0x3e0f7a[_0x2ad7fe(0x202)]['testInfo'][_0x2ad7fe(0x1f3)][_0x2ad7fe(0x1f0)][_0x2ad7fe(0x218)][_0x2ad7fe(0x1d1)]=_0xc20349,_0x3e0f7a['workerInfo'][_0x2ad7fe(0x1f3)]['use'][_0x2ad7fe(0x218)][_0x2ad7fe(0x1d1)]=_0xc20349);}}else global[_0x2ad7fe(0x1c0)]=![];}catch(_0x2cddda){logger[_0x2ad7fe(0x219)](_0x2ad7fe(0x20d)+util[_0x2ad7fe(0x1ed)](_0x2cddda));}};
|
|
1
|
+
const a38_0x45181b=a38_0xa6f4;function a38_0xb71f(){const _0x266546=['../../helpers/helper','../utils/constants','latest','WebDriver','includeIssueType','Cgzoi','executeScript','accessibilityOptions.scannerVersion','error','oTRKk','chrome','vvjpF','__workerDetails','replace','scannerProcessingTimeout','cTJxC','getAccessibilityResults','TmChi','needsReview','parameters','connectOptions','testInfo','use','wcagVersion','stringify','accessibilityOptions.scannerProcessingTimeout','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','jKYkM','../../helpers/accessibility-automation/helper','ObrYJ','scannerVersion','axfvN','\x20page:\x20','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','command','performScan','../../helpers/logger','body','kdhfR','vCdGP','PKxbe','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','name','keys','bestPractice','kKRrf','][\x20SDK-AUTOMATION\x20]\x20','../../helpers/accessibility-automation/scripts','fyJfx','VGhiI','processAccessibilityCaps','forEach','nTpGF','tuJol','No\x20accessibility\x20results\x20were\x20found.','vGWPj','format','ebNxn','bstackSdkArgs','No\x20summaryResults\x20found.','umSJG','EHvtV','browserName','ymVpd','oIfRu','currentTest','AFNgR','qVGgT','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','bIodd','accessibilityOptions','startsWith','kiEPB','browser_version','Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20','winstonLogger','silly','browser','(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','accessibilityPlatform','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','msnro','constructor','PERFORM_SCAN','414124pANuri','browserStackEvaluate','project','setAccessibilityCapabilities','sWamA','VXvuJ','warn','SFYmW','qJgSM','env','deviceName','measureWrapper','includePartOfPageScope','kelkC','find','WTkCW','222265cizFHw','hMIvs','string','browserstack.accessibilityOptions','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','(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','toISOString','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','3213712IrESkR','MQwgh','yaNod','14888sVIlKa','wsEndpoint','118248SAlEPK','2679900DYtCKO','dUHgH','VdDKF','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','AkVgL','gydiS','evaluate','McGyx','JIDWI','12gelJqy','Zmzxw','BOKOF','playwright-chromium','debug','795361XjdMQp'];a38_0xb71f=function(){return _0x266546;};return a38_0xb71f();}(function(_0x419cd1,_0x1da95e){const _0x503547=a38_0xa6f4,_0x33632d=_0x419cd1();while(!![]){try{const _0x2a8d33=-parseInt(_0x503547(0x150))/0x1+parseInt(_0x503547(0xea))/0x2+parseInt(_0x503547(0xec))/0x3+-parseInt(_0x503547(0xf6))/0x4*(parseInt(_0x503547(0xdf))/0x5)+parseInt(_0x503547(0xed))/0x6+-parseInt(_0x503547(0xfb))/0x7+parseInt(_0x503547(0xe7))/0x8;if(_0x2a8d33===_0x1da95e)break;else _0x33632d['push'](_0x33632d['shift']());}catch(_0x278355){_0x33632d['push'](_0x33632d['shift']());}}}(a38_0xb71f,0x39286));function a38_0xa6f4(_0x227257,_0x8208a1){const _0xb71f9d=a38_0xb71f();return a38_0xa6f4=function(_0xa6f498,_0x168ae4){_0xa6f498=_0xa6f498-0xd5;let _0x591ccf=_0xb71f9d[_0xa6f498];return _0x591ccf;},a38_0xa6f4(_0x227257,_0x8208a1);}const util=require('util'),logger=require(a38_0x45181b(0x120))[a38_0x45181b(0x147)],{automationLogger}=require('../../helpers/logger'),{isAccessibilityAutomationSession}=require(a38_0x45181b(0x118)),{isUndefined,isBrowserstackInfra}=require(a38_0x45181b(0xfc)),scripts=require(a38_0x45181b(0x12b)),PerformanceTester=require('../../helpers/performance/performance-tester'),{A11Y_EVENTS:PerformanceA11yEvents}=require('../../helpers/performance/constants'),{AUTOMATION_LOG_COMMANDS}=require(a38_0x45181b(0xfd));exports[a38_0x45181b(0x151)]=async(_0x4a2ae1,_0x1797bd,_0x181eb5={})=>{const _0x5ddcaf=a38_0x45181b,_0x319017={};_0x319017[_0x5ddcaf(0x10b)]='bstackSdkArgs',_0x319017[_0x5ddcaf(0x129)]=function(_0x5a9c12,_0x58c2c2){return _0x5a9c12===_0x58c2c2;},_0x319017[_0x5ddcaf(0x138)]=_0x5ddcaf(0xe1);const _0x1a91af=_0x319017,_0x530785=await _0x4a2ae1[_0x5ddcaf(0xf3)](_0x5ddcaf(0xe4)+_0x1797bd[_0x5ddcaf(0x109)](/arguments/g,_0x1a91af[_0x5ddcaf(0x10b)])+'\x0a\x20\x20\x20\x20})\x0a\x20\x20})('+JSON[_0x5ddcaf(0x114)](_0x181eb5)+')');try{if(_0x1797bd&&_0x1a91af['kKRrf'](typeof _0x1797bd,_0x1a91af[_0x5ddcaf(0x138)])){const _0x5b9d39=AUTOMATION_LOG_COMMANDS[_0x5ddcaf(0xdd)](_0x2455c8=>_0x1797bd['includes'](_0x2455c8));if(_0x5b9d39){const _0x276307={};_0x276307[_0x5ddcaf(0x11e)]=_0x5b9d39,_0x276307[_0x5ddcaf(0x10f)]=[_0x181eb5];const _0x4cfc0d={};_0x4cfc0d[_0x5ddcaf(0x121)]=_0x530785;const _0x5ccb5b={};_0x5ccb5b['request']=_0x276307,_0x5ccb5b['response']=_0x4cfc0d,automationLogger[_0x5ddcaf(0x148)]('['+new Date()[_0x5ddcaf(0xe5)]()+_0x5ddcaf(0x12a)+JSON['stringify'](_0x5ccb5b));}}}catch(_0x204795){logger[_0x5ddcaf(0xfa)](_0x5ddcaf(0xe3)+_0x204795['message']);}return _0x530785;},exports['browserStackExecuteDriver']=async(_0x1502b6,_0x277797,_0x564f86={})=>{const _0x5dec72=a38_0x45181b,_0x2a31a2={};_0x2a31a2['TmChi']=function(_0x2fac9a,_0x225b75){return _0x2fac9a===_0x225b75;},_0x2a31a2[_0x5dec72(0x11b)]=_0x5dec72(0xff),_0x2a31a2[_0x5dec72(0xf4)]='Playwright',_0x2a31a2['nTpGF']=_0x5dec72(0x136);const _0x3fcfab=_0x2a31a2;if(_0x3fcfab[_0x5dec72(0x10d)](_0x1502b6[_0x5dec72(0x14e)][_0x5dec72(0x126)],_0x3fcfab[_0x5dec72(0x11b)]))return await _0x1502b6['executeAsyncScript'](_0x277797,_0x564f86);else{if(_0x3fcfab[_0x5dec72(0x10d)](_0x1502b6[_0x5dec72(0x14e)][_0x5dec72(0x126)],_0x3fcfab[_0x5dec72(0xf4)]))return await _0x1502b6[_0x5dec72(0x102)](_0x5dec72(0x14a)+_0x277797[_0x5dec72(0x109)](/arguments/g,_0x3fcfab[_0x5dec72(0x130)])+'\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})('+JSON['stringify'](_0x564f86)+')');}},exports[a38_0x45181b(0x153)]=async _0x573f6c=>{const _0x48ddf2=a38_0x45181b,_0x551c4d={};_0x551c4d['vGWPj']='accessibilityOptions.wcagVersion',_0x551c4d['qJgSM']=_0x48ddf2(0x115),_0x551c4d[_0x48ddf2(0x14d)]='accessibilityOptions.includeIssueType.bestPractice',_0x551c4d['Cgzoi']='accessibilityOptions.includeIssueType.needsReview',_0x551c4d['sVnYm']='accessibilityOptions.authToken',_0x551c4d[_0x48ddf2(0xf2)]=_0x48ddf2(0x103);const _0x1710d2=_0x551c4d;_0x573f6c[_0x48ddf2(0x142)]&&(_0x573f6c[_0x48ddf2(0x142)][_0x48ddf2(0x113)]&&(_0x573f6c[_0x1710d2[_0x48ddf2(0x133)]]=_0x573f6c[_0x48ddf2(0x142)][_0x48ddf2(0x113)]),_0x573f6c['accessibilityOptions'][_0x48ddf2(0x10a)]&&(_0x573f6c[_0x1710d2[_0x48ddf2(0xd7)]]=_0x573f6c['accessibilityOptions'][_0x48ddf2(0x10a)]),_0x573f6c[_0x48ddf2(0x142)][_0x48ddf2(0x100)]&&(_0x573f6c[_0x1710d2[_0x48ddf2(0x14d)]]=_0x573f6c[_0x48ddf2(0x142)][_0x48ddf2(0x100)][_0x48ddf2(0x128)],_0x573f6c[_0x1710d2[_0x48ddf2(0x101)]]=_0x573f6c['accessibilityOptions'][_0x48ddf2(0x100)][_0x48ddf2(0x10e)]));const _0xb60b27=JSON['parse'](process[_0x48ddf2(0xd8)][_0x48ddf2(0x14c)])[_0x48ddf2(0x11a)];_0x573f6c[_0x1710d2['sVnYm']]=process['env']['BS_A11Y_JWT'],_0x573f6c[_0x1710d2[_0x48ddf2(0xf2)]]=_0xb60b27,delete _0x573f6c['accessibilityOptions'];},exports[a38_0x45181b(0x10c)]=async _0x27518f=>{const _0x26ebe9=a38_0x45181b,_0x1ec055={};_0x1ec055[_0x26ebe9(0x141)]=_0x26ebe9(0x132),_0x1ec055['oIfRu']=_0x26ebe9(0xe6);const _0x510985=_0x1ec055;if(global[_0x26ebe9(0x14b)])try{const details={'url':await _0x27518f.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(_0x27518f,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x27518f,scripts.getResults);},{...details})();return res;}catch{return logger[_0x26ebe9(0x104)](_0x510985['bIodd']),[];}else return logger['warn'](_0x510985[_0x26ebe9(0x13c)]),[];},exports[a38_0x45181b(0x11f)]=async(_0x5b3870,_0x4f594f='',_0x1e15e4={})=>{const _0x17ccd5=a38_0x45181b;logger['debug']('Performing\x20scan\x20with\x20method:\x20'+_0x4f594f+_0x17ccd5(0x11c)+_0x5b3870);const _0x10f6c5={'url':await _0x5b3870['url'](),'testhub_btcer_uuid':global[_0x17ccd5(0x108)]?.[_0x17ccd5(0x13d)]?.['id']};if(global['accessibilityPlatform'])return await PerformanceTester[_0x17ccd5(0xda)](PerformanceA11yEvents[_0x17ccd5(0x14f)],async()=>{const _0x3a42b4=_0x17ccd5,_0x26e071={};_0x26e071['command']=_0x4f594f;const _0x8cd97e=_0x26e071;_0x1e15e4&&_0x1e15e4[_0x3a42b4(0xdb)]&&(_0x8cd97e[_0x3a42b4(0xdb)]=_0x1e15e4['includePartOfPageScope']);const _0x179d88=await exports[_0x3a42b4(0x151)](_0x5b3870,scripts[_0x3a42b4(0x11f)],_0x8cd97e);return _0x179d88;},{'command':_0x4f594f,..._0x10f6c5})();},exports['getAccessibilityResultsSummary']=async _0x58341a=>{const _0x34700c=a38_0x45181b,_0x568f15={};_0x568f15[_0x34700c(0xe0)]=_0x34700c(0x137),_0x568f15[_0x34700c(0xf7)]=_0x34700c(0x140);const _0x439787=_0x568f15;if(global[_0x34700c(0x14b)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x58341a,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x58341a,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x34700c(0xfa)](_0x439787['hMIvs']),{};}else return logger['warn'](_0x439787[_0x34700c(0xf7)]),{};},exports['platformValidation']=async _0x3b033b=>{const _0x383047=a38_0x45181b,_0x29cef9={'KqiJl':function(_0x35efc7,_0x2bc0ab){return _0x35efc7!==_0x2bc0ab;},'vvjpF':_0x383047(0x11d),'VXvuJ':'chrome','sWamA':_0x383047(0xf9),'oTRKk':'chromium','PPnDR':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','BOKOF':function(_0x81637d,_0x54de7f){return _0x81637d(_0x54de7f);},'dUHgH':function(_0x5d8d41){return _0x5d8d41();},'EHvtV':function(_0x174c9d,_0x2c9fb3){return _0x174c9d<_0x2c9fb3;},'WTkCW':_0x383047(0xf0),'PKxbe':function(_0x39671f,_0x1f6f5e){return _0x39671f===_0x1f6f5e;},'VGhiI':_0x383047(0xfe),'MQwgh':function(_0x2dd237,_0x58676c){return _0x2dd237>_0x58676c;},'jKYkM':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.'};try{if(!_0x29cef9['KqiJl'](_0x3b033b[_0x383047(0xd9)],''))return logger[_0x383047(0xd5)](_0x29cef9[_0x383047(0x107)]),![];const _0x41e51b=_0x3b033b[_0x383047(0x149)];if(![_0x29cef9[_0x383047(0x155)],_0x29cef9[_0x383047(0x154)],_0x29cef9[_0x383047(0x105)]]['includes'](_0x41e51b))return logger[_0x383047(0xd5)](_0x29cef9['PPnDR']),![];const _0xaab213=_0x29cef9[_0x383047(0xf8)](parseInt,_0x3b033b['browser_version']);!_0x29cef9[_0x383047(0xee)](isBrowserstackInfra)&&(!_0x29cef9[_0x383047(0x139)](_0xaab213,0x64)&&logger[_0x383047(0xd5)](_0x29cef9[_0x383047(0xde)]));if(!(_0x29cef9[_0x383047(0x124)](_0xaab213,_0x29cef9[_0x383047(0x12d)])||_0x29cef9[_0x383047(0xe8)](_0xaab213,0x5e)))return logger[_0x383047(0xd5)](_0x29cef9[_0x383047(0x117)]),![];}catch(_0xb9e55c){logger['debug']('Platform\x20validation\x20for\x20a11y\x20failed\x20with:\x20'+util[_0x383047(0x134)](_0xb9e55c));}return!![];},exports[a38_0x45181b(0x12e)]=(_0x37152d,_0x2271c5,_0x455ee4)=>{const _0x4bbbf6=a38_0x45181b,_0x29bd56={'AFNgR':_0x4bbbf6(0xe2),'ymVpd':function(_0x29e5d0){return _0x29e5d0();},'yaNod':'browserstack.accessibility','SFYmW':function(_0x10a24f,_0x402db3){return _0x10a24f===_0x402db3;},'VdDKF':_0x4bbbf6(0x106),'ObrYJ':_0x4bbbf6(0xf9),'JIDWI':function(_0x6fd1c6,_0x20bbe4){return _0x6fd1c6===_0x20bbe4;},'kdhfR':_0x4bbbf6(0x116),'AkVgL':function(_0x1a948e,_0x13d664){return _0x1a948e>_0x13d664;},'kelkC':_0x4bbbf6(0xf0),'tuJol':function(_0x159ce6,_0x5d665f){return _0x159ce6===_0x5d665f;},'DTGCc':'latest','ebNxn':_0x4bbbf6(0x125),'kiEPB':function(_0x5c4429,_0x348426){return _0x5c4429(_0x348426);},'vCdGP':_0x4bbbf6(0x11d),'fyJfx':function(_0xc81fbe,_0x8f1fd2){return _0xc81fbe+_0x8f1fd2;},'qVGgT':function(_0x1e9abb,_0x3d2771){return _0x1e9abb(_0x3d2771);}};try{if(_0x29bd56[_0x4bbbf6(0x13b)](isAccessibilityAutomationSession)){global[_0x4bbbf6(0x14b)]=!![];!_0x37152d[_0x29bd56[_0x4bbbf6(0xe9)]]&&(global[_0x4bbbf6(0x14b)]=![]);!(_0x29bd56['SFYmW'](_0x37152d[_0x4bbbf6(0x13a)],_0x29bd56[_0x4bbbf6(0xef)])||_0x29bd56[_0x4bbbf6(0xd6)](_0x37152d['browserName'],_0x29bd56[_0x4bbbf6(0x119)])||_0x29bd56[_0x4bbbf6(0xd6)](_0x37152d['browser'],_0x29bd56[_0x4bbbf6(0xef)])||_0x29bd56[_0x4bbbf6(0xf5)](_0x37152d[_0x4bbbf6(0x149)],_0x29bd56[_0x4bbbf6(0x119)]))&&(logger[_0x4bbbf6(0xd5)](_0x29bd56[_0x4bbbf6(0x122)]),global[_0x4bbbf6(0x14b)]=![]);!_0x29bd56[_0x4bbbf6(0x13b)](isBrowserstackInfra)&&(!_0x29bd56[_0x4bbbf6(0xf1)](_0x37152d['browser_version'],0x64)&&logger['warn'](_0x29bd56[_0x4bbbf6(0xdc)]));!(_0x29bd56[_0x4bbbf6(0x131)](_0x37152d[_0x4bbbf6(0x145)],_0x29bd56['DTGCc'])||_0x29bd56['AkVgL'](_0x37152d[_0x4bbbf6(0x145)],0x5e))&&(logger[_0x4bbbf6(0xd5)](_0x29bd56[_0x4bbbf6(0x135)]),global[_0x4bbbf6(0x14b)]=![]);!_0x29bd56[_0x4bbbf6(0x144)](isUndefined,_0x37152d[_0x4bbbf6(0xd9)])&&(logger[_0x4bbbf6(0xd5)](_0x29bd56[_0x4bbbf6(0x123)]),global[_0x4bbbf6(0x14b)]=![]);if(!global[_0x4bbbf6(0x14b)]){_0x37152d[_0x29bd56[_0x4bbbf6(0xe9)]]=![],Object[_0x4bbbf6(0x127)](_0x37152d)[_0x4bbbf6(0x12f)](_0xf9f80b=>{const _0x2e5d97=_0x4bbbf6;_0xf9f80b[_0x2e5d97(0x143)](_0x29bd56[_0x2e5d97(0x13e)])&&delete _0x37152d[_0xf9f80b];});const _0x246392=_0x29bd56[_0x4bbbf6(0x12c)](_0x2271c5,_0x29bd56[_0x4bbbf6(0x13f)](encodeURIComponent,JSON[_0x4bbbf6(0x114)](_0x37152d)));_0x455ee4&&(_0x455ee4[_0x4bbbf6(0x13d)][_0x4bbbf6(0x111)][_0x4bbbf6(0x152)][_0x4bbbf6(0x112)][_0x4bbbf6(0x110)][_0x4bbbf6(0xeb)]=_0x246392,_0x455ee4['workerInfo'][_0x4bbbf6(0x152)][_0x4bbbf6(0x112)][_0x4bbbf6(0x110)][_0x4bbbf6(0xeb)]=_0x246392);}}else global[_0x4bbbf6(0x14b)]=![];}catch(_0x1d1f5b){logger[_0x4bbbf6(0xfa)](_0x4bbbf6(0x146)+util[_0x4bbbf6(0x134)](_0x1d1f5b));}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const a39_0x2173e9=a39_0x5547;(function(_0x31e878,_0x187b53){const _0xd65071=a39_0x5547,_0x339e4d=_0x31e878();while(!![]){try{const _0x2d68e4=parseInt(_0xd65071(0x22e))/0x1+parseInt(_0xd65071(0x27b))/0x2+parseInt(_0xd65071(0x26b))/0x3*(parseInt(_0xd65071(0x271))/0x4)+-parseInt(_0xd65071(0x277))/0x5*(parseInt(_0xd65071(0x27e))/0x6)+parseInt(_0xd65071(0x280))/0x7*(-parseInt(_0xd65071(0x27c))/0x8)+-parseInt(_0xd65071(0x2a2))/0x9*(parseInt(_0xd65071(0x291))/0xa)+parseInt(_0xd65071(0x247))/0xb*(parseInt(_0xd65071(0x1f8))/0xc);if(_0x2d68e4===_0x187b53)break;else _0x339e4d['push'](_0x339e4d['shift']());}catch(_0xf8f49f){_0x339e4d['push'](_0x339e4d['shift']());}}}(a39_0x5d70,0x5ce7f));function a39_0x5547(_0x29420c,_0x520519){const _0x5d70fe=a39_0x5d70();return a39_0x5547=function(_0x5547b0,_0x226d53){_0x5547b0=_0x5547b0-0x1ea;let _0x3c92b7=_0x5d70fe[_0x5547b0];return _0x3c92b7;},a39_0x5547(_0x29420c,_0x520519);}function a39_0x5d70(){const _0x48d7aa=['tnbYS','vhWwz','--disable-test-observability','resolvedConfigFile','qqFPV','filter','mAbRj','../../helpers/performance/constants','TyzaO','tKsxm','TLoSd','writeFileSync','isFalse','BROWSERSTACK_PW_CONFIG_DIR','pw_result.json','getNoProxy','UUAzR','bYAAc','767265qSIclD','sQppp','slice','BROWSERSTACK_SETUP_CONFIG_PATH','finalExecution','USER_CONFIG_DETAILS_PATH','8tkGQxA','parse','BROWSERSTACK_TEST_ACCESSIBILITY_YML','stop','BROWSERSTACK_RERUN_TESTS','PLAYWRIGHT','9080bvXnbi','testObservability','pmHtD','BROWSERSTACK_AUTOMATION','1506394ntDiqV','24KxTXDc','../../helpers/test-observability/constants','1956hasBeC','VIEKR','1136051EXEkYU','readdirSync','testContextOptions','setFrameworkDetail','reportDotBrowserStackFolderNotAccessibleIssue','JpGvD','split','dirname','SDK_CLEANUP','ZqHtK','rzFOU','getConfig','cBsXr','--config','reportConflictingEnvVarIssue','jLYYI','NySdp','1580480SAsipc','inherit','kZbeV','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}catch{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20This\x20is\x20a\x20failsafe\x20if\x20global-agent\x20present\x20inside\x20sdk\x20node_modules\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap\x20=\x20require(\x22./node_modules/browserstack-node-sdk/node_modules/global-agent\x22).bootstrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bootstrap();','../../helpers/performance/performance-tester','accessibility','get','launchBuild','BrowserStack\x20config\x20file\x20not\x20found.','map','BmQms','../v2/browserstackCLI','length','CWNet','\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','./reporter/pwUtils','win32','18oiCJDy','platform','SDK_SETUP','Playwright\x20process\x20exited\x20with\x20code\x20','isUndefined','xKBKd','serializeToYamlString','npx','qZcmg','apply','IrMkk','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','AExjQ','Updated\x20config\x20file\x20name\x20to\x20-\x20','config','constants','../../helpers/logger','concat','trace_','accessSync','isRunning','BROWSERSTACK_RERUN','AplAz','reportFinalDetectionState','HmLBz','2333976TIUODS','automation','../v2/TestInfo','YbEVm','isYarnPnP','requireConfigLoaderYarnPnP','isTrue','--grep','getInstance','browserstackAutomation','playwright','shutdown','isTypescriptProject','SDtjG','false','MODULE','requirePWModule','Error\x20in\x20closing\x20playwright','zOxTK','ETLqd','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','yarn','cliConfig','rmUtx','test','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','uegEz','swbLd','startsWith','ngZap','info','homedir','end','RXzjr','XwwYH','W_OK','stringify','APcEj','setBrowserstackConfig','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','KQVNA','bootstrap','INTERNALLY_USED_ENV_VARS','rSnPN','../v2/cliUtils','HFaeU','env','error','FgxmW','getPackageType','./reporter/test-details','eYKkz','SDK_PRE_INITIALIZE','indexOf','316329Cvtjzk','BROWSERSTACK_TEST_OBSERVABILITY','measureWrapper','getConfigPath','R_OK','No\x20Proxy\x20:\x20','push','debug','OyfoS','Error\x20in\x20getting\x20funnel\x20data\x20results','unlinkSync','LShzu','path','uWDKC','Deleting\x20','wjLxA','configPath','playwright-browserstack-sdk.config.cjs','readFileSync','winstonLogger','cwd','getProxyUrl','.browserstack','../../helpers/utilities','existsSync','11AfSVXp','../../helpers/BrowserStackSetup','../utils/constants','logLevel','--config=','initialize','../utils/clientTroubleshootingService','gvDlC','EVENTS','assign','util','isCLIEnabled','join','Error\x20in\x20deleting\x20playwright\x20results','exports','playwright-browserstack-sdk.config.js','clearTempPWConfig','start'];a39_0x5d70=function(){return _0x48d7aa;};return a39_0x5d70();}const fs=require('fs'),path=require('path'),{spawn}=require('child_process'),{format}=require(a39_0x2173e9(0x251)),logger=require(a39_0x2173e9(0x1ef))[a39_0x2173e9(0x241)],{default:BrowserStackSetup}=require(a39_0x2173e9(0x248)),helper=require('../../helpers/helper'),utilities=require(a39_0x2173e9(0x245)),constants=require(a39_0x2173e9(0x249)),{FRAMEWORKS}=require(a39_0x2173e9(0x27d)),{getConfigLoaderPath}=require(a39_0x2173e9(0x2a0)),{checkAccessibilityPlatformConfig}=require('../../helpers/accessibility-automation/helper'),{setAccessibilityCapabilities}=require('./accessibility-helper'),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x2173e9(0x22a)),TestHubHandler=require('../../helpers/testhub/testhubHandler'),PerformanceTester=require(a39_0x2173e9(0x295)),BrowserstackCLI=require(a39_0x2173e9(0x29c)),PerformanceEvents=require(a39_0x2173e9(0x260))[a39_0x2173e9(0x24f)],CLIUtils=require(a39_0x2173e9(0x224)),TestInfo=require(a39_0x2173e9(0x1fa)),ClientTroubleShootingService=require(a39_0x2173e9(0x24d)),getUserPlaywrightConfig=async(_0x3dcf8f,_0x28dcdb)=>{const _0x1ed570=a39_0x2173e9,_0x102d2f={'UUAzR':function(_0x5aa5d2){return _0x5aa5d2();},'cBsXr':function(_0x3fa747,_0x6bb7cd){return _0x3fa747(_0x6bb7cd);},'rmUtx':_0x1ed570(0x25c),'irfMp':_0x1ed570(0x24b)},_0x204204=!helper['isUndefined'](_0x3dcf8f[_0x1ed570(0x1ed)]),_0x5b2331=_0x204204?path['resolve'](process[_0x1ed570(0x242)](),_0x3dcf8f[_0x1ed570(0x1ed)]):process[_0x1ed570(0x242)](),{resolveConfigFile:_0x5f7610,resolveConfigLocation:_0x3e3edc}=helper[_0x1ed570(0x1fc)]()?helper[_0x1ed570(0x1fd)](..._0x102d2f[_0x1ed570(0x269)](getConfigLoaderPath)):helper[_0x1ed570(0x208)][_0x1ed570(0x2ab)](null,_0x102d2f[_0x1ed570(0x269)](getConfigLoaderPath)),_0x3668df=_0x5f7610?_0x102d2f[_0x1ed570(0x28c)](_0x5f7610,_0x5b2331):helper['nestedKeyValue'](_0x102d2f[_0x1ed570(0x28c)](_0x3e3edc,_0x5b2331),[_0x102d2f[_0x1ed570(0x20f)]]),_0x2774c1={};if(_0x204204){const _0x47341c=_0x28dcdb['findIndex'](_0x5655b9=>_0x5655b9==='--config'||_0x5655b9==='-c'||_0x5655b9[_0x1ed570(0x214)](_0x1ed570(0x24b)));_0x28dcdb['splice'](_0x47341c,_0x28dcdb[_0x47341c][_0x1ed570(0x214)](_0x102d2f['irfMp'])?0x1:0x2);}const _0x237b10={};return _0x237b10[_0x1ed570(0x23a)]=_0x3668df,_0x237b10[_0x1ed570(0x1ed)]=_0x2774c1,_0x237b10;},handleO11yRerun=_0x3f9232=>{const _0x42a2af=a39_0x2173e9,_0x1b903d={};_0x1b903d[_0x42a2af(0x29b)]=_0x42a2af(0x1ff);const _0x171400=_0x1b903d,_0x2d7edd=helper[_0x42a2af(0x1fe)](process[_0x42a2af(0x226)][_0x42a2af(0x1f4)]);if(_0x2d7edd){const _0x38450b=process[_0x42a2af(0x226)][_0x42a2af(0x275)],_0x185e43=[];if(helper['validateRerunTestList'](_0x38450b)&&!helper[_0x42a2af(0x2a6)](_0x38450b)){_0x38450b[_0x42a2af(0x286)](',')[_0x42a2af(0x29a)](_0x345d4f=>{const _0x23d6a0=_0x42a2af;_0x185e43[_0x23d6a0(0x234)]('('+_0x345d4f['trim']()+')');});const _0x4b2226='^'+_0x185e43['join']('|')+'$';_0x3f9232[_0x42a2af(0x234)](_0x171400[_0x42a2af(0x29b)],_0x4b2226);}}},spawnOriginalProcess=_0x18d140=>{const _0x7aba1d=a39_0x2173e9,_0x58f401={'rSnPN':function(_0x2513b4,_0x561d19,_0x20a69a,_0xd1e242){return _0x2513b4(_0x561d19,_0x20a69a,_0xd1e242);},'tnbYS':_0x7aba1d(0x20d),'UFGEl':_0x7aba1d(0x2a9),'OyfoS':_0x7aba1d(0x202),'HmLBz':function(_0x263239,_0x28f795){return _0x263239===_0x28f795;},'kZbeV':_0x7aba1d(0x2a1),'OZQFG':_0x7aba1d(0x292)};_0x58f401[_0x7aba1d(0x223)](spawn,helper['isYarnPnP']()?_0x58f401[_0x7aba1d(0x259)]:_0x58f401['UFGEl'],[_0x58f401[_0x7aba1d(0x236)],..._0x18d140['slice'](0x1)],{'shell':_0x58f401[_0x7aba1d(0x1f7)](process[_0x7aba1d(0x2a3)],_0x58f401[_0x7aba1d(0x293)]),'stdio':_0x58f401['OZQFG'],'cwd':process['cwd']()});},isTestCommand=(_0x5dfc61,_0x1d5fab)=>{const _0x39fa1c=a39_0x2173e9,_0x5e60c4={};_0x5e60c4[_0x39fa1c(0x228)]=function(_0x496a56,_0x49e37e){return _0x496a56>_0x49e37e;},_0x5e60c4[_0x39fa1c(0x220)]=function(_0x512e3d,_0x3ee7da){return _0x512e3d===_0x3ee7da;},_0x5e60c4['zOxTK']=_0x39fa1c(0x210);const _0x2ff55b=_0x5e60c4;if(_0x2ff55b[_0x39fa1c(0x228)](_0x1d5fab[_0x39fa1c(0x29d)],0x1)&&_0x2ff55b['KQVNA'](_0x1d5fab[0x1],_0x2ff55b[_0x39fa1c(0x20a)]))return!![];return![];};async function run(_0x4bf646,_0x42ff08,_0x5dd6cb){const _0x2dbcb2=a39_0x2173e9,_0x4a76c5={'pmHtD':_0x2dbcb2(0x244),'xKBKd':_0x2dbcb2(0x267),'NySdp':function(_0x4b84db,_0x35eded){return _0x4b84db+_0x35eded;},'jLYYI':_0x2dbcb2(0x237),'swbLd':function(_0x3e5ef9){return _0x3e5ef9();},'wZByG':function(_0x36e496){return _0x36e496();},'XwwYH':_0x2dbcb2(0x209),'JMqJb':function(_0x25b1df,_0x236b65){return _0x25b1df(_0x236b65);},'ngZap':_0x2dbcb2(0x299),'APcEj':function(_0x56f6a5,_0x21f978){return _0x56f6a5<_0x21f978;},'JpGvD':function(_0x15f4cc,_0x19701b){return _0x15f4cc===_0x19701b;},'TyzaO':_0x2dbcb2(0x206),'tKsxm':'--disable-test-observability','eYKkz':function(_0x300db6,_0x2b668f){return _0x300db6>=_0x2b668f;},'uegEz':_0x2dbcb2(0x1f9),'ASRvv':function(_0x1fb136,_0x3408f2){return _0x1fb136!=_0x3408f2;},'uWDKC':function(_0x4d228a,_0x1817c2,_0x54508b){return _0x4d228a(_0x1817c2,_0x54508b);},'mAbRj':function(_0x47e7de,_0x2e0635){return _0x47e7de(_0x2e0635);},'RXzjr':'true','LShzu':'browserstackSetupConfig.json','CWNet':function(_0x143365,_0xadf03a){return _0x143365===_0xadf03a;},'LKSHx':_0x2dbcb2(0x23f),'YbEVm':_0x2dbcb2(0x256),'vWPvs':function(_0x200ba6,_0x57fd2a){return _0x200ba6-_0x57fd2a;},'qqFPV':_0x2dbcb2(0x1ec),'vhWwz':function(_0x310879,_0x13f3cd){return _0x310879>_0x13f3cd;},'EGMVK':function(_0x2074ce,_0x19ceab,_0x4e5ebf,_0x488d14){return _0x2074ce(_0x19ceab,_0x4e5ebf,_0x488d14);},'VIEKR':'yarn','rzFOU':_0x2dbcb2(0x2a9),'sQppp':_0x2dbcb2(0x202),'gvDlC':_0x2dbcb2(0x210),'wjLxA':_0x2dbcb2(0x28d),'AExjQ':function(_0x37f6c8,_0x13497d){return _0x37f6c8===_0x13497d;},'qZcmg':_0x2dbcb2(0x2a1),'ZqHtK':_0x2dbcb2(0x292),'QTWVt':'close','SDtjG':function(_0x590b95,_0x2a944c){return _0x590b95|_0x2a944c;},'bYAAc':function(_0x53cfa2,_0x252a3d){return _0x53cfa2+_0x252a3d;},'ETLqd':'Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','TLoSd':_0x2dbcb2(0x254),'HFaeU':function(_0x2eaba0,_0xc62929){return _0x2eaba0(_0xc62929);}};try{const _0x414d06=path[_0x2dbcb2(0x253)](helper[_0x2dbcb2(0x217)](),_0x4a76c5['pmHtD']);try{fs[_0x2dbcb2(0x1f2)](_0x414d06,_0x4a76c5[_0x2dbcb2(0x205)](fs[_0x2dbcb2(0x1ee)][_0x2dbcb2(0x232)],fs[_0x2dbcb2(0x1ee)][_0x2dbcb2(0x21b)]));}catch(_0x54c6b7){ClientTroubleShootingService[_0x2dbcb2(0x284)]();}}catch(_0x2ff3e0){logger['debug'](_0x4a76c5[_0x2dbcb2(0x26a)](_0x4a76c5[_0x2dbcb2(0x20b)],_0x2ff3e0));}try{const _0x29de1f=path[_0x2dbcb2(0x253)](helper[_0x2dbcb2(0x217)](),_0x4a76c5[_0x2dbcb2(0x279)],_0x4a76c5['xKBKd']);fs[_0x2dbcb2(0x246)](_0x29de1f)&&fs[_0x2dbcb2(0x238)](_0x29de1f);}catch(_0x51aa17){logger['debug'](_0x4a76c5['NySdp'](_0x4a76c5[_0x2dbcb2(0x263)],_0x51aa17));}if(!_0x4a76c5[_0x2dbcb2(0x23b)](isTestCommand,_0x4bf646,_0x42ff08)){_0x4a76c5[_0x2dbcb2(0x225)](spawnOriginalProcess,_0x42ff08);return;}await PerformanceTester[_0x2dbcb2(0x230)](PerformanceEvents[_0x2dbcb2(0x22c)],async()=>{const _0x183f5b=_0x2dbcb2,_0x6cd1ba={'AplAz':function(_0x28868d,_0x54ac69){return _0x4a76c5['JMqJb'](_0x28868d,_0x54ac69);}};if(!_0x5dd6cb[_0x183f5b(0x1ed)]){logger[_0x183f5b(0x227)](_0x4a76c5[_0x183f5b(0x215)]);return;}await _0x5dd6cb[_0x183f5b(0x24c)](_0x4bf646),CLIUtils[_0x183f5b(0x283)](FRAMEWORKS['PLAYWRIGHT'],FRAMEWORKS[_0x183f5b(0x276)]),BrowserstackCLI[_0x183f5b(0x200)]()[_0x183f5b(0x21e)](_0x5dd6cb['config'],_0x5dd6cb[_0x183f5b(0x23e)],_0x5dd6cb[_0x183f5b(0x20e)]),await BrowserstackCLI['getInstance']()[_0x183f5b(0x221)]();for(var _0x12d962=0x0;_0x4a76c5[_0x183f5b(0x21d)](_0x12d962,constants[_0x183f5b(0x222)][_0x183f5b(0x29d)]);_0x12d962++){var _0x8dddac=constants[_0x183f5b(0x222)][_0x12d962];process[_0x183f5b(0x226)][_0x8dddac]&&await ClientTroubleShootingService[_0x183f5b(0x28e)](_0x8dddac);}const _0x8b5c1d=BrowserstackCLI['getInstance']()[_0x183f5b(0x28b)]();!helper[_0x183f5b(0x265)](_0x8b5c1d[_0x183f5b(0x201)])&&(process[_0x183f5b(0x226)][_0x183f5b(0x27a)]=!![]);_0x4a76c5['JpGvD'](_0x8b5c1d[_0x183f5b(0x201)],![])&&(process[_0x183f5b(0x226)][_0x183f5b(0x27a)]=_0x4a76c5[_0x183f5b(0x261)],_0x42ff08=_0x42ff08[_0x183f5b(0x25e)](_0x43f621=>_0x43f621!=='--disable-browserstack-automation'));const _0x4ebc35=_0x42ff08[_0x183f5b(0x22d)](_0x4a76c5[_0x183f5b(0x262)]);(_0x4a76c5[_0x183f5b(0x22b)](_0x4ebc35,0x0)||_0x4a76c5[_0x183f5b(0x285)](_0x8b5c1d[_0x183f5b(0x278)],![]))&&(process[_0x183f5b(0x226)][_0x183f5b(0x22f)]=_0x4a76c5['TyzaO'],_0x42ff08=_0x42ff08[_0x183f5b(0x25e)](_0x457959=>_0x457959!==_0x183f5b(0x25b)));!helper[_0x183f5b(0x2a6)](_0x5dd6cb[_0x183f5b(0x20e)])&&_0x5dd6cb[_0x183f5b(0x20e)]['has'](_0x4a76c5[_0x183f5b(0x212)])&&(process[_0x183f5b(0x226)][_0x183f5b(0x27a)]=_0x5dd6cb[_0x183f5b(0x20e)][_0x183f5b(0x297)](_0x4a76c5[_0x183f5b(0x212)])||!![]);_0x4a76c5['ASRvv'](_0x5dd6cb[_0x183f5b(0x1ed)][_0x183f5b(0x278)],null)&&!helper[_0x183f5b(0x1fe)](process[_0x183f5b(0x226)][_0x183f5b(0x22f)])&&(process[_0x183f5b(0x226)][_0x183f5b(0x22f)]=process['env'][_0x183f5b(0x22f)]||_0x5dd6cb['config'][_0x183f5b(0x278)]);const _0x41f5e4=!helper['isFalse'](process[_0x183f5b(0x226)][_0x183f5b(0x22f)]);_0x5dd6cb[_0x183f5b(0x1ed)]['accessibilityOptions']&&(process[_0x183f5b(0x226)][_0x183f5b(0x211)]=JSON[_0x183f5b(0x21c)](_0x5dd6cb['config']['accessibilityOptions']));let _0x2ec7c8=![];_0x5dd6cb[_0x183f5b(0x1ed)][_0x183f5b(0x296)]&&(_0x2ec7c8=!![],process[_0x183f5b(0x226)][_0x183f5b(0x273)]=_0x5dd6cb[_0x183f5b(0x1ed)][_0x183f5b(0x296)]);const _0x5a9e78=_0x42ff08[_0x183f5b(0x1f0)](),_0x7cb675=await _0x4a76c5['uWDKC'](getUserPlaywrightConfig,_0x4bf646,_0x42ff08);if(helper[_0x183f5b(0x2a6)](_0x7cb675)){_0x4a76c5['mAbRj'](spawnOriginalProcess,_0x5a9e78);return;}const _0x4ff3f4=_0x7cb675['path']?path[_0x183f5b(0x287)](_0x7cb675[_0x183f5b(0x23a)]):process['cwd']();process[_0x183f5b(0x226)][_0x183f5b(0x266)]=_0x4ff3f4,await PerformanceTester[_0x183f5b(0x230)](PerformanceEvents['SDK_POST_INITIALIZE'],async()=>{const _0x347bcf=_0x183f5b;!BrowserstackCLI[_0x347bcf(0x200)]()[_0x347bcf(0x1f3)]()&&await TestHubHandler[_0x347bcf(0x298)](FRAMEWORKS[_0x347bcf(0x276)],_0x5dd6cb),_0x41f5e4&&_0x6cd1ba[_0x347bcf(0x1f5)](handleO11yRerun,_0x42ff08);})();if(!BrowserstackCLI['getInstance']()[_0x183f5b(0x1f3)]()){let _0x54b674=_0x4a76c5[_0x183f5b(0x285)](process[_0x183f5b(0x226)][_0x183f5b(0x273)],_0x4a76c5[_0x183f5b(0x219)]);_0x54b674=_0x54b674||_0x4a76c5[_0x183f5b(0x25f)](checkAccessibilityPlatformConfig,_0x5dd6cb[_0x183f5b(0x1ed)]),process[_0x183f5b(0x226)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=_0x54b674,_0x54b674&&_0x4a76c5[_0x183f5b(0x25f)](setAccessibilityCapabilities,_0x5dd6cb[_0x183f5b(0x1ed)]);}const _0x30bbcd=path['join'](_0x7cb675['path']?path[_0x183f5b(0x287)](_0x7cb675['path']):process[_0x183f5b(0x242)](),_0x4a76c5[_0x183f5b(0x239)]);fs[_0x183f5b(0x264)](_0x30bbcd,helper[_0x183f5b(0x2a8)](_0x5dd6cb[_0x183f5b(0x1ed)])),process['env'][_0x183f5b(0x26e)]=_0x30bbcd,helper[_0x183f5b(0x257)]();let _0xd4e398='';_0x4a76c5[_0x183f5b(0x29e)](helper[_0x183f5b(0x229)](),constants['PACKAGE_TYPE'][_0x183f5b(0x207)])?_0xd4e398=_0x4a76c5['LKSHx']:_0xd4e398=_0x4a76c5[_0x183f5b(0x1fb)];let _0x251f2f='';if(helper[_0x183f5b(0x204)](_0x7cb675[_0x183f5b(0x23a)])){_0x251f2f=_0x183f5b(0x1ea);const _0x4e1359=_0xd4e398[_0x183f5b(0x286)]('.');_0x4e1359[_0x4a76c5['vWPvs'](_0x4e1359[_0x183f5b(0x29d)],0x1)]='ts',_0xd4e398=_0x4e1359[_0x183f5b(0x253)]('.'),logger[_0x183f5b(0x235)](_0x4a76c5[_0x183f5b(0x290)](_0x4a76c5[_0x183f5b(0x25d)],_0xd4e398));}else _0x251f2f=_0x183f5b(0x21f);const _0x252e59=path[_0x183f5b(0x253)](_0x7cb675[_0x183f5b(0x23a)]?path[_0x183f5b(0x287)](_0x7cb675[_0x183f5b(0x23a)]):process[_0x183f5b(0x242)](),_0xd4e398);let _0x5ed724=_0x7cb675[_0x183f5b(0x23a)]?_0x7cb675[_0x183f5b(0x23a)]:'';_0x5ed724=_0x4a76c5[_0x183f5b(0x25a)](_0x5ed724[_0x183f5b(0x29d)],0x0)?path['resolve'](_0x5ed724):'',process[_0x183f5b(0x226)][_0x183f5b(0x270)]=_0x5ed724;const _0x151c95=helper[_0x183f5b(0x243)](_0x5dd6cb[_0x183f5b(0x1ed)]),_0x18cead=helper[_0x183f5b(0x268)](_0x5dd6cb[_0x183f5b(0x1ed)]);logger['debug']('Proxy\x20url\x20:\x20'+_0x151c95),logger['debug'](_0x183f5b(0x233)+_0x18cead);_0x151c95&&(_0x251f2f=_0x4a76c5[_0x183f5b(0x290)](_0x183f5b(0x20c)+_0x151c95+_0x183f5b(0x29f)+_0x18cead+_0x183f5b(0x294),_0x251f2f));helper['filterBrowserstackArgs']({},_0x42ff08),fs[_0x183f5b(0x264)](_0x252e59,_0x251f2f),PerformanceTester[_0x183f5b(0x218)](PerformanceEvents[_0x183f5b(0x2a4)]);const _0x2721ef=_0x4a76c5['EGMVK'](spawn,helper[_0x183f5b(0x1fc)]()?_0x4a76c5[_0x183f5b(0x27f)]:_0x4a76c5[_0x183f5b(0x28a)],[_0x4a76c5[_0x183f5b(0x26c)],_0x4a76c5[_0x183f5b(0x24e)],_0x4a76c5[_0x183f5b(0x23d)],_0x4a76c5[_0x183f5b(0x1eb)](process[_0x183f5b(0x2a3)],_0x4a76c5[_0x183f5b(0x2aa)])?'\x22'+_0x252e59+'\x22':_0x252e59,..._0x42ff08[_0x183f5b(0x26d)](0x2)],{'shell':_0x4a76c5[_0x183f5b(0x1eb)](process[_0x183f5b(0x2a3)],_0x4a76c5[_0x183f5b(0x2aa)]),'stdio':_0x4a76c5[_0x183f5b(0x289)],'cwd':process[_0x183f5b(0x242)](),'env':Object[_0x183f5b(0x250)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x183f5b(0x231)](_0x4bf646),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x5dd6cb[_0x183f5b(0x1ed)]['testContextOptions']['skipSessionStatus'],'BROWSERSTACK_SKIP_SESSION_NAME':_0x5dd6cb[_0x183f5b(0x1ed)][_0x183f5b(0x282)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x5dd6cb[_0x183f5b(0x1ed)][_0x183f5b(0x24a)]})}),_0x277b1d=()=>{const _0x4896d2=_0x183f5b;try{const _0x21d9e1=path[_0x4896d2(0x253)](helper[_0x4896d2(0x217)](),_0x4a76c5[_0x4896d2(0x279)],_0x4a76c5[_0x4896d2(0x2a7)]);if(fs[_0x4896d2(0x246)](_0x21d9e1)){let _0x5ac6e5=fs[_0x4896d2(0x240)](_0x21d9e1);_0x5ac6e5=JSON[_0x4896d2(0x272)](_0x5ac6e5),_0x5dd6cb['errorMessage']=_0x5ac6e5,fs[_0x4896d2(0x238)](_0x21d9e1);}}catch(_0x27eff6){logger[_0x4896d2(0x235)](_0x4a76c5[_0x4896d2(0x290)](_0x4a76c5[_0x4896d2(0x28f)],_0x27eff6));}};_0x2721ef['on'](_0x4a76c5['QTWVt'],async _0x4db0c1=>{const _0x3036e9=_0x183f5b,_0x3c592a={};_0x3c592a[_0x3036e9(0x2ac)]=_0x4a76c5[_0x3036e9(0x279)];const _0x2d996d=_0x3c592a;try{PerformanceTester[_0x3036e9(0x258)](PerformanceEvents[_0x3036e9(0x288)]),_0x4a76c5[_0x3036e9(0x213)](_0x277b1d),await TestHubHandler[_0x3036e9(0x274)](),await ClientTroubleShootingService[_0x3036e9(0x1f6)]();const _0x33230e=BrowserstackCLI[_0x3036e9(0x252)]();await BrowserstackCLI['getInstance']()[_0x3036e9(0x274)](),TestDetails[_0x3036e9(0x203)](),_0x4a76c5['wZByG'](printBuildLink),await utilities[_0x3036e9(0x26f)](_0x5dd6cb,_0x33230e),process['exitCode']=_0x4db0c1,logger[_0x3036e9(0x235)](_0x3036e9(0x2a5)+_0x4db0c1),logger[_0x3036e9(0x216)]('Deleting\x20'+_0x252e59),fs[_0x3036e9(0x238)](_0x252e59);fs[_0x3036e9(0x246)](_0x30bbcd)&&(logger[_0x3036e9(0x235)](_0x3036e9(0x23c)+_0x30bbcd),fs['unlinkSync'](_0x30bbcd));const _0x307297=fs[_0x3036e9(0x281)](path[_0x3036e9(0x253)](helper[_0x3036e9(0x217)](),_0x4a76c5['pmHtD']))['filter'](_0x24861e=>_0x24861e[_0x3036e9(0x214)](_0x3036e9(0x1f1)));_0x307297['forEach'](_0x4c04c0=>{const _0x27e905=_0x3036e9;fs[_0x27e905(0x238)](path[_0x27e905(0x253)](helper[_0x27e905(0x217)](),_0x2d996d[_0x27e905(0x2ac)],_0x4c04c0));});}catch(_0x17c641){logger[_0x3036e9(0x235)](_0x4a76c5[_0x3036e9(0x290)](_0x4a76c5[_0x3036e9(0x21a)],_0x17c641));}});})();}module[a39_0x2173e9(0x255)]=run;
|
|
2
|
+
'use strict';function a39_0x269d(_0x1ffa5a,_0x5e02bd){const _0x1d4faa=a39_0x1d4f();return a39_0x269d=function(_0x269d39,_0x5b3838){_0x269d39=_0x269d39-0x145;let _0x3a17a8=_0x1d4faa[_0x269d39];return _0x3a17a8;},a39_0x269d(_0x1ffa5a,_0x5e02bd);}const a39_0x163db1=a39_0x269d;(function(_0x479254,_0x133374){const _0x5dbeb0=a39_0x269d,_0x4549eb=_0x479254();while(!![]){try{const _0x548ee5=-parseInt(_0x5dbeb0(0x164))/0x1+parseInt(_0x5dbeb0(0x1f7))/0x2+-parseInt(_0x5dbeb0(0x18e))/0x3*(-parseInt(_0x5dbeb0(0x1ae))/0x4)+parseInt(_0x5dbeb0(0x17b))/0x5*(-parseInt(_0x5dbeb0(0x1ef))/0x6)+-parseInt(_0x5dbeb0(0x1cc))/0x7*(parseInt(_0x5dbeb0(0x1bb))/0x8)+parseInt(_0x5dbeb0(0x1c6))/0x9*(parseInt(_0x5dbeb0(0x193))/0xa)+parseInt(_0x5dbeb0(0x199))/0xb;if(_0x548ee5===_0x133374)break;else _0x4549eb['push'](_0x4549eb['shift']());}catch(_0x20abc7){_0x4549eb['push'](_0x4549eb['shift']());}}}(a39_0x1d4f,0x3ea39));function a39_0x1d4f(){const _0x367786=['accessibility','reportConflictingEnvVarIssue','accessibilityOptions','../../helpers/BrowserStackSetup','WEIAL','getConfig','elhAN','resolvedConfigFile','BpiTL','../../helpers/testhub/testhubHandler','pkIDb','jTSov','../v2/cliUtils','15JJgVAE','accessSync','map','isUndefined','slice','10HsLjjh','readFileSync','PmiFD','nestedKeyValue','BROWSERSTACK_PW_CONFIG_DIR','WGqii','2886136WVTVia','SDK_CLEANUP','BhGEm','EVENTS','dZLCp','forEach','win32','--config','cliConfig','playwright','xBrMd','BROWSERSTACK_RERUN_TESTS','setBrowserstackConfig','getNoProxy','rZBqV','setFrameworkDetail','--grep','../../helpers/accessibility-automation/helper','WVPbn','info','../v2/TestInfo','50940CykTmc','cCnez','isRunning','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','stringify','existsSync','filterBrowserstackArgs','igkWF','uyiPQ','Error\x20in\x20getting\x20funnel\x20data\x20results','configPath','emjHG','../../helpers/performance/constants','869224kwjdSY','cwd','yGnab','R_OK','has','eugsd','gKLya','XXtZd','VBKCT','testContextOptions','qALbD','1688697RVaKDV','../v2/browserstackCLI','--disable-test-observability','isTypescriptProject','requireConfigLoaderYarnPnP','hjtuy','7qDPPhN','validateRerunTestList','apply','process.env.GLOBAL_AGENT_HTTP_PROXY=\x22','jLJxE','tXEzY','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','../../helpers/performance/performance-tester','SDK_POST_INITIALIZE','getConfigPath','homedir','platform','CYwOF','constants','end','env','BROWSERSTACK_TEST_OBSERVABILITY','KDAcA','bcGPs','ZZzps','../../helpers/helper','pw_result.json','nZaFd','./reporter/test-details','getProxyUrl','Playwright\x20process\x20exited\x20with\x20code\x20','isFalse','sCoim','dirname','winstonLogger','exports','bootstrap','push','zUtbz','brBpj','6iFHeYS','startsWith','Proxy\x20url\x20:\x20','BROWSERSTACK_TEST_ACCESSIBILITY_YML','USER_CONFIG_DETAILS_PATH','Updated\x20config\x20file\x20name\x20to\x20-\x20','shutdown','skipSessionStatus','675892YCiORg','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','FopYR','inherit','YZcTX','config','stop','resolve','VLQAa','kPzbO','mBiaK','trace_','child_process','FdcsZ','../../helpers/logger','close','Error\x20in\x20deleting\x20playwright\x20results','PACKAGE_TYPE','FVNcn','BrowserStack\x20config\x20file\x20not\x20found.','assign','--config=','../utils/constants','testObservability','error','getInstance','LalBU','reportDotBrowserStackFolderNotAccessibleIssue','Deleting\x20','serializeToYamlString','../../helpers/utilities','--disable-browserstack-automation','SDK_PRE_INITIALIZE','length','findIndex','isCLIEnabled','playwright-browserstack-sdk.config.js','test','\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a','BROWSERSTACK_SETUP_CONFIG_PATH','unlinkSync','parse','../utils/clientTroubleshootingService','debug','TBnzV','275757xnskQu','join','Error\x20in\x20closing\x20playwright','KBzVQ','gxhbS','yarn','writeFileSync','INJEv','browserstackAutomation','isTrue','jTpAt','../../helpers/test-observability/constants','concat','iNbNH','./accessibility-helper','npx','PLAYWRIGHT','launchBuild','INTERNALLY_USED_ENV_VARS','W_OK','path','isYarnPnP','util','1053255PQldNZ','measureWrapper','BROWSERSTACK_AUTOMATION','get','split','BROWSERSTACK_RERUN'];a39_0x1d4f=function(){return _0x367786;};return a39_0x1d4f();}const fs=require('fs'),path=require(a39_0x163db1(0x178)),{spawn}=require(a39_0x163db1(0x203)),{format}=require(a39_0x163db1(0x17a)),logger=require(a39_0x163db1(0x145))[a39_0x163db1(0x1e9)],{default:BrowserStackSetup}=require(a39_0x163db1(0x184)),helper=require(a39_0x163db1(0x1e0)),utilities=require(a39_0x163db1(0x155)),constants=require(a39_0x163db1(0x14d)),{FRAMEWORKS}=require(a39_0x163db1(0x16f)),{getConfigLoaderPath}=require('./reporter/pwUtils'),{checkAccessibilityPlatformConfig}=require(a39_0x163db1(0x1aa)),{setAccessibilityCapabilities}=require(a39_0x163db1(0x172)),{printBuildLink}=require('../../helpers/test-observability/utils'),TestDetails=require(a39_0x163db1(0x1e3)),TestHubHandler=require(a39_0x163db1(0x18a)),PerformanceTester=require(a39_0x163db1(0x1d3)),BrowserstackCLI=require(a39_0x163db1(0x1c7)),PerformanceEvents=require(a39_0x163db1(0x1ba))[a39_0x163db1(0x19c)],CLIUtils=require(a39_0x163db1(0x18d)),TestInfo=require(a39_0x163db1(0x1ad)),ClientTroubleShootingService=require(a39_0x163db1(0x161)),getUserPlaywrightConfig=async(_0x52a177,_0xad6e65)=>{const _0x113a7b=a39_0x163db1,_0x231139={'FVNcn':function(_0x20d062){return _0x20d062();},'jTSov':function(_0x2e8973,_0x40b276){return _0x2e8973(_0x40b276);},'iNbNH':_0x113a7b(0x188),'YZcTX':'--config='},_0x22533e=!helper[_0x113a7b(0x191)](_0x52a177[_0x113a7b(0x1fc)]),_0x11dbdb=_0x22533e?path[_0x113a7b(0x1fe)](process[_0x113a7b(0x1bc)](),_0x52a177[_0x113a7b(0x1fc)]):process['cwd'](),{resolveConfigFile:_0x2523e3,resolveConfigLocation:_0x50b01e}=helper[_0x113a7b(0x179)]()?helper[_0x113a7b(0x1ca)](..._0x231139['FVNcn'](getConfigLoaderPath)):helper['requirePWModule'][_0x113a7b(0x1ce)](null,_0x231139[_0x113a7b(0x149)](getConfigLoaderPath)),_0x24f4e7=_0x2523e3?_0x231139[_0x113a7b(0x18c)](_0x2523e3,_0x11dbdb):helper[_0x113a7b(0x196)](_0x231139[_0x113a7b(0x18c)](_0x50b01e,_0x11dbdb),[_0x231139[_0x113a7b(0x171)]]),_0x497f82={};if(_0x22533e){const _0x541009=_0xad6e65[_0x113a7b(0x159)](_0x10651c=>_0x10651c===_0x113a7b(0x1a0)||_0x10651c==='-c'||_0x10651c[_0x113a7b(0x1f0)](_0x113a7b(0x14c)));_0xad6e65['splice'](_0x541009,_0xad6e65[_0x541009]['startsWith'](_0x231139[_0x113a7b(0x1fb)])?0x1:0x2);}const _0x422694={};return _0x422694[_0x113a7b(0x178)]=_0x24f4e7,_0x422694[_0x113a7b(0x1fc)]=_0x497f82,_0x422694;},handleO11yRerun=_0x491c74=>{const _0x508654=a39_0x163db1,_0xe9ab59={};_0xe9ab59[_0x508654(0x1af)]=_0x508654(0x1a9);const _0x508c10=_0xe9ab59,_0x1402b9=helper[_0x508654(0x16d)](process['env'][_0x508654(0x180)]);if(_0x1402b9){const _0x2bc83c=process['env'][_0x508654(0x1a4)],_0x275df2=[];if(helper[_0x508654(0x1cd)](_0x2bc83c)&&!helper['isUndefined'](_0x2bc83c)){_0x2bc83c[_0x508654(0x17f)](',')[_0x508654(0x190)](_0xcf1e0a=>{const _0x4cc1a0=_0x508654;_0x275df2[_0x4cc1a0(0x1ec)]('('+_0xcf1e0a['trim']()+')');});const _0x14be4c='^'+_0x275df2['join']('|')+'$';_0x491c74[_0x508654(0x1ec)](_0x508c10['cCnez'],_0x14be4c);}}},spawnOriginalProcess=_0x3396c1=>{const _0x448e29=a39_0x163db1,_0x2a06cf={'HsmMM':function(_0x924ad,_0x4ecc97,_0x4320e2,_0x46e562){return _0x924ad(_0x4ecc97,_0x4320e2,_0x46e562);},'BpiTL':_0x448e29(0x169),'aonri':_0x448e29(0x173),'oDHyC':_0x448e29(0x1a2),'HIijP':function(_0x273a37,_0x428826){return _0x273a37===_0x428826;},'kPzbO':_0x448e29(0x19f),'igkWF':_0x448e29(0x1fa)};_0x2a06cf['HsmMM'](spawn,helper['isYarnPnP']()?_0x2a06cf[_0x448e29(0x189)]:_0x2a06cf['aonri'],[_0x2a06cf['oDHyC'],..._0x3396c1[_0x448e29(0x192)](0x1)],{'shell':_0x2a06cf['HIijP'](process[_0x448e29(0x1d7)],_0x2a06cf[_0x448e29(0x200)]),'stdio':_0x2a06cf[_0x448e29(0x1b5)],'cwd':process[_0x448e29(0x1bc)]()});},isTestCommand=(_0x406ffa,_0x47ad31)=>{const _0x5048c9=a39_0x163db1,_0x507ef3={};_0x507ef3['VMUQg']=function(_0x3e6be5,_0x447383){return _0x3e6be5>_0x447383;},_0x507ef3[_0x5048c9(0x1e2)]=function(_0x3f1b6e,_0x153a60){return _0x3f1b6e===_0x153a60;},_0x507ef3[_0x5048c9(0x151)]=_0x5048c9(0x15c);const _0x57d231=_0x507ef3;if(_0x57d231['VMUQg'](_0x47ad31['length'],0x1)&&_0x57d231[_0x5048c9(0x1e2)](_0x47ad31[0x1],_0x57d231[_0x5048c9(0x151)]))return!![];return![];};async function run(_0x25bf95,_0x6b2396,_0x6a2bdf){const _0x56ff26=a39_0x163db1,_0x21a4c4={'CYwOF':function(_0x2eaf51,_0x3fd10c){return _0x2eaf51(_0x3fd10c);},'VLQAa':'.browserstack','mBiaK':_0x56ff26(0x1e1),'rZBqV':function(_0x860f5,_0x5b8d36){return _0x860f5+_0x5b8d36;},'WVPbn':_0x56ff26(0x1b7),'MnyPh':function(_0x240fd9){return _0x240fd9();},'VBKCT':_0x56ff26(0x166),'cTZaQ':_0x56ff26(0x14a),'gxhbS':function(_0x3e5342,_0x561f0c){return _0x3e5342<_0x561f0c;},'dZLCp':function(_0x11a238,_0x1ca02c){return _0x11a238===_0x1ca02c;},'XXtZd':'false','xBrMd':_0x56ff26(0x1c8),'yGnab':function(_0x1f4568,_0xdc9212){return _0x1f4568>=_0xdc9212;},'BhGEm':'automation','byXST':function(_0x3c50c2,_0x530e93){return _0x3c50c2!=_0x530e93;},'elhAN':function(_0x4ef4cc,_0x2c7e48,_0x21a2c3){return _0x4ef4cc(_0x2c7e48,_0x21a2c3);},'bcGPs':function(_0x3211d2,_0x25b4be){return _0x3211d2(_0x25b4be);},'KBzVQ':'true','WEIAL':'browserstackSetupConfig.json','qALbD':'playwright-browserstack-sdk.config.cjs','zUtbz':_0x56ff26(0x15b),'TBnzV':function(_0x493ace,_0x2e80ef){return _0x493ace-_0x2e80ef;},'MgNxJ':_0x56ff26(0x1f4),'hjtuy':function(_0x1f6dfd,_0x39f4fa){return _0x1f6dfd>_0x39f4fa;},'eWgZt':function(_0x2cf550,_0x5e1366,_0x55e4d9,_0x2dfe18){return _0x2cf550(_0x5e1366,_0x55e4d9,_0x2dfe18);},'VKRjx':_0x56ff26(0x169),'jTpAt':_0x56ff26(0x173),'FdcsZ':_0x56ff26(0x1a2),'FopYR':'test','WOJBL':_0x56ff26(0x1a0),'eugsd':'win32','uyiPQ':_0x56ff26(0x1fa),'gKLya':_0x56ff26(0x146),'emjHG':function(_0x561613,_0xfadba6){return _0x561613|_0xfadba6;},'ZZzps':_0x56ff26(0x1d2),'brBpj':_0x56ff26(0x147),'PmiFD':function(_0x1c86b8,_0x3e9e1e,_0x3d00e8){return _0x1c86b8(_0x3e9e1e,_0x3d00e8);}};try{const _0x4f9fd6=path[_0x56ff26(0x165)](helper['homedir'](),_0x21a4c4[_0x56ff26(0x1ff)]);try{fs[_0x56ff26(0x18f)](_0x4f9fd6,_0x21a4c4[_0x56ff26(0x1b9)](fs['constants'][_0x56ff26(0x1be)],fs[_0x56ff26(0x1d9)][_0x56ff26(0x177)]));}catch(_0x37e06b){ClientTroubleShootingService[_0x56ff26(0x152)]();}}catch(_0x5432bb){logger['debug'](_0x21a4c4[_0x56ff26(0x1a7)](_0x21a4c4[_0x56ff26(0x1df)],_0x5432bb));}try{const _0x22a078=path[_0x56ff26(0x165)](helper[_0x56ff26(0x1d6)](),_0x21a4c4[_0x56ff26(0x1ff)],_0x21a4c4[_0x56ff26(0x201)]);fs[_0x56ff26(0x1b3)](_0x22a078)&&fs[_0x56ff26(0x15f)](_0x22a078);}catch(_0x3d835d){logger['debug'](_0x21a4c4[_0x56ff26(0x1a7)](_0x21a4c4[_0x56ff26(0x1ee)],_0x3d835d));}if(!_0x21a4c4[_0x56ff26(0x195)](isTestCommand,_0x25bf95,_0x6b2396)){_0x21a4c4[_0x56ff26(0x1d8)](spawnOriginalProcess,_0x6b2396);return;}await PerformanceTester[_0x56ff26(0x17c)](PerformanceEvents[_0x56ff26(0x157)],async()=>{const _0x19b90=_0x56ff26,_0x2adfad={'MExSX':function(_0x54e4bd,_0x23b156){const _0x22d38c=a39_0x269d;return _0x21a4c4[_0x22d38c(0x1d8)](_0x54e4bd,_0x23b156);},'tXEzY':_0x21a4c4[_0x19b90(0x1ff)],'pkIDb':_0x21a4c4[_0x19b90(0x201)],'sCoim':function(_0x556a2a,_0x4e7efa){return _0x21a4c4['rZBqV'](_0x556a2a,_0x4e7efa);},'WGqii':_0x21a4c4[_0x19b90(0x1ab)],'jLJxE':function(_0x5017d1){return _0x21a4c4['MnyPh'](_0x5017d1);},'INJEv':_0x21a4c4[_0x19b90(0x1c3)]};if(!_0x6a2bdf[_0x19b90(0x1fc)]){logger[_0x19b90(0x14f)](_0x21a4c4['cTZaQ']);return;}await _0x6a2bdf['initialize'](_0x25bf95),CLIUtils[_0x19b90(0x1a8)](FRAMEWORKS[_0x19b90(0x174)],FRAMEWORKS[_0x19b90(0x174)]),BrowserstackCLI[_0x19b90(0x150)]()[_0x19b90(0x1a5)](_0x6a2bdf[_0x19b90(0x1fc)],_0x6a2bdf[_0x19b90(0x1b8)],_0x6a2bdf[_0x19b90(0x1a1)]),await BrowserstackCLI[_0x19b90(0x150)]()[_0x19b90(0x1eb)]();for(var _0x369227=0x0;_0x21a4c4[_0x19b90(0x168)](_0x369227,constants[_0x19b90(0x176)][_0x19b90(0x158)]);_0x369227++){var _0x315d89=constants['INTERNALLY_USED_ENV_VARS'][_0x369227];process['env'][_0x315d89]&&await ClientTroubleShootingService[_0x19b90(0x182)](_0x315d89);}const _0x426973=BrowserstackCLI[_0x19b90(0x150)]()[_0x19b90(0x186)]();!helper[_0x19b90(0x1e6)](_0x426973[_0x19b90(0x16c)])&&(process[_0x19b90(0x1db)][_0x19b90(0x17d)]=!![]);_0x21a4c4['dZLCp'](_0x426973[_0x19b90(0x16c)],![])&&(process['env'][_0x19b90(0x17d)]=_0x21a4c4[_0x19b90(0x1c2)],_0x6b2396=_0x6b2396['filter'](_0x40d2f4=>_0x40d2f4!==_0x19b90(0x156)));const _0x2d8550=_0x6b2396['indexOf'](_0x21a4c4[_0x19b90(0x1a3)]);(_0x21a4c4[_0x19b90(0x1bd)](_0x2d8550,0x0)||_0x21a4c4[_0x19b90(0x19d)](_0x426973[_0x19b90(0x14e)],![]))&&(process[_0x19b90(0x1db)][_0x19b90(0x1dc)]=_0x21a4c4[_0x19b90(0x1c2)],_0x6b2396=_0x6b2396['filter'](_0x558d82=>_0x558d82!==_0x19b90(0x1c8)));!helper[_0x19b90(0x191)](_0x6a2bdf[_0x19b90(0x1a1)])&&_0x6a2bdf[_0x19b90(0x1a1)][_0x19b90(0x1bf)](_0x21a4c4[_0x19b90(0x19b)])&&(process[_0x19b90(0x1db)][_0x19b90(0x17d)]=_0x6a2bdf[_0x19b90(0x1a1)][_0x19b90(0x17e)](_0x21a4c4[_0x19b90(0x19b)])||!![]);_0x21a4c4['byXST'](_0x6a2bdf[_0x19b90(0x1fc)][_0x19b90(0x14e)],null)&&!helper[_0x19b90(0x16d)](process[_0x19b90(0x1db)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process[_0x19b90(0x1db)][_0x19b90(0x1dc)]=process[_0x19b90(0x1db)]['BROWSERSTACK_TEST_OBSERVABILITY']||_0x6a2bdf[_0x19b90(0x1fc)]['testObservability']);const _0x20fcfe=!helper[_0x19b90(0x1e6)](process[_0x19b90(0x1db)][_0x19b90(0x1dc)]);_0x6a2bdf[_0x19b90(0x1fc)][_0x19b90(0x183)]&&(process[_0x19b90(0x1db)][_0x19b90(0x1b1)]=JSON[_0x19b90(0x1b2)](_0x6a2bdf[_0x19b90(0x1fc)][_0x19b90(0x183)]));let _0x5c0ff5=![];_0x6a2bdf[_0x19b90(0x1fc)]['accessibility']&&(_0x5c0ff5=!![],process[_0x19b90(0x1db)][_0x19b90(0x1f2)]=_0x6a2bdf[_0x19b90(0x1fc)][_0x19b90(0x181)]);const _0x5cb6a2=_0x6b2396[_0x19b90(0x170)](),_0x452aa4=await _0x21a4c4[_0x19b90(0x187)](getUserPlaywrightConfig,_0x25bf95,_0x6b2396);if(helper[_0x19b90(0x191)](_0x452aa4)){_0x21a4c4[_0x19b90(0x1de)](spawnOriginalProcess,_0x5cb6a2);return;}const _0x4299a9=_0x452aa4[_0x19b90(0x178)]?path[_0x19b90(0x1e8)](_0x452aa4[_0x19b90(0x178)]):process[_0x19b90(0x1bc)]();process[_0x19b90(0x1db)][_0x19b90(0x197)]=_0x4299a9,await PerformanceTester[_0x19b90(0x17c)](PerformanceEvents[_0x19b90(0x1d4)],async()=>{const _0xf1817d=_0x19b90;!BrowserstackCLI[_0xf1817d(0x150)]()[_0xf1817d(0x1b0)]()&&await TestHubHandler[_0xf1817d(0x175)](FRAMEWORKS[_0xf1817d(0x174)],_0x6a2bdf),_0x20fcfe&&_0x2adfad['MExSX'](handleO11yRerun,_0x6b2396);})();if(!BrowserstackCLI[_0x19b90(0x150)]()[_0x19b90(0x1b0)]()){let _0x208e4f=_0x21a4c4['dZLCp'](process[_0x19b90(0x1db)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML'],_0x21a4c4[_0x19b90(0x167)]);_0x208e4f=_0x208e4f||_0x21a4c4[_0x19b90(0x1d8)](checkAccessibilityPlatformConfig,_0x6a2bdf[_0x19b90(0x1fc)]),process['env'][_0x19b90(0x1f2)]=_0x208e4f,_0x208e4f&&_0x21a4c4[_0x19b90(0x1d8)](setAccessibilityCapabilities,_0x6a2bdf['config']);}const _0x31995e=path[_0x19b90(0x165)](_0x452aa4['path']?path[_0x19b90(0x1e8)](_0x452aa4['path']):process[_0x19b90(0x1bc)](),_0x21a4c4[_0x19b90(0x185)]);fs[_0x19b90(0x16a)](_0x31995e,helper[_0x19b90(0x154)](_0x6a2bdf[_0x19b90(0x1fc)])),process[_0x19b90(0x1db)][_0x19b90(0x15e)]=_0x31995e,helper['clearTempPWConfig']();let _0x1adf73='';_0x21a4c4[_0x19b90(0x19d)](helper['getPackageType'](),constants[_0x19b90(0x148)]['MODULE'])?_0x1adf73=_0x21a4c4[_0x19b90(0x1c5)]:_0x1adf73=_0x21a4c4[_0x19b90(0x1ed)];let _0x3fffd5='';if(helper[_0x19b90(0x1c9)](_0x452aa4[_0x19b90(0x178)])){_0x3fffd5=_0x19b90(0x1f8);const _0xcd1ba4=_0x1adf73[_0x19b90(0x17f)]('.');_0xcd1ba4[_0x21a4c4[_0x19b90(0x163)](_0xcd1ba4[_0x19b90(0x158)],0x1)]='ts',_0x1adf73=_0xcd1ba4['join']('.'),logger['debug'](_0x21a4c4[_0x19b90(0x1a7)](_0x21a4c4['MgNxJ'],_0x1adf73));}else _0x3fffd5=_0x19b90(0x15d);const _0x455ce0=path['join'](_0x452aa4[_0x19b90(0x178)]?path[_0x19b90(0x1e8)](_0x452aa4['path']):process[_0x19b90(0x1bc)](),_0x1adf73);let _0x5af7ff=_0x452aa4[_0x19b90(0x178)]?_0x452aa4[_0x19b90(0x178)]:'';_0x5af7ff=_0x21a4c4[_0x19b90(0x1cb)](_0x5af7ff[_0x19b90(0x158)],0x0)?path['resolve'](_0x5af7ff):'',process[_0x19b90(0x1db)][_0x19b90(0x1f3)]=_0x5af7ff;const _0x39dfe7=helper[_0x19b90(0x1e4)](_0x6a2bdf['config']),_0xeb578=helper[_0x19b90(0x1a6)](_0x6a2bdf['config']);logger[_0x19b90(0x162)](_0x19b90(0x1f1)+_0x39dfe7),logger[_0x19b90(0x162)]('No\x20Proxy\x20:\x20'+_0xeb578);_0x39dfe7&&(_0x3fffd5=_0x21a4c4[_0x19b90(0x1a7)](_0x19b90(0x1cf)+_0x39dfe7+'\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'+_0xeb578+'\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();',_0x3fffd5));helper[_0x19b90(0x1b4)]({},_0x6b2396),fs[_0x19b90(0x16a)](_0x455ce0,_0x3fffd5),PerformanceTester[_0x19b90(0x1da)](PerformanceEvents['SDK_SETUP']);const _0x18799d=_0x21a4c4['eWgZt'](spawn,helper[_0x19b90(0x179)]()?_0x21a4c4['VKRjx']:_0x21a4c4[_0x19b90(0x16e)],[_0x21a4c4[_0x19b90(0x204)],_0x21a4c4[_0x19b90(0x1f9)],_0x21a4c4['WOJBL'],_0x21a4c4[_0x19b90(0x19d)](process[_0x19b90(0x1d7)],_0x21a4c4[_0x19b90(0x1c0)])?'\x22'+_0x455ce0+'\x22':_0x455ce0,..._0x6b2396[_0x19b90(0x192)](0x2)],{'shell':_0x21a4c4[_0x19b90(0x19d)](process[_0x19b90(0x1d7)],_0x21a4c4[_0x19b90(0x1c0)]),'stdio':_0x21a4c4[_0x19b90(0x1b6)],'cwd':process[_0x19b90(0x1bc)](),'env':Object[_0x19b90(0x14b)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x19b90(0x1d5)](_0x25bf95),'BROWSERSTACK_SKIP_SESSION_STATUS':_0x6a2bdf['config'][_0x19b90(0x1c4)][_0x19b90(0x1f6)],'BROWSERSTACK_SKIP_SESSION_NAME':_0x6a2bdf[_0x19b90(0x1fc)]['testContextOptions']['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0x6a2bdf[_0x19b90(0x1fc)]['logLevel']})}),_0xf941cb=()=>{const _0x5f0a1a=_0x19b90;try{const _0x24a86b=path[_0x5f0a1a(0x165)](helper['homedir'](),_0x2adfad['tXEzY'],_0x2adfad[_0x5f0a1a(0x18b)]);if(fs['existsSync'](_0x24a86b)){let _0x200568=fs[_0x5f0a1a(0x194)](_0x24a86b);_0x200568=JSON[_0x5f0a1a(0x160)](_0x200568),_0x6a2bdf['errorMessage']=_0x200568,fs[_0x5f0a1a(0x15f)](_0x24a86b);}}catch(_0x3f7bf2){logger[_0x5f0a1a(0x162)](_0x2adfad[_0x5f0a1a(0x1e7)](_0x2adfad[_0x5f0a1a(0x198)],_0x3f7bf2));}};_0x18799d['on'](_0x21a4c4[_0x19b90(0x1c1)],async _0xafc12c=>{const _0xd25db6=_0x19b90,_0x9a1673={};_0x9a1673[_0xd25db6(0x1dd)]=_0x2adfad['tXEzY'];const _0x3a19a2=_0x9a1673;try{PerformanceTester['start'](PerformanceEvents[_0xd25db6(0x19a)]),_0x2adfad[_0xd25db6(0x1d0)](_0xf941cb),await TestHubHandler[_0xd25db6(0x1fd)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x3ec814=BrowserstackCLI[_0xd25db6(0x15a)]();await BrowserstackCLI[_0xd25db6(0x150)]()[_0xd25db6(0x1fd)](),TestDetails[_0xd25db6(0x1f5)](),_0x2adfad['jLJxE'](printBuildLink),await utilities['finalExecution'](_0x6a2bdf,_0x3ec814),process['exitCode']=_0xafc12c,logger[_0xd25db6(0x162)](_0xd25db6(0x1e5)+_0xafc12c),logger[_0xd25db6(0x1ac)](_0xd25db6(0x153)+_0x455ce0),fs[_0xd25db6(0x15f)](_0x455ce0);fs[_0xd25db6(0x1b3)](_0x31995e)&&(logger['debug'](_0xd25db6(0x153)+_0x31995e),fs[_0xd25db6(0x15f)](_0x31995e));const _0x3baa4a=fs['readdirSync'](path[_0xd25db6(0x165)](helper[_0xd25db6(0x1d6)](),_0x2adfad[_0xd25db6(0x1d1)]))['filter'](_0x11a62f=>_0x11a62f[_0xd25db6(0x1f0)](_0xd25db6(0x202)));_0x3baa4a[_0xd25db6(0x19e)](_0x131b52=>{const _0x271b4e=_0xd25db6;fs[_0x271b4e(0x15f)](path[_0x271b4e(0x165)](helper[_0x271b4e(0x1d6)](),_0x3a19a2['KDAcA'],_0x131b52));});}catch(_0x21ff4f){logger[_0xd25db6(0x162)](_0x2adfad[_0xd25db6(0x1e7)](_0x2adfad[_0xd25db6(0x16b)],_0x21ff4f));}});})();}module[a39_0x163db1(0x1ea)]=run;
|