browserstack-node-sdk 1.50.6 → 1.50.7
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_0x1f8f(){const _0x58d247=['isAccessibilityPlatform','349616FaYYhu','../../../helpers/patchHelpers','HttpClient','mergeDeep','SETTING\x20NEW\x20URL\x20TO\x20OPTIMAL\x20URL\x20-\x20','Hub\x20url\x20set\x20to\x20','/wd/hub','safariOptions_','getAccessibilityResultsSummary','winstonLogger','axXiP','DRRWI','set','../../../hubAllocationMethods','AEDqI','getHttpAgent','push','capability','Builder','XWoAG','./helpers/patchHelper','error','agent_','originalBuilder','build','310QQEqAO','then','logLevel','aaldK','__setBrowserOptions','NYnKg','Running\x20your\x20test\x20suite\x20on\x20BrowserStack','qrozb','goog:chromeOptions','url_','moz:firefoxOptions','getGlobal','ZfnRe','OPTIMAL\x20HUB\x20URL\x20NOT\x20FOUND','newHubUrl','isUndefined','info','192ouFUWr','vjmfn','isBrowserstackInfra','__drivers','edgeOptions_','oSjJw','ms:edgeOptions','bYYYm','setCapabilities','requireHttpClient','VmBuQ','CAPABILITY_KEY','IFWua','send','ieOptions','16672QkFPbn','bdHZg','/session','isPacProxy','safari.options','1215266nEXCAF','debug','setLogLevel','MbBYF','browserstackAgentObservability','firefoxOptions_','edgeOptions','chromeOptions_','1469166AotPvm','object','global','requireSeleniumWebdriver','get','setServer','Setting\x20Browserstack\x20capabilities','getAccessibilityResults','FOoLZ','PGhBn','LkLis','ERROR\x20IN\x20GETTING\x20OPTIMAL\x20HUB\x20URL\x20-\x20','chromeOptions','../../../bin/utils/constants','setGlobal','proxyUrl','LGKsr','overrideGet','kJokg','1782jtPPKs','OQKkr','Configuring\x20to\x20run\x20tests\x20on\x20BrowserStack','YkEHV','BmCEG','exports','8363290fEbwcx','../../../helpers/logger','Proxy\x20set\x20to\x20','67576cGfAHd','session_','capabilities_','../accessibility-automation/helper','../../../helpers/helper','173663Idumev','wyuhG','https://','HriRl','caps_','__driversArray','getHubUrl','proxySettings','wGWcv','ieOptions_','__driver','proxy_','split'];a33_0x1f8f=function(){return _0x58d247;};return a33_0x1f8f();}const a33_0x32f767=a33_0x106d;(function(_0x5676be,_0xe7b062){const _0x48f8ab=a33_0x106d,_0x156d5d=_0x5676be();while(!![]){try{const _0x9bc547=-parseInt(_0x48f8ab(0x266))/0x1+-parseInt(_0x48f8ab(0x22f))/0x2+parseInt(_0x48f8ab(0x237))/0x3+parseInt(_0x48f8ab(0x253))/0x4*(-parseInt(_0x48f8ab(0x20a))/0x5)+-parseInt(_0x48f8ab(0x21b))/0x6*(-parseInt(_0x48f8ab(0x258))/0x7)+-parseInt(_0x48f8ab(0x22a))/0x8*(-parseInt(_0x48f8ab(0x24a))/0x9)+parseInt(_0x48f8ab(0x250))/0xa;if(_0x9bc547===_0xe7b062)break;else _0x156d5d['push'](_0x156d5d['shift']());}catch(_0x292128){_0x156d5d['push'](_0x156d5d['shift']());}}}(a33_0x1f8f,0x80e16));const logger=require(a33_0x32f767(0x251))[a33_0x32f767(0x1fa)],helper=require(a33_0x32f767(0x257)),constants=require(a33_0x32f767(0x244)),hubAllocator=require(a33_0x32f767(0x1fe)),{overrideQuit,overrideTakeScreenshot,overrideGet}=require(a33_0x32f767(0x267)),{setAccessibilityCapabilities,setExtension}=require(a33_0x32f767(0x256)),{isAccessibilityAutomationSession,getAccessibilityResultsSummary,getAccessibilityResults}=require('../../../helpers/accessibility-automation/helper'),globals=require('../../../helpers/globals'),{overrideExecute}=require(a33_0x32f767(0x205)),modify=(_0x5c808,_0x2056a3=null,_0x362b5a=![])=>{const _0x95b696=a33_0x32f767,_0x4f6cf6={'wyuhG':function(_0x18e9e6,_0x355805){return _0x18e9e6!==_0x355805;},'OQKkr':_0x95b696(0x22c),'HriRl':function(_0x110c5a,_0x397da8){return _0x110c5a+_0x397da8;},'FOoLZ':_0x95b696(0x25a),'BmCEG':_0x95b696(0x1f7),'wHaWT':_0x95b696(0x212),'YBPjw':_0x95b696(0x243),'CiKLD':_0x95b696(0x221),'jtVOU':_0x95b696(0x235),'LkLis':_0x95b696(0x214),'bdHZg':'firefoxOptions','NYnKg':_0x95b696(0x22e),'XWoAG':'se:ieOptions','MbBYF':_0x95b696(0x229),'bYYYm':function(_0x1cb1b2,_0x48f200){return _0x1cb1b2===_0x48f200;},'ZfnRe':_0x95b696(0x238),'vjmfn':_0x95b696(0x23d),'wGWcv':'optimalHubUrl','IFWua':_0x95b696(0x217),'qrozb':function(_0x35228d,_0x15e2a3,_0x2c0673){return _0x35228d(_0x15e2a3,_0x2c0673);},'AEDqI':function(_0xae575b,_0x43da23){return _0xae575b(_0x43da23);},'PGhBn':function(_0xea62f,_0xd9572e,_0x8ee84b){return _0xea62f(_0xd9572e,_0x8ee84b);},'YkEHV':function(_0x101b7a,_0x5637b7,_0x414785){return _0x101b7a(_0x5637b7,_0x414785);},'axXiP':'4|1|5|2|0|3','DRRWI':_0x95b696(0x265),'FCdbV':_0x95b696(0x210),'aaldK':function(_0x1880d5){return _0x1880d5();},'LGKsr':function(_0x46f604,_0x1b5a19){return _0x46f604(_0x1b5a19);},'kJokg':function(_0x2dffac,_0x4d286b,_0x23bfe0){return _0x2dffac(_0x4d286b,_0x23bfe0);},'gFeSA':function(_0x2a4c77,_0x34753f){return _0x2a4c77!==_0x34753f;},'oSjJw':_0x95b696(0x24c),'VmBuQ':'Modifying\x20webdriver\x20builder'},_0x35b5cb=helper[_0x95b696(0x224)]();let _0x492177;try{_0x492177=helper[_0x95b696(0x23a)](),_0x492177['originalBuilder']&&(_0x492177['Builder']=_0x492177[_0x95b696(0x208)]);}catch(_0x32d122){return;}if(helper['isBrowserstackInfra']()){const _0x1dcd08={};_0x1dcd08[_0x95b696(0x20c)]=_0x5c808['browserStackLogLevel'],helper[_0x95b696(0x231)](_0x1dcd08,new Map(),new Map()),logger[_0x95b696(0x21a)](_0x4f6cf6[_0x95b696(0x220)]),logger[_0x95b696(0x230)](_0x4f6cf6[_0x95b696(0x225)]);}class _0xa3b9f2 extends _0x35b5cb[_0x95b696(0x268)]{[_0x95b696(0x228)](_0x14b25d){const _0x584571=_0x95b696;if(_0x4f6cf6['wyuhG'](_0x14b25d['path'],_0x4f6cf6[_0x584571(0x24b)])&&_0x4f6cf6[_0x584571(0x259)](global[_0x584571(0x218)],''))try{global[_0x584571(0x218)]=_0x4f6cf6[_0x584571(0x25b)](_0x4f6cf6['HriRl'](_0x4f6cf6[_0x584571(0x23f)],global[_0x584571(0x218)]),_0x4f6cf6[_0x584571(0x24e)]),this['options_']=hubAllocator['getRequestOptions'](global[_0x584571(0x218)]),logger[_0x584571(0x230)]('New\x20hub\x20url\x20set\x20to\x20'+global['newHubUrl']),global[_0x584571(0x218)]='';}catch(_0x4697d2){logger[_0x584571(0x206)](_0x4697d2);}return super[_0x584571(0x228)](_0x14b25d);}}class _0x245949 extends _0x492177[_0x95b696(0x203)]{[_0x95b696(0x23c)](){const _0x857c5f=_0x95b696;return this['url_']=helper[_0x857c5f(0x25e)](_0x5c808),logger[_0x857c5f(0x230)](_0x857c5f(0x1f6)+this[_0x857c5f(0x213)]),this;}[_0x95b696(0x20e)](_0x4ec019){const _0x244bae=_0x95b696;let _0x1d44c8={};for(const _0x190a16 in _0x4ec019){switch(_0x190a16){case _0x4f6cf6['wHaWT']:case _0x4f6cf6['YBPjw']:this['chromeOptions_']&&(_0x1d44c8=this['chromeOptions_']['get'](this[_0x244bae(0x236)]['CAPABILITY_KEY'])||{},this[_0x244bae(0x236)]['set'](this['chromeOptions_'][_0x244bae(0x226)],helper['mergeDeep'](_0x1d44c8,_0x4ec019[_0x190a16])));break;case _0x4f6cf6['CiKLD']:case _0x4f6cf6['jtVOU']:this[_0x244bae(0x21f)]&&(_0x1d44c8=this['edgeOptions_'][_0x244bae(0x23b)](this['edgeOptions_'][_0x244bae(0x226)])||{},this['edgeOptions_'][_0x244bae(0x1fd)](this[_0x244bae(0x21f)][_0x244bae(0x226)],helper[_0x244bae(0x1f4)](_0x1d44c8,_0x4ec019[_0x190a16])));break;case _0x4f6cf6[_0x244bae(0x241)]:case _0x4f6cf6[_0x244bae(0x22b)]:this[_0x244bae(0x234)]&&(_0x1d44c8=this['firefoxOptions_'][_0x244bae(0x23b)](this['firefoxOptions_'][_0x244bae(0x226)])||{},this[_0x244bae(0x234)][_0x244bae(0x1fd)](this[_0x244bae(0x234)]['CAPABILITY_KEY'],helper['mergeDeep'](_0x1d44c8,_0x4ec019[_0x190a16])));break;case _0x4f6cf6[_0x244bae(0x20f)]:this[_0x244bae(0x1f8)]&&(_0x1d44c8=this['safariOptions_']['get'](this['safariOptions_']['CAPABILITY_KEY'])||{},this[_0x244bae(0x1f8)][_0x244bae(0x1fd)](this[_0x244bae(0x1f8)][_0x244bae(0x226)],helper[_0x244bae(0x1f4)](_0x1d44c8,_0x4ec019[_0x190a16])));break;case _0x4f6cf6[_0x244bae(0x204)]:case _0x4f6cf6[_0x244bae(0x232)]:this[_0x244bae(0x261)]&&(_0x1d44c8=this[_0x244bae(0x261)][_0x244bae(0x23b)](this[_0x244bae(0x261)]['CAPABILITY_KEY'])||{},this[_0x244bae(0x261)][_0x244bae(0x1fd)](this[_0x244bae(0x261)]['CAPABILITY_KEY'],helper[_0x244bae(0x1f4)](_0x1d44c8,_0x4ec019[_0x190a16])));break;}}}[_0x95b696(0x223)](){const _0x55edef=_0x95b696;return logger[_0x55edef(0x230)](_0x4f6cf6[_0x55edef(0x21c)]),this[_0x55edef(0x20e)](_0x5c808[_0x55edef(0x202)]),Object['keys'](_0x5c808[_0x55edef(0x202)])['forEach'](_0x411193=>{const _0x5cd4ea=_0x55edef,_0x5e492f=this[_0x5cd4ea(0x255)]['get'](_0x411193);_0x4f6cf6[_0x5cd4ea(0x222)](typeof _0x5e492f,_0x4f6cf6[_0x5cd4ea(0x216)])?this[_0x5cd4ea(0x255)]['set'](_0x411193,helper['mergeDeep'](_0x5e492f,_0x5c808['capability'][_0x411193])):this[_0x5cd4ea(0x255)]['set'](_0x411193,_0x5c808[_0x5cd4ea(0x202)][_0x411193]);}),this;}[_0x95b696(0x209)](){const _0x481071=_0x95b696,_0x4f0902={'vFfnA':function(_0xfd227,_0x58c90b,_0x8279fc){const _0x1ecda7=a33_0x106d;return _0x4f6cf6[_0x1ecda7(0x24d)](_0xfd227,_0x58c90b,_0x8279fc);}};if(helper[_0x481071(0x21d)]()){const _0x44571d=_0x4f6cf6[_0x481071(0x1fb)][_0x481071(0x264)]('|');let _0x65a85d=0x0;while(!![]){switch(_0x44571d[_0x65a85d++]){case'0':globals[_0x481071(0x215)](_0x4f6cf6[_0x481071(0x1fc)])&&(!_0x4f6cf6[_0x481071(0x240)](setExtension,this,_0x5c808)&&globals[_0x481071(0x245)](_0x4f6cf6[_0x481071(0x1fc)],![]));continue;case'1':this[_0x481071(0x23c)]();continue;case'2':if(helper[_0x481071(0x22d)](_0x5c808[_0x481071(0x25f)][_0x481071(0x246)]))this[_0x481071(0x207)]=helper[_0x481071(0x200)](_0x5c808['proxySettings'][_0x481071(0x246)]);else _0x5c808['proxySettings'][_0x481071(0x246)]&&(this[_0x481071(0x263)]=_0x5c808['proxySettings'][_0x481071(0x246)],logger[_0x481071(0x230)](_0x481071(0x252)+this['proxy_']));continue;case'3':logger[_0x481071(0x230)](_0x4f6cf6['FCdbV']);continue;case'4':_0x4f6cf6[_0x481071(0x20d)](isAccessibilityAutomationSession)&&_0x4f6cf6[_0x481071(0x247)](setAccessibilityCapabilities,_0x5c808);continue;case'5':this[_0x481071(0x223)]();continue;}break;}}const _0x18e6ac=super[_0x481071(0x209)]();return _0x18e6ac[_0x481071(0x254)]['then'](_0x57c7ff=>{const _0x5175fa=_0x481071;try{const _0x3c159b=_0x57c7ff[_0x5175fa(0x25c)][_0x5175fa(0x23b)](_0x4f6cf6[_0x5175fa(0x260)]);_0x3c159b?(logger[_0x5175fa(0x230)](_0x5175fa(0x1f5)+_0x3c159b),hubAllocator['updateHubUrl'](_0x3c159b),helper['storeOptimalHubUrl'](_0x3c159b)):logger[_0x5175fa(0x230)](_0x4f6cf6[_0x5175fa(0x227)]);}catch(_0x3bce6d){logger['debug'](_0x5175fa(0x242)+_0x3bce6d);}}),_0x18e6ac['quitCount_']=0x0,_0x18e6ac[_0x481071(0x20b)]&&_0x18e6ac[_0x481071(0x20b)](_0x32ee6c=>{const _0x371e3b=_0x481071,_0x41091c={'ZhOXn':function(_0x2bcdfe,_0x39a2b0,_0x3526a6){const _0x32c657=a33_0x106d;return _0x4f6cf6[_0x32c657(0x211)](_0x2bcdfe,_0x39a2b0,_0x3526a6);}};_0x4f6cf6['qrozb'](overrideQuit,_0x32ee6c,_0x18e6ac),_0x4f6cf6[_0x371e3b(0x1ff)](overrideTakeScreenshot,_0x32ee6c),helper[_0x371e3b(0x248)](_0x32ee6c,_0x5c808),_0x4f6cf6[_0x371e3b(0x211)](overrideExecute,_0x32ee6c,_0x5c808),_0x32ee6c[_0x371e3b(0x1f9)]=async()=>{return await _0x4f0902['vFfnA'](getAccessibilityResultsSummary,_0x32ee6c,global);},_0x32ee6c[_0x371e3b(0x23e)]=async()=>{return await _0x41091c['ZhOXn'](getAccessibilityResults,_0x32ee6c,global);};}),_0x18e6ac['getAccessibilityResultsSummary']=async()=>{const _0x2645ec=_0x481071;return await _0x4f6cf6[_0x2645ec(0x211)](getAccessibilityResultsSummary,_0x18e6ac,global);},_0x18e6ac[_0x481071(0x23e)]=async()=>{return await _0x4f6cf6['PGhBn'](getAccessibilityResults,_0x18e6ac,global);},_0x4f6cf6['AEDqI'](overrideTakeScreenshot,_0x18e6ac),_0x4f6cf6[_0x481071(0x247)](overrideQuit,_0x18e6ac),helper['overrideGet'](_0x18e6ac,_0x5c808),_0x4f6cf6[_0x481071(0x249)](overrideExecute,_0x18e6ac,_0x5c808),helper[_0x481071(0x219)](global[_0x481071(0x25d)])&&(global[_0x481071(0x25d)]=[]),helper['isUndefined'](global[_0x481071(0x21e)])&&(global[_0x481071(0x21e)]=[]),global[_0x481071(0x25d)][_0x481071(0x201)](_0x18e6ac),global[_0x481071(0x262)]=_0x18e6ac,_0x4f6cf6['gFeSA'](global[_0x481071(0x21e)],undefined)&&global[_0x481071(0x21e)][_0x481071(0x201)](_0x18e6ac),_0x2056a3&&helper[_0x481071(0x219)](_0x2056a3[_0x481071(0x239)][_0x481071(0x25d)])&&(_0x2056a3[_0x481071(0x239)][_0x481071(0x25d)]=[]),_0x2056a3&&_0x4f6cf6['wyuhG'](_0x2056a3[_0x481071(0x239)][_0x481071(0x21e)],undefined)&&(_0x2056a3[_0x481071(0x239)][_0x481071(0x21e)][_0x481071(0x201)](_0x18e6ac),_0x2056a3[_0x481071(0x239)]['__driversArray']['push'](_0x18e6ac)),_0x18e6ac;}}return _0x492177[_0x95b696(0x208)]=_0x492177['Builder'],_0x492177[_0x95b696(0x203)]=_0x245949,_0x35b5cb[_0x95b696(0x268)]=_0xa3b9f2,_0x492177;};function a33_0x106d(_0x4dd2df,_0x18a1a9){const _0x1f8fb1=a33_0x1f8f();return a33_0x106d=function(_0x106d30,_0x5493ef){_0x106d30=_0x106d30-0x1f4;let _0x1aeec9=_0x1f8fb1[_0x106d30];return _0x1aeec9;},a33_0x106d(_0x4dd2df,_0x18a1a9);}module[a33_0x32f767(0x24f)][a33_0x32f767(0x233)]=modify;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x363c5d=a34_0x3c1e;(function(_0x1397b5,_0x3f0541){const _0x4ec04c=a34_0x3c1e,_0x45f7b3=_0x1397b5();while(!![]){try{const _0x137aa6=-parseInt(_0x4ec04c(0x9f))/0x1*(parseInt(_0x4ec04c(0xae))/0x2)+parseInt(_0x4ec04c(0xa7))/0x3*(-parseInt(_0x4ec04c(0xa4))/0x4)+-parseInt(_0x4ec04c(0xa6))/0x5*(parseInt(_0x4ec04c(0xa5))/0x6)+parseInt(_0x4ec04c(0xa3))/0x7*(-parseInt(_0x4ec04c(0xb0))/0x8)+-parseInt(_0x4ec04c(0xaa))/0x9*(parseInt(_0x4ec04c(0xa9))/0xa)+-parseInt(_0x4ec04c(0xa2))/0xb+parseInt(_0x4ec04c(0xa1))/0xc;if(_0x137aa6===_0x3f0541)break;else _0x45f7b3['push'](_0x45f7b3['shift']());}catch(_0x23f7c4){_0x45f7b3['push'](_0x45f7b3['shift']());}}}(a34_0x34a8,0xc2e63));const requestSpy=require(a34_0x363c5d(0xa0)),constants=require(a34_0x363c5d(0xaf)),{addRequestSpy}=require('../../../helpers/test-observability/utils');exports[a34_0x363c5d(0xad)]={'beforeAll'(){const _0x15d42e=a34_0x363c5d,_0x4e1d1a={'EwLho':function(_0x3756ef){return _0x3756ef();}},_0x53b352='browserstack internal helper hook';_0x4e1d1a[_0x15d42e(0xac)](addRequestSpy);},'afterAll'(){const _0x25467a=a34_0x363c5d,_0x38fc03='browserstack internal helper hook';this[_0x25467a(0xa8)](0xea60),requestSpy[_0x25467a(0xab)]();}};function a34_0x3c1e(_0x546f25,_0x19ccb6){const _0x34a8d6=a34_0x34a8();return a34_0x3c1e=function(_0x3c1ea1,_0x114a02){_0x3c1ea1=_0x3c1ea1-0x9f;let _0x1dbf09=_0x34a8d6[_0x3c1ea1];return _0x1dbf09;},a34_0x3c1e(_0x546f25,_0x19ccb6);}function a34_0x34a8(){const _0xad6220=['../../../bin/utils/constants','2043408xnvjwQ','33XlAphC','../../../helpers/request-spy','76310640HqEcaH','13094873JSzMuP','21fJdRQc','4831448xKpSEK','16788vEdiRR','585LOMoVP','3AHDcyr','timeout','10bAqfwF','12618603GlqcEk','restore','EwLho','mochaHooks','40418hnUQLx'];a34_0x34a8=function(){return _0xad6220;};return a34_0x34a8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0x27122f=a35_0x47b3;(function(_0x3d0911,_0x3badf1){const _0x5d201d=a35_0x47b3,_0x5588b7=_0x3d0911();while(!![]){try{const _0x599749=-parseInt(_0x5d201d(0x21e))/0x1+parseInt(_0x5d201d(0x1fa))/0x2+parseInt(_0x5d201d(0x20c))/0x3+parseInt(_0x5d201d(0x1f7))/0x4*(parseInt(_0x5d201d(0x202))/0x5)+-parseInt(_0x5d201d(0x235))/0x6*(-parseInt(_0x5d201d(0x223))/0x7)+parseInt(_0x5d201d(0x225))/0x8*(parseInt(_0x5d201d(0x231))/0x9)+-parseInt(_0x5d201d(0x23d))/0xa;if(_0x599749===_0x3badf1)break;else _0x5588b7['push'](_0x5588b7['shift']());}catch(_0x1d3500){_0x5588b7['push'](_0x5588b7['shift']());}}}(a35_0x3712,0xbdb3e));function a35_0x47b3(_0x1648d9,_0xa3d2a3){const _0x37128d=a35_0x3712();return a35_0x47b3=function(_0x47b38c,_0x5b785c){_0x47b38c=_0x47b38c-0x1e5;let _0x4b7dd1=_0x37128d[_0x47b38c];return _0x4b7dd1;},a35_0x47b3(_0x1648d9,_0xa3d2a3);}function a35_0x3712(){const _0x2c235e=['hook:','state','parent','1004592rQSAXq','_beforeAll','uuid','vQakR','LZYMu','173509DDdSia','OZumn','1096RFLHkv','TpYng','pid','VksjN','_afterEach','getPlatform','platformVersion','hook','SXLiE','_beforeEach','hookAnalyticsId','__cloud_provider___','62424ZNWdyi','fromEntries','../../../helpers/test-observability/constants','sendPlatformDetails','24TuGxVK','indexOf','YtCBa','suites','split','evVAy','emit','push','16504890sZjlkJ','KXRkf','map_','wbllQ','oMysm','mPHwa','concat','KRyYe','forEach','filter','rYRjj','ofFyr','../../../helpers/testhub/utils','DxsEC','cvsJQ','string','cnRNo','reduce','getCapabilities','js-','2210024riIwbx','SxnUk','LRBKf','1286172vaeimy','toJSON','bs:addPlatformDetails:','HNsFq','unknown_grid','getHookSkippedTests','LTHmx','pending','5qNGKpg','toISOString','lodash','browserstack','GdkYR','kGbZI','getBrowserVersion','../../../helpers/test-observability/utils','MhMjq','get','3561393EhRPMJ','../../../../package.json','getHookDetails','getTestEnv','markedStatus','_afterAll','kMZHc','tests','getHooksForTest','Exception\x20in\x20populating\x20platform\x20details\x20with\x20error\x20:\x20','mapTestHooks','GDXtW','iYFUL','generic','iKBkC'];a35_0x3712=function(){return _0x2c235e;};return a35_0x3712();}const {v4:uuidv4}=require(a35_0x27122f(0x220)),{name,version}=require(a35_0x27122f(0x20d)),logPatcher=require('../../utils/logPatcher'),BSTestOpsPatcher=new logPatcher({}),{debug,isInternalHook,getObservabilityLinkedProductName}=require('../../../helpers/test-observability/utils'),{consoleHolder}=require(a35_0x27122f(0x233)),{getPlatformVersion}=require('../../../helpers/helper'),{shouldProcessEventForTesthub}=require(a35_0x27122f(0x1ef)),{isFunction}=require(a35_0x27122f(0x204)),{patchConsoleLogger}=require(a35_0x27122f(0x209));patchConsoleLogger(),exports[a35_0x27122f(0x20f)]=()=>{const _0x1e02cc=a35_0x27122f,_0x3bca4b={'rYRjj':_0x1e02cc(0x219),'jOJFs':function(_0xcdbca9){return _0xcdbca9();}};return{'ci':_0x3bca4b[_0x1e02cc(0x1ed)],'key':_0x3bca4b['jOJFs'](uuidv4),'version':version,'collector':_0x1e02cc(0x1f6)+name};},exports[a35_0x27122f(0x20e)]=_0x29c262=>{const _0x5135c2=a35_0x27122f,_0x3d40a5={};_0x3d40a5[_0x5135c2(0x212)]=function(_0x1a5719,_0x2509cb){return _0x1a5719!==_0x2509cb;},_0x3d40a5[_0x5135c2(0x1f0)]=_0x5135c2(0x1f2),_0x3d40a5[_0x5135c2(0x1ea)]=function(_0xc6e897,_0x39e21e){return _0xc6e897!==_0x39e21e;},_0x3d40a5[_0x5135c2(0x1f3)]=_0x5135c2(0x21b),_0x3d40a5['iYFUL']=_0x5135c2(0x22c);const _0x590801=_0x3d40a5;if(!_0x29c262||_0x590801[_0x5135c2(0x212)](typeof _0x29c262,_0x590801[_0x5135c2(0x1f0)]))return[null,null];if(_0x590801['KRyYe'](_0x29c262[_0x5135c2(0x236)](_0x590801[_0x5135c2(0x1f3)]),-0x1)){const _0x317f1a=_0x29c262['split'](_0x590801[_0x5135c2(0x1f3)]);return[_0x317f1a[0x0]['slice'](0x0,-0x1)[_0x5135c2(0x239)]('\x22')[0x1],_0x317f1a[0x1]['substring'](0x1)];}else{if(_0x590801[_0x5135c2(0x212)](_0x29c262[_0x5135c2(0x236)](_0x590801['iYFUL']),-0x1)){const _0x4fc520=_0x29c262[_0x5135c2(0x239)](_0x590801[_0x5135c2(0x218)]);return[_0x4fc520[0x0]['slice'](0x0,-0x1)[_0x5135c2(0x239)]('\x22')[0x1],_0x29c262];}}return[null,null];},exports[a35_0x27122f(0x214)]=_0x4b7ef4=>{const _0x4308b8=a35_0x27122f,_0x4f048c={'ofFyr':function(_0x4dd9ad,_0x1825a3){return _0x4dd9ad(_0x1825a3);},'GDXtW':'_beforeAll','vRjIX':_0x4308b8(0x211),'HNsFq':_0x4308b8(0x22e),'OZumn':'_afterEach'};if(!_0x4b7ef4||!_0x4b7ef4['parent'])return[];const _0x1e033c=[];return[_0x4f048c[_0x4308b8(0x217)],_0x4f048c['vRjIX'],_0x4f048c[_0x4308b8(0x1fd)],_0x4f048c[_0x4308b8(0x224)]][_0x4308b8(0x1eb)](_0x215cba=>{const _0x834bd7=_0x4308b8,_0x5f727b={'TpYng':function(_0x2a84b2,_0x7f753a){const _0x582a1c=a35_0x47b3;return _0x4f048c[_0x582a1c(0x1ee)](_0x2a84b2,_0x7f753a);}},_0xbfa3d8=_0x4b7ef4[_0x834bd7(0x21d)][_0x215cba]||[];_0xbfa3d8[_0x834bd7(0x1eb)](_0x5509ec=>{const _0x393ad6=_0x834bd7;_0x5509ec['hookAnalyticsId']&&!_0x5f727b[_0x393ad6(0x226)](isInternalHook,_0x5509ec['fn'])&&_0x1e033c[_0x393ad6(0x23c)](_0x5509ec[_0x393ad6(0x22f)]);});}),[..._0x1e033c,...exports['getHooksForTest'](_0x4b7ef4[_0x4308b8(0x21d)])];},exports['mapTestHooks']=_0x3e8b87=>{const _0x2f3334=a35_0x27122f,_0x16d098={'kGbZI':function(_0x4a881a){return _0x4a881a();},'LTHmx':function(_0x3b565e,_0x4636d1){return _0x3b565e===_0x4636d1;},'SxnUk':_0x2f3334(0x229),'LZYMu':_0x2f3334(0x21f),'gmIBQ':'_afterAll','MhMjq':_0x2f3334(0x22e)};if(!_0x3e8b87||!_0x3e8b87[_0x2f3334(0x21d)])return;[_0x16d098[_0x2f3334(0x222)],_0x16d098['gmIBQ'],_0x16d098[_0x2f3334(0x20a)],_0x16d098[_0x2f3334(0x1f8)]]['forEach'](_0x592190=>{const _0x239d48=_0x2f3334,_0x38b418={'asZXF':function(_0x3b8162){const _0x402488=a35_0x47b3;return _0x16d098[_0x402488(0x207)](_0x3b8162);},'KXRkf':function(_0x3890d2,_0x2adebd){const _0xdfced9=a35_0x47b3;return _0x16d098[_0xdfced9(0x200)](_0x3890d2,_0x2adebd);},'jUQRk':_0x16d098[_0x239d48(0x1f8)]},_0x3f6824=_0x3e8b87[_0x239d48(0x21d)][_0x592190]||[];_0x3f6824[_0x239d48(0x1eb)](_0x49eeeb=>{const _0x304eaf=_0x239d48;if(!_0x49eeeb[_0x304eaf(0x22f)])_0x49eeeb[_0x304eaf(0x22f)]=_0x38b418['asZXF'](uuidv4);else _0x49eeeb['markedStatus']&&_0x38b418[_0x304eaf(0x23e)](_0x592190,_0x38b418['jUQRk'])&&(_0x49eeeb[_0x304eaf(0x22f)]=_0x38b418['asZXF'](uuidv4),delete _0x49eeeb[_0x304eaf(0x210)]);});}),exports[_0x2f3334(0x216)](_0x3e8b87[_0x2f3334(0x21d)]);},exports[a35_0x27122f(0x234)]=async(_0xdea8b2,_0x9e612d)=>{const _0x361c5a=a35_0x27122f,_0x45882b={'iKBkC':function(_0x5012c6){return _0x5012c6();},'YtCBa':function(_0x41258f,_0x1fe319){return _0x41258f(_0x1fe319);},'mPHwa':_0x361c5a(0x22b),'gVdRx':function(_0x21a571,_0x5d3f2b){return _0x21a571===_0x5d3f2b;},'vQakR':_0x361c5a(0x205),'BLGom':_0x361c5a(0x1fe),'GdkYR':'TEST_PLATFORM','evVAy':function(_0x1fab30,_0x34ecc5){return _0x1fab30(_0x34ecc5);}};try{if(!_0x45882b[_0x361c5a(0x21a)](shouldProcessEventForTesthub))return;const _0x48ebc3=await _0xdea8b2[_0x361c5a(0x1f5)](),_0x58972e=await _0xdea8b2['getSession'](),_0x424a6b={},_0xd58d12=Object[_0x361c5a(0x232)](_0x58972e['getCapabilities']()[_0x361c5a(0x1e5)]),_0x450ab8={'product':_0x45882b[_0x361c5a(0x237)](getObservabilityLinkedProductName,_0xd58d12),'capabilities':_0xd58d12,'platform':_0x48ebc3[_0x361c5a(0x22a)](),'platform_version':_0x48ebc3[_0x361c5a(0x20b)](_0x45882b[_0x361c5a(0x1e8)])?_0x48ebc3[_0x361c5a(0x20b)](_0x45882b[_0x361c5a(0x1e8)]):_0x45882b[_0x361c5a(0x237)](getPlatformVersion,_0x45882b['gVdRx'](global[_0x361c5a(0x230)],_0x45882b[_0x361c5a(0x221)])),'browser':_0x48ebc3['getBrowserName'](),'browser_version':_0x48ebc3[_0x361c5a(0x208)](),'session_id':_0x58972e[_0x361c5a(0x1fb)]()};global['__cloud_provider___']?_0x424a6b[global[_0x361c5a(0x230)]]=_0x450ab8:_0x424a6b[_0x45882b['BLGom']]=_0x450ab8,process[_0x361c5a(0x23b)](_0x361c5a(0x1fc)+process[_0x361c5a(0x227)],{'timestamp':new Date()[_0x361c5a(0x203)](),'level':null,'message':null,'kind':_0x45882b[_0x361c5a(0x206)],'http_response':_0x424a6b,'uuid':_0x9e612d});}catch(_0x4e1422){_0x45882b[_0x361c5a(0x23a)](debug,_0x361c5a(0x215)+_0x4e1422);}},exports[a35_0x27122f(0x1ff)]=_0xd82a06=>{const _0x5b1aa3=a35_0x27122f,_0x26d41f={};_0x26d41f[_0x5b1aa3(0x1e7)]=function(_0x20a492,_0x4d483a){return _0x20a492!==_0x4d483a;},_0x26d41f[_0x5b1aa3(0x1f1)]='hook',_0x26d41f[_0x5b1aa3(0x1f9)]=function(_0x3e8fa2,_0x3e1cd7){return _0x3e8fa2!==_0x3e1cd7;},_0x26d41f['VksjN']='passed',_0x26d41f[_0x5b1aa3(0x1e6)]=function(_0x52672a,_0x1a0663){return _0x52672a!==_0x1a0663;},_0x26d41f[_0x5b1aa3(0x22d)]='failed';const _0x4d741d=_0x26d41f,_0x30f5c2=_0xd82a06[_0x5b1aa3(0x238)][_0x5b1aa3(0x1f4)]((_0x4866da,_0x3bc36a)=>{const _0x33221=_0x5b1aa3,_0x1dddc0=exports['getHookSkippedTests'](_0x3bc36a);return _0x1dddc0&&(_0x4866da=_0x4866da[_0x33221(0x1e9)](_0x1dddc0)),_0x4866da;},[]),_0x231bc8=_0xd82a06[_0x5b1aa3(0x213)][_0x5b1aa3(0x1ec)](_0x47c6ba=>{const _0x4db8ad=_0x5b1aa3,_0x2ce018=_0x4d741d[_0x4db8ad(0x1e7)](_0x47c6ba['type'],_0x4d741d['cvsJQ'])&&!_0x47c6ba[_0x4db8ad(0x210)]&&_0x4d741d[_0x4db8ad(0x1f9)](_0x47c6ba[_0x4db8ad(0x21c)],_0x4d741d[_0x4db8ad(0x228)])&&_0x4d741d['wbllQ'](_0x47c6ba['state'],_0x4d741d[_0x4db8ad(0x22d)])&&!_0x47c6ba[_0x4db8ad(0x201)];return _0x2ce018;});return _0x231bc8['concat'](_0x30f5c2);};
|
|
@@ -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
|
+
function a36_0x5da3(){const _0x4e31fb=['https:','enRhW','../../helpers/performance/performance-tester','ajsGo',',\x22level\x22:\x20\x22','finally','browserstackTestName','opwGI','percy','mMoRI','setGlobal','Automate\x20test\x20case\x20execution\x20has\x20started.','msaGO','EJALi','nEuVW','SDK_HOOK','afterTest','beforeAll','lseSq','autoScanning','rzKUo','debug','Accessibility\x20scan\x20completed\x20successfully','cUdRj','__platformCaps','command','accessibilityScanStarted','1dMutYE','4780PGvLpe','fJoIh','NMbuw','fBnBA','state','warn','\x22}}','format','error','executeScript','shift','isAccessibilityPlatform','nZFaW','env','VZBJD','921iJuZlo','afterAll','mzyUZ','ObservabilitySync:','./test-observability/mochaUtils','then','getGlobal','Failed:\x20','wJOCe','Accessibility\x20scan\x20failed\x20after\x20retry\x20attempts','JcMBL','qQFIX','GuDgy','Exception\x20in\x20mocha\x20browserstack\x20driver\x20with\x20error:\x20','LBowA','Failed\x20to\x20store\x20session\x20name:\x20','end','sessionName','ENV_VAR','info','now','KlpoA','TTcvv','performScanWithRetry','MhVEw','browserstackSessionName','appium:app','emnPm','../../helpers/logger','Wrqsk','roQRE','start','VahJq','XgvmV','capabilities','plvaN','SESSION_NAME','\x20|\x20','iBVKO','vPVUA','RIjDR','testcase','currentTest','timeout','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','Accessibility\x20results\x20could\x20not\x20be\x20processed\x20for\x20the\x20test\x20case\x20','Exception\x20in\x20mocha\x20process\x20event\x20with\x20error:\x20','BwuvX','GMjIp','sihqA','539392YIBqwa','.\x20Error\x20:','mochaHooks','driverCleanup','cLHZS','length','initQuit','testAnalyticsId','JWOXo','measureWrapper','isArray','973728HeWTfP','__sessionFailed','shouldScanTestForAccessibility','hwYQT','Automate\x20test\x20case\x20execution\x20has\x20ended.\x20Processing\x20for\x20accessibility\x20testing\x20is\x20underway.\x20','Exception\x20in\x20mocha\x20event\x20process\x20with\x20error:\x20','session_','12770dyNpNx','hcvbA','http:','vDYWO','ltUYG','QBtYF','__drivers','2308sQmxLi','startMonitoring','8HpIqYZ','HjFLX','failed','Setup\x20for\x20Accessibility\x20testing\x20has\x20started.\x20Automate\x20test\x20case\x20execution\x20will\x20begin\x20momentarily.','thBuildUuid','quitCount_','nAkOa','gaMHv','Accessibility\x20extension\x20data\x20for\x20current\x20test:\x20','Exception\x20in\x20starting\x20accessibility\x20automation\x20scan\x20for\x20this\x20test\x20case\x20','passed','Failed\x20to\x20save\x20accessibility\x20results\x20after\x20retry\x20attempts','saveAccessibilityResultsWithRetry','UhOFh','eokQH','stringify','UVwUT','index','fjUpx','aBHZF','gEEed','../../helpers/testhub/constants','SYNC','Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20','BROWSERSTACK_TESTHUB_UUID','aeOnP','PlhQW','HgEan','../../helpers/percy/utils','Mocha','winstonLogger','util','err','join','WGGwu','[Accessibility]\x20Auto\x20scan\x20is\x20disabled;\x20skipping\x20final\x20scan\x20and\x20saving\x20current\x20accumulated\x20results','browserstack_executor:\x20{\x22action\x22:\x20\x22setSessionName\x22,\x20\x22arguments\x22:\x20{\x22name\x22:\x20','message','titlePath','MzYda','TpWUh','dkMwu','heOos','bstackA11yShouldScan','protocol','mJObi','rczlA','../../helpers/globals','TwHXJ','uAYzL','2981wbuPde','\x20-\x20','percyCaptureMode','push','Accessibility\x20results\x20saved\x20successfully','zFkNd','462695SjsRKm','__error_messages__','4423446oVghbr','uNRsK','xtDZZ','dAHgf','../../helpers/accessibility-automation/accessibilityRetryHelper','DvKAX','__skipSessionName'];a36_0x5da3=function(){return _0x4e31fb;};return a36_0x5da3();}const a36_0x2b40e0=a36_0x9fa2;(function(_0x4928aa,_0x2724bc){const _0x56b145=a36_0x9fa2,_0xd78189=_0x4928aa();while(!![]){try{const _0x55c86f=parseInt(_0x56b145(0x1e0))/0x1*(-parseInt(_0x56b145(0x1e1))/0x2)+-parseInt(_0x56b145(0x1f0))/0x3*(-parseInt(_0x56b145(0x182))/0x4)+-parseInt(_0x56b145(0x1bc))/0x5+parseInt(_0x56b145(0x174))/0x6+-parseInt(_0x56b145(0x169))/0x7+-parseInt(_0x56b145(0x184))/0x8*(-parseInt(_0x56b145(0x1be))/0x9)+-parseInt(_0x56b145(0x17b))/0xa*(parseInt(_0x56b145(0x1b6))/0xb);if(_0x55c86f===_0x2724bc)break;else _0xd78189['push'](_0xd78189['shift']());}catch(_0x4b2493){_0xd78189['push'](_0xd78189['shift']());}}}(a36_0x5da3,0x4c625));function a36_0x9fa2(_0x563f05,_0x1d1dd5){const _0x5da3e6=a36_0x5da3();return a36_0x9fa2=function(_0x9fa287,_0x37ecbe){_0x9fa287=_0x9fa287-0x14f;let _0x5358a4=_0x5da3e6[_0x9fa287];return _0x5358a4;},a36_0x9fa2(_0x563f05,_0x1d1dd5);}const util=require(a36_0x2b40e0(0x1a3)),{isAccessibilityAutomationSession,shouldScanTestForAccessibility}=require('../../helpers/accessibility-automation/helper'),accessibilityRetryHelper=require(a36_0x2b40e0(0x1c2)),{TEST_FRAMEWORK_HOOK_TIMEOUT}=require('../utils/constants'),{percyAutoCapture}=require(a36_0x2b40e0(0x1a0)),{sendPlatformDetails}=require(a36_0x2b40e0(0x1f4)),{isBrowserstackInfra,markSessionStatus,nestedKeyValue}=require('../../helpers/helper'),PerformanceTester=require(a36_0x2b40e0(0x1c7)),{AUTOMATE_EVENTS:PerformanceAutEvents,O11y_EVENTS:PerformanceO11yEvents,A11Y_EVENTS:PerformanceA11yEvents,EVENTS:PerformanceSdkEvents}=require('../../helpers/performance/constants'),globals=require(a36_0x2b40e0(0x1b3)),logger=require(a36_0x2b40e0(0x153))[a36_0x2b40e0(0x1a2)],{shouldProcessEventForTesthub}=require('../../helpers/testhub/utils'),testHubConstants=require(a36_0x2b40e0(0x199));exports[a36_0x2b40e0(0x16b)]={'beforeAll'(){const _0x215642=a36_0x2b40e0,_0x13f69e={'xTtbr':function(_0x3aeeda,_0x2b584c,_0x141403,_0x3c5f69){return _0x3aeeda(_0x2b584c,_0x141403,_0x3c5f69);},'WtppH':_0x215642(0x186),'lseSq':_0x215642(0x15c),'JWOXo':function(_0x2b9c41,_0x40ffba,_0x5b8fff){return _0x2b9c41(_0x40ffba,_0x5b8fff);},'aBHZF':_0x215642(0x18e),'nAkOa':function(_0x4c26cb){return _0x4c26cb();},'ajsGo':'index','mzyUZ':_0x215642(0x1d6)};PerformanceTester[_0x215642(0x183)]();const _0x12f4df='browserstack internal helper hook';PerformanceTester[_0x215642(0x172)](PerformanceSdkEvents[_0x215642(0x1d4)],()=>{const _0x2403f3=_0x215642;global[_0x2403f3(0x1bd)]=[],global['__sessionFailed']=![],global['driverCleanup']=async()=>{const _0x20ea48=_0x2403f3;let _0x413676=![];try{await global['__drivers'][0x0][_0x20ea48(0x17a)],_0x413676=!![],global[_0x20ea48(0x175)]?await _0x13f69e['xTtbr'](markSessionStatus,global[_0x20ea48(0x181)][0x0],_0x13f69e['WtppH'],global[_0x20ea48(0x1bd)]['join'](_0x13f69e[_0x20ea48(0x1d7)])):await _0x13f69e[_0x20ea48(0x171)](markSessionStatus,global[_0x20ea48(0x181)][0x0],_0x13f69e[_0x20ea48(0x197)]);}catch(_0x253f42){logger['debug'](_0x20ea48(0x1fd)+_0x253f42);}global['__error_messages__']=[],global[_0x20ea48(0x175)]=![];if(_0x413676)try{try{_0x13f69e[_0x20ea48(0x18a)](shouldProcessEventForTesthub)&&(global[_0x20ea48(0x181)][0x0]&&await _0x13f69e[_0x20ea48(0x171)](sendPlatformDetails,global[_0x20ea48(0x181)][0x0],this[_0x20ea48(0x161)]?this['currentTest'][_0x20ea48(0x170)]:null));}catch(_0x2a17f8){logger[_0x20ea48(0x1da)](_0x20ea48(0x179)+_0x2a17f8);}await global[_0x20ea48(0x181)][0x0][_0x20ea48(0x16f)]();}catch(_0xa1c250){logger[_0x20ea48(0x1da)](_0x20ea48(0x19b)+_0xa1c250);}};},{'platform':_0x13f69e['JWOXo'](nestedKeyValue,global['__platformCaps'],[_0x13f69e[_0x215642(0x1c8)]]),'hookType':_0x13f69e[_0x215642(0x1f2)]})();},'beforeEach'(_0x5cf7ed){const _0x57bade=a36_0x2b40e0,_0x55cd73={'BwuvX':function(_0x54ed2a){return _0x54ed2a();},'VZBJD':function(_0x7a9e1b,_0x432db7){return _0x7a9e1b>_0x432db7;},'TpWUh':function(_0x2fe4c8,_0x564d23){return _0x2fe4c8>_0x564d23;},'KlpoA':_0x57bade(0x1b7),'WGGwu':function(_0x199fec,_0xf58629,_0xc8626a){return _0x199fec(_0xf58629,_0xc8626a);},'cLHZS':function(_0x127fd0,_0x35e279){return _0x127fd0===_0x35e279;},'dOWET':_0x57bade(0x1af),'BHVQG':'bstackA11yScanOptions','PlhQW':function(_0x564bc5){return _0x564bc5();},'fJoIh':'isAccessibilityPlatform','aeOnP':_0x57bade(0x17d),'LBowA':_0x57bade(0x1c5),'RDPUd':_0x57bade(0x187),'rzKUo':_0x57bade(0x1d0),'fBnBA':function(_0x34abc1){return _0x34abc1();},'NMbuw':_0x57bade(0x1cb),'MhVEw':_0x57bade(0x195),'dAHgf':'beforeEach'};globals[_0x57bade(0x1cf)](_0x55cd73[_0x57bade(0x1e3)],this[_0x57bade(0x161)][_0x57bade(0x1aa)]()[_0x57bade(0x1a5)](_0x55cd73[_0x57bade(0x205)])),PerformanceTester[_0x57bade(0x172)](PerformanceSdkEvents[_0x57bade(0x1d4)],()=>{const _0x66b220=_0x57bade,_0x5a1031={'uNRsK':function(_0x4a2451,_0x477061){const _0x3a38fd=a36_0x9fa2;return _0x55cd73[_0x3a38fd(0x1ef)](_0x4a2451,_0x477061);},'vPVUA':function(_0xfb9801,_0x1190c6){const _0x447cc9=a36_0x9fa2;return _0x55cd73[_0x447cc9(0x1ac)](_0xfb9801,_0x1190c6);},'MzYda':_0x55cd73[_0x66b220(0x205)],'roQRE':function(_0x3f39fb,_0x33b9ff,_0x4f84bb){return _0x55cd73['WGGwu'](_0x3f39fb,_0x33b9ff,_0x4f84bb);},'xtDZZ':function(_0x3d163e,_0x8ea4ee){const _0x272a1b=_0x66b220;return _0x55cd73[_0x272a1b(0x16d)](_0x3d163e,_0x8ea4ee);},'cUdRj':_0x55cd73['dOWET'],'dkMwu':_0x55cd73['BHVQG'],'hOIYl':function(_0x30a7df){const _0x2baac0=_0x66b220;return _0x55cd73[_0x2baac0(0x19e)](_0x30a7df);},'iBVKO':function(_0x1f46d3,_0x4df245){const _0x569a64=_0x66b220;return _0x55cd73[_0x569a64(0x1ac)](_0x1f46d3,_0x4df245);},'HjFLX':_0x55cd73[_0x66b220(0x1e2)],'RtBaR':_0x55cd73[_0x66b220(0x19d)],'ezNJf':_0x55cd73[_0x66b220(0x1fe)],'TUiki':_0x55cd73['RDPUd'],'fjUpx':_0x55cd73[_0x66b220(0x1d9)],'uJXHg':function(_0x2fcc16){const _0x5b2b78=_0x66b220;return _0x55cd73[_0x5b2b78(0x1e4)](_0x2fcc16);}},_0x433c19='browserstack internal helper hook';new Promise(async _0x4eb029=>{const _0x3304a6=_0x66b220;let _0x169dc5=!![];try{_0x5a1031[_0x3304a6(0x1bf)](global[_0x3304a6(0x181)]['length'],0x1)&&(await global['driverCleanup'](),global['__drivers'][_0x3304a6(0x1eb)]()),_0x5a1031[_0x3304a6(0x15e)](global[_0x3304a6(0x181)][0x0][_0x3304a6(0x189)],0x0)&&(_0x169dc5=![],await global[_0x3304a6(0x16c)]());}catch(_0x442ef1){logger[_0x3304a6(0x1da)]('Exception\x20in\x20mocha\x20driver\x20with\x20error:\x20'+_0x442ef1);}try{Array['isArray'](global[_0x3304a6(0x181)])&&global['__drivers'][0x0]&&(global['__drivers'][0x0][_0x3304a6(0x150)]=this['currentTest'][_0x3304a6(0x1aa)]()[_0x3304a6(0x1a5)](_0x5a1031[_0x3304a6(0x1ab)])),global[_0x3304a6(0x150)]=this['currentTest']['titlePath']()[_0x3304a6(0x1a5)](_0x5a1031[_0x3304a6(0x1ab)]);}catch(_0x47db7e){logger[_0x3304a6(0x1da)](_0x3304a6(0x1ff)+_0x47db7e);}this['currentTest'][_0x3304a6(0x176)]=_0x5a1031[_0x3304a6(0x155)](shouldScanTestForAccessibility,this[_0x3304a6(0x161)][_0x3304a6(0x1aa)](),!![]);let _0x385695=!![];try{const _0x29fd17=JSON['parse'](process['env'][_0x3304a6(0x163)]||'{}');_0x5a1031[_0x3304a6(0x1c0)](_0x29fd17[_0x3304a6(0x1d8)],![])&&(_0x385695=![]);}catch(_0x45fc60){logger[_0x3304a6(0x1da)]('Error\x20parsing\x20autoScanning\x20config,\x20using\x20default\x20(true):\x20'+_0x45fc60[_0x3304a6(0x1a9)]);}const _0x1bef5b=_0x385695&&this[_0x3304a6(0x161)]['shouldScanTestForAccessibility'];globals['setGlobal'](_0x5a1031[_0x3304a6(0x1dc)],_0x1bef5b),globals[_0x3304a6(0x1cf)](_0x5a1031[_0x3304a6(0x1ad)],null),this[_0x3304a6(0x161)][_0x3304a6(0x1df)]=this[_0x3304a6(0x161)]['shouldScanTestForAccessibility'];if(_0x5a1031['hOIYl'](isAccessibilityAutomationSession)&&_0x169dc5&&Array[_0x3304a6(0x173)](global[_0x3304a6(0x181)])&&_0x5a1031[_0x3304a6(0x15d)](global[_0x3304a6(0x181)][_0x3304a6(0x16e)],0x0)&&globals['getGlobal'](_0x5a1031[_0x3304a6(0x185)]))try{const _0x1feaf5=await global[_0x3304a6(0x181)][0x0][_0x3304a6(0x17a)];if(_0x1feaf5){let _0x34e1ef=!![];const _0xff1983=await global[_0x3304a6(0x181)][0x0]['getCurrentUrl']();let _0x109835;try{_0x109835=new URL(_0xff1983);}catch(_0x1769fb){_0x34e1ef=![];}_0x34e1ef=_0x5a1031['xtDZZ'](_0x109835[_0x3304a6(0x1b0)],_0x5a1031['RtBaR'])||_0x5a1031[_0x3304a6(0x1c0)](_0x109835[_0x3304a6(0x1b0)],_0x5a1031['ezNJf']),_0x34e1ef&&(this[_0x3304a6(0x161)][_0x3304a6(0x176)]&&logger['info'](_0x5a1031['TUiki'])),this[_0x3304a6(0x161)][_0x3304a6(0x1df)]=this['currentTest'][_0x3304a6(0x176)],_0x1bef5b&&logger[_0x3304a6(0x203)](_0x5a1031[_0x3304a6(0x196)]);}}catch(_0x4a10de){logger[_0x3304a6(0x1e9)](_0x3304a6(0x18d)+util[_0x3304a6(0x1e8)](_0x4a10de));}_0x5a1031['uJXHg'](_0x4eb029);})[_0x66b220(0x1f5)](()=>{const _0x8c7911=_0x66b220;_0x55cd73[_0x8c7911(0x166)](_0x5cf7ed);});},{'platform':_0x55cd73[_0x57bade(0x1a6)](nestedKeyValue,global['__platformCaps'],[_0x55cd73[_0x57bade(0x14f)]]),'hookType':_0x55cd73[_0x57bade(0x1c1)]})();},'afterEach'(_0x2a4b7a){const _0x1c377c=a36_0x2b40e0,_0xfcb2bc={'vDYWO':_0x1c377c(0x1b7),'ElwEh':function(_0xc93de6,_0x201a5f){return _0xc93de6!==_0x201a5f;},'DlrEB':_0x1c377c(0x18e),'qQFIX':function(_0xdf893d,_0x4a1275,_0x2988e0){return _0xdf893d(_0x4a1275,_0x2988e0);},'LUIpR':function(_0x4816ce,_0x3b3097){return _0x4816ce+_0x3b3097;},'VahJq':_0x1c377c(0x1f7),'Wrqsk':_0x1c377c(0x1e9),'dUtuq':'Passed','zFkNd':_0x1c377c(0x203),'GuDgy':function(_0x569330,_0x176602){return _0x569330>_0x176602;},'TTcvv':function(_0x61c35d,_0x24876a){return _0x61c35d===_0x24876a;},'HgEan':_0x1c377c(0x160),'hwYQT':_0x1c377c(0x151),'nEuVW':function(_0x5bd2db,_0x2d7ad3,_0x238c2c,_0x4e7473){return _0x5bd2db(_0x2d7ad3,_0x238c2c,_0x4e7473);},'uAYzL':_0x1c377c(0x1ec),'gsirj':_0x1c377c(0x178),'FQbam':'bstackA11yShouldScan','tDFsz':'Performing\x20accessibility\x20scan\x20with\x20retry\x20logic\x20before\x20saving\x20results','XgvmV':_0x1c377c(0x1d5),'oZAnK':_0x1c377c(0x1db),'qLPyA':_0x1c377c(0x1f9),'TwHXJ':_0x1c377c(0x1a7),'rczlA':_0x1c377c(0x1ba),'QaIZe':_0x1c377c(0x18f),'msaGO':'Accessibility\x20testing\x20for\x20this\x20test\x20case\x20has\x20ended.','gEEed':function(_0x3175ac){return _0x3175ac();},'plvaN':function(_0x9c4071,_0x28d6e4,_0x5034a2){return _0x9c4071(_0x28d6e4,_0x5034a2);},'mMoRI':function(_0x359a14,_0x1554db,_0x2e7d27){return _0x359a14(_0x1554db,_0x2e7d27);},'UhOFh':_0x1c377c(0x1da),'emnPm':function(_0x3259e3){return _0x3259e3();},'hcvbA':_0x1c377c(0x1a1),'EJALi':function(_0x7afc50,_0x3a65ce,_0x28f6de){return _0x7afc50(_0x3a65ce,_0x28f6de);},'eokQH':_0x1c377c(0x195),'gaMHv':'afterEach'},_0x1ae1c8='browserstack internal helper hook';this[_0x1c377c(0x162)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0xfcb2bc[_0x1c377c(0x17c)]]),global[_0x1c377c(0x201)]=this[_0x1c377c(0x161)][_0x1c377c(0x1aa)]()[_0x1c377c(0x1a5)](_0xfcb2bc[_0x1c377c(0x17e)]),PerformanceTester['measureWrapper'](PerformanceSdkEvents['SDK_HOOK'],()=>{const _0x349631=async(_0x11bc32,_0x2642b6)=>{const _0x8aff1e=a36_0x9fa2;await global['__drivers'][0x0][_0x8aff1e(0x1ea)]('browserstack_executor:\x20{\x22action\x22:\x20\x22annotate\x22,\x20\x22arguments\x22:\x20{\x22data\x22:'+_0x11bc32+_0x8aff1e(0x1c9)+_0x2642b6+_0x8aff1e(0x1e7));};new Promise(async _0x7724f5=>{const _0x126fe2=a36_0x9fa2,_0x5ca780={'nZFaW':_0xfcb2bc['vDYWO'],'RIjDR':function(_0x5b210e,_0x45cca4){return _0xfcb2bc['ElwEh'](_0x5b210e,_0x45cca4);},'enRhW':_0xfcb2bc['DlrEB'],'QBtYF':function(_0x17bbd8,_0x2c0c96,_0x3cb580){return _0xfcb2bc['qQFIX'](_0x17bbd8,_0x2c0c96,_0x3cb580);},'opwGI':function(_0x5406b4,_0x3bbea8){return _0xfcb2bc['LUIpR'](_0x5406b4,_0x3bbea8);},'GMjIp':_0xfcb2bc[_0x126fe2(0x157)],'sihqA':_0xfcb2bc[_0x126fe2(0x154)],'JcMBL':function(_0x37fffb,_0x1acab5,_0x597d94){const _0x157d3f=_0x126fe2;return _0xfcb2bc[_0x157d3f(0x1fb)](_0x37fffb,_0x1acab5,_0x597d94);},'mJObi':_0xfcb2bc['dUtuq'],'vShdn':_0xfcb2bc[_0x126fe2(0x1bb)]};try{_0xfcb2bc[_0x126fe2(0x1fc)](global['__drivers'][_0x126fe2(0x16e)],0x1)&&(await global[_0x126fe2(0x16c)](),global['__drivers'][_0x126fe2(0x1eb)](),global[_0x126fe2(0x1bd)]=[],global[_0x126fe2(0x175)]=![]);try{if(global[_0x126fe2(0x1cd)]&&_0xfcb2bc[_0x126fe2(0x206)](global[_0x126fe2(0x1b8)],_0xfcb2bc[_0x126fe2(0x19f)])&&global[_0x126fe2(0x181)][0x0]){const _0x42e7fc=_0xfcb2bc['GuDgy'](global[_0x126fe2(0x159)][_0x126fe2(0x16e)],0x0)?!!global[_0x126fe2(0x159)][0x0]['app']||!!global[_0x126fe2(0x159)][0x0][_0xfcb2bc[_0x126fe2(0x177)]]:![],_0x203ca4={};_0x203ca4['app']=_0x42e7fc,await _0xfcb2bc[_0x126fe2(0x1d3)](percyAutoCapture,global['__drivers'][0x0],_0xfcb2bc[_0x126fe2(0x19f)],_0x203ca4);}}catch(_0x8955a2){logger[_0x126fe2(0x1da)]('Exception\x20in\x20mocha\x20browserstack\x20percy\x20with\x20error:\x20'+_0x8955a2);}!global[_0x126fe2(0x1c4)]&&(await PerformanceTester['measureWrapper'](PerformanceAutEvents[_0x126fe2(0x15b)],async()=>{const _0x3b6504=_0x126fe2;await global[_0x3b6504(0x181)][0x0]['executeScript'](_0x3b6504(0x1a8)+JSON[_0x3b6504(0x193)](this[_0x3b6504(0x161)][_0x3b6504(0x1aa)]()[_0x3b6504(0x1a5)](_0x5ca780[_0x3b6504(0x1ed)]))+'}}');})(),global['__drivers'][0x0]['sessionNameSet__']=!![]),await PerformanceTester['measureWrapper'](PerformanceAutEvents['SESSION_STATUS'],async()=>{const _0x330469=_0x126fe2,_0x4d0279=_0x5ca780[_0x330469(0x15f)](this[_0x330469(0x161)][_0x330469(0x1e5)],_0x5ca780[_0x330469(0x1c6)]);_0x4d0279?(global[_0x330469(0x175)]=!![],global[_0x330469(0x1bd)][_0x330469(0x1b9)](this[_0x330469(0x161)][_0x330469(0x1a4)]['message']),await _0x5ca780[_0x330469(0x180)](_0x349631,JSON[_0x330469(0x193)](_0x5ca780[_0x330469(0x1cc)](_0x5ca780[_0x330469(0x167)],this[_0x330469(0x161)][_0x330469(0x1a4)]['message'])),_0x5ca780[_0x330469(0x168)])):await _0x5ca780[_0x330469(0x1fa)](_0x349631,JSON[_0x330469(0x193)](_0x5ca780[_0x330469(0x1b1)]),_0x5ca780['vShdn']);})();}catch(_0x4eb9d7){logger[_0x126fe2(0x1da)]('Exception\x20in\x20browserstack\x20internal\x20helper\x20hook\x20with\x20error:\x20'+_0x4eb9d7);}try{if(this['currentTest'][_0x126fe2(0x1df)]&&globals['getGlobal'](_0xfcb2bc[_0x126fe2(0x1b5)])){logger[_0x126fe2(0x203)](_0xfcb2bc['gsirj']);const _0x50b0fb={};_0x50b0fb['thTestRunUuid']=this[_0x126fe2(0x161)][_0x126fe2(0x170)],_0x50b0fb[_0x126fe2(0x188)]=process[_0x126fe2(0x1ee)][testHubConstants[_0x126fe2(0x202)][_0x126fe2(0x19c)]],_0x50b0fb['thJwtToken']=process[_0x126fe2(0x1ee)][testHubConstants[_0x126fe2(0x202)]['BROWSERSTACK_TESTHUB_JWT']];const _0x437fdc=_0x50b0fb;logger[_0x126fe2(0x1da)](_0x126fe2(0x18c)+JSON[_0x126fe2(0x193)](_0x437fdc));if(globals[_0x126fe2(0x1f6)](_0xfcb2bc['FQbam'])){logger['debug'](_0xfcb2bc['tDFsz']);const _0x8d8671={};_0x8d8671[_0x126fe2(0x1de)]=_0xfcb2bc[_0x126fe2(0x158)];const _0x428d26=await PerformanceTester[_0x126fe2(0x172)](PerformanceA11yEvents['PERFORM_SCAN'],async()=>{const _0x3236ac=_0x126fe2;return await accessibilityRetryHelper[_0x3236ac(0x207)](global[_0x3236ac(0x181)][0x0],global[_0x3236ac(0x150)]);},_0x8d8671)();_0x428d26?logger[_0x126fe2(0x1da)](_0xfcb2bc['oZAnK']):logger[_0x126fe2(0x1e6)](_0xfcb2bc['qLPyA']);}else logger[_0x126fe2(0x1da)](_0xfcb2bc[_0x126fe2(0x1b4)]);const _0x5ec78b=await PerformanceTester[_0x126fe2(0x172)](PerformanceA11yEvents['SAVE_RESULTS'],async()=>{const _0x957525=_0x126fe2;return await accessibilityRetryHelper[_0x957525(0x190)](global[_0x957525(0x181)][0x0],_0x437fdc);})();_0x5ec78b?logger[_0x126fe2(0x1da)](_0xfcb2bc[_0x126fe2(0x1b2)]):logger['warn'](_0xfcb2bc['QaIZe']),logger[_0x126fe2(0x203)](_0xfcb2bc[_0x126fe2(0x1d1)]);}}catch(_0x1ba711){logger['error'](_0x126fe2(0x164)+this[_0x126fe2(0x161)][_0x126fe2(0x1aa)]()+_0x126fe2(0x16a),_0x1ba711);}try{try{if(_0xfcb2bc[_0x126fe2(0x198)](shouldProcessEventForTesthub)){global[_0x126fe2(0x181)][0x0]&&await _0xfcb2bc[_0x126fe2(0x15a)](sendPlatformDetails,global[_0x126fe2(0x181)][0x0],this[_0x126fe2(0x161)]?this[_0x126fe2(0x161)][_0x126fe2(0x170)]:null);if(_0xfcb2bc[_0x126fe2(0x198)](isBrowserstackInfra)){PerformanceTester[_0x126fe2(0x156)](PerformanceO11yEvents[_0x126fe2(0x19a)]);const _0x1a40a4=_0x126fe2(0x1f3)+Date[_0x126fe2(0x204)]();await _0xfcb2bc[_0x126fe2(0x1ce)](_0x349631,JSON['stringify'](_0x1a40a4),_0xfcb2bc[_0x126fe2(0x191)]),PerformanceTester['end'](PerformanceO11yEvents['SYNC']);}}}catch(_0x1b296f){logger[_0x126fe2(0x1da)](_0x126fe2(0x165)+_0x1b296f),PerformanceTester[_0x126fe2(0x200)](PerformanceO11yEvents[_0x126fe2(0x19a)],![],_0x1b296f);}_0xfcb2bc[_0x126fe2(0x1fc)](global[_0x126fe2(0x181)][0x0]['quitCount_'],0x0)&&await global[_0x126fe2(0x16c)]();}catch(_0x597274){logger['debug'](_0x126fe2(0x19b)+_0x597274);}_0xfcb2bc['emnPm'](_0x7724f5);})['then'](()=>{const _0x167ac6=a36_0x9fa2;_0xfcb2bc[_0x167ac6(0x152)](_0x2a4b7a);});},{'platform':_0xfcb2bc[_0x1c377c(0x1d2)](nestedKeyValue,global[_0x1c377c(0x1dd)],[_0xfcb2bc[_0x1c377c(0x192)]]),'hookType':_0xfcb2bc[_0x1c377c(0x18b)]})();},'afterAll'(_0x4f4fdd){const _0x3b91a4=a36_0x2b40e0,_0x4185be={'PdMqc':function(_0x5bc9c2){return _0x5bc9c2();},'DvKAX':_0x3b91a4(0x1a1),'heOos':function(_0x4f0ec3,_0x4e8e57,_0x125d74){return _0x4f0ec3(_0x4e8e57,_0x125d74);},'UVwUT':_0x3b91a4(0x195),'ltUYG':_0x3b91a4(0x1f1)},_0x52633a='browserstack internal helper hook';this[_0x3b91a4(0x162)](TEST_FRAMEWORK_HOOK_TIMEOUT[_0x4185be[_0x3b91a4(0x1c3)]]),PerformanceTester[_0x3b91a4(0x172)](PerformanceSdkEvents[_0x3b91a4(0x1d4)],()=>{const _0x22031b=_0x3b91a4,_0x590402={'wJOCe':function(_0x419866){return _0x4185be['PdMqc'](_0x419866);}};new Promise(async _0x5bf65f=>{const _0x3b0847=a36_0x9fa2;await global[_0x3b0847(0x16c)](),_0x590402[_0x3b0847(0x1f8)](_0x5bf65f);})[_0x22031b(0x1f5)]()[_0x22031b(0x1ca)](()=>{_0x4185be['PdMqc'](_0x4f4fdd);});},{'platform':_0x4185be[_0x3b91a4(0x1ae)](nestedKeyValue,global[_0x3b91a4(0x1dd)],[_0x4185be[_0x3b91a4(0x194)]]),'hookType':_0x4185be[_0x3b91a4(0x17f)]})();}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
2
|
+
'use strict';const a37_0x22a27e=a37_0x596d;(function(_0x46aa6f,_0x3aa194){const _0x3f578f=a37_0x596d,_0x48c007=_0x46aa6f();while(!![]){try{const _0x3ddb80=parseInt(_0x3f578f(0x19a))/0x1+-parseInt(_0x3f578f(0x18a))/0x2*(-parseInt(_0x3f578f(0x190))/0x3)+parseInt(_0x3f578f(0x182))/0x4+parseInt(_0x3f578f(0x187))/0x5*(parseInt(_0x3f578f(0x1b6))/0x6)+parseInt(_0x3f578f(0x191))/0x7*(-parseInt(_0x3f578f(0x18c))/0x8)+parseInt(_0x3f578f(0x1aa))/0x9+-parseInt(_0x3f578f(0x181))/0xa;if(_0x3ddb80===_0x3aa194)break;else _0x48c007['push'](_0x48c007['shift']());}catch(_0x2710bd){_0x48c007['push'](_0x48c007['shift']());}}}(a37_0x52be,0xa1eb1));const fs=require('fs'),path=require(a37_0x22a27e(0x183)),{spawn}=require(a37_0x22a27e(0x19e)),logger=require(a37_0x22a27e(0x17b))[a37_0x22a27e(0x185)],{default:BrowserStackSetup}=require(a37_0x22a27e(0x174)),helper=require(a37_0x22a27e(0x1b2)),constants=require('../utils/constants'),getUserNightwatchConfigs=(_0x28c4a6,_0x3ddf39)=>{const _0x171fc1=a37_0x22a27e,_0x177e3d={'YUQSy':_0x171fc1(0x17a),'bOqvQ':'nightwatch.json','oCMiW':function(_0x4c8cfe,_0x5703c0){return _0x4c8cfe(_0x5703c0);},'TIfrA':_0x171fc1(0x186)};let _0x46572a=null,_0x4256b9={};const _0x4b9bcc=_0x3ddf39[_0x171fc1(0x1b3)](_0x5a860f=>_0x5a860f==='--config');if(!helper[_0x171fc1(0x196)](_0x28c4a6['config'])&&fs[_0x171fc1(0x1a8)](path[_0x171fc1(0x1af)](process[_0x171fc1(0x1ab)](),_0x28c4a6[_0x171fc1(0x18b)])))_0x46572a=path['join'](process['cwd'](),_0x28c4a6[_0x171fc1(0x18b)]),_0x3ddf39['splice'](_0x4b9bcc,0x2);else{if(fs[_0x171fc1(0x1a8)](path['join'](process[_0x171fc1(0x1ab)](),_0x177e3d[_0x171fc1(0x17f)])))_0x46572a=path[_0x171fc1(0x1af)](process[_0x171fc1(0x1ab)](),_0x177e3d['YUQSy']);else fs[_0x171fc1(0x1a8)](path[_0x171fc1(0x1af)](process['cwd'](),_0x177e3d[_0x171fc1(0x1b1)]))&&(_0x46572a=path['join'](process[_0x171fc1(0x1ab)](),_0x177e3d['bOqvQ']));}return _0x46572a?(logger['info']('Getting\x20your\x20nightwatch\x20configs\x20from\x20'+_0x46572a),_0x4256b9=_0x177e3d[_0x171fc1(0x17c)](require,_0x46572a)):logger[_0x171fc1(0x199)](_0x177e3d['TIfrA']),_0x4256b9;},removeExistingEnvs=_0x4570a6=>{const _0x4e16bb=a37_0x22a27e,_0x13c2a4={};_0x13c2a4['eTMkH']=function(_0x530251,_0x48addf){return _0x530251>_0x48addf;},_0x13c2a4[_0x4e16bb(0x1ac)]=function(_0x39a53d,_0x2f5c1a){return _0x39a53d>_0x2f5c1a;};const _0x428ee3=_0x13c2a4;let _0x2cc761=_0x4570a6[_0x4e16bb(0x1b3)](_0xe3694c=>_0xe3694c==='--env');_0x428ee3[_0x4e16bb(0x1b5)](_0x2cc761,-0x1)&&_0x4570a6[_0x4e16bb(0x17d)](_0x2cc761,0x2),_0x2cc761=_0x4570a6[_0x4e16bb(0x1b3)](_0x1a2fef=>_0x1a2fef==='-e'),_0x428ee3[_0x4e16bb(0x1ac)](_0x2cc761,-0x1)&&_0x4570a6['splice'](_0x2cc761,0x2);};function a37_0x596d(_0x4c21bc,_0x4bea7a){const _0x52becd=a37_0x52be();return a37_0x596d=function(_0x596d0d,_0x499fd3){_0x596d0d=_0x596d0d-0x174;let _0x1a7a5b=_0x52becd[_0x596d0d];return _0x1a7a5b;},a37_0x596d(_0x4c21bc,_0x4bea7a);}function run(_0x1c6440,_0x5bd479,_0x4f36a9){const _0x137565=a37_0x22a27e,_0x1ed687={'yRhzC':'nightwatch','jLTnu':function(_0x1ca36c,_0x31dc8f){return _0x1ca36c+_0x31dc8f;},'CaCCy':_0x137565(0x1ae),'SZewa':function(_0x3792d2,_0x4b4420,_0x20dc65){return _0x3792d2(_0x4b4420,_0x20dc65);},'oDTHp':_0x137565(0x1a5),'MqIcY':_0x137565(0x188),'ZsfSj':function(_0x58e43c,_0x412312){return _0x58e43c===_0x412312;},'qdOyt':_0x137565(0x19d),'iuVcC':function(_0x2c18a9,_0x43c57e){return _0x2c18a9(_0x43c57e);},'RWKrz':function(_0x370cdd,_0x889bc1,_0x58d0ec,_0x3dede1){return _0x370cdd(_0x889bc1,_0x58d0ec,_0x3dede1);},'tCSwG':_0x137565(0x19f),'KDHiR':'--config','VOzZv':_0x137565(0x189),'RwWcl':_0x137565(0x19c),'IaJhB':_0x137565(0x1b7)};if(!_0x4f36a9['config'])return;const _0x1c9d9e=_0x1ed687['SZewa'](getUserNightwatchConfigs,_0x1c6440,_0x5bd479),_0x223a7={};_0x223a7['start_process']=![];const _0x5e9034={};_0x5e9034['host']=_0x1ed687[_0x137565(0x177)],_0x5e9034['port']=0x1bb;const _0x4c52c1={};_0x4c52c1[_0x137565(0x18e)]=_0x223a7,_0x4c52c1['selenium']=_0x5e9034;const _0x229b3c=_0x4c52c1;logger[_0x137565(0x199)](_0x1ed687[_0x137565(0x175)]);const _0x2a3c0e={..._0x1c9d9e},_0x18fc83=_0x2a3c0e,_0x385740=helper[_0x137565(0x1a9)](_0x4f36a9[_0x137565(0x18b)]),_0xbbb8e8=[];_0x4f36a9[_0x137565(0x18b)]['platforms'][_0x137565(0x1b4)]((_0x34df23,_0x21bc29)=>{const _0x24a9c7=_0x137565;_0x385740?_0xbbb8e8[_0x24a9c7(0x198)](helper['modifyBrowserStackW3CCaps'](_0x4f36a9[_0x24a9c7(0x18b)],_0x1ed687['yRhzC'],_0x21bc29)):_0xbbb8e8[_0x24a9c7(0x198)](helper['modifyBrowserStackCaps'](_0x4f36a9[_0x24a9c7(0x18b)],_0x1ed687[_0x24a9c7(0x1a3)],_0x21bc29));});const _0x43370a={},_0x471baa=[];_0x1c6440[_0x137565(0x192)]=_0x1c6440[_0x137565(0x192)]||_0x1c6440['e'];const _0x578a86=_0x1c6440[_0x137565(0x192)]?_0x1c6440[_0x137565(0x192)][_0x137565(0x178)]()['split'](',')[_0x137565(0x1a2)](_0x1eef24=>_0x1eef24[_0x137565(0x178)]())[_0x137565(0x1b0)](_0x3029bb=>_0x3029bb!==''):[''];_0x1ed687['ZsfSj'](_0x578a86[_0x137565(0x1a6)],0x0)&&_0x578a86[_0x137565(0x198)]('');_0x578a86[_0x137565(0x1b4)](_0x57e067=>{const _0x2f4980=_0x137565;_0xbbb8e8[_0x2f4980(0x1b4)](_0x257b22=>{const _0x44aa58=_0x2f4980;let _0x52d201=_0x1ed687[_0x44aa58(0x1b8)](helper[_0x44aa58(0x193)](_0x257b22,'_'),'_'+Date[_0x44aa58(0x1ba)]());_0x57e067&&(_0x52d201+='_'+_0x57e067);if(_0x57e067&&(!_0x1c9d9e[_0x1ed687[_0x44aa58(0x194)]]||!_0x1c9d9e[_0x1ed687[_0x44aa58(0x194)]][_0x57e067]))return;const _0x4ff5d8={..._0x229b3c};_0x4ff5d8[_0x44aa58(0x1b9)]=_0x257b22;const _0x5e2ee4=_0x4ff5d8;_0x43370a[_0x52d201]=_0x57e067?helper[_0x44aa58(0x184)](_0x1c9d9e[_0x1ed687[_0x44aa58(0x194)]][_0x57e067],_0x5e2ee4):_0x5e2ee4,_0x471baa['push'](_0x52d201);});});!_0x18fc83['test_settings']&&(_0x18fc83[_0x137565(0x1ae)]={});_0x18fc83[_0x137565(0x1ae)]={..._0x18fc83[_0x137565(0x1ae)],..._0x43370a};const _0x5151a1=path['join'](__dirname,_0x1ed687[_0x137565(0x195)]);fs[_0x137565(0x197)](_0x5151a1,JSON[_0x137565(0x18f)](_0x18fc83)),_0x1ed687[_0x137565(0x17e)](removeExistingEnvs,_0x5bd479);const _0x4fae93=_0x1ed687[_0x137565(0x1a7)](spawn,/^win/['test'](process[_0x137565(0x18d)])?_0x1ed687[_0x137565(0x176)]:_0x1ed687[_0x137565(0x1a3)],[_0x1ed687[_0x137565(0x1ad)],_0x5151a1,..._0x5bd479[_0x137565(0x1a4)](0x1),_0x1ed687['VOzZv'],_0x471baa[_0x137565(0x1af)](',')],{'stdio':_0x1ed687[_0x137565(0x19b)]});_0x4fae93['on'](_0x1ed687[_0x137565(0x1a1)],async _0x32972b=>{const _0x67412a=_0x137565;logger[_0x67412a(0x179)](_0x67412a(0x1a0)+_0x32972b),logger['info'](_0x67412a(0x180)+_0x5151a1),fs['unlinkSync'](_0x5151a1);});}function a37_0x52be(){const _0xe32526=['writeFileSync','push','info','770768kGGqOP','RwWcl','inherit','nightwatch-browserstack.json','child_process','nightwatch.cmd','child\x20process\x20exited\x20with\x20code\x20','IaJhB','map','yRhzC','slice','hub.browserstack.com','length','RWKrz','existsSync','useW3C','2613276nEHeaY','cwd','UAfKT','KDHiR','test_settings','join','filter','bOqvQ','../../helpers/helper','findIndex','forEach','eTMkH','5506278fhswoF','close','jLTnu','desiredCapabilities','now','../../helpers/BrowserStackSetup','MqIcY','tCSwG','oDTHp','trim','debug','nightwatch.conf.js','../../helpers/logger','oCMiW','splice','iuVcC','YUQSy','Deleting\x20','15573340nwiXNq','2400924hFOtAK','path','mergeDeep','winstonLogger','Couldn\x27t\x20find\x20any\x20config\x20file.\x20Generating\x20new\x20config\x20file','5XbEFcj','Adding\x20browserstack\x20configs\x20to\x20run\x20tests\x20on\x20BrowserStack','--env','10866uZObfi','config','1256qOyAhz','platform','webdriver','stringify','354zbtzlX','44569rgMnts','env','getPlatformName','CaCCy','qdOyt','isUndefined'];a37_0x52be=function(){return _0xe32526;};return a37_0x52be();}module['exports']=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_0x5ef071=a38_0x991b;(function(_0x4733e2,_0x4edb95){const _0xadf30c=a38_0x991b,_0x393752=_0x4733e2();while(!![]){try{const _0x5a2bbb=-parseInt(_0xadf30c(0x1c9))/0x1+-parseInt(_0xadf30c(0x1ba))/0x2*(-parseInt(_0xadf30c(0x1ae))/0x3)+parseInt(_0xadf30c(0x188))/0x4+parseInt(_0xadf30c(0x1d7))/0x5+-parseInt(_0xadf30c(0x1f1))/0x6*(-parseInt(_0xadf30c(0x1f9))/0x7)+parseInt(_0xadf30c(0x206))/0x8+parseInt(_0xadf30c(0x1cd))/0x9*(-parseInt(_0xadf30c(0x1c3))/0xa);if(_0x5a2bbb===_0x4edb95)break;else _0x393752['push'](_0x393752['shift']());}catch(_0x39dcfa){_0x393752['push'](_0x393752['shift']());}}}(a38_0x2f1b,0x22b6d));function a38_0x991b(_0x63d00d,_0x4fa695){const _0x2f1baa=a38_0x2f1b();return a38_0x991b=function(_0x991b74,_0x123dba){_0x991b74=_0x991b74-0x187;let _0x1a8359=_0x2f1baa[_0x991b74];return _0x1a8359;},a38_0x991b(_0x63d00d,_0x4fa695);}function a38_0x2f1b(){const _0x51c9b3=['response','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results.','156436rOOZtO','wYBpR','project','browserName','9tMcdqG','KFrFu','eGGFf','accessibilityOptions.includeIssueType.needsReview','getAccessibilityResults','browserstack.accessibility','../../helpers/performance/performance-tester','includePartOfPageScope','][\x20SDK-AUTOMATION\x20]\x20','../../helpers/accessibility-automation/scripts','493325KDPtKk','scannerProcessingTimeout','env','lvGWC','needsReview','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x2094.','measureWrapper','parse','includeIssueType','deviceName','../../helpers/performance/constants','bKmyn','EaSbv','wSnUn','bstackSdkArgs','platformValidation','JsveE','OtjMf','MRdBl','format','ZOICA','ozavG','\x0a\x20\x20\x20\x20})\x0a\x20\x20})(','browser_version','[A11Y]\x20Error\x20logging\x20SDK-AUTOMATION\x20for\x20browserStackEvaluate:\x20','accessibilityOptions','42TVFxtE','uHIBr','accessibilityPlatform','stringify','gbFjk','../../helpers/accessibility-automation/helper','../utils/constants','playwright-chromium','106169GcvLxk','error','DbPXx','(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','command','IAvjD','silly','testInfo','accessibilityOptions.includeIssueType.bestPractice','setAccessibilityCapabilities','znkif','\x20page:\x20','executeScript','1590176JUWiAV','\x0a\x20\x20\x20\x20\x20\x20})\x0a\x20\x20\x20\x20})(','forEach','accessibilityOptions.wcagVersion','body','winstonLogger','wcagVersion','eKgcn','getAccessibilityResultsSummary','BS_A11Y_JWT','latest','browserStackExecuteDriver','string','Platform\x20validation\x20for\x20a11y\x20failed\x20with:\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','JvAwI','keys','PAWqc','parameters','chrome','../../helpers/logger','1082048tpPvmL','request','QfQUs','WebDriver','currentTest','replace','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Desktop\x20browsers.','VWFvt','XqRsL','includes','ahGNl','message','Not\x20a\x20Accessibility\x20Automation\x20session,\x20cannot\x20retrieve\x20Accessibility\x20results\x20summary.','constructor','zdKzd','accessibilityOptions.scannerProcessingTimeout','rYalt','KokDW','No\x20summaryResults\x20found.','wsEndpoint','cKzjx','BelqU','performScan','FuiZp','sdGVE','orVTA','WIhLA','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','HMbNY','debug','No\x20accessibility\x20results\x20were\x20found.','startsWith','url','QitKa','toISOString','warn','VKbSw','accessibilityOptions.scannerVersion','11652akKZtP','UBjji','PERFORM_SCAN','browserStackEvaluate','RUQQE','jZSIB','DbAzW','bestPractice','connectOptions','use','QSZBk','../../helpers/helper','26VdpBJo','iAVrX','find','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','rKlJF','processAccessibilityCaps','Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browser\x20version\x20greater\x20than\x20100.','DQxPa','evaluate','4259850CmVIvV','aXQOK','browser','name'];a38_0x2f1b=function(){return _0x51c9b3;};return a38_0x2f1b();}const util=require('util'),logger=require(a38_0x5ef071(0x187))[a38_0x5ef071(0x20b)],{automationLogger}=require(a38_0x5ef071(0x187)),{isAccessibilityAutomationSession}=require(a38_0x5ef071(0x1f6)),{isUndefined,isBrowserstackInfra}=require(a38_0x5ef071(0x1b9)),scripts=require(a38_0x5ef071(0x1d6)),PerformanceTester=require(a38_0x5ef071(0x1d3)),{A11Y_EVENTS:PerformanceA11yEvents}=require(a38_0x5ef071(0x1e1)),{AUTOMATION_LOG_COMMANDS}=require(a38_0x5ef071(0x1f7));exports['browserStackEvaluate']=async(_0x5d2fd5,_0x327061,_0x9dd11a={})=>{const _0x50483e=a38_0x5ef071,_0xcb15da={};_0xcb15da[_0x50483e(0x1a1)]=_0x50483e(0x1e5),_0xcb15da[_0x50483e(0x1fb)]=function(_0x5bf083,_0x349850){return _0x5bf083===_0x349850;},_0xcb15da['KokDW']=_0x50483e(0x212);const _0x4a1ed1=_0xcb15da,_0x4c35e3=await _0x5d2fd5[_0x50483e(0x1c2)](_0x50483e(0x214)+_0x327061['replace'](/arguments/g,_0x4a1ed1[_0x50483e(0x1a1)])+_0x50483e(0x1ed)+JSON[_0x50483e(0x1f4)](_0x9dd11a)+')');try{if(_0x327061&&_0x4a1ed1[_0x50483e(0x1fb)](typeof _0x327061,_0x4a1ed1[_0x50483e(0x199)])){const _0x519543=AUTOMATION_LOG_COMMANDS[_0x50483e(0x1bc)](_0x530296=>_0x327061[_0x50483e(0x191)](_0x530296));if(_0x519543){const _0x58aed5={};_0x58aed5[_0x50483e(0x1fd)]=_0x519543,_0x58aed5[_0x50483e(0x218)]=[_0x9dd11a];const _0x21269e={};_0x21269e[_0x50483e(0x20a)]=_0x4c35e3;const _0x3b92a8={};_0x3b92a8[_0x50483e(0x189)]=_0x58aed5,_0x3b92a8[_0x50483e(0x1c7)]=_0x21269e,automationLogger[_0x50483e(0x1ff)]('['+new Date()[_0x50483e(0x1aa)]()+_0x50483e(0x1d5)+JSON[_0x50483e(0x1f4)](_0x3b92a8));}}}catch(_0x4f53ec){logger['debug'](_0x50483e(0x1ef)+_0x4f53ec[_0x50483e(0x193)]);}return _0x4c35e3;},exports[a38_0x5ef071(0x211)]=async(_0x33154a,_0x491d73,_0x562d3d={})=>{const _0x5140b4=a38_0x5ef071,_0x2d0b10={};_0x2d0b10['DbAzW']=function(_0x107c44,_0x37e3bc){return _0x107c44===_0x37e3bc;},_0x2d0b10[_0x5140b4(0x1e3)]=_0x5140b4(0x18b),_0x2d0b10[_0x5140b4(0x192)]=function(_0x4ace92,_0x4c672f){return _0x4ace92===_0x4c672f;},_0x2d0b10[_0x5140b4(0x19f)]='Playwright',_0x2d0b10['jixTj']=_0x5140b4(0x1e5);const _0x2590c6=_0x2d0b10;if(_0x2590c6[_0x5140b4(0x1b4)](_0x33154a[_0x5140b4(0x195)][_0x5140b4(0x1c6)],_0x2590c6[_0x5140b4(0x1e3)]))return await _0x33154a['executeAsyncScript'](_0x491d73,_0x562d3d);else{if(_0x2590c6[_0x5140b4(0x192)](_0x33154a[_0x5140b4(0x195)]['name'],_0x2590c6[_0x5140b4(0x19f)]))return await _0x33154a[_0x5140b4(0x205)](_0x5140b4(0x1fc)+_0x491d73[_0x5140b4(0x18d)](/arguments/g,_0x2590c6['jixTj'])+_0x5140b4(0x207)+JSON['stringify'](_0x562d3d)+')');}},exports[a38_0x5ef071(0x202)]=async _0x3e801a=>{const _0x40ba15=a38_0x5ef071,_0x27ed79={};_0x27ed79[_0x40ba15(0x1da)]=_0x40ba15(0x209),_0x27ed79[_0x40ba15(0x1e8)]=_0x40ba15(0x197),_0x27ed79[_0x40ba15(0x18f)]=_0x40ba15(0x201),_0x27ed79[_0x40ba15(0x19d)]=_0x40ba15(0x1d0),_0x27ed79['QfQUs']='accessibilityOptions.authToken',_0x27ed79[_0x40ba15(0x1b8)]=_0x40ba15(0x1ad);const _0x412788=_0x27ed79;_0x3e801a[_0x40ba15(0x1f0)]&&(_0x3e801a['accessibilityOptions']['wcagVersion']&&(_0x3e801a[_0x412788['lvGWC']]=_0x3e801a[_0x40ba15(0x1f0)][_0x40ba15(0x20c)]),_0x3e801a['accessibilityOptions'][_0x40ba15(0x1d8)]&&(_0x3e801a[_0x412788[_0x40ba15(0x1e8)]]=_0x3e801a['accessibilityOptions'][_0x40ba15(0x1d8)]),_0x3e801a['accessibilityOptions'][_0x40ba15(0x1df)]&&(_0x3e801a[_0x412788[_0x40ba15(0x18f)]]=_0x3e801a[_0x40ba15(0x1f0)][_0x40ba15(0x1df)][_0x40ba15(0x1b5)],_0x3e801a[_0x412788['BelqU']]=_0x3e801a['accessibilityOptions']['includeIssueType'][_0x40ba15(0x1db)]));const _0x4929dd=JSON[_0x40ba15(0x1de)](process[_0x40ba15(0x1d9)][_0x40ba15(0x1a3)])['scannerVersion'];_0x3e801a[_0x412788[_0x40ba15(0x18a)]]=process['env'][_0x40ba15(0x20f)],_0x3e801a[_0x412788[_0x40ba15(0x1b8)]]=_0x4929dd,delete _0x3e801a[_0x40ba15(0x1f0)];},exports[a38_0x5ef071(0x1d1)]=async _0x22bfea=>{const _0x1fc4a3=a38_0x5ef071,_0x312376={};_0x312376[_0x1fc4a3(0x1c1)]=_0x1fc4a3(0x1a6),_0x312376[_0x1fc4a3(0x1b2)]=_0x1fc4a3(0x1c8);const _0x3ddddf=_0x312376;if(global[_0x1fc4a3(0x1f3)])try{const details={'url':await _0x22bfea.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(_0x22bfea,scripts.performScan)));},{command:'getAccessibilityResults',...details})();const res=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS,async()=>{return await exports.browserStackEvaluate(_0x22bfea,scripts.getResults);},{...details})();return res;}catch{return logger[_0x1fc4a3(0x1fa)](_0x3ddddf['DQxPa']),[];}else return logger[_0x1fc4a3(0x1ab)](_0x3ddddf[_0x1fc4a3(0x1b2)]),[];},exports['performScan']=async(_0x2cfd71,_0x4d3870='',_0x218da0={})=>{const _0x4ec0c7=a38_0x5ef071;logger[_0x4ec0c7(0x1a5)]('Performing\x20scan\x20with\x20method:\x20'+_0x4d3870+_0x4ec0c7(0x204)+_0x2cfd71);const _0x527e5e={'url':await _0x2cfd71[_0x4ec0c7(0x1a8)](),'testhub_btcer_uuid':global['__workerDetails']?.[_0x4ec0c7(0x18c)]?.['id']};if(global[_0x4ec0c7(0x1f3)])return await PerformanceTester[_0x4ec0c7(0x1dd)](PerformanceA11yEvents[_0x4ec0c7(0x1b0)],async()=>{const _0x183675=_0x4ec0c7,_0x1a48bc={};_0x1a48bc[_0x183675(0x1fd)]=_0x4d3870;const _0x2001a3=_0x1a48bc;_0x218da0&&_0x218da0[_0x183675(0x1d4)]&&(_0x2001a3[_0x183675(0x1d4)]=_0x218da0[_0x183675(0x1d4)]);const _0x276b53=await exports[_0x183675(0x1b1)](_0x2cfd71,scripts[_0x183675(0x19e)],_0x2001a3);return _0x276b53;},{'command':_0x4d3870,..._0x527e5e})();},exports[a38_0x5ef071(0x20e)]=async _0x3b7b2a=>{const _0x4f4b8f=a38_0x5ef071,_0x4f22e7={};_0x4f22e7[_0x4f4b8f(0x1f5)]=_0x4f4b8f(0x19a),_0x4f22e7[_0x4f4b8f(0x1ce)]=_0x4f4b8f(0x194);const _0x1d5294=_0x4f22e7;if(global[_0x4f4b8f(0x1f3)])try{await PerformanceTester.measureWrapper(PerformanceA11yEvents.PERFORM_SCAN,async()=>{logger.debug('Performing scan before getting results summary');logger.debug(util.format(await exports.browserStackEvaluate(_0x3b7b2a,scripts.performScan)));},{command:'getAccessibilityResultsSummary'})();const summaryResults=await PerformanceTester.measureWrapper(PerformanceA11yEvents.GET_RESULTS_SUMMARY,async()=>{return await exports.browserStackEvaluate(_0x3b7b2a,scripts.getResultsSummary);})();return summaryResults;}catch{return logger[_0x4f4b8f(0x1a5)](_0x1d5294[_0x4f4b8f(0x1f5)]),{};}else return logger[_0x4f4b8f(0x1ab)](_0x1d5294[_0x4f4b8f(0x1ce)]),{};},exports[a38_0x5ef071(0x1e6)]=async _0x5537c7=>{const _0x46b0f9=a38_0x5ef071,_0x33740a={'uHIBr':function(_0x538644,_0x327e13){return _0x538644!==_0x327e13;},'ZOICA':_0x46b0f9(0x18e),'kDxqt':_0x46b0f9(0x219),'JvAwI':'playwright-chromium','znkif':'chromium','FyyTW':'Accessibility\x20Automation\x20will\x20run\x20only\x20on\x20Chrome\x20browsers.','IAvjD':function(_0x577f73,_0x5c8bb1){return _0x577f73(_0x5c8bb1);},'UrDaZ':function(_0x471ff9){return _0x471ff9();},'iAVrX':function(_0x35defa,_0x2fd4cb){return _0x35defa<_0x2fd4cb;},'PAWqc':_0x46b0f9(0x1c0),'QitKa':function(_0x3f29e4,_0x5e2cca){return _0x3f29e4===_0x5e2cca;},'VKbSw':'latest','aXQOK':function(_0x7d93e3,_0x33f057){return _0x7d93e3>_0x33f057;},'wYBpR':_0x46b0f9(0x1dc)};try{if(!_0x33740a[_0x46b0f9(0x1f2)](_0x5537c7[_0x46b0f9(0x1e0)],''))return logger[_0x46b0f9(0x1ab)](_0x33740a[_0x46b0f9(0x1eb)]),![];const _0xb7137b=_0x5537c7[_0x46b0f9(0x1c5)];if(![_0x33740a['kDxqt'],_0x33740a[_0x46b0f9(0x215)],_0x33740a[_0x46b0f9(0x203)]][_0x46b0f9(0x191)](_0xb7137b))return logger[_0x46b0f9(0x1ab)](_0x33740a['FyyTW']),![];const _0x158b17=_0x33740a[_0x46b0f9(0x1fe)](parseInt,_0x5537c7[_0x46b0f9(0x1ee)]);!_0x33740a['UrDaZ'](isBrowserstackInfra)&&(!_0x33740a[_0x46b0f9(0x1bb)](_0x158b17,0x64)&&logger[_0x46b0f9(0x1ab)](_0x33740a[_0x46b0f9(0x217)]));if(!(_0x33740a[_0x46b0f9(0x1a9)](_0x158b17,_0x33740a[_0x46b0f9(0x1ac)])||_0x33740a[_0x46b0f9(0x1c4)](_0x158b17,0x5e)))return logger[_0x46b0f9(0x1ab)](_0x33740a[_0x46b0f9(0x1ca)]),![];}catch(_0x2d2e45){logger[_0x46b0f9(0x1a5)](_0x46b0f9(0x213)+util[_0x46b0f9(0x1ea)](_0x2d2e45));}return!![];},exports[a38_0x5ef071(0x1bf)]=(_0x2baa8b,_0x34b826,_0x5205ab)=>{const _0x25647b=a38_0x5ef071,_0x260f36={'HMbNY':'browserstack.accessibilityOptions','svJKb':function(_0x5e9e79){return _0x5e9e79();},'wSnUn':_0x25647b(0x1d2),'rKlJF':function(_0x17d167,_0x211df8){return _0x17d167===_0x211df8;},'UBjji':_0x25647b(0x219),'WIhLA':function(_0x3420bf,_0x2597ff){return _0x3420bf===_0x2597ff;},'bKmyn':_0x25647b(0x1f8),'lDnGl':function(_0x2ec076,_0x3282f1){return _0x2ec076===_0x3282f1;},'eGGFf':function(_0x50f799,_0x469536){return _0x50f799===_0x469536;},'rYalt':_0x25647b(0x1bd),'JsveE':function(_0x36e649){return _0x36e649();},'eKgcn':function(_0x47f687,_0x5daf07){return _0x47f687>_0x5daf07;},'sdGVE':_0x25647b(0x1c0),'XqRsL':function(_0x231f8d,_0x5707ee){return _0x231f8d===_0x5707ee;},'jZSIB':_0x25647b(0x210),'cKzjx':_0x25647b(0x1dc),'MRdBl':function(_0x49ecc3,_0x59534e){return _0x49ecc3(_0x59534e);},'ozavG':_0x25647b(0x18e),'zdKzd':function(_0x97f509,_0x38091e){return _0x97f509+_0x38091e;}};try{if(_0x260f36['svJKb'](isAccessibilityAutomationSession)){global[_0x25647b(0x1f3)]=!![];!_0x2baa8b[_0x260f36[_0x25647b(0x1e4)]]&&(global['accessibilityPlatform']=![]);!(_0x260f36[_0x25647b(0x1be)](_0x2baa8b[_0x25647b(0x1cc)],_0x260f36[_0x25647b(0x1af)])||_0x260f36[_0x25647b(0x1a2)](_0x2baa8b[_0x25647b(0x1cc)],_0x260f36[_0x25647b(0x1e2)])||_0x260f36['lDnGl'](_0x2baa8b[_0x25647b(0x1c5)],_0x260f36[_0x25647b(0x1af)])||_0x260f36[_0x25647b(0x1cf)](_0x2baa8b['browser'],_0x260f36['bKmyn']))&&(logger[_0x25647b(0x1ab)](_0x260f36[_0x25647b(0x198)]),global[_0x25647b(0x1f3)]=![]);!_0x260f36[_0x25647b(0x1e7)](isBrowserstackInfra)&&(!_0x260f36[_0x25647b(0x20d)](_0x2baa8b['browser_version'],0x64)&&logger['warn'](_0x260f36[_0x25647b(0x1a0)]));!(_0x260f36[_0x25647b(0x190)](_0x2baa8b['browser_version'],_0x260f36[_0x25647b(0x1b3)])||_0x260f36[_0x25647b(0x20d)](_0x2baa8b[_0x25647b(0x1ee)],0x5e))&&(logger['warn'](_0x260f36[_0x25647b(0x19c)]),global[_0x25647b(0x1f3)]=![]);!_0x260f36[_0x25647b(0x1e9)](isUndefined,_0x2baa8b[_0x25647b(0x1e0)])&&(logger[_0x25647b(0x1ab)](_0x260f36[_0x25647b(0x1ec)]),global['accessibilityPlatform']=![]);if(!global[_0x25647b(0x1f3)]){_0x2baa8b[_0x260f36[_0x25647b(0x1e4)]]=![],Object[_0x25647b(0x216)](_0x2baa8b)[_0x25647b(0x208)](_0x58b9ab=>{const _0x368ade=_0x25647b;_0x58b9ab[_0x368ade(0x1a7)](_0x260f36[_0x368ade(0x1a4)])&&delete _0x2baa8b[_0x58b9ab];});const _0x3d2cfa=_0x260f36[_0x25647b(0x196)](_0x34b826,_0x260f36['MRdBl'](encodeURIComponent,JSON['stringify'](_0x2baa8b)));_0x5205ab&&(_0x5205ab[_0x25647b(0x18c)][_0x25647b(0x200)][_0x25647b(0x1cb)][_0x25647b(0x1b7)][_0x25647b(0x1b6)][_0x25647b(0x19b)]=_0x3d2cfa,_0x5205ab['workerInfo'][_0x25647b(0x1cb)][_0x25647b(0x1b7)][_0x25647b(0x1b6)]['wsEndpoint']=_0x3d2cfa);}}else global[_0x25647b(0x1f3)]=![];}catch(_0x328a37){logger[_0x25647b(0x1a5)]('Exception\x20in\x20validation\x20for\x20launch\x20browser\x20for\x20accessibility.\x20Error:\x20'+util[_0x25647b(0x1ea)](_0x328a37));}};
|
|
@@ -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';const a39_0x217b17=a39_0x2930;(function(_0xddd767,_0x1248fc){const _0x365fa6=a39_0x2930,_0x50ed2c=_0xddd767();while(!![]){try{const _0x2e1672=-parseInt(_0x365fa6(0x1d7))/0x1+parseInt(_0x365fa6(0x177))/0x2*(-parseInt(_0x365fa6(0x1f5))/0x3)+parseInt(_0x365fa6(0x149))/0x4+parseInt(_0x365fa6(0x1b3))/0x5+-parseInt(_0x365fa6(0x15e))/0x6+parseInt(_0x365fa6(0x179))/0x7+-parseInt(_0x365fa6(0x17b))/0x8;if(_0x2e1672===_0x1248fc)break;else _0x50ed2c['push'](_0x50ed2c['shift']());}catch(_0x52b362){_0x50ed2c['push'](_0x50ed2c['shift']());}}}(a39_0x47cc,0xeb39f));function a39_0x2930(_0x21756f,_0x2c5dcc){const _0x47cc28=a39_0x47cc();return a39_0x2930=function(_0x2930b7,_0x5ac5a9){_0x2930b7=_0x2930b7-0x12d;let _0x498a16=_0x47cc28[_0x2930b7];return _0x498a16;},a39_0x2930(_0x21756f,_0x2c5dcc);}function a39_0x47cc(){const _0x5db4b6=['length','unlinkSync','filterBrowserstackArgs','requireConfigLoaderYarnPnP','push','--config','ylZWw','existsSync','../utils/constants','SIumO','child_process','UFJgb','6535695UgGafw','isTypescriptProject','TFCZv','trace_','BROWSERSTACK_RERUN_TESTS','wHytQ','\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20process.env.GLOBAL_AGENT_NO_PROXY=\x22','getConfig','finalExecution','playwright','W_OK','get','accessSync','VogUZ','logLevel','initialize','getInstance','\x0a\x0a\x20\x20\x20\x20import\x20pkg\x20from\x20\x27browserstack-node-sdk\x27;\x0a\x20\x20\x20\x20export\x20default\x20pkg._modifyPlaywright()\x0a','uwUwG','path','stop','accessibility','../../helpers/test-observability/constants','getConfigPath','PACKAGE_TYPE','DUTxo','../v2/browserstackCLI','dirname','stringify','validateRerunTestList','BGcfh','pmUNL','--disable-test-observability','cjioV','ofFJn','resolvedConfigFile','1449544VwUUrT','hSTjd','../../helpers/testhub/testhubHandler','isFalse','assign','nAwsZ','accessibilityOptions','rsgRQ','wPvSN','isCLIEnabled','skipSessionStatus','writeFileSync','exitCode','slice','Error\x20in\x20deleting\x20playwright\x20results','dajrS','isUndefined','SDK_PRE_INITIALIZE','BROWSERSTACK_TEST_OBSERVABILITY','close','yLGxO','launchBuild','OGFdB','../v2/cliUtils','startsWith','isYarnPnP','sPalE','MODULE','../../helpers/logger','mRgOY','2247vbMudK','npx','SDK_SETUP','bjvIw','indexOf','CWXRi','Playwright\x20process\x20exited\x20with\x20code\x20','../../helpers/accessibility-automation/helper','VDzUw','serializeToYamlString','Error\x20in\x20getting\x20funnel\x20data\x20results','pJSOF','requirePWModule','PLAYWRIGHT','bXWtd','tKPgv','fSpSr','setFrameworkDetail','uxYKI','testObservability','../../helpers/BrowserStackSetup','VuUiC','jlZBT','getProxyUrl','RedmG','cHbqk','test','resolve','debug','nZuWD','BBSfz','5264240YHXCYh','browserstackAutomation','concat','isRunning','win32','../../helpers/performance/performance-tester','aaueB','../../helpers/test-observability/utils','browserstackSetupConfig.json','yarn','splice','Proxy\x20url\x20:\x20','\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();','eMJWM','join','inherit','start','readdirSync','has','nestedKeyValue','automation','1995114SHioPf','.browserstack','parse','TgIIW','cliConfig','myRWA','getPackageType','Deleting\x20','reportDotBrowserStackFolderNotAccessibleIssue','oJyhZ','testContextOptions','measureWrapper','../../helpers/performance/constants','readFileSync','QWJKd','INTERNALLY_USED_ENV_VARS','config','errorMessage','platform','lmlkG','umnFa','exports','BROWSERSTACK_PW_CONFIG_DIR','BROWSERSTACK_RERUN','--config=','2482lDRree','HPukF','7979986vmIkPS','split','705104FyNpuC','MiNHB','EVENTS','homedir','SDK_CLEANUP','BROWSERSTACK_SETUP_CONFIG_PATH','cwd','sCLHW','filter','JbRwi','Error\x20in\x20closing\x20playwright','./reporter/pwUtils','env','SDK_POST_INITIALIZE','FhJIN','wiDPY','error','Updated\x20config\x20file\x20name\x20to\x20-\x20','./reporter/test-details','./accessibility-helper','reportConflictingEnvVarIssue','getNoProxy','winstonLogger','dlBob','Ylfvc','BROWSERSTACK_TEST_ACCESSIBILITY_YML','playwright-browserstack-sdk.config.js','clearTempPWConfig','zIwQd','klXui','Error\x20in\x20accessing\x20.browserstack\x20directory:\x20','ecdyX','false','ECtIe','isTrue','pw_result.json','R_OK','end','BROWSERSTACK_TEST_ACCESSIBILITY_CONFIGURATION_YML','setBrowserstackConfig','CFzXy','forEach','../../helpers/utilities','USER_CONFIG_DETAILS_PATH'];a39_0x47cc=function(){return _0x5db4b6;};return a39_0x47cc();}const fs=require('fs'),path=require('path'),{spawn}=require(a39_0x217b17(0x1b1)),{format}=require('util'),logger=require(a39_0x217b17(0x1f3))[a39_0x217b17(0x191)],{default:BrowserStackSetup}=require(a39_0x217b17(0x13e)),helper=require('../../helpers/helper'),utilities=require(a39_0x217b17(0x1a5)),constants=require(a39_0x217b17(0x1af)),{FRAMEWORKS}=require(a39_0x217b17(0x1c9)),{getConfigLoaderPath}=require(a39_0x217b17(0x186)),{checkAccessibilityPlatformConfig}=require(a39_0x217b17(0x131)),{setAccessibilityCapabilities}=require(a39_0x217b17(0x18e)),{printBuildLink}=require(a39_0x217b17(0x150)),TestDetails=require(a39_0x217b17(0x18d)),TestHubHandler=require(a39_0x217b17(0x1d9)),PerformanceTester=require(a39_0x217b17(0x14e)),BrowserstackCLI=require(a39_0x217b17(0x1cd)),PerformanceEvents=require(a39_0x217b17(0x16a))[a39_0x217b17(0x17d)],CLIUtils=require(a39_0x217b17(0x1ee)),TestInfo=require('../v2/TestInfo'),ClientTroubleShootingService=require('../utils/clientTroubleshootingService'),getUserPlaywrightConfig=async(_0x38fbe9,_0x5e9725)=>{const _0xbdba31=a39_0x217b17,_0x197676={'SIumO':function(_0x1f8cb7){return _0x1f8cb7();},'CWXRi':function(_0x562bcc,_0xfc11cb){return _0x562bcc(_0xfc11cb);},'ofFJn':_0xbdba31(0x1d6),'VDzUw':_0xbdba31(0x176)},_0x816fc3=!helper[_0xbdba31(0x1e7)](_0x38fbe9['config']),_0x583e58=_0x816fc3?path[_0xbdba31(0x145)](process[_0xbdba31(0x181)](),_0x38fbe9['config']):process[_0xbdba31(0x181)](),{resolveConfigFile:_0x15b90d,resolveConfigLocation:_0x572623}=helper[_0xbdba31(0x1f0)]()?helper[_0xbdba31(0x1aa)](..._0x197676[_0xbdba31(0x1b0)](getConfigLoaderPath)):helper[_0xbdba31(0x136)]['apply'](null,_0x197676[_0xbdba31(0x1b0)](getConfigLoaderPath)),_0x575111=_0x15b90d?_0x197676[_0xbdba31(0x12f)](_0x15b90d,_0x583e58):helper[_0xbdba31(0x15c)](_0x197676[_0xbdba31(0x12f)](_0x572623,_0x583e58),[_0x197676[_0xbdba31(0x1d5)]]),_0x335b37={};if(_0x816fc3){const _0x3ec3c1=_0x5e9725['findIndex'](_0x7a52f2=>_0x7a52f2===_0xbdba31(0x1ac)||_0x7a52f2==='-c'||_0x7a52f2[_0xbdba31(0x1ef)]('--config='));_0x5e9725[_0xbdba31(0x153)](_0x3ec3c1,_0x5e9725[_0x3ec3c1]['startsWith'](_0x197676[_0xbdba31(0x132)])?0x1:0x2);}const _0x35a829={};return _0x35a829[_0xbdba31(0x1c6)]=_0x575111,_0x35a829[_0xbdba31(0x16e)]=_0x335b37,_0x35a829;},handleO11yRerun=_0x5b7059=>{const _0x3e4c9f=a39_0x217b17,_0x20ca27={};_0x20ca27[_0x3e4c9f(0x16c)]='--grep';const _0x16b03d=_0x20ca27,_0x3f16c2=helper[_0x3e4c9f(0x19d)](process[_0x3e4c9f(0x187)][_0x3e4c9f(0x175)]);if(_0x3f16c2){const _0x45ffc9=process[_0x3e4c9f(0x187)][_0x3e4c9f(0x1b7)],_0x4d2ee2=[];if(helper[_0x3e4c9f(0x1d0)](_0x45ffc9)&&!helper[_0x3e4c9f(0x1e7)](_0x45ffc9)){_0x45ffc9[_0x3e4c9f(0x17a)](',')['map'](_0x1d6112=>{const _0x4440c4=_0x3e4c9f;_0x4d2ee2[_0x4440c4(0x1ab)]('('+_0x1d6112['trim']()+')');});const _0xfd284f='^'+_0x4d2ee2['join']('|')+'$';_0x5b7059[_0x3e4c9f(0x1ab)](_0x16b03d[_0x3e4c9f(0x16c)],_0xfd284f);}}},spawnOriginalProcess=_0x4cb51f=>{const _0x9758fc=a39_0x217b17,_0x3b09ae={'hSTjd':function(_0x490395,_0x2f49a4,_0x262c82,_0x78f0e9){return _0x490395(_0x2f49a4,_0x262c82,_0x78f0e9);},'rsgRQ':_0x9758fc(0x152),'BGcfh':_0x9758fc(0x1f6),'myRWA':_0x9758fc(0x1bc),'uxYKI':function(_0x5f18dc,_0x210817){return _0x5f18dc===_0x210817;},'oJyhZ':_0x9758fc(0x14d),'bXWtd':_0x9758fc(0x158)};_0x3b09ae[_0x9758fc(0x1d8)](spawn,helper['isYarnPnP']()?_0x3b09ae[_0x9758fc(0x1de)]:_0x3b09ae[_0x9758fc(0x1d1)],[_0x3b09ae[_0x9758fc(0x163)],..._0x4cb51f[_0x9758fc(0x1e4)](0x1)],{'shell':_0x3b09ae[_0x9758fc(0x13c)](process['platform'],_0x3b09ae[_0x9758fc(0x167)]),'stdio':_0x3b09ae[_0x9758fc(0x138)],'cwd':process[_0x9758fc(0x181)]()});},isTestCommand=(_0x429ab7,_0x176d22)=>{const _0x224a57=a39_0x217b17,_0x4cde49={};_0x4cde49['yLGxO']=function(_0x33422f,_0x1758d0){return _0x33422f>_0x1758d0;},_0x4cde49[_0x224a57(0x189)]=function(_0x201978,_0x494bba){return _0x201978===_0x494bba;},_0x4cde49[_0x224a57(0x1c5)]=_0x224a57(0x144);const _0x11be51=_0x4cde49;if(_0x11be51[_0x224a57(0x1eb)](_0x176d22[_0x224a57(0x1a7)],0x1)&&_0x11be51['FhJIN'](_0x176d22[0x1],_0x11be51[_0x224a57(0x1c5)]))return!![];return![];};async function run(_0x4bc19d,_0x51944e,_0xc2feb0){const _0x53c28b=a39_0x217b17,_0x3848a8={'umnFa':_0x53c28b(0x15f),'TgIIW':_0x53c28b(0x19e),'TFCZv':function(_0x4d9944,_0x590a58){return _0x4d9944+_0x590a58;},'CFzXy':_0x53c28b(0x134),'pJSOF':function(_0x174293){return _0x174293();},'dajrS':function(_0x2d0f92){return _0x2d0f92();},'VogUZ':_0x53c28b(0x185),'wHytQ':function(_0x1f7f70,_0x1b3e3a){return _0x1f7f70(_0x1b3e3a);},'cHbqk':'BrowserStack\x20config\x20file\x20not\x20found.','klXui':function(_0x3d24aa,_0x475bfe){return _0x3d24aa<_0x475bfe;},'DUTxo':function(_0x1315dc,_0x36c717){return _0x1315dc===_0x36c717;},'aaueB':_0x53c28b(0x19b),'cYIEN':_0x53c28b(0x1d3),'sPalE':function(_0x55557d,_0x389db4){return _0x55557d>=_0x389db4;},'wiDPY':_0x53c28b(0x15d),'bjvIw':function(_0x3539b5,_0x4ea0af){return _0x3539b5!=_0x4ea0af;},'mRgOY':function(_0x210fa4,_0x28f8f5,_0x331239){return _0x210fa4(_0x28f8f5,_0x331239);},'eMJWM':function(_0x634f0c,_0x5f0810){return _0x634f0c(_0x5f0810);},'jlZBT':'true','ecdyX':function(_0x3c4d11,_0x3fa598){return _0x3c4d11(_0x3fa598);},'sCLHW':_0x53c28b(0x151),'UFJgb':function(_0x4da515,_0x36fd3d){return _0x4da515===_0x36fd3d;},'zIwQd':'playwright-browserstack-sdk.config.cjs','HPukF':_0x53c28b(0x195),'vGpgm':function(_0x197411,_0x5a2c6b){return _0x197411-_0x5a2c6b;},'FovlR':_0x53c28b(0x18c),'MiNHB':function(_0x502d08,_0x29bab6){return _0x502d08>_0x29bab6;},'nAwsZ':function(_0x52635f,_0x110c41){return _0x52635f+_0x110c41;},'wPvSN':function(_0x143bd1,_0x4b4bdd,_0x1ff734,_0x2ecfce){return _0x143bd1(_0x4b4bdd,_0x1ff734,_0x2ecfce);},'BBSfz':'yarn','ECtIe':_0x53c28b(0x1f6),'VuUiC':_0x53c28b(0x1bc),'JbRwi':_0x53c28b(0x144),'wkwgB':_0x53c28b(0x1ac),'nZuWD':_0x53c28b(0x14d),'tKPgv':function(_0x3b0deb,_0x366b1a){return _0x3b0deb===_0x366b1a;},'dlBob':_0x53c28b(0x158),'Ylfvc':_0x53c28b(0x1ea),'RedmG':function(_0x4ddf89,_0x5212a9){return _0x4ddf89|_0x5212a9;},'lmlkG':function(_0x50d1b2,_0x1a4aee){return _0x50d1b2+_0x1a4aee;},'fSpSr':_0x53c28b(0x199),'cjioV':_0x53c28b(0x1e5),'OGFdB':function(_0xbfd919,_0x455ebd,_0x297726){return _0xbfd919(_0x455ebd,_0x297726);}};try{const _0x358dcc=path[_0x53c28b(0x157)](helper['homedir'](),_0x3848a8[_0x53c28b(0x172)]);try{fs[_0x53c28b(0x1bf)](_0x358dcc,_0x3848a8[_0x53c28b(0x142)](fs['constants'][_0x53c28b(0x19f)],fs['constants'][_0x53c28b(0x1bd)]));}catch(_0x372ec2){ClientTroubleShootingService[_0x53c28b(0x166)]();}}catch(_0x481ac7){logger[_0x53c28b(0x146)](_0x3848a8[_0x53c28b(0x171)](_0x3848a8[_0x53c28b(0x13a)],_0x481ac7));}try{const _0x4062c0=path['join'](helper[_0x53c28b(0x17e)](),_0x3848a8[_0x53c28b(0x172)],_0x3848a8['TgIIW']);fs[_0x53c28b(0x1ae)](_0x4062c0)&&fs[_0x53c28b(0x1a8)](_0x4062c0);}catch(_0x4d0e41){logger[_0x53c28b(0x146)](_0x3848a8[_0x53c28b(0x1b5)](_0x3848a8[_0x53c28b(0x1d4)],_0x4d0e41));}if(!_0x3848a8[_0x53c28b(0x1ed)](isTestCommand,_0x4bc19d,_0x51944e)){_0x3848a8[_0x53c28b(0x1b8)](spawnOriginalProcess,_0x51944e);return;}await PerformanceTester[_0x53c28b(0x169)](PerformanceEvents[_0x53c28b(0x1e8)],async()=>{const _0x276f28=_0x53c28b,_0x499f49={'pmUNL':function(_0x5dca37,_0xf1de7d){const _0x391389=a39_0x2930;return _0x3848a8[_0x391389(0x1b8)](_0x5dca37,_0xf1de7d);}};if(!_0xc2feb0[_0x276f28(0x16e)]){logger[_0x276f28(0x18b)](_0x3848a8[_0x276f28(0x143)]);return;}await _0xc2feb0[_0x276f28(0x1c2)](_0x4bc19d),CLIUtils[_0x276f28(0x13b)](FRAMEWORKS[_0x276f28(0x137)],FRAMEWORKS[_0x276f28(0x137)]),BrowserstackCLI[_0x276f28(0x1c3)]()[_0x276f28(0x1a2)](_0xc2feb0[_0x276f28(0x16e)],_0xc2feb0['configPath'],_0xc2feb0[_0x276f28(0x162)]),await BrowserstackCLI[_0x276f28(0x1c3)]()['bootstrap']();for(var _0x1e1bdc=0x0;_0x3848a8[_0x276f28(0x198)](_0x1e1bdc,constants[_0x276f28(0x16d)]['length']);_0x1e1bdc++){var _0xd3fbfd=constants[_0x276f28(0x16d)][_0x1e1bdc];process['env'][_0xd3fbfd]&&await ClientTroubleShootingService[_0x276f28(0x18f)](_0xd3fbfd);}const _0x318408=BrowserstackCLI[_0x276f28(0x1c3)]()[_0x276f28(0x1ba)]();!helper['isFalse'](_0x318408[_0x276f28(0x14a)])&&(process[_0x276f28(0x187)]['BROWSERSTACK_AUTOMATION']=!![]);_0x3848a8[_0x276f28(0x1cc)](_0x318408[_0x276f28(0x14a)],![])&&(process[_0x276f28(0x187)]['BROWSERSTACK_AUTOMATION']=_0x3848a8[_0x276f28(0x14f)],_0x51944e=_0x51944e['filter'](_0x40abdb=>_0x40abdb!=='--disable-browserstack-automation'));const _0x1954e0=_0x51944e[_0x276f28(0x12e)](_0x3848a8['cYIEN']);(_0x3848a8[_0x276f28(0x1f1)](_0x1954e0,0x0)||_0x3848a8[_0x276f28(0x1cc)](_0x318408[_0x276f28(0x13d)],![]))&&(process[_0x276f28(0x187)][_0x276f28(0x1e9)]=_0x3848a8[_0x276f28(0x14f)],_0x51944e=_0x51944e[_0x276f28(0x183)](_0x2d3956=>_0x2d3956!==_0x276f28(0x1d3)));!helper['isUndefined'](_0xc2feb0[_0x276f28(0x162)])&&_0xc2feb0[_0x276f28(0x162)][_0x276f28(0x15b)](_0x3848a8['wiDPY'])&&(process[_0x276f28(0x187)]['BROWSERSTACK_AUTOMATION']=_0xc2feb0[_0x276f28(0x162)][_0x276f28(0x1be)](_0x3848a8[_0x276f28(0x18a)])||!![]);_0x3848a8[_0x276f28(0x12d)](_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x13d)],null)&&!helper['isTrue'](process[_0x276f28(0x187)]['BROWSERSTACK_TEST_OBSERVABILITY'])&&(process['env']['BROWSERSTACK_TEST_OBSERVABILITY']=process['env'][_0x276f28(0x1e9)]||_0xc2feb0[_0x276f28(0x16e)]['testObservability']);const _0x5701de=!helper[_0x276f28(0x1da)](process[_0x276f28(0x187)][_0x276f28(0x1e9)]);_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x1dd)]&&(process[_0x276f28(0x187)][_0x276f28(0x1a1)]=JSON[_0x276f28(0x1cf)](_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x1dd)]));let _0x1023cf=![];_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x1c8)]&&(_0x1023cf=!![],process['env'][_0x276f28(0x194)]=_0xc2feb0[_0x276f28(0x16e)][_0x276f28(0x1c8)]);const _0x252826=_0x51944e[_0x276f28(0x14b)](),_0x2483cd=await _0x3848a8[_0x276f28(0x1f4)](getUserPlaywrightConfig,_0x4bc19d,_0x51944e);if(helper[_0x276f28(0x1e7)](_0x2483cd)){_0x3848a8[_0x276f28(0x156)](spawnOriginalProcess,_0x252826);return;}const _0x4d3697=_0x2483cd[_0x276f28(0x1c6)]?path[_0x276f28(0x1ce)](_0x2483cd[_0x276f28(0x1c6)]):process[_0x276f28(0x181)]();process[_0x276f28(0x187)][_0x276f28(0x174)]=_0x4d3697,await PerformanceTester[_0x276f28(0x169)](PerformanceEvents[_0x276f28(0x188)],async()=>{const _0x4ca7f4=_0x276f28;!BrowserstackCLI[_0x4ca7f4(0x1c3)]()[_0x4ca7f4(0x14c)]()&&await TestHubHandler[_0x4ca7f4(0x1ec)](FRAMEWORKS[_0x4ca7f4(0x137)],_0xc2feb0),_0x5701de&&_0x499f49[_0x4ca7f4(0x1d2)](handleO11yRerun,_0x51944e);})();if(!BrowserstackCLI[_0x276f28(0x1c3)]()[_0x276f28(0x14c)]()){let _0x514e0b=_0x3848a8['DUTxo'](process[_0x276f28(0x187)][_0x276f28(0x194)],_0x3848a8[_0x276f28(0x140)]);_0x514e0b=_0x514e0b||_0x3848a8[_0x276f28(0x1b8)](checkAccessibilityPlatformConfig,_0xc2feb0[_0x276f28(0x16e)]),process[_0x276f28(0x187)][_0x276f28(0x194)]=_0x514e0b,_0x514e0b&&_0x3848a8[_0x276f28(0x19a)](setAccessibilityCapabilities,_0xc2feb0[_0x276f28(0x16e)]);}const _0x45efdd=path[_0x276f28(0x157)](_0x2483cd[_0x276f28(0x1c6)]?path[_0x276f28(0x1ce)](_0x2483cd[_0x276f28(0x1c6)]):process[_0x276f28(0x181)](),_0x3848a8[_0x276f28(0x182)]);fs[_0x276f28(0x1e2)](_0x45efdd,helper[_0x276f28(0x133)](_0xc2feb0[_0x276f28(0x16e)])),process[_0x276f28(0x187)][_0x276f28(0x180)]=_0x45efdd,helper[_0x276f28(0x196)]();let _0x47d11d='';_0x3848a8[_0x276f28(0x1b2)](helper[_0x276f28(0x164)](),constants[_0x276f28(0x1cb)][_0x276f28(0x1f2)])?_0x47d11d=_0x3848a8[_0x276f28(0x197)]:_0x47d11d=_0x3848a8[_0x276f28(0x178)];let _0x5659d5='';if(helper[_0x276f28(0x1b4)](_0x2483cd[_0x276f28(0x1c6)])){_0x5659d5=_0x276f28(0x1c4);const _0x4b9391=_0x47d11d['split']('.');_0x4b9391[_0x3848a8['vGpgm'](_0x4b9391[_0x276f28(0x1a7)],0x1)]='ts',_0x47d11d=_0x4b9391[_0x276f28(0x157)]('.'),logger[_0x276f28(0x146)](_0x3848a8[_0x276f28(0x1b5)](_0x3848a8['FovlR'],_0x47d11d));}else _0x5659d5='\x0a\x0a\x20\x20\x20\x20const\x20modifyPWConfig\x20=\x20require(\x27browserstack-node-sdk\x27)._modifyPlaywright;\x0a\x0a\x20\x20\x20\x20module.exports\x20=\x20modifyPWConfig();\x0a';const _0x387c73=path[_0x276f28(0x157)](_0x2483cd['path']?path[_0x276f28(0x1ce)](_0x2483cd[_0x276f28(0x1c6)]):process[_0x276f28(0x181)](),_0x47d11d);let _0x11371c=_0x2483cd[_0x276f28(0x1c6)]?_0x2483cd[_0x276f28(0x1c6)]:'';_0x11371c=_0x3848a8[_0x276f28(0x17c)](_0x11371c[_0x276f28(0x1a7)],0x0)?path[_0x276f28(0x145)](_0x11371c):'',process[_0x276f28(0x187)][_0x276f28(0x1a6)]=_0x11371c;const _0x172603=helper[_0x276f28(0x141)](_0xc2feb0['config']),_0x20a0ad=helper[_0x276f28(0x190)](_0xc2feb0[_0x276f28(0x16e)]);logger['debug'](_0x276f28(0x154)+_0x172603),logger[_0x276f28(0x146)]('No\x20Proxy\x20:\x20'+_0x20a0ad);_0x172603&&(_0x5659d5=_0x3848a8[_0x276f28(0x1dc)]('process.env.GLOBAL_AGENT_HTTP_PROXY=\x22'+_0x172603+_0x276f28(0x1b9)+_0x20a0ad+_0x276f28(0x155),_0x5659d5));helper[_0x276f28(0x1a9)]({},_0x51944e),fs[_0x276f28(0x1e2)](_0x387c73,_0x5659d5),PerformanceTester[_0x276f28(0x1a0)](PerformanceEvents[_0x276f28(0x1f7)]);const _0x222241=_0x3848a8[_0x276f28(0x1df)](spawn,helper['isYarnPnP']()?_0x3848a8[_0x276f28(0x148)]:_0x3848a8[_0x276f28(0x19c)],[_0x3848a8[_0x276f28(0x13f)],_0x3848a8[_0x276f28(0x184)],_0x3848a8['wkwgB'],_0x3848a8[_0x276f28(0x1b2)](process[_0x276f28(0x170)],_0x3848a8[_0x276f28(0x147)])?'\x22'+_0x387c73+'\x22':_0x387c73,..._0x51944e[_0x276f28(0x1e4)](0x2)],{'shell':_0x3848a8[_0x276f28(0x139)](process[_0x276f28(0x170)],_0x3848a8['nZuWD']),'stdio':_0x3848a8[_0x276f28(0x192)],'cwd':process[_0x276f28(0x181)](),'env':Object[_0x276f28(0x1db)]({},process['env'],{'BROWSERSTACK_CONFIG_FILE_PATH':helper[_0x276f28(0x1ca)](_0x4bc19d),'BROWSERSTACK_SKIP_SESSION_STATUS':_0xc2feb0['config'][_0x276f28(0x168)][_0x276f28(0x1e1)],'BROWSERSTACK_SKIP_SESSION_NAME':_0xc2feb0['config'][_0x276f28(0x168)]['skipSessionName'],'BROWSERSTACK_LOG_LEVEL':_0xc2feb0['config'][_0x276f28(0x1c1)]})}),_0xb3f027=()=>{const _0x1a8931=_0x276f28;try{const _0x2f8bbd=path[_0x1a8931(0x157)](helper[_0x1a8931(0x17e)](),_0x3848a8['umnFa'],_0x3848a8[_0x1a8931(0x161)]);if(fs['existsSync'](_0x2f8bbd)){let _0x484faa=fs[_0x1a8931(0x16b)](_0x2f8bbd);_0x484faa=JSON[_0x1a8931(0x160)](_0x484faa),_0xc2feb0[_0x1a8931(0x16f)]=_0x484faa,fs[_0x1a8931(0x1a8)](_0x2f8bbd);}}catch(_0x3b6685){logger[_0x1a8931(0x146)](_0x3848a8[_0x1a8931(0x1b5)](_0x3848a8[_0x1a8931(0x1a3)],_0x3b6685));}};_0x222241['on'](_0x3848a8[_0x276f28(0x193)],async _0x4f8a55=>{const _0x631086=_0x276f28,_0x3c17f5={};_0x3c17f5[_0x631086(0x1ad)]=_0x3848a8[_0x631086(0x172)];const _0x416c14=_0x3c17f5;try{PerformanceTester[_0x631086(0x159)](PerformanceEvents[_0x631086(0x17f)]),_0x3848a8[_0x631086(0x135)](_0xb3f027),await TestHubHandler[_0x631086(0x1c7)](),await ClientTroubleShootingService['reportFinalDetectionState']();const _0x3e9608=BrowserstackCLI[_0x631086(0x1e0)]();await BrowserstackCLI['getInstance']()[_0x631086(0x1c7)](),TestDetails['shutdown'](),_0x3848a8[_0x631086(0x1e6)](printBuildLink),await utilities[_0x631086(0x1bb)](_0xc2feb0,_0x3e9608),process[_0x631086(0x1e3)]=_0x4f8a55,logger[_0x631086(0x146)](_0x631086(0x130)+_0x4f8a55),logger['info'](_0x631086(0x165)+_0x387c73),fs[_0x631086(0x1a8)](_0x387c73);fs[_0x631086(0x1ae)](_0x45efdd)&&(logger[_0x631086(0x146)](_0x631086(0x165)+_0x45efdd),fs[_0x631086(0x1a8)](_0x45efdd));const _0x536be8=fs[_0x631086(0x15a)](path[_0x631086(0x157)](helper[_0x631086(0x17e)](),_0x3848a8[_0x631086(0x172)]))['filter'](_0x33bf64=>_0x33bf64[_0x631086(0x1ef)](_0x631086(0x1b6)));_0x536be8[_0x631086(0x1a4)](_0x46ed6b=>{const _0x176440=_0x631086;fs['unlinkSync'](path[_0x176440(0x157)](helper[_0x176440(0x17e)](),_0x416c14[_0x176440(0x1ad)],_0x46ed6b));});}catch(_0x4eb617){logger[_0x631086(0x146)](_0x3848a8[_0x631086(0x1b5)](_0x3848a8[_0x631086(0x1c0)],_0x4eb617));}});})();}module[a39_0x217b17(0x173)]=run;
|